:root {
  --black: #050505;
  --black-2: #0a0a0a;
  --ink: #f7f7f2;
  --paper: #ffffff;
  --gray-1: #d8d8d2;
  --gray-2: #a7a7a1;
  --gray-3: #686863;
  --line: rgba(255,255,255,.82);
  --line-soft: rgba(255,255,255,.24);
  --panel: rgba(7,7,7,.88);
  --shadow: 0 0 0 1px rgba(255,255,255,.08), 0 24px 80px rgba(0,0,0,.62);
  --display: "Arial Narrow", "Helvetica Neue Condensed", Impact, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.055), transparent 27rem),
    linear-gradient(#050505, #030303);
  font-family: var(--mono);
  line-height: 1.55;
  overflow-x: hidden;
}
button, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}

.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 40;
  background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(255,255,255,.025) 4px, transparent 5px);
  mix-blend-mode: screen;
  opacity: .6;
}
.scanlines::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0 49.7%, rgba(255,255,255,.015) 50%, transparent 50.3%);
  animation: screenDrift 10s linear infinite alternate;
}
.signal-flash {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 45;
  opacity: 0;
  background: linear-gradient(180deg, transparent 0 38%, rgba(255,255,255,.16) 39% 41%, transparent 42%);
}
.signal-flash.active { animation: signalFlash .28s steps(2,end); }
@keyframes signalFlash { 0% { opacity: 0; transform: translateY(-10%); } 35% { opacity: 1; } 100% { opacity: 0; transform: translateY(12%); } }
@keyframes screenDrift { to { transform: translateX(.35%); } }

.site-shell {
  width: min(1540px, calc(100% - 28px));
  margin: 14px auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(3,3,3,.84);
  box-shadow: var(--shadow);
  position: relative;
}
.site-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 8px double rgba(255,255,255,.08);
  border-radius: 18px;
  z-index: 2;
}
.site-header {
  min-height: 86px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 24px;
  position: relative;
  z-index: 3;
}
.identity {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}
.identity-mark {
  font-size: 34px;
  line-height: 1;
  text-shadow: 2px 0 #777;
}
.identity strong {
  display: block;
  font-family: var(--display);
  letter-spacing: .12em;
  font-size: clamp(1.35rem, 2vw, 2rem);
}
.identity small, .node-readout, .header-actions button {
  font-size: .72rem;
  letter-spacing: .12em;
}
.identity small { color: var(--gray-2); }
.node-readout {
  display: flex;
  gap: 18px;
  color: var(--gray-2);
}
.node-readout b { color: var(--ink); font-weight: 600; }
.header-actions { display: flex; gap: 8px; }
.icon-button, .text-button, .close-button {
  border: 0;
  background: transparent;
  cursor: pointer;
}
.icon-button {
  border: 1px solid var(--line-soft);
  padding: 9px 11px;
}
.icon-button:hover { background: #fff; color: #000; }

main { position: relative; z-index: 1; }
.hero {
  min-height: 540px;
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(360px, 1.15fr) minmax(270px, .75fr);
  gap: clamp(22px, 4vw, 60px);
  align-items: center;
  padding: clamp(42px, 6vw, 88px) clamp(24px, 5vw, 76px);
  border-bottom: 1px solid var(--line-soft);
  position: relative;
  overflow: hidden;
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  height: 2px;
  width: 32%;
  background: repeating-linear-gradient(90deg, #fff 0 28px, transparent 28px 42px, #fff 42px 46px, transparent 46px 66px);
  opacity: .25;
}
.hero::before { top: 18%; left: -3%; }
.hero::after { bottom: 17%; right: -5%; }
.eyebrow, .panel-label {
  color: var(--gray-2);
  letter-spacing: .16em;
  font-size: .73rem;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.hero h1, .section-heading h2, .reading-header h2, .dialog-header h2, .drawer-header h2 {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: .95;
  letter-spacing: .025em;
  margin: 0;
}
.hero h1 { font-size: clamp(3rem, 5vw, 6.4rem); max-width: 8ch; }
.hero-lede {
  color: var(--gray-1);
  max-width: 55ch;
  margin: 26px 0;
  font-size: 1rem;
}
.hero-promises { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-promises span {
  border: 1px solid var(--line-soft);
  padding: 6px 9px;
  font-size: .67rem;
  letter-spacing: .1em;
}

.daily-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  background: rgba(0,0,0,.6);
  min-height: 310px;
  position: relative;
}
.daily-card::after { content: ""; position: absolute; inset: 8px; border: 1px dashed rgba(255,255,255,.16); pointer-events: none; }
.daily-card h2 { margin: 0; font: 800 1.7rem/1 var(--display); letter-spacing: .05em; }
.daily-symbol { font-size: 3.5rem; margin: 25px 0 5px; }
.daily-card h3 { font-size: 1rem; letter-spacing: .08em; margin: 0 0 12px; }
.daily-card p { color: var(--gray-1); font-size: .84rem; }
.text-button { padding: 0; letter-spacing: .08em; font-size: .72rem; border-bottom: 1px solid var(--line); }

.consultation, .reading-section, .capabilities { padding: clamp(34px, 5vw, 70px) clamp(20px, 5vw, 72px); }
.consultation { border-bottom: 1px solid var(--line-soft); }
.section-heading, .reading-header {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: flex-end;
  margin-bottom: 28px;
}
.section-heading h2, .reading-header h2 { font-size: clamp(2rem, 3.7vw, 4.3rem); }
.section-heading.compact h2 { font-size: clamp(1.8rem, 3vw, 3.2rem); }
.signal-meter { width: 210px; }
.signal-meter > span { font-size: .66rem; letter-spacing: .12em; color: var(--gray-2); }
.meter-bars { display: grid; grid-template-columns: repeat(8,1fr); gap: 5px; margin-top: 9px; }
.meter-bars i { height: 20px; border: 1px solid var(--line-soft); background: #fff; transform-origin: bottom; animation: meter 1.6s steps(4,end) infinite alternate; }
.meter-bars i:nth-child(2n) { animation-delay: -.5s; }
.meter-bars i:nth-child(3n) { animation-delay: -.9s; }
@keyframes meter { from { transform: scaleY(.25); opacity: .35; } to { transform: scaleY(1); opacity: 1; } }
.mode-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0,1fr));
  gap: 10px;
  margin-bottom: 18px;
}
.mode-card {
  min-height: 116px;
  padding: 16px 13px;
  text-align: left;
  border: 1px solid var(--line-soft);
  background: #080808;
  cursor: pointer;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 4px;
}
.mode-card:hover, .mode-card.active { border-color: #fff; background: #fff; color: #000; }
.mode-glyph { font-size: 1.45rem; line-height: 1; }
.mode-card strong { font-size: .77rem; letter-spacing: .08em; }
.mode-card small { font-size: .67rem; line-height: 1.4; color: var(--gray-2); }
.mode-card.active small, .mode-card:hover small { color: #333; }
.question-form { border: 1px solid var(--line); padding: 18px; background: rgba(0,0,0,.75); }
.question-form > label { display: block; font-size: .72rem; letter-spacing: .12em; margin-bottom: 8px; }
.input-frame { border: 1px solid var(--line-soft); }
textarea {
  width: 100%;
  resize: vertical;
  min-height: 118px;
  border: 0;
  color: #fff;
  background: #050505;
  padding: 16px;
  font-size: 1rem;
  line-height: 1.55;
}
textarea::placeholder { color: #777; }
.input-meta { border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; gap: 14px; padding: 7px 10px; color: var(--gray-2); font-size: .67rem; }
.question-tools { display: grid; grid-template-columns: auto minmax(300px, 1fr); gap: 14px; margin-top: 14px; }
.depth-control { display: flex; align-items: stretch; border: 1px solid var(--line-soft); }
.depth-control > span { display: grid; place-items: center; padding: 0 12px; font-size: .65rem; color: var(--gray-2); }
.depth-button { min-width: 78px; border: 0; border-left: 1px solid var(--line-soft); background: transparent; cursor: pointer; font-size: .72rem; letter-spacing: .08em; }
.depth-button.active { background: #fff; color: #000; }
.transmit-button {
  border: 1px solid #fff;
  background: #fff;
  color: #000;
  padding: 14px;
  cursor: pointer;
  display: grid;
  gap: 2px;
  text-align: center;
}
.transmit-button span { font: 800 1.2rem/1 var(--display); letter-spacing: .08em; }
.transmit-button small { font-size: .58rem; letter-spacing: .14em; }
.transmit-button:hover { filter: invert(1); }
.transmit-button[disabled] { cursor: wait; opacity: .65; }
.starter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 12px; }
.starter-row > span { color: var(--gray-2); font-size: .65rem; letter-spacing: .12em; margin-right: 4px; }
.starter-row button { border: 1px solid var(--line-soft); background: transparent; padding: 6px 9px; cursor: pointer; font-size: .65rem; }
.starter-row button:hover { background: #fff; color: #000; }

.reading-section { border-bottom: 1px solid var(--line-soft); background: linear-gradient(180deg, rgba(255,255,255,.025), transparent 30%); scroll-margin-top: 18px; }
.reading-section[hidden] { display: none; }
.reading-meta { display: flex; gap: 12px; font-size: .67rem; color: var(--gray-2); letter-spacing: .1em; }
.question-echo { border: 1px solid var(--line-soft); border-left: 5px solid #fff; padding: 12px 16px; margin-bottom: 14px; }
.question-echo span { font-size: .63rem; color: var(--gray-2); letter-spacing: .12em; }
.question-echo p { margin: 5px 0 0; }
.reading-grid { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 12px; }
.reading-primary, .reading-panel, .raw-signal { border: 1px solid var(--line-soft); background: rgba(0,0,0,.74); }
.reading-primary { grid-column: span 12; padding: clamp(22px, 4vw, 48px); position: relative; overflow: hidden; }
.reading-primary::after { content: ""; position: absolute; right: -30px; top: 25%; width: 240px; height: 3px; background: repeating-linear-gradient(90deg,#fff 0 18px,transparent 18px 29px); opacity: .15; }
.verdict { font: 800 clamp(2.3rem, 5.5vw, 6.5rem)/.9 var(--display); letter-spacing: .02em; text-transform: uppercase; max-width: 12ch; }
.oracle-answer { max-width: 78ch; color: var(--gray-1); font-size: clamp(1rem, 1.5vw, 1.2rem); margin: 24px 0 16px; }
.card-line { font-size: .72rem; color: var(--gray-2); letter-spacing: .09em; }
.reading-panel { grid-column: span 4; min-height: 240px; padding: 22px; }
.reading-panel h3 { margin: 8px 0 16px; font: 800 1.35rem/1 var(--display); letter-spacing: .05em; }
.reading-panel p { margin: 0; color: var(--gray-1); white-space: pre-line; }
.panel-icon { font-size: 1.8rem; }
.plain-panel { background: #fff; color: #000; }
.plain-panel p { color: #222; }
.action-panel { border-color: #fff; }
.caution-panel { border-style: dashed; }
.reflection-panel { background: rgba(255,255,255,.04); }
.raw-signal { grid-column: span 12; }
.raw-toggle { width: 100%; display: flex; justify-content: space-between; border: 0; background: transparent; padding: 16px; cursor: pointer; font-size: .72rem; letter-spacing: .1em; }
.raw-content { padding: 0 16px 18px; white-space: pre-line; color: var(--gray-1); border-top: 1px solid var(--line-soft); }
.reading-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.reading-actions button, .drawer-footer button {
  border: 1px solid var(--line-soft);
  background: transparent;
  padding: 10px 12px;
  cursor: pointer;
  font-size: .68rem;
  letter-spacing: .08em;
}
.reading-actions button:hover, .drawer-footer button:hover { background: #fff; color: #000; }

.capabilities { border-bottom: 1px solid var(--line-soft); }
.capability-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.capability-grid article { border: 1px solid var(--line-soft); padding: 20px; min-height: 200px; }
.capability-grid span { color: var(--gray-2); font-size: .7rem; }
.capability-grid h3 { font: 800 1.35rem/1 var(--display); letter-spacing: .06em; }
.capability-grid p { color: var(--gray-1); font-size: .84rem; }
.site-footer { min-height: 70px; display: flex; justify-content: center; align-items: center; gap: 24px; flex-wrap: wrap; padding: 16px 24px; color: var(--gray-2); font-size: .64rem; letter-spacing: .12em; }

.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(520px, 94vw);
  z-index: 70;
  background: #060606;
  border-left: 1px solid #fff;
  transform: translateX(102%);
  transition: transform .28s ease;
  display: grid;
  grid-template-rows: auto 1fr auto;
  box-shadow: -20px 0 60px rgba(0,0,0,.65);
}
.drawer.open { transform: translateX(0); }
.drawer-header, .dialog-header { display: flex; justify-content: space-between; align-items: start; padding: 22px; border-bottom: 1px solid var(--line-soft); }
.drawer-header h2, .dialog-header h2 { font-size: 2rem; }
.close-button { font-size: 2rem; line-height: 1; }
.history-list { padding: 14px; overflow: auto; }
.history-empty { color: var(--gray-2); padding: 24px; border: 1px dashed var(--line-soft); }
.history-item { width: 100%; text-align: left; color: #fff; border: 1px solid var(--line-soft); background: #090909; padding: 14px; margin-bottom: 8px; cursor: pointer; }
.history-item:hover { border-color: #fff; }
.history-item strong { display: block; font-size: .78rem; margin-bottom: 6px; }
.history-item small { color: var(--gray-2); }
.history-item p { margin: 9px 0 0; color: var(--gray-1); font-size: .78rem; }
.drawer-footer { padding: 14px; border-top: 1px solid var(--line-soft); }
.drawer-backdrop { position: fixed; inset: 0; z-index: 65; background: rgba(0,0,0,.72); }
.oracle-dialog { width: min(680px, calc(100% - 28px)); padding: 0; color: #fff; background: #060606; border: 1px solid #fff; box-shadow: var(--shadow); }
.oracle-dialog::backdrop { background: rgba(0,0,0,.76); }
.dialog-body { padding: 24px; color: var(--gray-1); }
.dialog-body h3 { color: #fff; font: 800 1.1rem/1 var(--display); letter-spacing: .06em; margin-top: 28px; }
.dialog-body li { margin: 8px 0; }
.dialog-note { border: 1px solid var(--line-soft); padding: 12px; color: #fff; }

@keyframes invertPulse { 50% { filter: invert(1); } }

@media (max-width: 1180px) {
  .hero { grid-template-columns: 1fr 1.1fr; }
  .daily-card { grid-column: 1 / -1; min-height: auto; display: grid; grid-template-columns: auto 1fr; gap: 10px 22px; align-items: center; }
  .daily-card .panel-label, .daily-card .text-button { grid-column: 1 / -1; }
  .daily-symbol { margin: 0; grid-row: span 2; }
  .daily-card p { margin: 0; }
  .mode-grid { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 820px) {
  .site-header { grid-template-columns: 1fr auto; }
  .node-readout { grid-column: 1 / -1; order: 3; justify-content: space-between; border-top: 1px solid var(--line-soft); padding-top: 10px; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero h1 { margin-inline: auto; }
  .hero-lede { margin-inline: auto; }
  .hero-promises { justify-content: center; }
  .oracle-portrait { min-height: 520px; }
  .question-tools { grid-template-columns: 1fr; }
  .depth-control { min-height: 44px; }
  .reading-panel { grid-column: span 6; }
  .capability-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 580px) {
  .site-shell { width: calc(100% - 12px); margin: 6px auto; border-radius: 12px; }
  .site-header { padding: 14px; gap: 12px; }
  .identity small { display: none; }
  .header-actions .icon-button { padding: 7px; font-size: .6rem; }
  .node-readout { gap: 6px; font-size: .58rem; }
  .hero, .consultation, .reading-section, .capabilities { padding-left: 14px; padding-right: 14px; }
  .hero h1 { font-size: 3.25rem; }
  .oracle-portrait { margin-inline: -8%; }
  .daily-card { grid-template-columns: 1fr; text-align: center; }
  .daily-symbol { grid-row: auto; }
  .mode-grid { grid-template-columns: repeat(2,1fr); }
  .mode-card { min-height: 105px; }
  .section-heading, .reading-header { align-items: start; flex-direction: column; }
  .signal-meter { width: 100%; }
  .input-meta { align-items: start; }
  .reading-panel { grid-column: span 12; min-height: 0; }
  .verdict { font-size: 3rem; }
  .capability-grid { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; gap: 7px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}

@media print {
  #glyphRain, .rainveil, .glitchOverlay, .scanlines, .site-header, .hero, .consultation, .capabilities, .site-footer, .reading-actions, .raw-toggle, .drawer, .drawer-backdrop { display: none !important; }
  body, .site-shell, .reading-section { background: #fff !important; color: #000 !important; border: 0 !important; box-shadow: none !important; }
  .site-shell { width: 100%; margin: 0; }
  .reading-section { display: block !important; padding: 0; }
  .reading-primary, .reading-panel, .raw-signal, .question-echo { color: #000 !important; background: #fff !important; border-color: #000 !important; break-inside: avoid; }
  .reading-panel p, .oracle-answer, .card-line, .eyebrow, .panel-label { color: #000 !important; }
  .reading-grid { display: block; }
  .reading-panel, .raw-signal { margin-top: 12px; }
  .raw-content { display: block !important; color: #000 !important; }
}

/* V4.1 — FEMME ORACLE / HAUNTED WEATHER LAYER */
#glyphRain {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: .34;
  mix-blend-mode: screen;
  filter: blur(.08px);
}
.rainveil {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .72;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,255,255,.055), transparent 34%),
    repeating-linear-gradient(115deg, rgba(255,255,255,.018) 0 1px, transparent 1px 24px),
    linear-gradient(180deg, transparent 0%, rgba(255,255,255,.012) 46%, rgba(0,0,0,.18) 100%);
}
.site-shell { position: relative; z-index: 2; }

.oracle-portrait {
  min-height: 470px;
  margin: 0;
  position: relative;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  filter: drop-shadow(0 0 20px rgba(255,255,255,.08));
}
.oracle-portrait::before {
  content: "";
  position: absolute;
  inset: 7% 4% 3%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.055), transparent 66%);
}
.oracle-art {
  display: block;
  width: min(118%, 650px);
  max-width: none;
  margin: -7% -9% -12%;
  user-select: none;
  pointer-events: none;
  mix-blend-mode: screen;
  transform-origin: 50% 42%;
  transition: filter .2s ease;
}
.oracle-screen-status {
  position: absolute;
  left: 48.2%;
  top: 33.8%;
  transform: translate(-50%, -50%);
  width: 27%;
  margin: 0;
  padding: 6px 8px;
  border: 1px solid rgba(255,255,255,.75);
  color: #fff;
  background: rgba(0,0,0,.78);
  box-shadow: 0 0 16px rgba(255,255,255,.08), inset 0 0 12px rgba(255,255,255,.04);
  font-size: clamp(.55rem, 1vw, .78rem);
  line-height: 1.2;
  letter-spacing: .12em;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  z-index: 3;
}
body.transmitting .oracle-art { animation: oracleImageGlitch .2s steps(2,end) 4; }
body.transmitting .oracle-screen-status { animation: invertPulse .18s steps(2,end) 5; }
@keyframes oracleImageGlitch {
  0% { transform: translate(0); }
  33% { transform: translate(-5px,2px); }
  66% { transform: translate(4px,-1px); }
}

.glitchOverlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 46;
  opacity: .18;
  mix-blend-mode: screen;
  background:
    repeating-linear-gradient(180deg, transparent 0 30px, rgba(255,255,255,.032) 30px 32px, transparent 32px 66px),
    linear-gradient(90deg, rgba(255,255,255,.025), transparent 22%, rgba(255,255,255,.02) 48%, transparent 76%, rgba(255,255,255,.018));
  animation: glitchSweep 18s linear infinite;
}
@keyframes glitchSweep {
  0%, 100% { transform: translateX(0); opacity: .14; }
  12% { transform: translateX(0); opacity: .22; }
  13% { transform: translateX(-2px); opacity: .36; }
  14% { transform: translateX(3px); opacity: .30; }
  15% { transform: translateX(0); opacity: .17; }
  49% { transform: translateX(2px); opacity: .30; }
  50% { transform: translateX(-3px); opacity: .36; }
  52% { transform: translateX(0); opacity: .14; }
}

/* Frequent, small signal damage. */
body.screen-glitch .glitchOverlay {
  opacity: .68;
  background:
    repeating-linear-gradient(180deg, transparent 0 18px, rgba(255,255,255,.09) 18px 21px, transparent 21px 43px, rgba(255,255,255,.05) 43px 45px, transparent 45px 72px),
    linear-gradient(90deg, rgba(255,255,255,.09) 0 12%, transparent 18% 34%, rgba(255,255,255,.07) 38% 44%, transparent 50% 76%, rgba(255,255,255,.055) 88% 100%);
  animation: minorGlitchBands .16s steps(2) infinite;
}
body.screen-glitch .site-shell { transform: translateX(1px) skewX(-.35deg) scaleY(.999); filter: contrast(1.035) brightness(1.018); }
body.screen-glitch .oracle-art { transform: translateX(2px); filter: contrast(1.09) brightness(1.04); }
body.screen-glitch #glyphRain { opacity: .64; filter: drop-shadow(0 0 6px rgba(255,255,255,.32)); }

/* Occasional, obvious interruption. */
body.glitch-major .glitchOverlay {
  opacity: .92;
  background:
    repeating-linear-gradient(180deg, transparent 0 12px, rgba(255,255,255,.15) 12px 15px, transparent 15px 30px, rgba(255,255,255,.10) 30px 33px, transparent 33px 58px),
    linear-gradient(90deg, rgba(255,255,255,.18) 0 12%, transparent 16% 30%, rgba(255,255,255,.15) 36% 46%, transparent 50% 70%, rgba(255,255,255,.11) 84% 100%);
  animation: majorGlitchBands .14s steps(2) infinite, glitchShear .18s steps(2) infinite;
}
body.glitch-major .site-shell { transform: translateX(-3px) skewX(1.35deg) scaleY(.994); filter: contrast(1.12) brightness(1.055); }
body.glitch-major .oracle-art { transform: translateX(-6px) translateY(1px); filter: contrast(1.18) brightness(1.08); }
body.glitch-major .site-header,
body.glitch-major .hero,
body.glitch-major .consultation,
body.glitch-major .reading-section,
body.glitch-major .capabilities { filter: brightness(1.13) contrast(1.07); }

/* Rare, violent failure — dramatic but brief. */
body.glitch-severe .glitchOverlay {
  opacity: 1;
  background:
    repeating-linear-gradient(180deg, transparent 0 6px, rgba(255,255,255,.25) 6px 10px, transparent 10px 18px, rgba(255,255,255,.18) 18px 22px, transparent 22px 36px, rgba(255,255,255,.12) 36px 39px, transparent 39px 68px),
    linear-gradient(90deg, rgba(255,255,255,.31) 0 9%, transparent 12% 22%, rgba(255,255,255,.27) 27% 48%, transparent 54% 65%, rgba(255,255,255,.20) 80% 100%);
  animation: severeGlitchBands .10s steps(2) infinite, glitchShear .12s steps(2) infinite, glitchRoll .22s linear infinite;
}
body.glitch-severe .site-shell { transform: translateX(-5px) skewX(2.2deg) scaleY(.989) scaleX(1.002); filter: contrast(1.22) brightness(1.09); }
body.glitch-severe .oracle-art { transform: translateX(-10px) translateY(2px) scaleX(1.012); filter: contrast(1.32) brightness(1.13); }
body.glitch-severe #glyphRain { opacity: .92; filter: drop-shadow(0 0 9px rgba(255,255,255,.55)) blur(.01px); }
body.glitch-severe .rainveil { opacity: .98; filter: brightness(1.22); }

@keyframes minorGlitchBands { 0% { transform: translateX(0); } 50% { transform: translateX(2px); } 100% { transform: translateX(-1px); } }
@keyframes majorGlitchBands { 0% { transform: translateX(0); } 50% { transform: translateX(4px); } 100% { transform: translateX(-3px); } }
@keyframes severeGlitchBands { 0% { transform: translateX(0); } 33% { transform: translateX(6px); } 66% { transform: translateX(-5px); } 100% { transform: translateX(2px); } }
@keyframes glitchShear { 0% { clip-path: inset(0 0 72% 0); } 50% { clip-path: inset(36% 0 28% 0); } 100% { clip-path: inset(74% 0 0 0); } }
@keyframes glitchRoll { from { background-position: 0 0, 0 0; } to { background-position: 0 18px, 8px 0; } }

@media (max-width: 820px) {
  .oracle-portrait { min-height: 520px; }
  .oracle-art { width: min(108%, 620px); margin-top: -5%; }
}
@media (max-width: 580px) {
  .oracle-portrait { min-height: 420px; margin-inline: -8%; }
  .oracle-art { width: 112%; margin: -4% -6% -10%; }
  .oracle-screen-status { top: 33.5%; width: 28%; padding: 4px 5px; font-size: .52rem; }
}
@media (prefers-reduced-motion: reduce) {
  #glyphRain, .glitchOverlay { display: none !important; }
  .rainveil { opacity: .35; }
}
