/* =========================================================================
   ANDREI — AI document review & drafting for regulated teams
   Aesthetic: regulatory-editorial. White canvas, navy ink, cornflower accent.
   Serif headlines (documents), grotesque body, mono labels (audit precision).
   ========================================================================= */

/* Fonts load via non-blocking <link> in each page's <head>, not @import,
   so the stylesheet no longer starts a render-blocking request chain. */

/* ----------------------------------------------------------------- Tokens */
:root {
  /* Core palette — white / blue / black */
  --paper:      #ffffff;
  --paper-2:    #f5f7fb;   /* faint blue-grey wash */
  --paper-3:    #eef2f9;
  --ink:        #0a0f1a;   /* near-black */
  --navy:       #0e2148;   /* deep brand navy */
  --navy-2:     #16305f;
  --blue:       #2f6bd8;   /* cornflower accent */
  --blue-bright:#4a86ee;
  --blue-soft:  #e6eefc;
  --line:       #dde4ef;
  --line-strong:#c6d1e4;
  --muted:      #5a6577;
  --muted-2:    #8794a8;

  /* Typography */
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --sans:  'Hanken Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:  'IBM Plex Mono', ui-monospace, 'SF Mono', monospace;

  --shadow-sm: 0 1px 2px rgba(14,33,72,.05), 0 2px 8px rgba(14,33,72,.04);
  --shadow-md: 0 8px 30px rgba(14,33,72,.08), 0 2px 8px rgba(14,33,72,.05);
  --shadow-lg: 0 30px 70px -20px rgba(14,33,72,.28), 0 12px 30px -12px rgba(14,33,72,.15);

  --maxw: 1180px;
  --radius: 14px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Paper grain / grid backdrop */
body::before {
  content: "";
  position: fixed; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 46px 46px;
  opacity: .30;
  -webkit-mask-image: radial-gradient(120% 90% at 50% 0%, #000 5%, transparent 60%);
          mask-image: radial-gradient(120% 90% at 50% 0%, #000 5%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: min(var(--maxw), 92vw); margin-inline: auto; position: relative; z-index: 1; }

/* -------------------------------------------------------------- Typography */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; line-height: 1.08; color: var(--navy); }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: .6em;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: var(--blue);
  display: inline-block;
}

.lead { font-size: 1.22rem; color: var(--muted); line-height: 1.55; }

/* ------------------------------------------------------------------ Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--sans); font-weight: 600; font-size: .96rem;
  padding: .82em 1.3em;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .2s;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.btn-primary { background: var(--navy); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--blue); transform: translateY(-2px); box-shadow: 0 12px 26px -8px rgba(47,107,216,.5); }
.btn-primary:hover svg { transform: translateX(4px); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }
.btn-lg { padding: 1em 1.6em; font-size: 1.02rem; }

/* ---------------------------------------------------------------------- Nav */
header.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  background: rgba(255,255,255,.72);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s, box-shadow .3s;
}
header.nav.scrolled { border-bottom-color: var(--line); background: rgba(255,255,255,.9); box-shadow: 0 1px 0 rgba(14,33,72,.03); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: inline-flex; align-items: center; padding: 6px 11px; margin-left: -11px; border-radius: 11px; transition: background .35s var(--ease), box-shadow .35s var(--ease); }
.brand img { height: 30px; width: auto; }
header.nav.scrolled .brand { background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line); }
.brand:hover { background: var(--blue-soft); box-shadow: inset 0 0 0 1px #c9dbf7; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-size: .93rem; font-weight: 500; color: var(--muted); position: relative; transition: color .2s; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 1.5px; width: 0;
  background: var(--blue); transition: width .3s var(--ease);
}
.nav-links a:hover { color: var(--navy); }
.nav-links a:hover::after { width: 100%; }
.nav-cta { display: flex; align-items: center; gap: 1rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }

/* -------------------------------------------------------------------- Hero */
.hero {
  padding: clamp(1.5rem, 4vh, 3.25rem) 0;
  position: relative;
  min-height: calc(100vh - 74px);
  min-height: calc(100svh - 74px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }

.hero h1 {
  font-size: clamp(2.4rem, 4.8vw, 3.7rem);
  line-height: 1.04;
  margin: 1rem 0 1.1rem;
  letter-spacing: -.022em;
}
.hero h1 em { font-style: italic; color: var(--blue); }
.hero .lead { max-width: 42ch; margin-bottom: 1.4rem; font-size: 1.1rem; line-height: 1.5; }
.hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; align-items: center; }

.trustline {
  margin-top: 2.4rem; padding-top: 1.8rem; border-top: 1px solid var(--line);
  display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap;
}
.trustline span { font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.trustline .pills { display: flex; gap: .5rem; flex-wrap: wrap; }
.pill {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .06em;
  padding: .35em .7em; border: 1px solid var(--line-strong); border-radius: 20px;
  color: var(--navy-2); background: var(--paper); white-space: nowrap;
}
.pill .pill-s { text-transform: lowercase; }

/* Hero visual — an annotated document under review */
.doc-stage { position: relative; }
.doc-glow {
  position: absolute; inset: -8% -12% -18% -6%;
  background: radial-gradient(60% 55% at 70% 25%, rgba(74,134,238,.22), transparent 70%),
              radial-gradient(50% 50% at 20% 90%, rgba(47,107,216,.14), transparent 70%);
  filter: blur(6px); z-index: 0; pointer-events: none;
}
.doc-card {
  position: relative; z-index: 1;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 16px; box-shadow: var(--shadow-lg);
  padding: 1.4rem 1.5rem 1.6rem;
  transform: rotate(-1.1deg);
  transition: transform .5s var(--ease);
}
.doc-card:hover { transform: rotate(0deg); }
.doc-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: .85rem; margin-bottom: 1rem; }
.doc-title { font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; color: var(--muted); }
.doc-title b { color: var(--navy); font-weight: 600; }
.doc-status { font-family: var(--mono); font-size: .66rem; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); display: inline-flex; align-items: center; gap: .4em; }
.doc-status::before { content:""; width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 0 rgba(47,107,216,.5); animation: ping 2.4s infinite; }
@keyframes ping { 0%{box-shadow:0 0 0 0 rgba(47,107,216,.5)} 70%{box-shadow:0 0 0 8px rgba(47,107,216,0)} 100%{box-shadow:0 0 0 0 rgba(47,107,216,0)} }

.doc-line { height: 9px; border-radius: 4px; background: var(--paper-3); margin: .55rem 0; }
.doc-line.w1{width:92%} .doc-line.w2{width:78%} .doc-line.w3{width:85%} .doc-line.w4{width:64%}

.doc-flag {
  position: relative; margin: .9rem 0; padding: .7rem .8rem .7rem .85rem;
  border-radius: 10px; border: 1px solid var(--blue-soft); background: linear-gradient(180deg,#f4f8ff,#eef4ff);
  border-left: 3px solid var(--blue);
}
.doc-flag .tag { font-family: var(--mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); font-weight: 600; }
.doc-flag p { font-size: .82rem; color: var(--navy-2); margin-top: .25rem; line-height: 1.45; }
.doc-check { display: flex; align-items: center; gap: .55rem; margin: .7rem 0; font-size: .82rem; color: var(--navy-2); }
.doc-check .mk { width: 18px; height: 18px; border-radius: 5px; background: var(--blue); display: grid; place-items: center; flex: none; }
.doc-check .mk svg { width: 11px; height: 11px; }

.doc-float {
  position: absolute; z-index: 2;
  background: var(--navy); color: #fff;
  border-radius: 12px; padding: .7rem .9rem;
  box-shadow: var(--shadow-lg);
  font-size: .76rem;
  display: flex; align-items: center; gap: .6rem;
}
.doc-float:hover { animation: floaty 5s ease-in-out infinite; }
.doc-float .mono { font-family: var(--mono); font-size: .64rem; font-weight: 500; color: #a8c8f7; letter-spacing: .07em; display:block; margin-bottom: 3px; }
.doc-float.f1 { top: -22px; right: -14px; }
.doc-float.f2 { bottom: -26px; left: -20px; }
@keyframes floaty { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-9px)} }

/* --------------------------------------------------- Animated logo (hero) */
.logo-stage { position: relative; display: grid; place-items: center; padding: 1.5rem 0; }
.logo-anim { position: relative; z-index: 1; width: 100%; max-width: 520px; }
.logo-anim svg { width: 100%; height: auto; display: block; }

@keyframes la-draw  { to { stroke-dashoffset: 0; } }
@keyframes la-pop   { 0% { transform: scale(0); } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes la-pill  { 0% { transform: scaleX(0); opacity: 0; } 100% { transform: scaleX(1); opacity: 1; } }
@keyframes la-slide { to { transform: translateX(0); } }
@keyframes la-wipe  { to { transform: scaleX(1); } }

.logo-anim #la-outline, .logo-anim #la-check { stroke-dasharray: 1; stroke-dashoffset: 1; }
.logo-anim #la-fold { transform-box: fill-box; transform-origin: 0 0; transform: scale(0); }
.logo-anim .la-dash { transform-box: fill-box; transform-origin: left center; transform: scaleX(0); opacity: 0; }
.logo-anim #la-icon { transform: translateX(300px); }
.logo-anim #la-clip { transform-box: fill-box; transform-origin: left center; transform: scaleX(0); }

.logo-anim.run #la-fold    { animation: la-pop  .45s cubic-bezier(.2,.8,.3,1.25) .10s forwards; }
.logo-anim.run #la-outline { animation: la-draw 1.0s ease-out .55s forwards; }
.logo-anim.run #la-d1 { animation: la-pill .28s ease-out 1.55s forwards; }
.logo-anim.run #la-d2 { animation: la-pill .28s ease-out 1.80s forwards; }
.logo-anim.run #la-d3 { animation: la-pill .28s ease-out 2.05s forwards; }
.logo-anim.run #la-d4 { animation: la-pill .28s ease-out 2.30s forwards; }
.logo-anim.run #la-check { animation: la-draw .70s ease-out 2.85s forwards; }
.logo-anim.run #la-icon  { animation: la-slide .90s cubic-bezier(.2,.7,.2,1) 3.65s forwards; }
.logo-anim.run #la-clip  { animation: la-wipe .90s ease-out 3.75s forwards; }

@media (prefers-reduced-motion: reduce) {
  .logo-anim #la-outline, .logo-anim #la-check { stroke-dashoffset: 0; }
  .logo-anim #la-fold { transform: scale(1); }
  .logo-anim .la-dash { transform: scaleX(1); opacity: 1; }
  .logo-anim #la-icon { transform: translateX(0); }
  .logo-anim #la-clip { transform: scaleX(1); }
  .logo-anim.run * { animation: none !important; }
}

/* --------------------------------------------------------------- Marquee */
.marquee { border-block: 1px solid var(--line); background: var(--paper-2); overflow: hidden; padding: .9rem 0; }
.marquee-track { display: flex; gap: 3.5rem; width: max-content; animation: slide 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-family: var(--mono); font-size: .8rem; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; white-space: nowrap; display: inline-flex; align-items: center; gap: 3.5rem; }
.marquee-track span::after { content:"✦"; color: var(--blue); font-size: .7rem; }
@keyframes slide { to { transform: translateX(-50%); } }

/* --------------------------------------------------------------- Sections */
section { padding: clamp(2.75rem, 6vh, 5rem) 0; position: relative; }
.section-head { max-width: 62ch; margin-bottom: clamp(1.75rem, 3.5vh, 2.75rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3.1rem); margin: 1rem 0 1.1rem; letter-spacing: -.02em; }
.section-head p { font-size: 1.12rem; color: var(--muted); }

/* Problem / stats */
.problem { background: var(--navy); color: #eaf0fb; }
.problem::before { content:""; position:absolute; inset:0; background:
  radial-gradient(50% 60% at 85% 10%, rgba(74,134,238,.20), transparent 60%),
  radial-gradient(45% 55% at 5% 100%, rgba(47,107,216,.16), transparent 60%); pointer-events:none; }
.problem h2 { color: #fff; }
.problem .eyebrow { color: var(--blue-bright); }
.problem .eyebrow::before { background: var(--blue-bright); }
.problem .section-head p { color: #b7c4dc; }
.problem-top { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; margin-bottom: clamp(2.6rem, 5vw, 3.6rem); }
.problem-top .section-head { margin-bottom: 0; }
.problem-top .doc-stage { justify-self: end; width: 100%; max-width: 520px; transform: translateX(1.25rem); }
.problem .doc-card { transform: rotate(0deg); }
.problem .doc-float { background: #12244a; border: 1px solid rgba(255,255,255,.15); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; margin-top: 1rem; }
.stat { border-top: 1px solid rgba(255,255,255,.16); padding-top: 1.1rem; }
.stat .num { font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3rem); color: #fff; line-height: 1; letter-spacing: -.02em; }
.stat .num em { font-style: italic; color: var(--blue-bright); }
.stat .num .pct { font-size: .58em; color: var(--blue-bright); margin-left: .04em; }
.stat .lbl { font-size: .92rem; color: #a9b8d4; margin-top: .6rem; }
.stats-source { margin-top: 1.1rem; font-size: .78rem; color: rgba(169,184,212,.78); }
.stats-source a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.pillar {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem 1.7rem; position: relative; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.pillar::after { content:""; position:absolute; left:0; top:0; height:3px; width:0; background: var(--blue); transition: width .4s var(--ease); }
.pillar:hover::after { width: 100%; }
.pillar .idx { font-family: var(--mono); font-size: .74rem; color: var(--blue); letter-spacing: .1em; }
.pillar .ico { width: 46px; height: 46px; border-radius: 11px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; margin: 1.1rem 0 1.2rem; }
.pillar .ico svg { width: 23px; height: 23px; }
.pillar h3 { font-size: 1.42rem; margin-bottom: .6rem; }
.pillar p { color: var(--muted); font-size: .98rem; }

/* Industries */
.industries { background: var(--paper-2); border-block: 1px solid var(--line); }
.ind-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.ind-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2.2rem; display: flex; gap: 1.4rem; align-items: flex-start;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.ind-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.ind-card .ico { width: 54px; height: 54px; flex: none; border-radius: 13px; background: var(--navy); color: #fff; display: grid; place-items: center; }
.ind-card .ico svg { width: 26px; height: 26px; }
.ind-card h3 { font-size: 1.5rem; margin-bottom: .5rem; }
.ind-card p { color: var(--muted); font-size: .96rem; margin-bottom: .9rem; }
.ind-tags { display: flex; flex-wrap: wrap; gap: .4rem; }

/* Workflows — split accordion-ish columns */
.wf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.wf-col {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
  padding: 2rem 2rem 1.4rem; transition: box-shadow .35s var(--ease), border-color .35s;
}
.wf-col:hover { box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.wf-col > .kh { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.2rem; }
.wf-col .kh .n { font-family: var(--mono); font-size: .78rem; color: var(--blue); border: 1px solid var(--blue-soft); background: var(--blue-soft); border-radius: 7px; padding: .3em .6em; }
.wf-col h3 { font-size: 1.5rem; }
.wf-list { list-style: none; }
.wf-list li { padding: .8rem 0; border-top: 1px solid var(--line); display: flex; gap: .8rem; align-items: baseline; }
.wf-list li:first-child { border-top: 0; }
.wf-list .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--blue); flex: none; transform: translateY(.5em); }
.wf-list b { display: block; font-family: var(--sans); font-weight: 600; color: var(--navy); font-size: 1rem; }
.wf-list small { color: var(--muted); font-size: .88rem; line-height: 1.45; }

/* Lifecycle connected docs */
.lifecycle .section-head { margin-inline: auto; text-align: center; }
.chain { display: flex; align-items: stretch; gap: 0; flex-wrap: wrap; justify-content: center; margin-top: 1rem; }
.chain-node {
  flex: 1 1 150px; min-width: 140px; max-width: 200px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px;
  padding: 1.1rem 1rem; text-align: center; position: relative; z-index: 1;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
}
.chain-node:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--blue); z-index: 2; }
.chain-node .ph { font-family: var(--mono); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); }
.chain-node .nm { font-family: var(--serif); font-size: 1.05rem; color: var(--navy); margin-top: .4rem; }
.chain-arrow { align-self: center; color: var(--line-strong); padding: 0 .3rem; }
.chain-arrow svg { width: 22px; height: 22px; }
.lifecycle-note { text-align: center; margin-top: 2.4rem; font-size: 1.05rem; color: var(--muted); max-width: 60ch; margin-inline: auto; }
.lifecycle-note b { color: var(--navy); font-weight: 600; }

/* Human-in-the-loop callout */
.hitl { }
.hitl-card {
  background: var(--navy); color: #eaf0fb; border-radius: 22px; overflow: hidden;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 0; position: relative;
  box-shadow: var(--shadow-lg);
}
.hitl-card::before { content:""; position:absolute; inset:0; background:
  radial-gradient(50% 70% at 90% 10%, rgba(74,134,238,.25), transparent 60%); pointer-events:none; }
.hitl-copy { padding: clamp(2.2rem, 4vw, 3.4rem); position: relative; z-index: 1; }
.hitl-copy .eyebrow { color: var(--blue-bright); }
.hitl-copy .eyebrow::before { background: var(--blue-bright); }
.hitl-copy h2 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.7rem); margin: 1rem 0 1.1rem; }
.hitl-copy p { color: #b9c6de; margin-bottom: 1rem; }
.hitl-copy p b { color: #fff; font-weight: 600; }
.hitl-visual { position: relative; z-index: 1; padding: 2rem; display: grid; place-items: center; border-left: 1px solid rgba(255,255,255,.1); }
.loop-diagram { width: 100%; max-width: 320px; }
.loop-diagram .lnode {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px; padding: .8rem .95rem; margin: .55rem 0;
  display: flex; align-items: center; gap: .7rem; font-size: .86rem; color: #dbe4f4;
  backdrop-filter: blur(4px);
}
.loop-diagram .lnode.human { border-color: var(--blue-bright); background: rgba(74,134,238,.14); color:#fff; }
.loop-diagram .lico { width: 30px; height: 30px; border-radius: 8px; background: rgba(255,255,255,.1); display: grid; place-items: center; flex: none; color: var(--blue-bright); }
.loop-diagram .lico svg { width: 16px; height: 16px; }
.loop-connector { text-align: center; color: var(--blue-bright); font-size: .8rem; opacity: .7; }

/* Why Andrei — benefit tiles */
.why { background: var(--paper-2); border-block: 1px solid var(--line); }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.why-tile { background: var(--paper); padding: 1.7rem 1.5rem; transition: background .3s; position: relative; }
.why-tile:hover { background: #fff; }
.why-tile:hover .why-num { color: var(--blue); }
.why-num { font-family: var(--mono); font-size: .72rem; color: var(--muted-2); letter-spacing: .1em; transition: color .3s; }
.why-tile h3 { font-size: 1.18rem; margin: .8rem 0 .5rem; font-family: var(--serif); }
.why-tile p { font-size: .9rem; color: var(--muted); line-height: 1.5; }

/* Reference lists — questions & documents */
.reference { }
.ref-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
.ref-panel { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.ref-panel .rh { padding: 1.5rem 1.7rem; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.ref-panel .rh .eyebrow { margin-bottom: .5rem; }
.ref-panel .rh h3 { font-size: 1.4rem; }
.ref-list { list-style: none; padding: .6rem 1.7rem 1.6rem; }
.ref-list li { padding: .72rem 0; border-bottom: 1px dashed var(--line); display: flex; gap: .7rem; align-items: flex-start; font-size: .96rem; color: var(--navy-2); }
.ref-list li:last-child { border-bottom: 0; }
.ref-list .q { color: var(--blue); font-family: var(--mono); font-size: .8rem; flex: none; margin-top: .15rem; }
.ref-list .c { color: var(--blue); flex: none; margin-top: .2rem; }
.ref-list .c svg { width: 15px; height: 15px; }

/* Insights / Elsa article teaser */
.insights { background: var(--navy); color: #eaf0fb; overflow:hidden; }
.insights::before { content:""; position:absolute; inset:0; background:
  radial-gradient(40% 60% at 15% 10%, rgba(47,107,216,.20), transparent 60%); pointer-events:none;}
.insights .eyebrow { color: var(--blue-bright); }
.insights .eyebrow::before { background: var(--blue-bright); }
.article-card {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 0;
  border: 1px solid rgba(255,255,255,.14); border-radius: 20px; overflow: hidden;
  background: rgba(255,255,255,.03); position: relative; z-index: 1;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
}
.article-card:hover { transform: translateY(-5px); border-color: var(--blue-bright); box-shadow: var(--shadow-lg); }
.article-copy { padding: clamp(2rem, 3.5vw, 3rem); }
.article-copy .meta { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--blue-bright); margin-bottom: 1.1rem; }
.article-copy h3 { color: #fff; font-size: clamp(1.6rem, 2.8vw, 2.2rem); line-height: 1.1; margin-bottom: 1rem; }
.article-copy p { color: #b9c6de; margin-bottom: 1.6rem; font-size: 1.02rem; }
.article-copy .readlink {
  font-family: var(--sans); font-weight: 600; color: #fff;
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .7em 1.15em; border: 1px solid rgba(255,255,255,.28); border-radius: 10px;
  transition: border-color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease);
}
.article-copy .readlink svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.article-card:hover .readlink { border-color: var(--blue-bright); background: rgba(74,134,238,.14); }
.article-card:hover .readlink svg { transform: translateX(5px); }
.article-vis {
  position: relative; border-left: 1px solid rgba(255,255,255,.1);
  background:
    radial-gradient(70% 90% at 70% 30%, rgba(74,134,238,.28), transparent 65%),
    linear-gradient(160deg, #16305f, #0b1a37);
  display: grid; place-items: center; padding: 2rem; min-height: 240px;
}
.article-vis .glyph { font-family: var(--serif); font-style: italic; font-size: clamp(3rem, 7vw, 5rem); color: rgba(255,255,255,.92); letter-spacing: -.02em; text-align:center; line-height:1;}
.article-vis .glyph small { display:block; font-family: var(--mono); font-style: normal; font-size: .7rem; letter-spacing: .3em; color: var(--blue-bright); margin-top: 1rem; }

/* CTA band */
.cta-band { text-align: center; }
.cta-lines { list-style: none; display: inline-flex; flex-direction: column; gap: .2rem; margin: 1.6rem 0 2.2rem; }
.cta-lines li { font-family: var(--serif); font-size: clamp(1.5rem, 3.2vw, 2.4rem); color: var(--navy); line-height: 1.25; }
.cta-lines li span { color: var(--blue); }

/* Contact */
.contact { background: var(--paper-2); border-top: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact-info h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); margin: 1rem 0 1.2rem; }
.contact-info p { color: var(--muted); margin-bottom: 1.8rem; max-width: 40ch; }
.contact-email {
  display: inline-flex; align-items: center; gap: .7rem; font-family: var(--mono);
  font-size: 1rem; color: var(--navy); border: 1px solid var(--line-strong); background: var(--paper);
  padding: .8rem 1.1rem; border-radius: 10px; transition: border-color .25s, transform .25s;
}
.contact-email:hover { border-color: var(--blue); transform: translateY(-2px); color: var(--blue); }
.contact-email svg { width: 18px; height: 18px; }
.contact-badges { margin-top: 2rem; display: flex; flex-direction: column; gap: .9rem; }
.contact-badge { display: flex; gap: .7rem; align-items: center; font-size: .92rem; color: var(--navy-2); }
.contact-badge .c { width: 22px; height: 22px; border-radius: 6px; background: var(--blue-soft); color: var(--blue); display: grid; place-items: center; flex: none; }
.contact-badge .c svg { width: 13px; height: 13px; }

form.contact-form {
  background: var(--paper); border: 1px solid var(--line); border-radius: 18px;
  padding: clamp(1.6rem, 3vw, 2.4rem); box-shadow: var(--shadow-md);
}
.field { margin-bottom: 1.1rem; }
.field.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; margin-bottom: 0; }
label { display: block; font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; }
input, textarea, select {
  width: 100%; font-family: var(--sans); font-size: .98rem; color: var(--ink);
  padding: .8rem .9rem; border: 1px solid var(--line-strong); border-radius: 9px;
  background: var(--paper-2); transition: border-color .2s, box-shadow .2s, background .2s;
}
input:focus, textarea:focus, select:focus { outline: 0; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(47,107,216,.12); }
textarea { resize: vertical; min-height: 110px; }
.form-actions { margin-top: 1.4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.form-note { font-size: .8rem; color: var(--muted-2); }
.form-msg { font-size: .9rem; margin-top: 1rem; padding: .8rem 1rem; border-radius: 9px; display: none; }
.form-msg.show { display: block; }
.form-msg.ok { background: var(--blue-soft); color: var(--navy); border: 1px solid #c4d8f6; }
.form-msg.err { background: #fdecec; color: #8a2020; border: 1px solid #f3c9c9; }
/* Honeypot — hidden from humans, catches bots */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

/* Footer */
footer.site {
  background: var(--ink); color: #aeb9cc; padding: clamp(3rem, 5vw, 4.5rem) 0 2rem;
}
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; padding-bottom: 2.4rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand .fmark { display: flex; align-items: center; gap: .8rem; }
.footer-brand .fmark .badge {
  width: 46px; height: 46px; border-radius: 12px; flex: none;
  background: #fff; display: grid; place-items: center;
  box-shadow: 0 4px 14px rgba(0,0,0,.35);
}
.footer-brand .fmark .badge img { height: 30px; width: auto; }
.footer-brand .fmark b { font-family: var(--serif); font-size: 1.6rem; color: #fff; }
.footer-brand p { margin-top: 1rem; max-width: 34ch; font-size: .92rem; color: #8794a8; }
.footer-brand .tag { font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; color: var(--blue-bright); margin-top: 1rem; text-transform: uppercase; }
.fcol h4 { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #6f7d94; margin-bottom: 1rem; font-weight: 500; }
.fcol a { display: block; padding: .35rem 0; font-size: .93rem; color: #b9c4d6; transition: color .2s; }
.fcol a:hover { color: #fff; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 1.8rem; font-size: .82rem; color: #6f7d94; flex-wrap: wrap; gap: 1rem; }
.footer-bottom .mono { font-family: var(--mono); letter-spacing: .04em; }

/* ------------------------------------------------------------- Reveal anim */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"]{transition-delay:.08s}
.reveal[data-d="2"]{transition-delay:.16s}
.reveal[data-d="3"]{transition-delay:.24s}
.reveal[data-d="4"]{transition-delay:.32s}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------- Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .problem-top { grid-template-columns: 1fr; }
  .doc-stage { max-width: 460px; margin: 1rem auto 0; }
  .problem-top .doc-stage { transform: none; justify-self: center; max-width: 460px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 1.6rem 1.4rem; }
  .pillars, .ind-grid, .wf-grid, .ref-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .hitl-card { grid-template-columns: 1fr; }
  .hitl-visual { border-left: 0; border-top: 1px solid rgba(255,255,255,.1); }
  .article-card { grid-template-columns: 1fr; }
  .article-vis { border-left: 0; border-top: 1px solid rgba(255,255,255,.1); min-height: 180px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open { display: flex; position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; background: #fff; border-bottom: 1px solid var(--line); padding: 1.2rem 4vw; gap: 1.1rem; box-shadow: var(--shadow-md); }
  .why-grid { grid-template-columns: 1fr; }
  .field.row { grid-template-columns: 1fr; gap: 0; }
  .field.row .field { margin-bottom: 1.1rem; }
  .chain-arrow { transform: rotate(90deg); }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}

/* ========================================================= ARTICLE (elsa.html) */
.article-hero {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(1.5rem, 3vw, 2.5rem);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(60% 80% at 85% 0%, rgba(74,134,238,.10), transparent 60%),
    var(--paper);
}
.back-link { font-family: var(--mono); font-size: .78rem; letter-spacing: .06em; color: var(--muted); display: inline-flex; align-items: center; gap: .5em; margin-bottom: 1.8rem; transition: color .2s; }
.back-link:hover { color: var(--blue); }
.back-link svg { width: 15px; height: 15px; }
.article-meta { font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-bottom: 1.2rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.article-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.06; letter-spacing: -.02em; max-width: 18ch; }
.article-hero h1 em { font-style: italic; color: var(--blue); }
.article-standfirst { font-family: var(--serif); font-size: clamp(1.15rem, 2vw, 1.4rem); color: var(--muted); line-height: 1.5; max-width: 60ch; margin-top: 1.4rem; }
.byline { display: flex; align-items: center; gap: .8rem; margin-top: 2rem; font-size: .9rem; color: var(--muted); }
.byline .av { width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-size: 1rem; }
.byline b { color: var(--navy); font-weight: 600; font-family: var(--sans); }

.article-body { padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3rem, 6vw, 5rem); }
.prose { width: min(72ch, 92vw); margin-inline: auto; }
.prose > p { font-size: 1.12rem; line-height: 1.72; color: #23303f; margin-bottom: 1.5rem; }
.prose > p:first-of-type::first-letter {
  font-family: var(--serif); font-size: 3.6rem; line-height: .82; float: left;
  padding: .1em .12em 0 0; color: var(--blue); font-weight: 500;
}
.prose h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 2.8rem 0 1rem; letter-spacing: -.01em; }
.prose h3 { font-size: 1.3rem; margin: 2rem 0 .7rem; color: var(--navy-2); }
.prose a.inline { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose ul { margin: 0 0 1.5rem 0; padding-left: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 1.6rem; margin-bottom: .7rem; font-size: 1.08rem; line-height: 1.6; color: #23303f; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 2px; background: var(--blue); }
.prose strong { color: var(--navy); font-weight: 600; }

.pullquote {
  border-left: 3px solid var(--blue); padding: .4rem 0 .4rem 1.6rem; margin: 2.4rem 0;
  font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  line-height: 1.35; color: var(--navy);
}
.callout {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.8rem; margin: 2.4rem 0;
}
.callout .eyebrow { margin-bottom: .8rem; }
.callout p { font-size: 1rem; color: var(--navy-2); margin: 0; }

.article-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 2.4rem 0; }
.article-facts .f { border: 1px solid var(--line); border-radius: 12px; padding: 1.2rem; background: var(--paper); }
.article-facts .f .k { font-family: var(--serif); font-size: 1.7rem; color: var(--blue); line-height: 1; }
.article-facts .f .v { font-size: .86rem; color: var(--muted); margin-top: .5rem; }

.article-cta {
  margin-top: 3rem; padding: clamp(2rem, 4vw, 3rem); border-radius: 20px;
  background: var(--navy); color: #eaf0fb; text-align: center; position: relative; overflow: hidden;
}
.article-cta::before { content:""; position:absolute; inset:0; background: radial-gradient(50% 80% at 50% 0%, rgba(74,134,238,.22), transparent 60%); }
.article-cta > * { position: relative; z-index: 1; }
.article-cta h3 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .8rem; }
.article-cta p { color: #b9c6de; max-width: 46ch; margin: 0 auto 1.6rem; }
.disclaimer { font-family: var(--mono); font-size: .74rem; color: var(--muted-2); line-height: 1.6; border-top: 1px solid var(--line); padding-top: 1.4rem; margin-top: 3rem; }

@media (max-width: 620px) { .article-facts { grid-template-columns: 1fr; } }

/* ============================================================ 404 (404.html) */
.notfound { min-height: calc(100vh - 74px); display: grid; place-items: center; text-align: center; padding: 4rem 0; position: relative; }
.notfound .nf-inner { width: min(60ch, 92vw); position: relative; z-index: 1; }
.notfound .code {
  font-family: var(--serif); font-weight: 500; line-height: .9;
  font-size: clamp(6rem, 22vw, 13rem); letter-spacing: -.03em; color: var(--navy);
  position: relative; display: inline-block;
}
.notfound .code em { font-style: italic; color: var(--blue); }
.notfound .stamp {
  display: inline-block; font-family: var(--mono); font-size: .72rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--blue); border: 1px solid var(--blue-soft);
  background: var(--blue-soft); padding: .4em .8em; border-radius: 20px; margin-bottom: 1.4rem;
}
.notfound h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 1rem; }
.notfound p { color: var(--muted); font-size: 1.1rem; max-width: 46ch; margin: 0 auto 2rem; }
.notfound .nf-actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.notfound .nf-links { margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--line); display: flex; gap: 1.4rem; justify-content: center; flex-wrap: wrap; }
.notfound .nf-links a { font-family: var(--mono); font-size: .8rem; letter-spacing: .04em; color: var(--muted); transition: color .2s; }
.notfound .nf-links a:hover { color: var(--blue); }

/* ============================================================== FAQ (index) */
.faq { padding: var(--section-y, 7rem) 0; background: var(--paper); }
.faq .faq-list { max-width: 60rem; margin: 2.6rem auto 0; }
.faq-item {
  border-top: 1px solid var(--line);
  padding: 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.5rem 0;
  font-family: var(--serif); font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 500; color: var(--navy); line-height: 1.35;
  transition: color .2s ease;
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary:hover { color: var(--blue); }
.faq-item .chev {
  flex: none; width: 22px; height: 22px; position: relative;
  transition: transform .25s ease;
}
.faq-item .chev::before,
.faq-item .chev::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 12px; height: 2px; border-radius: 2px; background: var(--blue);
  transform: translate(-50%, -50%);
}
.faq-item .chev::after { transform: translate(-50%, -50%) rotate(90deg); transition: opacity .25s ease; }
.faq-item[open] .chev::after { opacity: 0; }
.faq-item[open] .chev { transform: rotate(180deg); }
.faq-item .faq-a { padding: 0 0 1.6rem; max-width: 68ch; }
.faq-item .faq-a p { color: var(--muted); font-size: 1.02rem; line-height: 1.7; margin: 0; }
@media (prefers-reduced-motion: no-preference) {
  .faq-item[open] .faq-a { animation: faqReveal .35s ease; }
}
@keyframes faqReveal { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* =================================================== Article sources (elsa) */
.article-sources { margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.article-sources .eyebrow { color: var(--blue); margin-bottom: 1rem; }
.article-sources ul { list-style: none; display: grid; gap: .7rem; }
.article-sources li { font-size: .95rem; color: var(--muted); line-height: 1.5; padding-left: 1.1rem; position: relative; }
.article-sources li::before { content: "→"; position: absolute; left: 0; color: var(--blue); }
.article-sources a { color: var(--navy); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; transition: color .2s, text-decoration-color .2s; }
.article-sources a:hover { color: var(--blue); text-decoration-color: var(--blue); }

/* --------------------------------------------------- Hero keyword-first H1 */
.hero-tagline {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem); line-height: 1.15;
  color: var(--blue); letter-spacing: -.01em;
  margin: -.2rem 0 1rem;
}

/* ================================================= Legal (privacy / terms) */
.legal { padding: clamp(2.5rem, 6vw, 4.5rem) 0 5rem; }
.legal-wrap { width: min(72ch, 92vw); }
.legal .back-link { margin-bottom: 1.6rem; }
.legal .eyebrow { margin-bottom: 1rem; }
.legal h1 { font-size: clamp(2.1rem, 5vw, 3.1rem); margin-bottom: .6rem; }
.legal-updated { font-family: var(--mono); font-size: .82rem; letter-spacing: .04em; color: var(--muted-2); margin-bottom: 1.8rem; }
.legal-draft {
  background: var(--blue-soft); border: 1px solid #c9dbf7; border-radius: 12px;
  padding: 1rem 1.2rem; font-size: .92rem; color: var(--navy-2); line-height: 1.6;
  margin-bottom: 2.6rem;
}
.legal-draft b { color: var(--blue); font-family: var(--mono); font-size: .85em; letter-spacing: .04em; }
.legal-body h2 { font-size: 1.45rem; margin: 2.6rem 0 .8rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.legal-body h2:first-of-type { border-top: 0; padding-top: 0; }
.legal-body h3 { font-size: 1.18rem; margin: 1.8rem 0 .5rem; color: var(--navy); }
.legal-body h4 { font-family: var(--sans); font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); margin: 1.3rem 0 .4rem; }
.legal-body p, .legal-body li { color: var(--muted); line-height: 1.75; }
.legal-body > p { margin: 0 0 1rem; }
.legal-body ul { margin: .6rem 0 1.1rem 1.2rem; display: grid; gap: .55rem; }
.legal-body ul ul { margin: .5rem 0 .3rem 1.1rem; }
.legal-body li p { margin: 0 0 .4rem; }
.legal-body li p:last-child { margin-bottom: 0; }
.legal-body li strong { color: var(--navy-2); }
.legal-body a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.legal-body em { color: var(--muted-2); }

/* Footer legal links */
.footer-legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; text-decoration-color: rgba(255,255,255,.25); transition: color .2s; }
.footer-legal a:hover { color: #fff; }

/* ============================================================= Cookie banner */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  padding: 0 max(16px, 4vw) max(16px, 2vw);
  transform: translateY(120%); opacity: 0;
  transition: transform .32s var(--ease), opacity .32s var(--ease);
}
.cookie-banner.show { transform: translateY(0); opacity: 1; }
.cookie-inner {
  width: min(var(--maxw), 100%); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1.4rem 2rem;
  flex-wrap: wrap;
  background: var(--paper); border: 1px solid var(--line-strong);
  border-radius: 16px; box-shadow: var(--shadow-lg);
  padding: 1.1rem 1.35rem;
}
.cookie-text { flex: 1 1 320px; min-width: 260px; }
.cookie-eyebrow {
  display: inline-block; font-family: var(--mono); font-size: .68rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--blue); margin-bottom: .35rem;
}
.cookie-text p { margin: 0; font-size: .93rem; line-height: 1.55; color: var(--muted); }
.cookie-text a { color: var(--blue); text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; gap: .6rem; flex: 0 0 auto; }
.cookie-actions .btn { padding: .7em 1.35em; }
@media (max-width: 560px) {
  .cookie-inner { padding: 1rem 1.1rem; }
  .cookie-actions { width: 100%; }
  .cookie-actions .btn { flex: 1; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-banner { transition: opacity .2s linear; transform: none; }
}