/* =========================================================
   AEO for Attorney — "Case file meets AI"
   Dark ink-navy, brass-gold accent, off-white text.
   All content lives in the HTML. Motion is an extra layer:
   it only runs when JS adds .js to <html>, and never when the
   visitor has prefers-reduced-motion turned on.
   ========================================================= */
:root {
  --ink: #0a1322;        /* page background */
  --ink-2: #0f1b2f;      /* raised panels */
  --ink-3: #15243d;      /* cards / inputs */
  --line: rgba(236, 230, 216, .12);
  --line-2: rgba(236, 230, 216, .22);
  --text: #ece6d8;       /* off-white */
  --muted: #a3abb9;
  --brass: #c9a24a;      /* the one accent */
  --brass-2: #e0bd6a;
  --brass-dim: rgba(201, 162, 74, .14);
  --radius: 12px;
  --max: 1160px;
  --serif: "Playfair Display", "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.65;
  color: var(--text); background: var(--ink);
  /* faint ruled "legal pad" grid */
  background-image:
    linear-gradient(rgba(236,230,216,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236,230,216,.025) 1px, transparent 1px);
  background-size: 48px 48px;
}
img, svg { max-width: 100%; }
a { color: var(--brass-2); }
a:hover { color: var(--text); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; color: var(--text); line-height: 1.12; margin: 0 0 .5em; }
h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); letter-spacing: -0.015em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); letter-spacing: -0.01em; }
h3 { font-size: 1.3rem; }
h1 em, h2 em { font-style: italic; color: var(--brass-2); }
p { margin: 0 0 1em; }
strong { color: var(--text); }
::selection { background: var(--brass); color: var(--ink); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 800px; }
.mono { font-family: var(--mono); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--brass); color: var(--ink); padding: 8px 12px; z-index: 50; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(10, 19, 34, .86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px 24px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px;
}
.brand { font-family: var(--serif); font-weight: 700; font-size: 1.3rem; color: var(--text); text-decoration: none; }
.brand span { color: var(--brass); font-style: italic; }
.nav { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; }
.nav a { text-decoration: none; color: var(--muted); font-size: .92rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"] { box-shadow: inset 0 -1px 0 var(--brass); }
.nav a.btn { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--brass); color: var(--ink); font-family: var(--sans);
  font-weight: 700; text-decoration: none; padding: 14px 24px; font-size: .98rem;
  border-radius: 999px; border: 1px solid var(--brass); cursor: pointer;
  transition: background .2s, color .2s, transform .2s, box-shadow .2s;
}
.btn::after { content: "\2192"; transition: transform .2s; }
.btn:hover { background: var(--brass-2); border-color: var(--brass-2); color: var(--ink); box-shadow: 0 8px 28px rgba(201,162,74,.25); }
.btn:hover::after { transform: translateX(3px); }
.btn-small { padding: 9px 18px; font-size: .86rem; }
.btn-outline { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-outline:hover { background: transparent; color: var(--brass-2); border-color: var(--brass); box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
button.btn::after { content: none; }

/* CALENDLY PLACEHOLDER marker — delete this rule once the real Calendly link is in place. */
.calendly-placeholder { outline: 2px dashed var(--brass); outline-offset: 4px; }

/* ---------- Docket labels ---------- */
.eyebrow, .docket, .exhibit-tag, .chat-tag, .stat-label, .tab, .ticker-label, .label {
  font-family: var(--mono); text-transform: uppercase; letter-spacing: .14em; font-size: .74rem;
}
.eyebrow, .docket { color: var(--brass); margin-bottom: 1em; display: block; }
.exhibit { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-bottom: 22px; }
.exhibit-tag {
  display: inline-block; color: var(--ink); background: var(--brass);
  padding: 5px 12px 4px; border-radius: 3px; font-weight: 700;
}
.exhibit .docket { margin: 0; color: var(--muted); }
.exhibit::after { content: ""; flex: 1 1 60px; height: 1px; background: var(--line); }

/* ---------- Sections ---------- */
section { padding: 96px 0; position: relative; }
.alt { background: rgba(15, 27, 47, .65); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-intro { color: var(--muted); max-width: 62ch; font-size: 1.1rem; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.center-row { justify-content: center; }

/* Hero */
.hero { padding: 72px 0 40px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero .lead { font-size: 1.2rem; color: var(--muted); max-width: 50ch; }
.hero-art { position: relative; }
.hero-art svg { display: block; width: 100%; height: auto; }

.page-hero { padding: 80px 0 64px; border-bottom: 1px solid var(--line); }
.page-hero p { color: var(--muted); font-size: 1.15rem; max-width: 56ch; margin: 0; }

/* ---------- Scales of justice network (SVG) ---------- */
.scales .edge { stroke: var(--brass); stroke-width: 1.4; fill: none; opacity: .75; stroke-linecap: round; }
.scales .edge-faint { stroke: var(--text); stroke-width: .8; opacity: .14; fill: none; }
.scales .node { fill: var(--ink); stroke: var(--brass); stroke-width: 1.6; }
.scales .node-solid { fill: var(--brass); }
.scales .node-faint { fill: var(--text); opacity: .25; }
.scales .label { fill: var(--muted); font-size: 9px; letter-spacing: .12em; }
.js .scales .edge { stroke-dasharray: 5 7; animation: flow 6s linear infinite; }
.js .scales .beam { transform-origin: 200px 92px; animation: sway 9s ease-in-out infinite; }
.js .scales .pulse { animation: pulse 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.js .scales .pulse:nth-of-type(2n) { animation-delay: 1.1s; }
.js .scales .pulse:nth-of-type(3n) { animation-delay: 2s; }
@keyframes flow { to { stroke-dashoffset: -120; } }
@keyframes sway { 0%, 100% { transform: rotate(-1.6deg); } 50% { transform: rotate(1.6deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(1.35); } }

/* ---------- Mock AI chat ---------- */
.chat-wrap { max-width: 760px; margin: 48px auto 0; }
.chat {
  margin: 0; border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden;
  background: var(--ink-2); box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 0 1px rgba(201,162,74,.06);
}
.chat-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--ink-3); }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(236,230,216,.18); display: block; }
.chat-title { font-family: var(--mono); font-size: .85rem; color: var(--text); }
.chat-tag { margin-left: auto; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 10px; font-size: .66rem; }
.chat-body { padding: 26px; display: grid; gap: 20px; font-size: 1rem; min-height: 0; }
.msg p { margin: 0 0 .6em; }
.msg p:last-child { margin-bottom: 0; }
.msg-user { justify-self: end; max-width: 85%; }
.msg-user p { background: var(--brass-dim); border: 1px solid rgba(201,162,74,.35); color: var(--text); padding: 12px 16px; border-radius: 18px 18px 4px 18px; }
.msg-ai { display: grid; grid-template-columns: 32px 1fr; gap: 14px; }
.msg-ai ol { margin: 0 0 .6em; padding-left: 1.3em; }
.msg-ai li { margin-bottom: .45em; color: var(--muted); }
.msg-ai li strong { color: var(--text); }
.ai-avatar { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-family: var(--mono); font-size: .66rem; color: var(--brass); }
.typing-dots { display: none; gap: 5px; padding: 6px 0; }
.typing-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); display: block; animation: blink 1s infinite; }
.typing-dots i:nth-child(2) { animation-delay: .15s; } .typing-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.chat-input { border-top: 1px solid var(--line); padding: 12px 16px; }
.chat-input span { display: block; border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; color: rgba(163,171,185,.6); font-size: .92rem; }
.missed {
  margin: 20px 0 0; padding: 16px 20px; border-radius: var(--radius);
  background: var(--brass-dim); border: 1px solid rgba(201,162,74,.45); border-left: 5px solid var(--brass); color: var(--text);
  font-family: var(--serif); font-size: 1.2rem;
}
.missed span { font-family: var(--sans); font-size: .95rem; color: var(--muted); display: block; margin-top: 4px; }
.chat-caption { text-align: center; font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; color: var(--muted); margin-top: 14px; }
.caret { display: inline-block; width: 2px; height: 1.05em; background: var(--brass); vertical-align: -2px; margin-left: 2px; animation: blink 1s steps(2) infinite; }

/* typing sequence — states set by script.js */
.js .chat.animate .seq { opacity: 0; transform: translateY(6px); transition: opacity .5s, transform .5s; }
.js .chat.animate .seq.on { opacity: 1; transform: none; }
.js .chat.animate .typing-dots.on { display: inline-flex; }
.js .missed.seq { opacity: 0; transform: translateY(8px) scale(.98); transition: opacity .6s, transform .6s; }
.js .missed.seq.on { opacity: 1; transform: none; }

/* ---------- Ticker ---------- */
.ticker { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 18px 0; overflow: hidden; background: var(--ink-2); }
.ticker-label { color: var(--brass); text-align: center; margin: 0 0 12px; display: block; }
.ticker-track { display: flex; }
.ticker-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; list-style: none; margin: 0; padding: 0; }
.ticker-track li {
  font-family: var(--mono); font-size: .9rem; color: var(--text); white-space: nowrap;
  border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 16px;
}
.ticker-track li::before { content: "> "; color: var(--brass); }
.ticker-viewport { -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
/* Without JS (or with reduced motion) the prompts simply wrap. */
.ticker-track { padding: 0 24px; justify-content: center; }
.ticker-dup { display: none !important; }
.js .ticker-viewport.run .ticker-track { width: max-content; padding: 0; animation: ticker 70s linear infinite; }
.js .ticker-viewport.run .ticker-row { flex-wrap: nowrap; padding-right: 12px; }
.js .ticker-viewport.run .ticker-dup { display: flex !important; }
.js .ticker-viewport.run:hover .ticker-track { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 20px; margin-top: 36px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card {
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: border-color .25s, transform .25s;
}
.card:hover { border-color: rgba(201,162,74,.5); transform: translateY(-3px); }
.card p { margin: 0; color: var(--muted); }
.card .label { color: var(--brass); display: block; margin-bottom: 14px; }

.callout {
  background: linear-gradient(135deg, var(--ink-3), var(--ink-2)); border: 1px solid var(--line-2);
  border-radius: 18px; padding: 56px; position: relative; overflow: hidden;
}
.callout::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--brass); }
.callout p { color: var(--muted); max-width: 60ch; }

/* Steps (Named First Method) */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.steps li { counter-increment: step; background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; }
.steps li::before {
  content: "STEP 0" counter(step); display: block; font-family: var(--mono); font-size: .74rem; letter-spacing: .14em;
  color: var(--brass); margin-bottom: 16px; padding-bottom: 14px; border-bottom: 1px dashed var(--line-2);
}
.steps h3 { font-size: 1.7rem; }
.steps p { color: var(--muted); margin: 0; }

.detail-step { display: grid; grid-template-columns: 72px 1fr; gap: 24px; padding: 40px 0; border-bottom: 1px solid var(--line); }
.detail-step:last-child { border-bottom: 0; }
.num { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--brass); color: var(--brass); display: grid; place-items: center; font-family: var(--mono); font-weight: 700; }
.detail-step ul { color: var(--muted); padding-left: 1.2em; margin: 0; }

/* Compare */
.compare { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); margin-top: 36px; }
.compare-col { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.compare-col h3 { font-size: 1.25rem; }
.compare-now { border-color: rgba(201,162,74,.55); box-shadow: 0 0 0 1px rgba(201,162,74,.2) inset; }
.flow { list-style: none; counter-reset: flow; padding: 0; margin: 0; }
.flow li { counter-increment: flow; position: relative; padding: 0 0 16px 44px; color: var(--muted); }
.flow li::before {
  content: "0" counter(flow); position: absolute; left: 0; top: 0; font-family: var(--mono); font-size: .8rem;
  color: var(--muted); border: 1px solid var(--line-2); border-radius: 4px; padding: 1px 6px;
}
.compare-now .flow li::before { color: var(--ink); background: var(--brass); border-color: var(--brass); }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding-left: 30px; position: relative; margin-bottom: 12px; color: var(--muted); }
.checklist li::before { content: "\00a7"; position: absolute; left: 4px; top: 0; color: var(--brass); font-family: var(--serif); font-weight: 700; }

/* ---------- Engine ring ---------- */
.ring-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin-top: 40px; }
.ring { position: relative; width: 100%; max-width: 460px; aspect-ratio: 1; margin: 0 auto; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ring .orbit { fill: none; stroke: var(--line-2); stroke-dasharray: 2 6; }
.ring .spoke { stroke: var(--line-2); stroke-width: 1; transition: stroke .25s, stroke-width .25s; }
.ring .spoke.on { stroke: var(--brass); stroke-width: 2; }
.js .ring .orbit { animation: spin 80s linear infinite; transform-origin: 50% 50%; }
@keyframes spin { to { transform: rotate(360deg); } }
.ring-center {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 30%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; text-align: center;
  background: var(--brass); color: var(--ink); font-family: var(--serif); font-weight: 700; font-size: clamp(.95rem, 2.2vw, 1.25rem);
  box-shadow: 0 0 0 10px var(--brass-dim), 0 0 60px rgba(201,162,74,.3);
}
.ring-node {
  position: absolute; transform: translate(-50%, -50%); font-family: var(--mono); font-size: .8rem;
  background: var(--ink-2); color: var(--text); border: 1px solid var(--line-2); border-radius: 999px;
  padding: 8px 14px; cursor: pointer; white-space: nowrap; transition: border-color .2s, background .2s, color .2s, box-shadow .2s;
}
.ring-node:hover, .ring-node:focus-visible, .ring-node.on { border-color: var(--brass); background: var(--brass); color: var(--ink); box-shadow: 0 0 30px rgba(201,162,74,.35); outline: none; }
.engine-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.engine-list li { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; background: var(--ink-2); transition: border-color .25s, opacity .25s, transform .25s; }
.engine-list h3 { font-family: var(--mono); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: var(--brass); margin: 0 0 4px; }
.engine-list p { margin: 0; color: var(--muted); font-size: .96rem; }
.engine-list.dim li { opacity: .38; }
.engine-list.dim li.on { opacity: 1; border-color: var(--brass); transform: translateX(6px); }

/* ---------- Practice-area tabs ---------- */
.tabs { margin-top: 36px; }
.tablist { display: none; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.js .tabs.ready .tablist { display: flex; }
.tab { background: transparent; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 10px 18px; cursor: pointer; font-size: .78rem; }
.tab:hover { color: var(--text); border-color: var(--brass); }
.tab[aria-selected="true"] { background: var(--brass); border-color: var(--brass); color: var(--ink); font-weight: 700; }
.tabpanel { background: var(--ink-2); border: 1px solid var(--line); border-radius: 16px; padding: 32px; margin-bottom: 16px; }
.js .tabs.ready .tabpanel { margin-bottom: 0; animation: fadeUp .45s ease; }
.js .tabs.ready .tabpanel[hidden] { display: none; }
.tabpanel h3 { font-size: 1.6rem; }
.panel-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; margin-top: 12px; }
.prompt-list { list-style: none; padding: 0; margin: 0; }
.prompt-list li { font-family: var(--mono); font-size: .9rem; padding: 10px 0; border-bottom: 1px dashed var(--line-2); color: var(--text); }
.prompt-list li::before { content: "> "; color: var(--brass); }
.datum { border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; margin-bottom: 12px; }
.datum .label { color: var(--muted); display: block; margin-bottom: 6px; font-size: .68rem; }
.datum b { font-family: var(--mono); color: var(--brass-2); font-size: 1.3rem; font-weight: 600; }
.placeholder-note { font-family: var(--mono); font-size: .72rem; color: var(--muted); letter-spacing: .06em; margin-top: 14px; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; margin-top: 40px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.stat { padding: 30px 26px; border-right: 1px solid var(--line); background: var(--ink-2); }
.stat:last-child { border-right: 0; }
.stat-num { display: block; font-family: var(--mono); font-size: clamp(2rem, 4vw, 2.8rem); color: var(--brass); line-height: 1.1; margin-bottom: 10px; font-weight: 600; }
.stat-label { color: var(--muted); font-size: .7rem; line-height: 1.6; }

/* ---------- FAQ ---------- */
.faq { margin-top: 32px; counter-reset: q; }
.faq-item { counter-increment: q; border-top: 1px solid var(--line); padding: 26px 0 26px 64px; position: relative; }
.faq-item::before { content: "Q." counter(q, decimal-leading-zero); position: absolute; left: 0; top: 30px; font-family: var(--mono); font-size: .78rem; color: var(--brass); letter-spacing: .08em; }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-item h3 { margin-bottom: .45em; font-size: 1.3rem; }
.faq-item p { color: var(--muted); margin: 0; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 20px; margin-top: 8px; }
.form-row { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
label { display: block; font-family: var(--mono); text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; margin-bottom: 8px; color: var(--muted); }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: 12px 14px; color: var(--text);
  background: var(--ink); border: 1px solid var(--line-2); border-radius: 8px;
}
select option { background: var(--ink); }
input::placeholder, textarea::placeholder { color: rgba(163,171,185,.6); }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(201,162,74,.45); border-color: var(--brass); }
.hp { position: absolute; left: -9999px; }
.form-note { font-size: .88rem; color: var(--muted); }
.panel { border: 1px solid var(--line-2); border-radius: 16px; padding: 36px; background: var(--ink-2); }
.two-col { display: grid; gap: 48px; grid-template-columns: 1.4fr 1fr; align-items: start; }

.legal h2 { font-size: 1.5rem; margin-top: 1.6em; }
.legal p, .legal li { color: var(--muted); }
.legal li { margin-bottom: .4em; }
.legal strong { color: var(--text); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: #070e1a; color: var(--muted); padding: 64px 0 32px; font-size: .94rem; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--brass-2); }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1.3fr 1fr; }
.footer-links { list-style: none; padding: 0; margin: 0; columns: 2; }
.footer-links li { margin-bottom: 8px; }
.footer-brand { font-family: var(--serif); font-weight: 700; color: var(--text); font-size: 1.4rem; margin-bottom: 8px; }
.fineprint { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 20px; font-size: .82rem; color: #7d8696; }

/* ---------- Scroll reveal (only when JS is on) ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal-stagger > * { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal-stagger.in > * { opacity: 1; transform: none; }
.js .reveal-stagger.in > *:nth-child(2) { transition-delay: .08s; }
.js .reveal-stagger.in > *:nth-child(3) { transition-delay: .16s; }
.js .reveal-stagger.in > *:nth-child(4) { transition-delay: .24s; }
.js .reveal-stagger.in > *:nth-child(5) { transition-delay: .32s; }
.js .reveal-stagger.in > *:nth-child(6) { transition-delay: .40s; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .ring-layout, .panel-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 340px; margin: 0 auto; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .site-header { position: static; }
  section { padding: 64px 0; }
  .hero { padding: 40px 0 24px; }
  .hero-art { max-width: 260px; }
  .callout, .panel, .tabpanel { padding: 26px; }
  .two-col, .footer-grid { grid-template-columns: 1fr; }
  .detail-step { grid-template-columns: 1fr; gap: 14px; }
  .chat-body { padding: 18px; }
  .msg-user { max-width: 95%; }
  .faq-item { padding-left: 0; padding-top: 48px; }
  .faq-item::before { top: 24px; }
  .nav { gap: 6px 16px; }
  .ring-node { font-size: .68rem; padding: 6px 10px; }
}

/* ---------- Reduced motion: everything still, everything visible ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .reveal-stagger > *, .js .chat.animate .seq, .js .missed.seq { opacity: 1 !important; transform: none !important; }
}

/* ---------- Free AI Teardown: docket ticket ---------- */
.ticket-layout { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.ticket {
  position: relative; background: var(--text); color: var(--ink); border-radius: 14px;
  padding: 30px 30px 26px; font-family: var(--mono); max-width: 520px; width: 100%; justify-self: center;
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
  overflow: visible;
}
.js .ticket.reveal { transform: translateY(28px) rotate(-1.5deg); }
.js .ticket.reveal.in { transform: rotate(-1.2deg); }
.ticket-head { display: flex; justify-content: space-between; gap: 12px; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: #5b6271; border-bottom: 2px solid var(--ink); padding-bottom: 12px; }
.ticket h3 { font-family: var(--serif); color: var(--ink); font-size: 1.9rem; margin: 18px 0 4px; padding-right: 96px; }
.ticket .sub { font-family: var(--sans); color: #4a5160; font-size: .92rem; margin: 0 0 16px; padding-right: 96px; }
.ticket-items { list-style: none; margin: 0; padding: 0; font-size: .84rem; }
.ticket-items li { display: flex; align-items: baseline; gap: 8px; padding: 7px 0; }
.ticket-items li span:first-child { white-space: nowrap; }
.ticket-items li::after { content: none; }
.ticket-items .leader { flex: 1; border-bottom: 1px dotted rgba(10,19,34,.45); transform: translateY(-4px); min-width: 16px; }
.ticket-items b { font-weight: 700; text-align: right; }
.ticket-tear { border-top: 2px dashed rgba(10,19,34,.35); margin: 16px -30px 14px; position: relative; }
.ticket-tear::before, .ticket-tear::after { content: ""; position: absolute; top: -15px; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); }
.ticket-tear::before { left: -14px; } .ticket-tear::after { right: -14px; }
.ticket-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: #5b6271; }
.barcode { height: 34px; width: 120px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 13px); }
.stamp {
  position: absolute; top: 74px; right: 24px; transform: rotate(12deg);
  border: 3px solid var(--brass); color: var(--brass); border-radius: 8px; padding: 4px 12px;
  font-family: var(--mono); font-weight: 700; letter-spacing: .16em; font-size: 1.05rem; opacity: .9;
}
.js .ticket.in .stamp { animation: stamp .5s .6s cubic-bezier(.2,1.6,.4,1) both; }
@keyframes stamp { from { opacity: 0; transform: rotate(12deg) scale(2.2); } to { opacity: .9; transform: rotate(12deg) scale(1); } }

/* ---------- Trust strip ---------- */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); margin-top: 56px; }
.trust p { margin: 0; padding: 22px 22px 22px 0; color: var(--text); font-size: .98rem; line-height: 1.5; }
.trust p + p { padding-left: 22px; border-left: 1px solid var(--line); }
.trust p::before { content: "\00a7 0" counter(t); counter-increment: t; display: block; font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; color: var(--brass); margin-bottom: 8px; }
.trust { counter-reset: t; }

/* ---------- Step time frames ---------- */
.when { display: inline-block; font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); background: var(--brass); border-radius: 3px; padding: 3px 9px 2px; margin-bottom: 12px; }

/* ---------- Answer footprint grid ---------- */
.footprint-wrap { margin-top: 36px; border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; background: var(--ink-2); }
.footprint-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding: 16px 22px; border-bottom: 1px solid var(--line); background: var(--ink-3); }
.footprint-head .docket { margin: 0; }
.example-tag { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); background: var(--text); padding: 3px 10px; border-radius: 3px; }
.footprint-scroll { overflow-x: auto; }
.footprint { width: 100%; border-collapse: collapse; min-width: 720px; font-size: .9rem; }
.footprint th, .footprint td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: center; }
.footprint thead th { font-family: var(--mono); font-weight: 600; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.footprint tbody th { text-align: left; font-family: var(--mono); font-weight: 400; color: var(--text); font-size: .86rem; }
.footprint tbody th::before { content: "> "; color: var(--brass); }
.footprint tbody tr:last-child th, .footprint tbody tr:last-child td { border-bottom: 0; }
.footprint tbody tr:hover { background: rgba(201,162,74,.05); }
.cell { display: inline-block; font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.cell.yes { background: var(--brass); color: var(--ink); font-weight: 700; }
.cell.no { border: 1px solid var(--line-2); color: var(--muted); }
.footprint-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; padding: 18px 22px; border-top: 1px solid var(--line-2); }
.footprint-foot p { margin: 0; color: var(--muted); font-size: .9rem; }
.footprint-foot strong { font-family: var(--mono); color: var(--brass-2); font-size: 1.3rem; }
.js .footprint .cell { opacity: 0; transform: scale(.7); transition: opacity .35s, transform .35s; }
.js .footprint-wrap.in .cell { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .ticket-layout { grid-template-columns: 1fr; gap: 36px; }
  .trust { grid-template-columns: 1fr 1fr; }
  .trust p:nth-child(3) { padding-left: 0; border-left: 0; }
  .trust p:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .trust { grid-template-columns: 1fr; }
  .trust p, .trust p + p { padding: 18px 0; border-left: 0; }
  .trust p + p { border-top: 1px solid var(--line); }
  .ticket { padding: 24px 20px 20px; }
  .ticket-tear { margin: 16px -20px 14px; }
  .stamp { top: 64px; right: 14px; font-size: .9rem; }
  .ticket h3, .ticket .sub { padding-right: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .footprint .cell { opacity: 1 !important; transform: none !important; }
  .js .ticket.reveal, .js .ticket.reveal.in { transform: rotate(-1.2deg) !important; }
}
/* Answer footprint on small screens: keep the prompt column readable and pinned while the tools scroll */
.footprint tbody th, .footprint thead th:first-child { min-width: 220px; position: sticky; left: 0; background: var(--ink-2); z-index: 1; }
.footprint thead th:first-child { text-align: left; }
@media (max-width: 760px) {
  .footprint { min-width: 640px; font-size: .84rem; }
  .footprint tbody th, .footprint thead th:first-child { min-width: 170px; max-width: 170px; box-shadow: 1px 0 0 var(--line-2); }
  .footprint th, .footprint td { padding: 12px 10px; }
  .footprint-scroll::after { content: "Scroll for more tools \2192"; display: block; font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 10px 16px 0; position: sticky; left: 0; }
}
