/* AIC v2 — JDMIS AI Consultation styles
   Palette + type match /quiz/ (brand continuity):
   ink #0a0a0a · panel #141414 · gold #d4af37 · glow #f9e3ac · gem #8a1c1c */

:root {
  --ink: #0a0a0a;
  --ink-2: #101010;
  --panel: #141414;
  --panel-2: #1a1a1a;
  --line: #2a2a2a;
  --gold: #d4af37;
  --gold-dim: #a08757;  /* T257 AA: footer link 4.37 -> ~5.6 on #0a0a0a */
  --glow: #f9e3ac;
  --gem: #8a1c1c;
  --heading: #ffffff;
  --text: #e9e5dc;
  --text-dim: #a49c8c;
  --text-faint: #98917d;  /* T257 AA: 3.63 -> ~5.2 on #0a0a0a */
  --serif: 'Cinzel', 'Times New Roman', serif;
  --body: 'Lato', 'Segoe UI', sans-serif;
  --slab: 'Roboto Slab', Georgia, serif;
  --ease: cubic-bezier(.22,.9,.28,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-weight: 300;
  overflow-x: hidden;
  min-height: 100vh;
}
::selection { background: rgba(212,175,55,.35); color: #fff; }

/* ---------- shared ---------- */

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 24px; }
.serif { font-family: var(--serif); }
.kicker {
  font-family: var(--slab); font-size: 11px; letter-spacing: 4px;
  text-transform: uppercase; color: var(--gold); margin-bottom: 14px;
}
.h1 { font-family: var(--serif); font-weight: 400; line-height: 1.15; color: var(--heading); }
.h1 .gold { color: var(--gold); }
.sub { color: var(--text-dim); font-size: 17px; line-height: 1.65; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--slab); font-size: 14px; letter-spacing: 2px; text-transform: uppercase;
  padding: 16px 36px; border-radius: 2px; cursor: pointer; text-decoration: none;
  transition: all .35s var(--ease); border: 1px solid var(--gold);
}
.btn-gold { background: linear-gradient(135deg, #e6c45a, var(--gold) 60%, #b8952c); color: #141414; font-weight: 500; box-shadow: 0 0 0 rgba(212,175,55,0); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 34px -8px rgba(212,175,55,.45); }
.btn-ghost { background: transparent; color: var(--gold); }
.btn-ghost:hover { background: rgba(212,175,55,.08); }
.btn[disabled] { opacity: .35; pointer-events: none; }
.btn-sm { padding: 10px 22px; font-size: 12px; }

/* ---------- background canvas ---------- */

#bg-canvas {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  opacity: .9;
}
.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(1200px 700px at 70% -10%, rgba(212,175,55,.07), transparent 60%),
    radial-gradient(900px 600px at 10% 110%, rgba(138,28,28,.06), transparent 60%);
}

/* ---------- acts ---------- */

main { position: relative; z-index: 2; }
.act { display: none; min-height: 100vh; padding: 64px 0 96px; position: relative; }
.act.active { display: block; animation: actIn .8s var(--ease); }
@keyframes actIn { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .act.active { animation: none; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* progress constellation */
#progress {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: none; padding: 14px 24px 10px;
  background: linear-gradient(180deg, rgba(10,10,10,.92), rgba(10,10,10,.75) 70%, transparent);
  backdrop-filter: blur(6px);
}
#progress.on { display: flex; }
#progress .node {
  flex: 1; height: 2px; background: var(--line); position: relative; margin: 0 4px; cursor: default;
}
#progress .node::after {
  content: ''; position: absolute; left: -3px; top: -3px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--line); transition: all .5s var(--ease);
}
#progress .node.done { background: rgba(212,175,55,.4); }
#progress .node.done::after { background: var(--gold); box-shadow: 0 0 10px rgba(212,175,55,.8); }
#progress .node.now::after { background: var(--glow); box-shadow: 0 0 14px rgba(249,227,172,.9); transform: scale(1.4); }

/* ---------- act 0 hero ---------- */

#act-hero.active { display: flex; align-items: flex-start; padding-top: 72px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 54px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px;
  border: 1px solid rgba(212,175,55,.4); border-radius: 999px; padding: 7px 16px;
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); font-family: var(--slab);
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(212,175,55,.5);} 55% { box-shadow: 0 0 0 9px rgba(212,175,55,0);} }
#act-hero .h1 { font-size: clamp(34px, 5.2vw, 58px); }
.hero-rule { width: 90px; height: 2px; background: linear-gradient(90deg, var(--gold), transparent); margin: 26px 0; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 38px; }
.hero-meta { margin-top: 40px; display: flex; gap: 26px; flex-wrap: wrap; color: var(--text-faint); font-size: 13px; font-family: var(--slab); letter-spacing: 1px; }
.hero-meta span b { color: var(--text-dim); font-weight: 400; }

/* tanja card */
.tanja-card {
  position: relative; border: 1px solid var(--line); background: var(--panel);
  border-radius: 6px; overflow: hidden; box-shadow: 0 30px 80px -30px rgba(0,0,0,.9);
}
.tanja-card .video-slot { position: relative; aspect-ratio: 16/9; background: #000 center/cover; cursor: pointer; }
.tanja-card .video-slot img { width: 100%; height: 100%; object-fit: cover; opacity: .8; display: block; }
.tanja-card .video-slot .play {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.55));
}
.play-btn {
  width: 68px; height: 68px; border-radius: 50%; border: 1px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  background: rgba(10,10,10,.55); backdrop-filter: blur(4px); transition: all .3s var(--ease);
}
.tanja-card .video-slot:hover .play-btn { transform: scale(1.08); background: rgba(212,175,55,.2); }
.tanja-card .video-slot iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.tanja-card .caption { padding: 18px 20px; border-top: 1px solid var(--line); }
.tanja-card .caption b { font-family: var(--slab); color: var(--gold); font-weight: 400; letter-spacing: 1px; font-size: 13px; }
.tanja-card .caption p { color: var(--text-dim); font-size: 13.5px; margin-top: 6px; line-height: 1.55; }

/* ---------- act I cards ---------- */

.act-head { max-width: 640px; margin-bottom: 44px; }
.act-head .h1 { font-size: clamp(26px, 3.4vw, 38px); }
.act-head .sub { margin-top: 14px; font-size: 15.5px; }

.card-grid { display: grid; gap: 18px; }
.cards-purpose { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.cards-fasc { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.pcard {
  position: relative; border: 1px solid var(--line); background: linear-gradient(160deg, var(--panel-2), var(--panel));
  border-radius: 6px; padding: 26px 22px 22px; cursor: pointer; overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.pcard:hover { transform: translateY(-4px); border-color: rgba(212,175,55,.45); }
.pcard svg { width: 30px; height: 30px; stroke: var(--gold); fill: none; stroke-width: 1.4; margin-bottom: 16px; }
.pcard h3 { font-family: var(--slab); font-weight: 400; font-size: 17px; color: var(--heading); letter-spacing: .4px; }
.pcard p { color: var(--text-dim); font-size: 13.5px; line-height: 1.55; margin-top: 9px; }
.pcard .tick {
  position: absolute; top: 14px; right: 14px; width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
  color: transparent; transition: all .3s var(--ease); font-size: 13px;
}
.pcard.sel { border-color: var(--gold); box-shadow: 0 18px 46px -18px rgba(212,175,55,.35); background: linear-gradient(160deg, #1d1a12, var(--panel)); }
.pcard.sel .tick { background: var(--gold); border-color: var(--gold); color: #141414; }

.fcard {
  position: relative; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; cursor: pointer;
  background: var(--panel); transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.fcard img { width: 100%; aspect-ratio: 4/4.4; object-fit: cover; display: block; filter: saturate(.85) contrast(1.02); transition: filter .4s, transform .6s var(--ease); }
.fcard:hover img { transform: scale(1.05); }
.fcard .veil {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end;
  background: linear-gradient(185deg, rgba(10,10,10,.05) 30%, rgba(10,10,10,.9) 88%);
  padding: 16px;
}
.fcard h3 { font-family: var(--slab); font-weight: 400; font-size: 15.5px; color: #fff; }
.fcard p { color: var(--text-dim); font-size: 12px; line-height: 1.5; margin-top: 6px; max-height: 0; overflow: hidden; opacity: 0; transition: all .45s var(--ease); }
.fcard:hover p, .fcard.sel p { max-height: 90px; opacity: 1; }
.fcard .heat {
  position: absolute; top: 12px; left: 12px; display: flex; gap: 4px;
}
.fcard .heat i {
  width: 16px; height: 5px; border-radius: 2px; background: rgba(255,255,255,.16); transition: all .3s;
}
.fcard.lvl1 .heat i:nth-child(1) { background: var(--gold-dim); }
.fcard.lvl2 .heat i:nth-child(-n+2) { background: var(--gold); }
.fcard.lvl3 .heat i { background: var(--glow); box-shadow: 0 0 8px rgba(249,227,172,.7); }
.fcard.lvl1 { border-color: rgba(138,115,75,.6); }
.fcard.lvl2 { border-color: rgba(212,175,55,.8); box-shadow: 0 14px 40px -16px rgba(212,175,55,.3); }
.fcard.lvl3 { border-color: var(--glow); box-shadow: 0 18px 52px -14px rgba(249,227,172,.4); }
.fcard.lvl3 img { filter: saturate(1.1) contrast(1.05); }
.heat-legend {
  display: flex; gap: 18px; flex-wrap: wrap; align-items: center;
  margin: 0 0 22px; padding: 14px 20px; border: 1px solid rgba(212,175,55,.35); border-radius: 6px;
  background: linear-gradient(160deg, #17130a, var(--panel));
}
.heat-legend .hl { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--text); }
.heat-legend .hl small { color: var(--text-faint); font-size: 12px; }
.heat-legend .pips { display: flex; gap: 3px; }
.heat-legend .pips i { width: 14px; height: 5px; border-radius: 2px; background: rgba(255,255,255,.15); }
.heat-legend .hl.p1 .pips i:nth-child(1) { background: var(--gold-dim); }
.heat-legend .hl.p2 .pips i:nth-child(-n+2) { background: var(--gold); }
.heat-legend .hl.p3 .pips i { background: var(--glow); box-shadow: 0 0 7px rgba(249,227,172,.6); }
.heat-hint { color: var(--text-faint); font-size: 12px; margin-top: 14px; font-family: var(--slab); letter-spacing: .5px; }
.heat-hint b { color: var(--gold-dim); font-weight: 400; }

.fcard .lvl-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  font-family: var(--slab); font-size: 11.5px; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px; pointer-events: none;
  background: rgba(10,10,10,.78); border: 1px solid var(--gold-dim); color: var(--gold);
  backdrop-filter: blur(3px);
}
.fcard.lvl2 .lvl-badge { border-color: var(--gold); color: var(--glow); }
.fcard.lvl3 .lvl-badge { border-color: var(--glow); color: #fff; background: rgba(138,115,30,.85); box-shadow: 0 0 14px rgba(212,175,55,.5); }

/* rhythm */
.rhythm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  border: 1px solid var(--line); background: var(--panel); color: var(--text-dim);
  padding: 11px 20px; border-radius: 999px; cursor: pointer; font-size: 14px; font-family: var(--slab); letter-spacing: .5px;
  transition: all .3s var(--ease);
}
.chip:hover { border-color: rgba(212,175,55,.5); color: var(--text); }
.chip.sel { border-color: var(--gold); color: var(--glow); background: rgba(212,175,55,.1); }
.rlabel { font-family: var(--slab); font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold-dim); margin-bottom: 14px; }

.avail-table { border-collapse: collapse; width: 100%; max-width: 560px; }
.avail-table td, .avail-table th {
  border: 1px solid var(--line); width: 58px; height: 46px; text-align: center; cursor: pointer;
  font-size: 15px; color: var(--text-faint); transition: background .2s, border-color .2s, color .2s; user-select: none;
}
.avail-table th { font-family: var(--slab); letter-spacing: 1px; text-transform: uppercase; font-size: 10.5px; color: var(--gold-dim); cursor: default; background: var(--panel); }
.avail-table td:hover { border-color: rgba(212,175,55,.7); background: rgba(212,175,55,.08); }
.avail-table td.on { background: rgba(212,175,55,.18); border-color: var(--gold); }
.avail-table td.on::after { content: '✓'; color: var(--glow); font-size: 15px; }
.avail-table td.off { background: #100d0d; color: rgba(164,156,140,.35); }
.avail-table td.off::after { content: '–'; color: rgba(138,115,75,.5); font-size: 13px; }
.avail-table td.rowhead { background: var(--panel); font-family: var(--slab); letter-spacing: 1px; text-transform: uppercase; font-size: 10.5px; color: var(--gold-dim); cursor: default; }
.rlabel .opt { color: var(--text-faint); text-transform: none; letter-spacing: .5px; font-size: 11px; margin-left: 8px; }
.avail-foot { display: flex; align-items: center; gap: 10px; margin-top: 12px; max-width: 560px; flex-wrap: wrap; }
.avail-summary { font-size: 13px; color: var(--text-dim); font-family: var(--slab); }
.avail-summary b { color: var(--glow); font-weight: 400; }
.mini-clear {
  background: none; border: 1px dashed var(--line); color: var(--text-faint);
  border-radius: 999px; padding: 5px 14px; font-size: 11.5px; font-family: var(--slab);
  letter-spacing: 1px; cursor: pointer; transition: all .25s;
}
.mini-clear:hover { color: var(--gold); border-color: rgba(212,175,55,.6); }

.act-foot { margin-top: 52px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.act-foot .note { color: var(--text-faint); font-size: 13px; }
.back-link { background: none; border: none; color: var(--text-faint); cursor: pointer; font-size: 13px; font-family: var(--slab); letter-spacing: 1px; padding: 8px 0; }
.back-link:hover { color: var(--gold); }

/* ---------- act II chat ---------- */

.chat-shell {
  display: grid; grid-template-columns: 1fr 300px; gap: 26px; align-items: start;
}
.chat-box {
  border: 1px solid var(--line); border-radius: 8px; background: var(--panel);
  display: flex; flex-direction: column; height: 560px; overflow: hidden;
}
.chat-scroll { flex: 1; overflow-y: auto; padding: 26px 24px; scroll-behavior: smooth; }
.msg { display: flex; gap: 12px; margin-bottom: 20px; max-width: 92%; }
.msg .av {
  flex: 0 0 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 13px;
}
.msg.jewel .av { background: linear-gradient(135deg, #2a2410, #171307); border: 1px solid rgba(212,175,55,.55); color: var(--gold); }
.msg.user { margin-left: auto; flex-direction: row-reverse; }
.msg.user .av { background: #1c1c1c; border: 1px solid var(--line); color: var(--text-dim); font-family: var(--body); font-size: 11px; }
.msg .bubble {
  padding: 14px 18px; border-radius: 10px; font-size: 14.5px; line-height: 1.65;
  white-space: pre-wrap; word-wrap: break-word;
}
.msg.jewel .bubble { background: var(--panel-2); border: 1px solid var(--line); border-top-left-radius: 2px; color: var(--text); }
.msg.user .bubble { background: rgba(212,175,55,.13); border: 1px solid rgba(212,175,55,.35); border-top-right-radius: 2px; color: var(--glow); }
.msg .bubble .cursor {
  display: inline-block; width: 7px; height: 16px; background: var(--gold);
  vertical-align: text-bottom; margin-left: 2px; animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* live activity row while Jewel works: dots keep breathing, label keeps moving */
.msg .status-row {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px;
  border-top-left-radius: 2px; padding: 13px 18px; margin-bottom: 8px;
  font-size: 13px; color: var(--text-dim); font-family: var(--slab); letter-spacing: .4px;
  transition: opacity .35s var(--ease);
}
.msg .status-row.flash { animation: statusFlash .9s var(--ease); }
@keyframes statusFlash {
  0% { border-color: var(--line); transform: translateY(0); }
  30% { border-color: rgba(212,175,55,.7); transform: translateY(-1px); }
  100% { border-color: var(--line); transform: translateY(0); }
}
.msg .status-row .three-dots i { background: var(--gold); }

/* report live status (same look, centred while skeletons breathe) */
.report-status { display: flex; max-width: 420px; }
.report-mail-input {
  background: var(--ink-2); border: 1px solid var(--line); border-radius: 4px; color: var(--text);
  font-family: var(--body); font-size: 14.5px; padding: 14px 16px; outline: none; min-width: 230px;
  transition: border-color .3s;
}
.report-mail-input:focus { border-color: rgba(212,175,55,.6); }

/* gold in-chat action for human requests */
.human-cta {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin: 4px 0 22px; padding: 16px 18px; border: 1px solid rgba(212,175,55,.5); border-radius: 8px;
  background: linear-gradient(160deg, #1d180d, var(--panel));
  box-shadow: 0 16px 44px -18px rgba(212,175,55,.35);
  animation: actIn .6s var(--ease);
}
.human-cta span { color: var(--text-dim); font-size: 13px; line-height: 1.5; max-width: 340px; }
.msg.jewel .src-note { margin-top: 8px; font-size: 11px; color: var(--text-faint); font-family: var(--slab); letter-spacing: .5px; }
.msg.jewel .src-note b { color: var(--gold-dim); font-weight: 400; }
.three-dots { display: inline-flex; gap: 5px; padding: 4px 2px; }
.three-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-dim); animation: tdots 1.2s infinite; }
.three-dots i:nth-child(2) { animation-delay: .18s; } .three-dots i:nth-child(3) { animation-delay: .36s; }
@keyframes tdots { 0%,60%,100% { opacity: .25; transform: translateY(0);} 30% { opacity: 1; transform: translateY(-4px);} }

.chat-input {
  display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--line); background: var(--ink-2);
}
.chat-input textarea {
  flex: 1; background: var(--panel-2); border: 1px solid var(--line); border-radius: 6px;
  color: var(--text); font-family: var(--body); font-size: 14px; padding: 12px 14px; resize: none;
  height: 46px; max-height: 110px; outline: none; transition: border-color .3s;
}
.chat-input textarea:focus { border-color: rgba(212,175,55,.6); }
.chat-send {
  flex: 0 0 52px; height: 46px; border-radius: 6px; border: 1px solid var(--gold);
  background: rgba(212,175,55,.12); color: var(--gold); cursor: pointer; transition: all .3s;
  display: flex; align-items: center; justify-content: center;
}
.chat-send:hover:not(:disabled) { background: var(--gold); color: #141414; }
.chat-send:disabled { opacity: .35; cursor: default; }

.chat-side { display: flex; flex-direction: column; gap: 16px; }
.side-card { border: 1px solid var(--line); border-radius: 6px; background: var(--panel); padding: 18px; }
.side-card h4 { font-family: var(--slab); font-weight: 400; font-size: 12px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold-dim); margin-bottom: 12px; }
.sugg {
  display: block; width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  color: var(--text-dim); font-size: 13px; padding: 7px 0; border-bottom: 1px dashed #232323;
  transition: color .25s;
}
.sugg:last-child { border-bottom: none; }
.sugg:hover { color: var(--glow); }
.human-btn {
  width: 100%; margin-top: 4px;
}
.human-note { color: var(--text-faint); font-size: 12px; margin-top: 10px; line-height: 1.5; }

/* ---------- act III report ---------- */

.report-hero { text-align: center; max-width: 760px; margin: 0 auto 30px; }
.arch-card {
  margin: 0 auto 40px; max-width: 420px; position: relative;
  border: 1px solid rgba(212,175,55,.5); border-radius: 8px; overflow: hidden;
  box-shadow: 0 40px 90px -40px rgba(212,175,55,.35);
}
.arch-card img { width: 100%; display: block; aspect-ratio: 4/4.6; object-fit: cover; }
.arch-card .arch-veil {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; text-align: center;
  background: linear-gradient(185deg, transparent 40%, rgba(10,10,10,.92)); padding: 24px;
}
.arch-card .arch-kind { font-family: var(--slab); font-size: 11px; letter-spacing: 4px; color: var(--gold); text-transform: uppercase; }
.arch-card .arch-name { font-family: var(--serif); font-size: 30px; color: #fff; margin-top: 6px; }
.arch-card .arch-line { color: var(--text-dim); font-size: 13.5px; margin-top: 8px; max-width: 300px; }

.narrative { max-width: 680px; margin: 0 auto 54px; font-size: 16.5px; line-height: 1.85; color: var(--text); }
.narrative p + p { margin-top: 16px; }

.rec-card {
  border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(165deg, var(--panel-2), var(--panel));
  padding: 30px; margin-bottom: 22px; position: relative; overflow: hidden;
}
.rec-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), transparent 65%);
}
.rec-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; flex-wrap: wrap; }
.rec-head h3 { font-family: var(--serif); font-weight: 400; font-size: 22px; color: var(--heading); max-width: 560px; }
.rec-code {
  font-family: var(--slab); font-size: 11px; letter-spacing: 2px; color: var(--gold);
  border: 1px solid rgba(212,175,55,.4); border-radius: 3px; padding: 4px 10px; white-space: nowrap;
}
.rec-reason { color: var(--text-dim); font-size: 14.5px; line-height: 1.65; margin: 12px 0 20px; }
.rec-why { color: var(--glow); font-size: 13px; font-style: italic; margin: -12px 0 18px; }
.rec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 6px; }
.rec-block h5 { font-family: var(--slab); font-weight: 400; font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--gold-dim); margin-bottom: 10px; }
.class-row { border-left: 2px solid rgba(212,175,55,.4); padding: 2px 0 2px 14px; margin-bottom: 12px; }
.class-row .d { font-size: 14.5px; color: var(--heading); font-family: var(--slab); }
.class-row .m { font-size: 12.5px; color: var(--text-dim); margin-top: 2px; }
.class-row .m b { color: var(--gold-dim); font-weight: 400; }
.price-row { display: flex; flex-wrap: wrap; gap: 8px; }
.price-chip {
  border: 1px solid var(--line); border-radius: 3px; padding: 8px 12px; font-size: 12.5px; color: var(--text-dim);
}
.price-chip b { color: var(--glow); font-weight: 400; display: block; font-size: 14px; margin-top: 2px; }
.price-chip.gold { border-color: rgba(212,175,55,.5); }
.rec-ctas { display: flex; gap: 14px; margin-top: 24px; flex-wrap: wrap; align-items: center; }
.pick-btn {
  background: none; border: 1px dashed rgba(212,175,55,.5); color: var(--gold-dim); cursor: pointer;
  padding: 10px 20px; border-radius: 3px; font-family: var(--slab); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  transition: all .3s;
}
.pick-btn:hover { color: var(--glow); border-color: var(--glow); }
.pick-btn.picked { border-style: solid; border-color: var(--gold); background: rgba(212,175,55,.14); color: var(--glow); }

.lane-wrap { margin: 60px 0; }
.lane-steps { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 18px; }
.lane-step {
  border: 1px solid var(--line); border-radius: 999px; padding: 9px 18px; font-size: 13px; color: var(--text-dim);
  font-family: var(--slab); position: relative;
}
.lane-step.first { border-color: var(--gold); color: var(--glow); background: rgba(212,175,55,.1); box-shadow: 0 0 20px -6px rgba(212,175,55,.5); }
.lane-arrow { color: var(--gold-dim); font-size: 15px; }
.tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 18px; }
.tip { border: 1px solid var(--line); border-radius: 6px; padding: 20px; background: var(--panel); font-size: 13.5px; color: var(--text-dim); line-height: 1.6; }
.tip .n { font-family: var(--serif); color: var(--gold); font-size: 18px; display: block; margin-bottom: 8px; }
.report-close {
  text-align: center; max-width: 560px; margin: 54px auto 0; font-family: var(--serif);
  font-size: 20px; color: var(--glow); line-height: 1.6;
}
.skeleton { position: relative; overflow: hidden; background: var(--panel); border-radius: 6px; }
.skeleton::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(212,175,55,.08) 50%, transparent 70%);
  animation: shimmer 1.6s infinite;
}
@keyframes shimmer { from { transform: translateX(-100%);} to { transform: translateX(100%);} }

/* ---------- act IV connect ---------- */

.connect-shell { display: grid; grid-template-columns: .9fr 1.1fr; gap: 50px; align-items: start; }
.form-card { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); padding: 34px; }
.frow { margin-bottom: 20px; }
.frow label { display: block; font-family: var(--slab); font-size: 11.5px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold-dim); margin-bottom: 8px; }
.frow input[type=text], .frow input[type=email], .frow input[type=tel] {
  width: 100%; background: var(--ink-2); border: 1px solid var(--line); border-radius: 4px;
  color: var(--text); font-family: var(--body); font-size: 15px; padding: 13px 15px; outline: none; transition: border-color .3s;
}
.frow input:focus { border-color: rgba(212,175,55,.6); }
.frow.hp { position: absolute; left: -6000px; top: -6000px; opacity: 0; height: 0; overflow: hidden; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; margin-bottom: 16px; font-size: 13.5px; color: var(--text-dim); line-height: 1.55; }
.check input { margin-top: 3px; accent-color: var(--gold); width: 16px; height: 16px; flex: 0 0 auto; }
.check a { color: var(--gold-dim); }
.connect-summary { border: 1px solid rgba(212,175,55,.3); border-radius: 8px; padding: 26px; background: linear-gradient(160deg, #17130a, var(--panel)); }
.connect-summary h3 { font-family: var(--serif); font-weight: 400; color: var(--glow); font-size: 20px; margin-bottom: 8px; }
.mini-line { display: flex; justify-content: space-between; gap: 14px; font-size: 13.5px; padding: 9px 0; border-bottom: 1px dashed #242017; color: var(--text-dim); }
.mini-line:last-child { border-bottom: none; }
.mini-line b { color: var(--text); font-weight: 400; text-align: right; }
.send-note { color: var(--text-faint); font-size: 12px; margin-top: 14px; line-height: 1.55; }

.success-check {
  width: 84px; height: 84px; margin: 0 auto 26px; border-radius: 50%;
  border: 1px solid var(--gold); color: var(--gold); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 40px -6px rgba(212,175,55,.5); animation: pop .7s var(--ease);
}
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
.cta-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 40px 0; }
.cta-tile {
  border: 1px solid var(--line); border-radius: 8px; padding: 26px 22px; text-decoration: none;
  background: linear-gradient(165deg, var(--panel-2), var(--panel)); transition: all .35s var(--ease); display: block;
}
.cta-tile:hover { transform: translateY(-4px); border-color: rgba(212,175,55,.5); box-shadow: 0 20px 50px -20px rgba(212,175,55,.3); }
.cta-tile svg { width: 26px; height: 26px; stroke: var(--gold); fill: none; stroke-width: 1.4; margin-bottom: 14px; }
.cta-tile h4 { font-family: var(--slab); font-weight: 400; color: var(--heading); font-size: 16px; margin-bottom: 8px; }
.cta-tile p { color: var(--text-dim); font-size: 13px; line-height: 1.55; }

footer.aic-foot {
  position: relative; z-index: 2; border-top: 1px solid var(--line); padding: 30px 0 40px;
  color: var(--text-faint); font-size: 12.5px; text-align: center; line-height: 1.8;
}
footer.aic-foot a { color: var(--gold-dim); text-decoration: none; }

/* toast */
#toast {
  position: fixed; bottom: 26px; left: 50%; transform: translate(-50%, 20px); z-index: 100;
  background: var(--panel-2); border: 1px solid rgba(212,175,55,.5); color: var(--text);
  padding: 13px 26px; border-radius: 4px; font-size: 13.5px; opacity: 0; pointer-events: none;
  transition: all .4s var(--ease); max-width: 90vw;
}
#toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  #act-hero.active { padding-top: 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .chat-shell { grid-template-columns: 1fr; }
  .chat-side { flex-direction: row; flex-wrap: wrap; }
  .chat-side .side-card { flex: 1 1 260px; }
  .rhythm-grid { grid-template-columns: 1fr; gap: 30px; }
  .connect-shell { grid-template-columns: 1fr; }
  .rec-grid { grid-template-columns: 1fr; }
  .tips { grid-template-columns: 1fr; }
  .cta-trio { grid-template-columns: 1fr; }
  .chat-box { height: 62vh; }
}
@media (max-width: 620px) {
  .act { padding: 64px 0 90px; }
  .cards-fasc { grid-template-columns: repeat(2, 1fr); }
  .avail-table td, .avail-table th { width: 40px; height: 38px; }
  .hero-ctas .btn { width: 100%; }
}

/* ---------- about you ---------- */
.you-name {
  width: 100%; max-width: 380px; background: var(--ink-2); border: 1px solid var(--line); border-radius: 4px;
  color: var(--text); font-family: var(--body); font-size: 17px; padding: 15px 16px; outline: none;
  transition: border-color .3s;
}
.you-name:focus { border-color: rgba(212,175,55,.6); }

/* ---------- reveal bar under chat ---------- */
.chat-reveal {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 16px; padding: 16px 18px; border: 1px solid rgba(212,175,55,.4); border-radius: 8px;
  background: linear-gradient(160deg, #17130a, var(--panel));
}
.chat-reveal span { color: var(--text-dim); font-size: 13px; font-family: var(--slab); }

/* ---------- visual course cards under chat replies ---------- */
.course-cards { display: flex; flex-direction: column; gap: 10px; margin: 10px 0 4px; max-width: 480px; }
.course-card {
  display: flex; gap: 12px; align-items: stretch; text-decoration: none;
  border: 1px solid rgba(212,175,55,.4); border-radius: 8px; overflow: hidden;
  background: var(--panel-2); transition: transform .3s var(--ease), border-color .3s;
}
.course-card:hover { transform: translateY(-2px); border-color: var(--gold); }
.course-card img { width: 108px; object-fit: cover; display: block; flex: 0 0 108px; }
.course-card .cc-body { padding: 10px 14px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.course-card .cc-body b { color: var(--glow); font-weight: 400; font-size: 13.5px; font-family: var(--slab); }
.course-card .cc-next { color: var(--text-dim); font-size: 12.5px; }
.course-card .cc-price { color: var(--gold); font-size: 12.5px; font-family: var(--slab); }
.course-card .cc-link { color: var(--gold-dim); font-size: 12px; margin-top: 2px; }
.course-card .cc-link:hover { color: var(--glow); }
.chat-col { display: flex; flex-direction: column; min-width: 0; }

/* ---------- top bar: brand + progress + theme ---------- */
#topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; gap: 22px;
  padding: 10px 22px;
  background: linear-gradient(180deg, rgba(10,10,10,.94), rgba(10,10,10,.78) 70%, transparent);
  backdrop-filter: blur(8px);
}
body.light #topbar { background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.8) 70%, transparent); }
.brand { display: flex; flex-direction: row; align-items: center; gap: 10px; text-decoration: none; line-height: 1.2; }
.brand-logo { height: 26px; width: auto; display: block; }
.brand-light { display: none; }
body.light .brand-light { display: block; }
body.light .brand-dark { display: none; }
.brand-text small { font-size: 9.5px; line-height: 1.5; letter-spacing: 1.4px; color: var(--text-faint); text-transform: uppercase; }
#theme-toggle { margin-left: auto; }
@media (max-width: 760px) { #progress { display: none !important; } }
@media (max-width: 560px) { .brand-text { display: none; } }
#progress { flex: 1; display: flex; padding: 8px 4px 4px; }
#theme-toggle {
  background: none; border: 1px solid var(--line); color: var(--gold-dim); border-radius: 999px;
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: all .3s;
}
#theme-toggle:hover { border-color: var(--gold); color: var(--gold); }
.ico-moon { display: none; }
body.light .ico-moon { display: block; }
body.light .ico-sun { display: none; }

/* ---------- photographic background (subtle; fades further on hover) ---------- */
#bg-canvas { opacity: .55; }
body::before {
  content: ''; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: url('/aic/assets2/bg_dark.jpg') center / cover no-repeat;
  opacity: .15; filter: saturate(.9);
}
body.light::before {
  background-image: url('/aic/assets2/bg_light.jpg');
  opacity: .12;
}

/* glow around the cursor that locally reveals the background */
#bg-glow {
  --mx: 50vw; --my: 50vh;
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: url('/aic/assets2/bg_dark.jpg') center / cover no-repeat;
  opacity: 0; transition: opacity .6s var(--ease); filter: saturate(1.05);
  -webkit-mask-image: radial-gradient(circle 300px at var(--mx) var(--my), rgba(0,0,0,.8) 0%, rgba(0,0,0,.35) 42%, transparent 72%);
  mask-image: radial-gradient(circle 300px at var(--mx) var(--my), rgba(0,0,0,.8) 0%, rgba(0,0,0,.35) 42%, transparent 72%);
}
body.light #bg-glow { background-image: url('/aic/assets2/bg_light.jpg'); }
body:hover #bg-glow { opacity: .38; }

/* idle: an organic diagonal band drifts across, revealing the background */
#bg-band {
  --mx: 50vw; --my: 50vh;
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: url('/aic/assets2/bg_dark.jpg') center / cover no-repeat;
  opacity: 0; transition: opacity 1.8s var(--ease); filter: saturate(1.05);
  -webkit-mask-image: radial-gradient(circle 480px at var(--mx) var(--my), rgba(0,0,0,.85) 0%, rgba(0,0,0,.4) 45%, transparent 75%);
  mask-image: radial-gradient(circle 480px at var(--mx) var(--my), rgba(0,0,0,.85) 0%, rgba(0,0,0,.4) 45%, transparent 75%);
}
body.light #bg-band { background-image: url('/aic/assets2/bg_light.jpg'); }
body.idle #bg-band { opacity: .5; }
body.idle #bg-glow { opacity: 0 !important; }

/* ---------- light theme ---------- */
body.light {
  --ink: #f6f3ec; --ink-2: #efe9dd; --panel: #ffffff; --panel-2: #faf7f0;
  --line: #e3dac6; --gold: #9a7b1f; --gold-dim: #8a734b; --glow: #6e5716;
  --gem: #7a1a1a; --text: #2a2620; --text-dim: #5c554a; --text-faint: #8b8272;
  --heading: #1d1810;
}
body.light #bg-canvas { opacity: .35; }
body.light .pcard { background: linear-gradient(160deg, var(--panel-2), var(--panel)); }
body.light .pcard.sel { background: linear-gradient(160deg, #f4ecd4, var(--panel)); }
body.light .fcard { background: var(--panel); }
body.light .chat-box { background: var(--panel); }
body.light .msg.jewel .bubble { background: var(--panel-2); }
body.light .msg.user .bubble { background: #f1e8cf; border-color: #d9c68a; color: #4a3c14; }
body.light .status-row, body.light .msg .status-row { background: var(--panel-2); }
body.light .chat-input { background: var(--ink-2); }
body.light .chat-reveal, body.light .human-cta { background: linear-gradient(160deg, #f3ecd8, var(--panel)); }
body.light .rec-card { background: linear-gradient(165deg, var(--panel-2), var(--panel)); }
body.light .arch-card { box-shadow: 0 40px 90px -40px rgba(122,98,31,.4); }
body.light .tip { background: var(--panel); }
body.light .side-card { background: var(--panel); }
body.light .form-card, body.light .connect-summary { background: var(--panel); }
body.light .connect-summary { background: linear-gradient(160deg, #f4eedd, var(--panel)); }
body.light .avail-table td.off { background: #eee9df; }
body.light .avail-table th, body.light .avail-table td.rowhead { background: var(--panel-2); }
body.light .sugg { border-bottom-color: #e6ddc8; }
body.light .vignette {
  background:
    radial-gradient(1200px 700px at 70% -10%, rgba(154,123,31,.08), transparent 60%),
    radial-gradient(900px 600px at 10% 110%, rgba(122,26,26,.05), transparent 60%);
}
body.light .btn-gold { background: linear-gradient(135deg, #b28c22, #93731c 55%, #74590f); color: #fff; font-weight: 500; }
body.light .tanja-card { box-shadow: 0 30px 80px -30px rgba(90,70,20,.35); }
body.light .hero-badge { border-color: rgba(154,123,31,.5); }
body.light .heat-legend { background: linear-gradient(160deg, #f3ecd8, var(--panel)); border-color: rgba(154,123,31,.4); }

/* starting soon rows as links */
.mini-line-link { text-decoration: none; display: flex; justify-content: space-between; gap: 14px;
  padding: 9px 0; border-bottom: 1px dashed #242017; color: var(--text-dim); font-size: 13.5px;
  transition: color .25s; }
body.light .mini-line-link { border-bottom-color: #e6ddc8; }
.mini-line-link:hover { color: var(--glow); }
.mini-line-link:hover b { color: var(--gold); }


/* ---------- personal why-blocks + consultation strip ---------- */
.combo-block {
  max-width: 680px; margin: -26px auto 44px; padding: 14px 18px;
  border-left: 4px solid var(--gold); background: rgba(212,175,55,.07);
  font-size: 14px; line-height: 1.65; color: var(--text-dim); border-radius: 0 6px 6px 0;
}
.combo-block b { color: var(--glow); font-weight: 500; }
.rec-why b { color: var(--gold); font-weight: 400; }
.your-words {
  max-width: 720px; margin: -14px auto 46px; padding: 16px 18px;
  border: 1px dashed rgba(212,175,55,.45); border-radius: 8px;
}
.your-words .yw-head {
  font-family: var(--slab); font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--gold-dim); margin-bottom: 10px;
}
.yw-chip {
  display: inline-block; margin: 3px 6px 3px 0; padding: 5px 12px; border-radius: 999px;
  background: rgba(212,175,55,.12); border: 1px solid rgba(212,175,55,.35);
  color: var(--glow); font-size: 12.5px; font-family: var(--slab);
}
.yw-chip:last-child { font-style: italic; background: transparent; border-style: dashed; color: var(--text-dim); }

.lane-note { color: var(--gold-dim); font-size: 12.5px; margin-top: 12px; max-width: 640px; line-height: 1.5; }

/* ---------- T234: cinematic full-width hero video (owner directive 2026-10-29) ---------- */
.hero-grid { grid-template-columns: 1fr !important; }
.tanja-card { max-width: 1080px; width: 100%; margin: 4px auto 0; }
.tanja-card .video-slot { aspect-ratio: 16/9; }
.tanja-card .video-slot .unmute {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 9px;
  background: rgba(10,10,12,.72); border: 1px solid rgba(212,175,55,.55); border-radius: 999px;
  padding: 10px 20px; color: #f9e3ac; font-family: var(--slab); font-size: 12px; letter-spacing: 2px;
  cursor: pointer; backdrop-filter: blur(6px); z-index: 3;
}
.tanja-card .video-slot .unmute:hover { background: rgba(212,175,55,.25); }
