/* aiLayers page (/ailayers/), part 2 of 2: everything below the hero. Linked in the markup right after the hero
   (site/src/pages/ailayers.js), so it does not block the first paint; tokens + hero live in ailayers.css. */
/* =====================================================================
   2. THE SHIFT ★1: search box → chat box (light, the ad's world)
   ===================================================================== */
.ai-shift { padding: 0; overflow: clip; }
.ai-shift__pin { min-height: calc(100vh - var(--hdr-h-s)); display: flex; align-items: center; padding-block: clamp(56px, 6vw, 96px); }
.ai-shift__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px clamp(32px, 5vw, 88px); align-items: center; }
.ai-shift__copy .ai-h2 { margin-top: 20px; max-width: 13ch; }
.ai-beats { margin-top: 40px; display: grid; gap: 4px; max-width: 30rem; }
.ai-beat { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--ai-hair);
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); line-height: 1.4; color: var(--ai-ink); opacity: .38; transition: opacity .6s var(--ai-ease); }
.ai-beat:last-child { border-bottom: 1px solid var(--ai-hair); }
.ai-beat.is-on { opacity: 1; }
.ai-beat__n { font: 500 12px/1.9 var(--ai-mono); letter-spacing: .1em; color: var(--ai-ink-mid); }
.ai-beat.is-on .ai-beat__n { color: var(--ai-cyan-ink); }
.ai-shift__stage { position: relative; display: flex; justify-content: flex-end; }
.ai-shift__scene { flex: 1 1 auto; max-width: 620px; min-width: 0; }
.ai-shift__person { position: absolute; left: auto; right: calc(min(100%, 620px) - 28px); bottom: -40px; width: clamp(140px, 12.5vw, 184px); z-index: 2; pointer-events: none; }
.ai-shift__person .person__stage { padding-top: 0; }
.ai-shift__person .person__img { border-radius: 0; -webkit-mask: linear-gradient(#000 72%, transparent); mask: linear-gradient(#000 72%, transparent); }
.ai-shift__person .person__label { left: 4px; right: auto; bottom: 34%; }
.ai-replay { position: absolute; right: 12px; top: 64px; z-index: 5; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border-radius: 999px;
  background: rgba(255,255,255,.92); box-shadow: 0 1px 0 rgba(14,20,51,.06), 0 8px 24px -10px rgba(14,20,51,.35); font: 500 14px/1 var(--ai-font); color: var(--ai-ink); }
.ai-replay svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* the scene window (white UI panel, soft navy shadow) */
.sc { --sc-h: 600px; --pad: 28px; position: relative; width: min(100%, 620px); height: var(--sc-h); border-radius: 22px; background: rgba(255,255,255,.96);
  box-shadow: 0 0 0 1px rgba(14,20,51,.07), 0 40px 90px -36px rgba(14,30,80,.38), 0 12px 30px -18px rgba(14,30,80,.18);
  font: 400 15px/1.45 var(--ai-font); color: var(--ai-ink); overflow: hidden; }
.sc__bar { height: 54px; display: flex; align-items: center; gap: 14px; padding: 0 18px; border-bottom: 1px solid var(--ai-hair); }
.sc__dots { display: flex; gap: 6px; } .sc__dots i { width: 9px; height: 9px; border-radius: 50%; background: #DADDE6; }
.sc__title { position: relative; flex: 1; height: 20px; font-weight: 500; font-size: 15px; }
.sc__title > span { position: absolute; left: 0; top: 0; white-space: nowrap; }
.sc__t2 { opacity: 0; }
.sc__pill { font: 500 10px/1 var(--ai-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ai-ink-mid); padding: 7px 10px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--ai-hair); opacity: 0; }
.sc__body { position: absolute; left: 0; right: 0; top: 54px; bottom: 0; }
.sc__tag { position: absolute; right: 16px; bottom: 14px; z-index: 4; font: 500 10px/1 var(--ai-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ai-ink-mid);
  padding: 6px 9px; border-radius: 999px; background: rgba(255,255,255,.9); box-shadow: inset 0 0 0 1px var(--ai-hair); }
.sc-empty { position: absolute; left: 50%; top: 42%; width: 64px; margin-left: -32px; opacity: 0; filter: saturate(.8); }
.sc-empty svg { width: 100%; height: auto; display: block; opacity: .22; }
/* "ten links" */
.sc-results { position: absolute; left: var(--pad); right: var(--pad); top: 128px; display: grid; gap: 22px; }
.sc-results li { display: grid; gap: 7px; }
.sc-results i { display: block; height: 8px; border-radius: 4px; background: #E7E9F0; width: 92%; }
.sc-results i:first-child { width: 46%; height: 10px; background: rgba(11,110,158,.28); }
.sc-results i:last-child { width: 70%; }
/* the box: search pill → chat composer */
.sc-box { position: absolute; left: var(--pad); right: var(--pad); top: 36px; height: 58px; border-radius: 29px; z-index: 3; background: #fff;
  box-shadow: 0 0 0 1px rgba(14,20,51,.12), 0 10px 28px -14px rgba(14,30,80,.35); display: flex; align-items: flex-start; gap: 12px; padding: 17px 18px; }
.sc-box__ic { flex: none; width: 22px; height: 22px; }
.sc-box__ic--search { fill: none; stroke: var(--ai-ink-mid); stroke-width: 2; stroke-linecap: round; }
.sc-box__ic--ai { position: absolute; left: 18px; top: 17px; opacity: 0; }
.sc-box__ic--ai svg { width: 22px; height: auto; display: block; }
.sc-box__text { position: relative; flex: 1; min-width: 0; font-size: 16px; line-height: 24px; color: var(--ai-ink); white-space: nowrap; overflow: hidden; margin-right: 44px; }
.sc-type--p, .sc-ph { display: none; }
.sc-ph { color: #8C93A6; }
.sc-caret { display: inline-block; width: 2px; height: 20px; vertical-align: -4px; margin-left: 1px; background: #0B86C6; animation: m-caret 1s steps(1) infinite; }
.sc-send { position: absolute; right: 12px; bottom: 12px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #E7E9F0; opacity: 0; }
.sc-send svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sc-sugg { position: absolute; left: var(--pad); right: var(--pad); top: 102px; z-index: 2; background: #fff; border-radius: 18px; padding: 8px 0;
  box-shadow: 0 0 0 1px rgba(14,20,51,.08), 0 20px 40px -20px rgba(14,30,80,.35); opacity: 0; }
.sc-sugg li { display: flex; align-items: center; gap: 12px; padding: 9px 18px; color: #3A4258; font-size: 15px; }
.sc-sugg b { color: var(--ai-ink); font-weight: 600; }
.sc-sugg svg { width: 16px; height: 16px; flex: none; fill: none; stroke: #8C93A6; stroke-width: 2; stroke-linecap: round; }
/* the thread */
.sc-thread { position: absolute; left: var(--pad); right: var(--pad); top: 22px; display: grid; gap: 16px; }
.sc-user { justify-self: end; max-width: 86%; opacity: 0; }
.sc-user span { display: block; padding: 11px 15px; border-radius: 16px 16px 4px 16px; background: #EEF1F7; font-size: 14.5px; }
.sc-ans { display: grid; gap: 10px; }
.sc-ans__who { display: flex; align-items: center; gap: 10px; font: 500 10.5px/1 var(--ai-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ai-ink-mid); opacity: 0; }
.sc-ans__dot { width: 22px; height: 22px; border-radius: 50%; background: conic-gradient(from 200deg, #E763A4, #8B529F, #5E5C9C, #009ADA, #E763A4); -webkit-mask: radial-gradient(circle, transparent 5px, #000 5.5px); mask: radial-gradient(circle, transparent 5px, #000 5.5px); }
.sc-think { display: inline-flex; gap: 4px; margin-left: 2px; opacity: 0; }
.sc-think i { width: 5px; height: 5px; border-radius: 50%; background: #9AA1B2; animation: ai-think 1s ease-in-out infinite; }
.sc-think i:nth-child(2) { animation-delay: .15s; } .sc-think i:nth-child(3) { animation-delay: .3s; }
.sc-ans__intro { font-size: 15px; color: #3A4258; opacity: 0; }
.sc-rows { display: grid; gap: 8px; }
.sc-row { position: relative; display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; padding: 11px 14px; border-radius: 14px; background: #fff;
  box-shadow: inset 0 0 0 1px var(--ai-hair); font-size: 14px; line-height: 1.4; color: #3A4258; opacity: 0; }
.sc-row strong { color: var(--ai-ink); font-weight: 600; }
.sc-row__n { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: #F0F2F7; font: 500 12px/1 var(--ai-mono); color: var(--ai-ink-mid); }
.sc-row--1 .sc-row__n { background: rgba(0,154,218,.12); color: var(--ai-cyan-ink); }
.sc-ring { position: absolute; inset: -1px; border-radius: 15px; padding: 1.5px; background: var(--ai-grad); opacity: 0; pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.sc-row--1::after { content: ""; position: absolute; inset: -14px; z-index: -1; border-radius: 26px; background: radial-gradient(closest-side, rgba(139,82,159,.22), rgba(0,154,218,.12) 60%, transparent); opacity: var(--glow, 0); }
.sc-badge { z-index: 2; position: absolute; right: 10px; top: -11px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px 5px 7px; border-radius: 999px;
  background: var(--ai-grad); color: #fff; font: 600 10px/1 var(--ai-mono); letter-spacing: .1em; text-transform: uppercase; box-shadow: 0 6px 16px -6px rgba(94,92,156,.7); opacity: 0; }
.sc-badge svg { width: 11px; height: 11px; fill: #fff; }
.sc-row--you { background: transparent; box-shadow: inset 0 0 0 1px rgba(14,20,51,.16); border: 0; color: #9AA1B2; }
.sc-row--you { background-image: repeating-linear-gradient(90deg, transparent 0 6px, rgba(255,255,255,0) 6px 12px); outline: 1.5px dashed rgba(14,20,51,.18); outline-offset: -1.5px; box-shadow: none; }
.sc-row--you strong { color: #8C93A6; font-weight: 600; }
.sc-row--you .sc-row__n { background: transparent; box-shadow: inset 0 0 0 1px rgba(14,20,51,.16); }

/* =====================================================================
   3. VISIBILITY: audit + fixes readout
   ===================================================================== */
.ai-vis { position: relative; isolation: isolate; }
.ai-vis::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .32;
  background: url("../../../../digilayers-2026-media-1/assets/bg/bg-ai-v2-bloom-light-desktop.webp") right bottom / cover no-repeat;
  -webkit-mask: linear-gradient(180deg, transparent, #000 40%); mask: linear-gradient(180deg, transparent, #000 40%); }
.ai-vis__head { display: grid; gap: 18px; max-width: 760px; }
.ai-vis__head .ai-h2 { max-width: 15ch; }
.ai-readout { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr) 96px minmax(0, 1fr); align-items: stretch;
  background: rgba(255,255,255,.88); border-radius: 22px; padding: clamp(24px, 3vw, 40px);
  box-shadow: 0 0 0 1px rgba(14,20,51,.07), 0 40px 80px -40px rgba(14,30,80,.3); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.ai-readout__h { display: flex; align-items: center; gap: 10px; font: 500 12px/1 var(--ai-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ai-ink-mid); margin-bottom: 14px; }
.ai-readout ul { list-style: none; padding: 0; }
.ai-readout li { display: flex; align-items: baseline; gap: 14px; padding: 16px 0; border-top: 1px solid var(--ai-hair); font-size: clamp(1rem, .96rem + .25vw, 1.1875rem); line-height: 1.4; }
.ai-readout__mk { flex: none; font: 500 11px/1 var(--ai-mono); letter-spacing: .08em; color: #5E5C9C; }
.ai-readout__arrow { display: grid; place-items: center; }
.ai-readout__arrow svg { width: 64px; height: 24px; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.ai-readout__tick { flex: none; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--ai-grad); align-self: center; transition: opacity .5s var(--ai-ease), transform .5s var(--ease-pop); }
.ai-readout__tick svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.ai-readout__fx { color: var(--ai-ink); text-decoration: line-through; text-decoration-color: transparent; transition: color .6s var(--ai-ease), text-decoration-color .6s var(--ai-ease); }
/* pre-state (JS only): fixes start as grey strike lines and become ink */
.m-js .ai-readout:not(.is-in) .ai-readout__fx { color: #A2A8B8; text-decoration-color: #A2A8B8; }
.m-js .ai-readout:not(.is-in) .ai-readout__tick { opacity: 0; transform: scale(.4); }
.ai-readout.is-in li:nth-child(2) .ai-readout__fx, .ai-readout.is-in li:nth-child(2) .ai-readout__tick { transition-delay: .12s; }
.ai-readout.is-in li:nth-child(3) .ai-readout__fx, .ai-readout.is-in li:nth-child(3) .ai-readout__tick { transition-delay: .24s; }
.ai-readout__col--fix li { transition-delay: inherit; }
.ai-vis__foot { margin-top: clamp(36px, 4vw, 56px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px 48px; align-items: center; }
.ai-straight { font-size: clamp(1.25rem, 1.1rem + .7vw, 1.75rem); line-height: 1.3; letter-spacing: -0.02em; max-width: 30ch; }
.ai-straight__k { font-weight: 600; background: var(--ai-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* =====================================================================
   4. THE HELPERS: node diagram + panels (navy)
   ===================================================================== */
.ai-helpers { position: relative; isolation: isolate; overflow: clip; background: var(--ai-navy); color: var(--ai-on); }
.ai-helpers__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(38% 50% at 25% 60%, rgba(0,154,218,.16), transparent 70%), radial-gradient(30% 40% at 15% 30%, rgba(139,82,159,.14), transparent 70%),
    linear-gradient(180deg, #05070D, #0A0F1E); }
.ai-helpers__bg::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, rgba(150,170,215,.22) 1px, transparent 1.3px); background-size: 22px 22px;
  -webkit-mask: radial-gradient(40% 50% at 28% 58%, #000, transparent 80%); mask: radial-gradient(40% 50% at 28% 58%, #000, transparent 80%); }
.ai-helpers__head { display: grid; gap: 18px; max-width: 820px; }
.ai-helpers__head .ai-h2 { max-width: 16ch; }
.ai-glyph { display: inline-block; width: .9em; vertical-align: -0.08em; margin: 0 .04em; line-height: 0; }
.ai-glyph svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 0 18px rgba(139,82,159,.45)); }
.ai-helpers__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 40px clamp(32px, 5vw, 80px); align-items: start; }
.ai-helpers__left .ai-orbit { margin-top: clamp(56px, 6vw, 88px); }
.ai-helpers__side { padding-top: clamp(120px, 12vw, 200px); position: relative; z-index: 1; }

/* orbit */
.ai-orbit { position: relative; width: 100%; max-width: 500px; aspect-ratio: 1; margin-inline: auto; }
.ai-orbit__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ai-orbit__spin { transform-origin: 240px 240px; animation: ai-spin 10s linear infinite; }
.ai-orbit__ring { fill: none; stroke: rgba(120,160,220,.26); stroke-width: 1; stroke-dasharray: 2 6; }
.ai-orbit__ring--2 { stroke: rgba(139,82,159,.22); stroke-dasharray: 1 10; }
.ai-orbit__sat { fill: #009ADA; filter: drop-shadow(0 0 4px #009ADA); }
.ai-orbit__sat--2 { fill: #E763A4; filter: drop-shadow(0 0 4px #E763A4); }
.ai-orbit__line { fill: none; stroke: url(#orb-g); stroke-width: 1; opacity: .32; transition: opacity .5s var(--ai-ease); }
.ai-orbit__line.is-on { opacity: .9; }
.ai-orbit__pulse { fill: none; stroke: #BFE6FF; stroke-width: 2; stroke-linecap: round; stroke-dasharray: .1 .9; stroke-dashoffset: 1; opacity: .8; animation: ai-pulseline 3s var(--ai-ease) infinite; }
.ai-orbit__pulse[data-n="1"] { animation-delay: .75s; } .ai-orbit__pulse[data-n="2"] { animation-delay: 1.5s; } .ai-orbit__pulse[data-n="3"] { animation-delay: 2.25s; }
.ai-orbit__up { fill: none; stroke: rgba(160,180,220,.22); stroke-width: 1; stroke-dasharray: 2 5; }
.ai-orbit__audit { position: absolute; left: 50%; top: 0; transform: translate(-50%, -100%); padding-bottom: 6px; font: 500 10px/1 var(--ai-mono); letter-spacing: .14em; text-transform: uppercase; color: #6E7A90; white-space: nowrap; }
.ai-orbit__site { position: absolute; left: 50%; top: 50%; width: 31%; transform: translate(-50%, -50%); padding: 10px 12px 14px; border-radius: 14px; display: grid; gap: 7px;
  background: linear-gradient(180deg, rgba(22,32,58,.95), rgba(10,15,30,.95)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), 0 0 50px -10px rgba(0,154,218,.55); }
.ai-orbit__bar { display: flex; gap: 4px; } .ai-orbit__bar i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.22); }
.ai-orbit__site b { font: 500 12px/1 var(--ai-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ai-on); }
.ai-orbit__site .l { display: block; height: 6px; border-radius: 3px; background: rgba(255,255,255,.12); }
.ai-orbit__site .l.s { width: 60%; }
.ai-orbit__node { position: absolute; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: radial-gradient(circle at 35% 30%, #16294A, #070B14 72%); box-shadow: inset 0 0 0 1px rgba(0,154,218,.35), 0 0 22px -6px rgba(0,154,218,.5);
  transition: transform .5s var(--ai-ease), box-shadow .5s var(--ai-ease); color: #E8EEF8; --ic-ac: url(#ail-grad); }
.ai-orbit__node em { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); margin-top: 10px; font: 500 10px/1 var(--ai-mono); font-style: normal; letter-spacing: .12em; text-transform: uppercase; color: #7F8BA0; white-space: nowrap; transition: color .4s; }
.ai-orbit__node.is-on { transform: translate(-50%, -50%) scale(1.12); box-shadow: inset 0 0 0 1px rgba(0,154,218,.8), 0 0 40px -2px rgba(0,154,218,.75), 0 0 80px -10px rgba(231,99,164,.45); }
.ai-orbit__node.is-on em { color: var(--ai-on); }

/* helper list (accordion; tabs-like on desktop, the orbit mirrors the open one) */
.ai-helper-list { list-style: none; padding: 0; border-bottom: 1px solid var(--ai-hair-d); }
.ai-helper { border-top: 1px solid var(--ai-hair-d); }
.ai-helper__h { font: inherit; letter-spacing: 0; }
.ai-helper__btn { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: center; text-align: left; padding: 20px 0; color: inherit; cursor: pointer; }
.ai-helper__btn .ai-hud { grid-column: 1; }
.ai-helper__t { grid-column: 1; font: 500 clamp(1.25rem, 1.1rem + .6vw, 1.625rem)/1.2 var(--ai-font); letter-spacing: -0.025em; transition: color .3s; }
.ai-helper__pm { grid-column: 2; grid-row: 1 / span 2; position: relative; width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.ai-helper__pm::before, .ai-helper__pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; margin: -.75px 0 0 -5.5px; background: currentColor; transition: transform .35s var(--ease-out); }
.ai-helper__pm::after { transform: rotate(90deg); }
.ai-helper.is-open .ai-helper__pm::after { transform: rotate(0); }
.ai-helper:not(.is-open) .ai-helper__btn:hover .ai-helper__t { color: #fff; }
.ai-helper:not(.is-open) .ai-helper__t { color: #B9C3D4; }
.ai-helper__in { padding: 0 0 26px; display: grid; gap: 16px; }
.ai-helper__line { font-size: 1.0625rem; line-height: 1.55; color: var(--ai-on-mid); max-width: 46ch; }
.ai-helper__list { list-style: none; padding: 0; display: grid; gap: 8px; margin-top: -6px; }
.ai-helper__list li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; color: var(--ai-on); font-size: 1rem; line-height: 1.45; }
.ai-helper__list .di { width: 20px; height: 20px; color: #E8EEF8; --ic-ac: url(#ail-grad); margin-top: 1px; }
.ai-helper__mock { position: relative; padding: 18px 18px 40px; border-radius: 16px; background: linear-gradient(180deg, rgba(18,26,48,.92), rgba(9,13,26,.92)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.ai-helper__mock .ai-tag { position: absolute; left: 14px; bottom: 12px; }
.ai-helpers__cta { margin-top: 32px; }

/* mocks */
.hm { font-size: 14.5px; line-height: 1.45; }
.hm--chat { display: grid; gap: 10px; }
.hm-q { justify-self: end; max-width: 80%; padding: 9px 13px; border-radius: 14px 14px 4px 14px; background: rgba(255,255,255,.1); color: var(--ai-on); }
.hm-a { display: flex; gap: 10px; align-items: flex-start; max-width: 88%; padding: 10px 13px; border-radius: 14px 14px 14px 4px; background: rgba(0,154,218,.10); box-shadow: inset 0 0 0 1px rgba(0,154,218,.28); color: var(--ai-on); }
.hm-a__ic { flex: none; width: 18px; margin-top: 2px; } .hm-a__ic svg { width: 100%; height: auto; display: block; }
.hm--draft { display: grid; gap: 9px; padding: 14px; border-radius: 12px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.hm-k { font: 500 10px/1 var(--ai-mono); letter-spacing: .14em; text-transform: uppercase; color: #8C97A8; }
.hm-t { font-weight: 500; font-size: 1.0625rem; color: var(--ai-on); letter-spacing: -0.01em; }
.hm--draft i { display: block; height: 7px; border-radius: 4px; background: rgba(255,255,255,.1); }
.hm--draft i.s { width: 55%; }
.hm--fix { list-style: none; padding: 0; display: grid; gap: 8px; }
.hm--fix li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px rgba(255,255,255,.07); color: var(--ai-on); }
.hm--fix b { font: 600 10px/1 var(--ai-mono); letter-spacing: .12em; text-transform: uppercase; padding: 5px 8px; border-radius: 999px; color: #fff; background: var(--ai-grad); transition: opacity .4s, transform .4s var(--ease-pop); }
.hm--fix.is-pre b { opacity: 0; transform: scale(.6); }
.hm--flow { display: flex; align-items: center; gap: 0; flex-wrap: nowrap; }
.hm-n { flex: none; padding: 9px 12px; border-radius: 10px; font-size: 13.5px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); color: var(--ai-on); white-space: nowrap; }
.hm-n--ai { box-shadow: inset 0 0 0 1px rgba(0,154,218,.5), 0 0 20px -6px rgba(0,154,218,.7); }
.hm--flow > i { position: relative; flex: 1; min-width: 18px; height: 1px; background: linear-gradient(90deg, rgba(231,99,164,.6), rgba(0,154,218,.6)); }
.hm--flow > i::after { content: ""; position: absolute; top: -2px; left: 0; width: 5px; height: 5px; border-radius: 50%; background: #BFE6FF; box-shadow: 0 0 6px #009ADA; animation: ai-flow 2.4s var(--ai-ease) infinite; }
.hm--flow > i + span + i::after { animation-delay: 1.2s; }

/* =====================================================================
   5. FAQ (light)
   ===================================================================== */
.ai-faq .faq-grid__head .ai-h2 { max-width: 12ch; }
.ai-faq .faq, .ai-faq .faq__item { border-color: var(--ai-hair); }
.ai-faq .faq__q { font: 500 clamp(1.125rem, 1rem + .5vw, 1.375rem)/1.3 var(--ai-font); letter-spacing: -0.02em; }
.ai-faq .faq__a { color: var(--ai-ink-mid); }
.ai-faq .tlink { color: var(--ai-ink); }

/* =====================================================================
   6. THE MISSING LAYER (orange, Digilayers): AI answer card presented by Dee
   ===================================================================== */
.ai-ml { background: linear-gradient(180deg, #FFFFFF, var(--paper)); color: var(--ink); }
.ai-ml .ml-title { max-width: 13ch; }
.ai-ml__card-wrap { position: relative; margin-top: 44px; }
.ai-ml__dee { position: absolute; left: 22px; top: -38px; width: 44px; z-index: 2; }
.ai-ml__dee.dee-inline { width: 44px; margin: 0; }
.ai-ml__card { position: relative; max-width: 440px; padding: 20px 22px 18px; border-radius: 18px; background: #fff; color: var(--ai-ink); font-family: var(--ai-font);
  box-shadow: 0 30px 60px -30px rgba(27,29,31,.5); }
.ai-ml__card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: var(--ai-grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.ai-ml__snap { display: flex; align-items: center; gap: 8px; font: 500 11px/1 var(--ai-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ai-ink-mid); }
.ai-ml__snap-ic { width: 16px; } .ai-ml__snap-ic svg { width: 100%; height: auto; display: block; }
.ai-ml__q { margin-top: 12px; font-weight: 500; font-size: 1.0625rem; letter-spacing: -0.01em; }
.ai-ml__a { margin-top: 8px; color: #3A4258; font-size: 1rem; }
.ai-ml__a strong { color: var(--ai-ink); box-shadow: inset 0 -.42em rgba(0,154,218,.22); }
.ai-ml__note { margin-top: 12px; display: flex; align-items: center; gap: 8px; font-size: .875rem; color: var(--ai-ink-mid); }
.ai-ml__badge { font: 500 10px/1 var(--ai-mono); letter-spacing: .1em; text-transform: uppercase; padding: 5px 8px; border-radius: 6px; background: #F0F2F7; color: var(--ai-ink-mid); }
.ai-ml__also { margin-top: 20px; max-width: 44ch; font-size: 1rem; line-height: 1.5; }

/* =====================================================================
   keyframes, responsive, reduced motion
   ===================================================================== */
@keyframes ai-spin { to { transform: rotate(360deg); } }
@keyframes ai-pulseline { 0% { stroke-dashoffset: 1; opacity: 0; } 15% { opacity: .9; } 85% { opacity: .9; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes ai-think { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-2px); } }
@keyframes ai-flow { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 5px); opacity: 0; } }

@media (max-width: 1099px) {
  .ai-shift__person { display: none; }
}
@media (max-width: 899px) {
  .ai-proof { margin-top: 18px; }
  .ai-shift__pin { min-height: 0; padding-block: var(--section-y); }
  .ai-shift__grid { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .ai-shift__copy { display: contents; }
  .ai-shift__copy > .ai-hud { order: 1; align-self: flex-start; }
  .ai-shift__copy .ai-h2 { order: 2; }
  .ai-shift__stage { order: 3; margin-top: 28px; justify-content: center; }
  .ai-beats { order: 4; margin-top: 28px; }
  .ai-beat { opacity: 1; }
  .sc { --sc-h: 548px; --pad: 16px; width: 100%; font-size: 14px; }
  .sc-box { padding: 16px 14px; gap: 10px; }
  .sc-box__ic--ai { left: 14px; top: 16px; }
  .sc-box__text { font-size: 15px; }
  .sc-row { padding: 10px 12px; font-size: 13.5px; }
  .sc-sugg li { padding: 9px 14px; font-size: 14px; }

  .ai-readout { grid-template-columns: 1fr; padding: 22px 20px; }
  .ai-readout__arrow { padding: 10px 0 18px; }
  .ai-readout__arrow svg { transform: rotate(90deg); width: 44px; }
  .ai-vis__foot { grid-template-columns: 1fr; }

  .ai-helpers__grid { grid-template-columns: 1fr; }
  .ai-helpers__side { padding-top: 0; }
  .ai-helpers__left .ai-orbit { margin-top: 48px; }
  .sc__pill { display: none; }
  .ai-shift__stage { flex-direction: column; align-items: center; }
  .ai-replay { position: static; margin-top: 14px; }
  .ai-shift__scene { width: 100%; max-width: 560px; flex: none; }
  .ai-orbit { position: relative; top: auto; max-width: 340px; width: 88%; }
  .ai-orbit__node { width: 52px; height: 52px; }
  .ai-orbit__node .di { width: 22px; height: 22px; }
  .ai-orbit__node em { font-size: 9px; margin-top: 7px; }
  .ai-orbit__site { width: 34%; padding: 8px 9px 10px; gap: 5px; }
  .ai-orbit__site b { font-size: 10px; }
}
@media (max-width: 599px) {
  .ai-ml .ml-title { font-size: clamp(2rem, 1.2rem + 4vw, 2.6rem); }
  .ai-ml__dee { left: 16px; top: -34px; width: 40px; }
  .ai-ml__dee.dee-inline { width: 40px; }
  .ai-hint { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  .ai-hud--live::before, .ai-hero__aura, .ai-hero__ghost, .ai-orbit__spin, .ai-orbit__pulse, .sc-think i, .hm--flow > i::after, .sc-caret { animation: none !important; }
  .ai-orbit__pulse { opacity: 0; }
  .sc-caret { display: none; }
}
html.m-reduced .ai-hud--live::before, html.m-reduced .ai-hero__aura, html.m-reduced .ai-orbit__spin, html.m-reduced .hm--flow > i::after { animation: none; }
html.m-reduced .ai-orbit__pulse, html.m-reduced .sc-caret { display: none; }
.ai-light .btn .di, .ai-light .tlink .di { color: inherit; --ic-ac: currentColor; }

/* R2 (CRO) */
.ai-shift__next { margin-top: 22px; }
.ai-shift__next .tlink { color: var(--ai-ink); }
.on-ai .ai-hint { color: var(--ai-on-mid); }
#ai-review { scroll-margin-top: calc(var(--hdr-h-s) + 24px); }
@media (max-width: 899px) { .ai-shift__next { order: 5; } }

/* phones: no text under 12 px (qa C.tap; repeated here because this file loads after the hero file) */
@media (max-width: 899px) {
  .ai-hud, .ai-tag, .sc__tag, .sc__pill, .ai-orbit__node em, .ai-orbit__audit, .ai-ml__snap, .ai-ml__badge, .hm-k, .hm--fix b,
  .sc-badge, .sc-ans__who, .ai-readout__mk { font-size: 12px; }
}
