/* ─────────────────────────────────────────────────────────────
   AIML.ae: "engineer's notebook"
   Paper, graph grid, graphite ink, one red-pencil accent.
   ───────────────────────────────────────────────────────────── */
:root {
  --paper: #f5f2ea;
  --paper-2: #ece7db;
  --sheet: #fbf9f4;
  --ink: #16161a;
  --graphite: #3b3b42;
  --muted: #6b675f;
  --line: rgba(22, 22, 26, .16);
  --grid-minor: rgba(40, 70, 120, .055);
  --grid-major: rgba(40, 70, 120, .10);
  --accent: #d2421f;   /* red pencil */
  --accent-soft: rgba(210, 66, 31, .09);
  --radius: 4px;
  --max: 1180px;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --hand: "Caveat", "Segoe Print", cursive;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid-minor) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
}
/* paper grain */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100;
  opacity: .55; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .1 0 0 0 0 .09 0 0 0 0 .08 0 0 0 .11 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* soft vignette, like a lit desk */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 99;
  background: radial-gradient(ellipse at 50% 30%, transparent 55%, rgba(60, 50, 30, .10) 100%);
}
::selection { background: var(--accent); color: var(--sheet); }

img { max-width: 100%; display: block; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 400; }
h1, h2 { font-family: var(--serif); letter-spacing: -0.015em; line-height: 1.02; }
h1 { font-size: clamp(2.8rem, 6.4vw, 5.4rem); }
h2 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); }
h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
p { margin: 0 0 1em; }
em { font-family: var(--serif); font-size: 1.1em; }
.muted { color: var(--muted); }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.section { padding: 120px 0; position: relative; }
.section.alt { background: rgba(236, 231, 219, .55); border-block: 1px solid var(--line); }
.center { text-align: center; }
.lead { font-size: 1.12rem; color: var(--graphite); max-width: 620px; }
.center .lead, .lead.center { margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: .72rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--graphite);
  margin-bottom: 1.4em;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent); }
.center .eyebrow::after { content: ""; width: 28px; height: 1px; background: var(--accent); }

/* hand-drawn highlight underline (SVG injected by main.js) */
.hl {
  font-style: italic; color: var(--ink); padding-bottom: .06em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 16' preserveAspectRatio='none'%3E%3Cpath d='M3 10 C 60 4, 120 13, 180 8 S 270 5, 297 9' fill='none' stroke='%23d2421f' stroke-width='3.2' stroke-linecap='round'/%3E%3Cpath d='M20 14 C 90 10, 170 15, 282 12' fill='none' stroke='%23d2421f' stroke-width='1.6' stroke-linecap='round' opacity='.7'/%3E%3C/svg%3E") no-repeat 0 100% / 0% .3em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size 1.3s var(--ease) .5s;
}
.hl.on { background-size: 100% .3em; }

/* pencil outline drawn by main.js around cards */
.sketch-box { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.sketch-box path { fill: none; stroke: var(--graphite); stroke-linecap: round; }
.sketch-box path.p1 { stroke-width: 1.15; opacity: .8; }
.sketch-box path.p2 { stroke-width: .8; opacity: .35; }
.card.featured .sketch-box path { stroke: var(--accent); }

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245, 242, 234, .82);
  backdrop-filter: blur(10px) saturate(1.1);
  -webkit-backdrop-filter: blur(10px) saturate(1.1);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-family: var(--serif); font-size: 1.7rem; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; display: inline-flex; align-items: baseline; gap: 1px; }
.logo span { color: var(--accent); font-style: italic; }
.logo:hover { color: var(--ink); }
.nav-links { display: flex; gap: 30px; align-items: center; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-family: var(--mono); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; color: var(--graphite); text-decoration: none; position: relative; }
.nav-links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 1px; background: var(--accent); transition: right .35s var(--ease); }
.nav-links a:not(.btn):hover::after, .nav-links a.active::after { right: 0; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-toggle { display: none; background: none; border: 1px solid var(--ink); color: var(--ink); border-radius: var(--radius); padding: 7px 12px; cursor: pointer; font-family: var(--mono); font-size: .8rem; }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: var(--radius); cursor: pointer;
  font-family: var(--mono); font-size: .78rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  text-decoration: none; border: 1px solid var(--ink);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s;
}
.btn:hover { text-decoration: none; transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); }
.btn:active { transform: translate(0, 0); box-shadow: 0 0 0 var(--ink); }
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { color: var(--paper); box-shadow: 4px 4px 0 var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--sheet); color: var(--ink); }
.btn-sm { padding: 9px 16px; font-size: .7rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.nav-links a.btn-primary, .nav-links a.btn-primary:hover { color: var(--paper); }

/* ── Hero ───────────────────────────────────────────────── */
.hero { padding: 110px 0 100px; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero > canvas.sketch-net { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; opacity: .9; }
.hero .container { position: relative; z-index: 1; }
.hero .btn-row { margin-top: 36px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 64px; align-items: center; }
.stats { display: flex; gap: 0; margin-top: 64px; border-top: 1px solid var(--line); }
.stat { flex: 1; padding: 20px 20px 0 0; }
.stat + .stat { padding-left: 20px; border-left: 1px solid var(--line); }
.stat strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 2.2rem; line-height: 1.1; }
.stat span { font-family: var(--mono); font-size: .7rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }

/* marquee strip */
.marquee { overflow: hidden; border-bottom: 1px solid var(--line); background: var(--ink); color: var(--paper); padding: 18px 0; }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { font-family: var(--serif); font-style: italic; font-size: 1.7rem; white-space: nowrap; display: inline-flex; align-items: center; gap: 48px; }
.marquee span::after { content: "✳"; font-style: normal; font-size: 1rem; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── Grid & cards ───────────────────────────────────────── */
.grid { display: grid; gap: 24px; counter-reset: item; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  position: relative; background: var(--sheet); border-radius: var(--radius);
  padding: 30px; transition: transform .35s var(--ease);
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 18px 40px -28px rgba(40, 30, 10, .35);
}
.card { transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.card:hover { transform: translate(-4px, -4px); box-shadow: 8px 8px 0 -1px var(--sheet), 8px 8px 0 0 var(--graphite); }
.card.featured:hover { box-shadow: 8px 8px 0 -1px var(--sheet), 8px 8px 0 0 var(--accent); }
.card .icon {
  font-size: 0; margin-bottom: 22px; height: auto; width: auto; display: block;
}
.card .icon::before {
  counter-increment: item; content: counter(item, decimal-leading-zero);
  font-family: var(--mono); font-size: .75rem; color: var(--accent); letter-spacing: .1em;
  display: inline-block; padding-bottom: 6px; border-bottom: 1px solid var(--accent);
}
.card h3 { margin-bottom: .5em; }
.card p { color: var(--graphite); font-size: .94rem; }
.card.featured { background: var(--ink); color: var(--paper); }
.card.featured p, .card.featured .muted, .card.featured li { color: rgba(245, 242, 234, .72); }
.card.featured h3, .card.featured .price { color: var(--paper); }
.card.featured .btn-primary { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.card.featured .btn-primary:hover { box-shadow: 4px 4px 0 var(--accent); }
.card.featured .checklist li::before { color: #ff7a59; }
.card.featured a:not(.btn) { color: var(--paper); }

/* industry cards */
.industry-card { display: flex; flex-direction: column; color: inherit; text-decoration: none; min-height: 270px; }
.industry-card:hover { color: inherit; }
.industry-card .emoji { font-size: 2rem; margin-bottom: 26px; filter: grayscale(1) contrast(1.15); opacity: .85; transition: filter .4s, transform .4s var(--ease); width: max-content; }
.industry-card:hover .emoji { filter: grayscale(0); transform: rotate(-8deg) scale(1.1); }
.industry-card h3 { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; letter-spacing: -0.01em; }
.industry-card .more { margin-top: auto; font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); display: inline-flex; gap: 8px; }
.industry-card:hover .more { color: var(--accent); }

/* ── Chat mock ──────────────────────────────────────────── */
.sketch-wrap { position: relative; max-width: 400px; margin-left: auto; width: 100%; }
.chat {
  position: relative; background: var(--sheet); border-radius: 22px; padding: 18px 16px 20px;
  box-shadow: 0 30px 60px -30px rgba(40, 30, 10, .45), 0 0 0 1px var(--line);
  width: 100%;
}
.chat-top { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px dashed var(--line); margin-bottom: 16px; }
.chat-top .dot { width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-family: var(--mono); font-size: .7rem; }
.chat-top strong { font-size: .9rem; }
.chat-top small { display: block; color: var(--muted); font-family: var(--mono); font-size: .65rem; letter-spacing: .04em; }
.bubble { max-width: 86%; padding: 10px 14px; border-radius: 14px; font-size: .86rem; margin-bottom: 9px; line-height: 1.5; }
.bubble.in { background: var(--paper-2); color: var(--ink); border-bottom-left-radius: 3px; }
.bubble.out { background: var(--ink); color: var(--paper); margin-left: auto; border-bottom-right-radius: 3px; }
.bubble[dir="rtl"] { font-family: system-ui, sans-serif; }
.anim .bubble { opacity: 0; transform: translateY(10px) scale(.98); animation: bubble .5s var(--ease) forwards; }
@keyframes bubble { to { opacity: 1; transform: none; } }
.typing { display: inline-flex; gap: 4px; padding: 12px 14px; background: var(--paper-2); border-radius: 14px; border-bottom-left-radius: 3px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

/* pencil annotations around the chat */
.annot { position: absolute; font-family: var(--hand); font-size: 1.35rem; color: var(--graphite); line-height: 1.1; white-space: nowrap; pointer-events: none; }
.annot svg { position: absolute; overflow: visible; }
.annot svg path { fill: none; stroke: var(--graphite); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.annot.red { color: var(--accent); }
.annot.red svg path { stroke: var(--accent); }
.reg { position: absolute; width: 18px; height: 18px; pointer-events: none; }
.reg::before, .reg::after { content: ""; position: absolute; background: var(--graphite); opacity: .6; }
.reg::before { left: 50%; top: 0; bottom: 0; width: 1px; }
.reg::after { top: 50%; left: 0; right: 0; height: 1px; }

/* draw-on stroke animation for any [data-draw] path */
.draw { stroke-dasharray: var(--len, 600); stroke-dashoffset: var(--len, 600); }
.drawn .draw, .draw.drawn { animation: draw 1.4s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.fade-late { opacity: 0; animation: fadein .8s ease forwards; animation-delay: var(--d, 1s); }
@keyframes fadein { to { opacity: 1; } }

/* ── Pain → fix table ───────────────────────────────────── */
.pain { display: grid; grid-template-columns: 1fr 1fr; background: var(--sheet); border-radius: var(--radius); position: relative; box-shadow: 0 18px 40px -28px rgba(40,30,10,.35); }
.pain > div { padding: 22px 28px; border-bottom: 1px solid var(--line); font-size: .96rem; }
.pain > div:nth-of-type(odd) { border-right: 1px dashed var(--line); }
.pain > div:nth-last-of-type(-n+2) { border-bottom: 0; }
.pain .before { color: var(--muted); }
.pain .after { color: var(--ink); }
.pain .after::before { content: "✓"; font-family: var(--hand); font-size: 1.4rem; color: var(--accent); margin-right: 10px; line-height: 0; }
.pain .head { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--graphite); padding-block: 16px; }
.pain .head::before { content: none; }
.strike {
  background: linear-gradient(transparent 52%, var(--accent) 52%, var(--accent) 60%, transparent 60%) no-repeat 0 0 / 0% 100%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  transition: background-size 1.1s var(--ease), color 1.1s;
}
.in .strike { background-size: 100% 100%; color: #9b968b; }

/* ── Pricing ────────────────────────────────────────────── */
.price { font-family: var(--serif); font-size: 3rem; line-height: 1; margin: 14px 0 6px; letter-spacing: -0.02em; }
.price small { font-family: var(--mono); font-size: .72rem; color: var(--muted); letter-spacing: .04em; }
.card.featured .price small { color: rgba(245,242,234,.6); }
.checklist { list-style: none; padding: 0; margin: 20px 0 28px; }
.checklist li { padding: 7px 0 7px 28px; position: relative; color: var(--graphite); font-size: .93rem; border-bottom: 1px dashed var(--line); }
.card.featured .checklist li { border-color: rgba(245,242,234,.14); }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before { content: "✓"; position: absolute; left: 2px; top: 2px; font-family: var(--hand); font-size: 1.4rem; color: var(--accent); }
.plan { display: flex; flex-direction: column; }
.plan .btn { margin-top: auto; }
.ribbon {
  position: absolute; top: -34px; right: 18px; font-family: var(--hand); font-size: 1.45rem; color: var(--accent);
  transform: rotate(-4deg); background: none; padding: 0;
}
.ribbon::after { content: "↙"; display: inline-block; margin-left: 4px; transform: translateY(8px); }

.price-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.price-table th, .price-table td { text-align: left; padding: 20px 26px; border-bottom: 1px solid var(--line); }
.price-table th { font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 500; }
.price-table td { font-family: var(--serif); font-size: 1.45rem; }
.price-table td a { text-decoration: none; }
.price-table tr:last-child td { border-bottom: 0; }
.price-table tbody tr { transition: background .2s; }
.price-table tbody tr:hover { background: var(--accent-soft); }

/* ── Steps ──────────────────────────────────────────────── */
.steps { counter-reset: step; }
.step { position: relative; }
.card.step { padding-left: 30px !important; padding-top: 92px; }
.step::after {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 30px; top: 22px; font-family: var(--serif); font-size: 3.6rem; line-height: 1; color: var(--ink);
}
.step h3 { font-size: 1.15rem; }

/* ── Forms ──────────────────────────────────────────────── */
.form { display: grid; gap: 22px; }
.form label { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: grid; gap: 4px; }
.form input, .form select, .form textarea, .roi-grid input {
  font-family: var(--sans); font-size: 1rem; color: var(--ink); text-transform: none; letter-spacing: 0;
  background: transparent; border: 0; border-bottom: 1.3px solid var(--graphite); border-radius: 0;
  padding: 10px 2px; transition: border-color .2s; width: 100%;
}
.form select { appearance: none; -webkit-appearance: none; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2316161a' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 4px center; padding-right: 22px; }
.form textarea {
  min-height: 132px; resize: vertical; line-height: 32px; padding-top: 4px;
  background-image: repeating-linear-gradient(transparent 0 31px, var(--line) 31px 32px);
  border: 0; border-bottom: 1.3px solid var(--graphite);
}
.form input:focus, .form select:focus, .form textarea:focus, .roi-grid input:focus { outline: none; border-bottom-color: var(--accent); }
.form ::placeholder { color: #a7a299; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form-note { font-size: .8rem; color: var(--muted); }
.form-success { display: none; padding: 18px; font-family: var(--hand); font-size: 1.5rem; color: var(--accent); }

/* ── ROI ────────────────────────────────────────────────── */
.roi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.roi-grid label { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: grid; gap: 4px; }
.roi-grid input { font-family: var(--serif); font-size: 1.6rem; padding: 4px 2px; }
.roi-result { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--ink); }
.roi-result span { font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; }
.roi-result strong { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 6vw, 3.8rem); line-height: 1.1; color: var(--ink); }
.roi-result strong::after { content: ""; display: block; width: 60%; height: 3px; margin-top: 6px; background: var(--accent); border-radius: 2px; transform-origin: left; animation: grow .6s var(--ease); }
@keyframes grow { from { transform: scaleX(0); } }

/* ── FAQ ────────────────────────────────────────────────── */
details { border-bottom: 1px solid var(--ink); padding: 22px 4px; }
details:first-of-type { border-top: 1px solid var(--ink); }
summary { cursor: pointer; list-style: none; font-family: var(--serif); font-size: 1.45rem; line-height: 1.25; display: flex; justify-content: space-between; gap: 20px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--mono); font-size: 1.1rem; color: var(--accent); transition: transform .3s var(--ease); flex-shrink: 0; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 14px 0 0; color: var(--graphite); max-width: 680px; }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer { background: var(--ink); color: rgba(245,242,234,.7); padding: 80px 0 0; font-size: .9rem; position: relative; overflow: hidden; }
.site-footer .logo { color: var(--paper); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--paper); margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: rgba(245,242,234,.7); text-decoration: none; }
.site-footer a:hover { color: var(--paper); }
.footer-bottom { margin-top: 56px; padding: 22px 0; border-top: 1px solid rgba(245,242,234,.14); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-family: var(--mono); font-size: .72rem; letter-spacing: .04em; }
.footer-word { font-family: var(--serif); font-size: clamp(5rem, 22vw, 20rem); line-height: .78; letter-spacing: -0.04em; color: rgba(245,242,234,.07); white-space: nowrap; margin: 40px 0 -0.08em; text-align: center; user-select: none; }
.footer-word span { font-style: italic; color: rgba(210,66,31,.35); }

.prose { max-width: 740px; }
.prose h2 { font-size: 2rem; margin-top: 1.6em; }
.prose p, .prose li { color: var(--graphite); }

/* ── Scroll reveal ──────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--rd, 0s); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-delay: 0s !important; transition-duration: .001s !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 1000px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; gap: 80px; }
  .sketch-wrap { margin: 0 auto; }
}
@media (max-width: 720px) {
  .container { padding: 0 18px; }
  .section { padding: 80px 0; }
  .hero { padding: 64px 0 72px; }
  .grid-2, .grid-3, .grid-4, .form-row, .roi-grid { grid-template-columns: 1fr; }
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 18px 22px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 13px 0; }
  .nav-links a:not(.btn)::after { display: none; }
  .stats { flex-direction: column; }
  .stat + .stat { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .stat { padding: 16px 0; }
  .pain { grid-template-columns: 1fr; }
  .pain > div:nth-of-type(odd) { border-right: 0; }
  .pain > div:nth-last-of-type(2) { border-bottom: 1px solid var(--line); }
  .pain .head:nth-of-type(2) { display: none; }
  .annot { display: none; }
  .card:hover { transform: none; box-shadow: none; }
}
