/* Hallucinate & Scale, Inc. (fictional). Show style: Editorial 2D Vector Cutout with Tactile Paper-Grain Depth.
   Crisp dark ink outlines (~2.5-3px), 4-6% paper grain, cool high-contrast tech-loft palette. */
:root {
  --ink: #111418;
  --ink-soft: #2a2f38;
  --paper: #e6ebf0;
  --paper-hi: #f5f7f9;
  --cyan: #19c3e6;
  --lime: #c6f432;
  --signal: #d92e22;
  --violet: #5242e6;
  --muted: #4d5663;
  --line: 2.75px;
  --shadow: 6px 6px 0 var(--ink);
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 17px/1.55 var(--sans);
  overflow-x: hidden;
}
/* Paper grain: static fractal noise at 5% */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 1.2 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--violet); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 6vw, 4.2rem); font-weight: 900; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.3rem); font-weight: 850; }
h3 { font-size: 1.25rem; font-weight: 800; }
p { margin: 0 0 1em; }

.fiction-ribbon {
  background: var(--paper-hi); color: var(--muted);
  border-bottom: 1px solid #c9d1d9;
  font: 12px/1.4 var(--mono);
  padding: 6px 16px; text-align: center;
}
.fiction-ribbon a { color: var(--muted); }

.site-header {
  max-width: 1120px; margin: 0 auto; padding: 18px 16px;
  display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo { width: 46px; height: 46px; flex: none; }
.brand-name { font-weight: 900; font-size: 1.2rem; letter-spacing: -0.02em; }
.brand-inc { font-weight: 600; color: var(--muted); }
nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
nav a {
  display: block; padding: 6px 10px; font-weight: 700; font-size: .95rem; text-decoration: none;
  border: var(--line) solid transparent; border-radius: 4px;
}
nav a:hover { border-color: var(--ink); color: var(--ink); background: var(--paper-hi); }
nav a[aria-current="page"] { border-color: var(--ink); background: var(--lime); box-shadow: 3px 3px 0 var(--ink); }

main { max-width: 1120px; margin: 0 auto; padding: 8px 16px 48px; }
section { margin: 0 0 56px; }

.card {
  background: var(--paper-hi);
  border: var(--line) solid var(--ink);
  border-radius: 5px;
  box-shadow: var(--shadow);
  padding: 22px;
}
.cutout { transform: rotate(-0.5deg); }
.cutout:nth-child(even) { transform: rotate(0.6deg); }
@media (prefers-reduced-motion: reduce) { .cutout, .cutout:nth-child(even) { transform: none; } }
.grid { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }

.hud-label {
  font: 700 12px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
  margin-bottom: .5em;
}
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: var(--paper-hi);
  border: var(--line) solid var(--ink); border-radius: 6px; box-shadow: 8px 8px 0 var(--cyan);
  padding: clamp(24px, 5vw, 56px);
  display: grid; gap: 28px; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: center;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 4px);
}
.hero .hud-label { color: var(--cyan); }
.hero h1 .tm { font-size: .35em; vertical-align: super; color: var(--lime); }
.hero p.lede { font-size: 1.2rem; color: #cfd6de; max-width: 38em; }
.hero-art { width: 100%; max-width: 320px; justify-self: center; }
@media (max-width: 760px) { .hero { grid-template-columns: 1fr; } .hero-art { max-width: 220px; } }
.halo { transform-origin: 160px 160px; animation: spin 22s linear infinite; }
.wave { animation: pulse 2.4s ease-in-out infinite; transform-origin: 160px 160px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { transform: scaleY(.55); } }
@media (prefers-reduced-motion: reduce) { .halo, .wave { animation: none; } }

.btn {
  display: inline-block; cursor: pointer;
  font: 800 1rem/1 var(--sans); color: var(--ink); text-decoration: none;
  background: var(--lime); border: var(--line) solid var(--ink); border-radius: 4px;
  padding: 13px 18px; box-shadow: 4px 4px 0 var(--ink);
}
.btn:hover { color: var(--ink); transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn-ghost { background: var(--paper-hi); }
.btn-small { padding: 9px 13px; font-size: .9rem; }
.btn[disabled] { cursor: not-allowed; opacity: .55; }
.gag {
  min-height: 1.6em; margin-top: 14px; font: 600 .98rem/1.5 var(--mono); color: var(--lime);
}
.gag.on-light { color: var(--violet); }

.ticker {
  display: flex; flex-wrap: wrap; gap: 10px 24px;
  font: 700 13px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em;
  background: var(--cyan); border: var(--line) solid var(--ink); border-radius: 4px;
  padding: 10px 16px; margin: 30px 0 46px; box-shadow: 4px 4px 0 var(--ink);
}
.ticker span::before { content: "■ "; }

.stat { font: 900 2.4rem/1 var(--sans); letter-spacing: -0.03em; }
.stat small { display: block; font: 600 .85rem/1.4 var(--mono); color: var(--muted); margin-top: 6px; letter-spacing: 0; }

.portrait { width: 96px; height: 96px; flex: none; }
.person { display: flex; gap: 18px; align-items: flex-start; }
@media (max-width: 480px) { .person { flex-direction: column; } }
.person .role { font: 700 .85rem/1.3 var(--mono); color: var(--violet); text-transform: uppercase; letter-spacing: .08em; }
.quote { font-style: italic; border-left: 4px solid var(--cyan); padding-left: 12px; }

.status-pill {
  display: inline-block; font: 700 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em;
  border: 2px solid var(--ink); border-radius: 999px; padding: 6px 10px; background: var(--paper);
}
.status-pill.muted { background: var(--signal); color: #fff; }
.status-pill.ok { background: var(--lime); }

.memo { max-width: 760px; margin: 0 auto; background: #fbfbf7; font-family: var(--mono); font-size: .98rem; }
.memo dl { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; margin: 0 0 20px; }
.memo dt { font-weight: 800; }
.memo dd { margin: 0; }
.memo ol li { margin-bottom: .8em; }
.stamp {
  display: inline-block; transform: rotate(-4deg);
  font: 900 1rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--signal); border: 3px solid var(--signal); border-radius: 4px; padding: 8px 12px; margin: 10px 0;
}
.update { background: var(--lime); border: var(--line) solid var(--ink); border-radius: 4px; padding: 14px 16px; margin-top: 20px; }

.rules { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.rule { background: var(--paper-hi); border: 2px solid var(--ink); border-radius: 4px; padding: 12px 14px; }
.rule.new { animation: drop .5s ease-out; border-color: var(--violet); box-shadow: 3px 3px 0 var(--violet); }
@keyframes drop { from { transform: translateY(-8px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .rule.new { animation: none; } }
.rule-num { font: 800 .85rem/1.3 var(--mono); color: var(--violet); }
.rule-meta { display: block; font: 600 .78rem/1.4 var(--mono); color: var(--muted); margin-top: 6px; }
.counter { font: 900 clamp(2.4rem, 8vw, 4rem)/1 var(--sans); letter-spacing: -0.04em; }
.ellipsis { text-align: center; font: 700 1.1rem var(--mono); color: var(--muted); }

.chyron { display: flex; flex-wrap: wrap; align-items: stretch; margin: -22px -22px 18px; border-bottom: var(--line) solid var(--ink); }
.chyron > span:last-child { flex: 1; background: var(--signal); color: #fff; font: 800 .95rem/1.35 var(--sans); padding: 10px 12px; text-transform: uppercase; }
.chyron-tag { background: var(--ink); color: var(--lime); font: 800 .8rem/1 var(--mono); padding: 14px 12px; letter-spacing: .08em; }
blockquote { margin: 0 0 1em; padding: 0 0 0 14px; border-left: 4px solid var(--ink); }
blockquote footer { font: 600 .85rem var(--mono); color: var(--muted); }
.tie-ins { margin: 0; padding-left: 20px; }

.filing { max-width: 820px; margin: 0 auto; background: #fbfaf4; font-family: Georgia, "Times New Roman", serif; position: relative; }
.filing h2 { font-family: var(--sans); text-align: center; text-transform: uppercase; letter-spacing: .06em; }
.filing .article { margin-bottom: 1.1em; }
.filing .article strong { font-family: var(--sans); }
.filing .watermark {
  position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; overflow: hidden;
  font: 900 clamp(2rem, 9vw, 5.5rem)/1 var(--sans); color: rgba(255, 74, 61, .13); transform: rotate(-18deg);
}
.receipt { font-family: var(--mono); max-width: 420px; }
.receipt table { width: 100%; border-collapse: collapse; }
.receipt td { padding: 4px 0; border-bottom: 1px dashed var(--muted); }
.receipt td:last-child { text-align: right; white-space: nowrap; padding-left: 10px; }
.receipt td:first-child { overflow-wrap: anywhere; }
@media (max-width: 480px) { .receipt { font-size: .85rem; } }

.jobs { display: grid; gap: 22px; }
.job h3 { margin-bottom: .2em; }

.site-footer {
  border-top: var(--line) solid var(--ink); background: var(--paper-hi);
  padding: 32px 16px 40px;
}
.site-footer > * { max-width: 1120px; margin-left: auto; margin-right: auto; }
.disclaimer { border: var(--line) solid var(--ink); border-radius: 5px; background: #fff; padding: 16px 18px; box-shadow: 4px 4px 0 var(--ink); }
.disclaimer p:last-child { margin: 0; }
.kicker { font: 800 1.05rem/1.4 var(--mono); margin-top: 22px; }
.fine { font-size: .85rem; color: var(--muted); }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--lime); border: var(--line) solid var(--ink); padding: 8px 12px; font-weight: 800; z-index: 200; }
.skip-link:focus { top: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Staging preview */
.preview-bar { background: var(--violet); color: #fff; font: 700 12px/1.4 var(--mono); text-align: center; padding: 6px 16px; }
.gated { position: relative; }
.sched { display: inline-block; margin: 0 0 6px; font: 700 11px/1.3 var(--mono); letter-spacing: .04em; padding: 3px 8px; border-radius: 3px; border: 2px dashed var(--violet); color: var(--violet); background: #fff; }
.sched-live { border-style: solid; border-color: #2f7d32; color: #2f7d32; }

/* Newsroom */
.news-list { display: grid; gap: 30px; }
.post h3 { font-size: 1.45rem; margin-bottom: .4em; }
.byline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: .92rem; margin: 0 0 12px; }
.byline .role { color: var(--muted); font: 600 .8rem var(--mono); }
.av { width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid var(--ink); flex: none; display: inline-block; }
.av-devon { background: #8a8f98; } .av-priya { background: var(--violet); } .av-atlas { background: var(--cyan); }
.av-ethics { background: var(--signal); } .av-ch8 { background: var(--ink); } .av-vance { background: #e0b84a; } .av-zona { background: #7c8a6e; }
.note { margin: 16px 0 0; padding: 12px 14px; border: 2.5px solid var(--ink); border-radius: 4px; background: #fff; }
.note-label { font: 800 .78rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: .08em; margin: 0 0 6px; }
.note p:last-child { margin-bottom: 0; }
.note-contradiction { background: #e9fbff; border-color: #0f7f97; }
.note-contradiction .note-label { color: #0b6377; }
.note-audit { background: #fff1ef; border-color: var(--signal); }
.note-audit .note-label { color: var(--signal); }
.note-reply .note-label { color: var(--muted); }

/* Ask Atlas-9 (scripted; no input, no network) */
.atlas-widget { position: fixed; right: 16px; bottom: 16px; z-index: 50; max-width: min(380px, calc(100vw - 32px)); }
.atlas-widget > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; float: right;
  background: var(--ink); color: var(--paper-hi); font: 800 .95rem var(--sans); padding: 11px 15px; border-radius: 999px; border: 2.5px solid var(--ink); box-shadow: 4px 4px 0 var(--cyan); }
.atlas-widget > summary::-webkit-details-marker { display: none; }
.atlas-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px var(--cyan); }
.atlas-panel { clear: both; margin-bottom: 10px; max-height: min(70vh, 560px); overflow: auto; background: var(--paper-hi);
  border: var(--line) solid var(--ink); border-radius: 6px; box-shadow: var(--shadow); padding: 14px; }
.atlas-widget[open] { display: flex; flex-direction: column-reverse; }
.atlas-widget[open] > summary { align-self: flex-end; }
.atlas-hello { font-weight: 600; }
.atlas-q { border-top: 1px solid #c9d1d9; padding: 8px 0; }
.atlas-q summary { cursor: pointer; font-weight: 700; color: #0b6377; }
.atlas-q p { margin: 8px 0 0; }
.atlas-foot { font-size: .88rem; color: var(--signal); }
.atlas-small { font: 600 .75rem/1.4 var(--mono); color: var(--muted); margin: 10px 0 0; }
.whiteboard { display: flex; flex-wrap: wrap; gap: 14px; margin: 0 0 40px; }
.whiteboard span { background: #fff; border: 2.5px solid var(--ink); border-radius: 4px; padding: 10px 14px; font: 800 1rem/1.2 var(--mono); transform: rotate(-1deg); box-shadow: 3px 3px 0 var(--ink); }
.whiteboard span:nth-child(even) { transform: rotate(1.2deg); }
@media (prefers-reduced-motion: reduce) { .whiteboard span, .whiteboard span:nth-child(even) { transform: none; } }

.disclaimer .satire { font-size: 1.05rem; }
