/* Hybrid World articles: loaded only on /articles/ pages, on top of site.css (same light showroom palette, hw- classes only).
   Three hero looks picked per article in data/articles/<slug>.json -> look.variant:
   charge (photo with a charge rail), flow (icon art on the energy line), dash (dark instrument-panel frame).
   Plus a per-article motif word, so each article looks like its own piece while sharing one template. */

/* ---------- hero ---------- */
.hw-ar-hero { position: relative; isolation: isolate; overflow: hidden; padding: 18px 0 44px; background: linear-gradient(180deg, var(--paper), var(--white)); }
.hw-ar-hero-grid { display: grid; gap: 22px; }
.hw-ar-hero h1 { font-size: clamp(2rem, 8.4vw, 3.6rem); max-width: 17ch; text-wrap: balance; }
.hw-ar-hero .hw-eyebrow a { color: inherit; text-decoration: none; }
.hw-ar-meta { color: var(--ink-2); font-size: .92rem; margin: 0 0 18px; }
.hw-ar-motif { position: absolute; z-index: -1; right: -.06em; top: 6px; margin: 0; font: 700 clamp(84px, 21vw, 260px)/.8 var(--display); letter-spacing: -.06em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(10, 108, 255, .16); white-space: nowrap; pointer-events: none; user-select: none; }
.hw-ar-fig { margin: 0; }
.hw-ar-frame { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--white); box-shadow: var(--shadow-m); }
.hw-ar-frame > img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.hw-ar-frame > .hw-art-panel { box-shadow: none; border-radius: 0; aspect-ratio: 16 / 10; }
.hw-ar-fig figcaption { padding: 10px 4px 0; font-size: .9rem; color: var(--ink-2); }

/* charge rail: a battery level bar on the frame that fills to 100% (static at 100% without motion) */
.hw-ar-rail { position: absolute; z-index: 2; right: 14px; top: 14px; bottom: 14px; width: 12px; border-radius: 8px; background: rgba(255, 255, 255, .78); box-shadow: inset 0 0 0 1.5px rgba(12, 26, 43, .14); overflow: hidden; }
.hw-ar-rail i { position: absolute; left: 0; right: 0; bottom: 0; height: 100%; background: linear-gradient(0deg, var(--lime), #6ee7a8 50%, var(--blue)); border-radius: 8px; }

/* flow: pale blue stage, the rail lies flat along the bottom like the energy line */
.hw-ar-flow .hw-ar-hero { background: radial-gradient(70% 90% at 85% 10%, #dfeafe 0%, transparent 60%), linear-gradient(180deg, var(--mist), var(--white)); }
.hw-ar-flow .hw-ar-rail { top: auto; left: 14px; right: 14px; bottom: 14px; width: auto; height: 10px; }
.hw-ar-flow .hw-ar-rail i { top: 0; height: auto; width: 100%; background: var(--volt); }

/* dash: night-blue instrument panel, text in white, frame with a lime glow line */
.hw-ar-dash .hw-ar-hero { background: radial-gradient(60% 80% at 80% 20%, rgba(10, 108, 255, .35), transparent 60%), var(--blue-night); color: #fff; }
.hw-ar-dash .hw-ar-hero h1 { color: #fff; }
.hw-ar-dash .hw-ar-meta, .hw-ar-dash .hw-ar-fig figcaption { color: #c9d8f0; }
.hw-ar-dash .hw-eyebrow { color: var(--lime); }
.hw-ar-dash .hw-ar-motif { -webkit-text-stroke-color: rgba(200, 245, 60, .18); }
.hw-ar-dash .hw-ar-frame { box-shadow: 0 0 0 2px rgba(200, 245, 60, .55), 0 18px 50px rgba(0, 0, 0, .4); }
.hw-ar-dash .hw-call-line { color: #fff; border-color: rgba(255, 255, 255, .5); }

/* ---------- body ---------- */
.hw-ar > .hw-band { padding-top: 36px; }
.hw-ar-lead { font-size: clamp(1.1rem, 2.4vw, 1.25rem); color: var(--ink) !important; }
.hw-ar-answer { margin: 22px 0 6px; padding: 18px 20px; border-radius: 18px; background: linear-gradient(135deg, #eef5ff, #f6fbe8); box-shadow: inset 4px 0 0 var(--blue); }
.hw-ar-answer p { margin: 0; color: var(--ink) !important; }
.hw-ar-answer .hw-ar-answer-k { font: 500 .78rem/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--blue-deep) !important; margin-bottom: 8px; }
.hw-ar-sec { margin-top: 2.4em; }
.hw-ar-sec h2 { margin-top: 0 !important; }
.hw-ar-n { margin: 0 0 4px; font: 700 .85rem/1 var(--display); letter-spacing: .14em; color: var(--lime-deep); }
.hw-ar-sec h3 { margin-top: 1.1em; }
.hw-ar-pairs { display: grid; gap: 10px; margin: 16px 0; }
.hw-ar-pairs > div { background: var(--paper); border-radius: 16px; padding: 14px 16px; box-shadow: inset 0 0 0 1px var(--silver); }
.hw-ar-pairs dt { font: 700 1.05rem/1.2 var(--display); margin-bottom: 4px; }
.hw-ar-pairs dd { margin: 0; color: var(--ink-2); font-size: .97rem; }
.hw-ar-steps { list-style: none; counter-reset: s; padding: 0; margin: 16px 0; display: grid; gap: 8px; }
.hw-ar-steps li { counter-increment: s; position: relative; padding: 12px 14px 12px 58px; border-radius: 14px; background: var(--paper); color: var(--ink-2); }
.hw-ar-steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 12px; top: 12px; font: 700 .85rem/1.6 var(--display); color: var(--blue-deep); }
.hw-ar-steps li:last-child { background: #f3fbdf; box-shadow: inset 0 0 0 1.5px var(--lime); }
.hw-ar-steps b { color: var(--ink); }
.hw-ar-list { padding-left: 1.2em; color: var(--ink-2); }
.hw-ar-list li { margin: .3em 0; }
.hw-ar-list li::marker { color: var(--blue); }
.hw-ar-cta { margin: 2.2em 0 0; padding: 22px; border-radius: var(--radius); background: var(--blue-night); color: #e6efff; }
.hw-ar-cta p { color: #c9d8f0 !important; }
.hw-ar-cta .hw-ar-cta-h { font: 700 1.3rem/1.2 var(--display); color: #fff !important; margin: 0 0 6px; }

/* side card: the service page this article belongs to */
.hw-ar-side { position: static; }
.hw-ar-owner { margin: 0 0 8px; }
.hw-ar-owner a { display: flex; align-items: center; gap: 10px; font: 700 1.3rem/1.15 var(--display); color: var(--ink); text-decoration: none; }
.hw-ar-owner .hw-svc-ico .hw-ico { width: 34px; height: 34px; }
.hw-ar-side .hw-actions { margin: 6px 0 12px; }
@media (min-width: 920px) { .hw-ar-side { position: sticky; top: calc(var(--top-h) + 18px); } }

/* ---------- cards (index + more) ---------- */
.hw-ar-cards { display: grid; gap: 16px; margin-top: 18px; }
.hw-ar-card { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); overflow: hidden; color: var(--ink); text-decoration: none; box-shadow: var(--shadow-s);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.hw-ar-card:hover, .hw-ar-card:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow-m); color: var(--ink); }
.hw-ar-card-fig { display: block; position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--mist); }
.hw-ar-card-fig > img, .hw-ar-card-fig > .hw-art-panel { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
.hw-ar-card-fig::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--volt); }
.hw-ar-card-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 20px; }
.hw-ar-card-body h3 { margin: 0; font-size: 1.2rem; }
.hw-ar-card-k { font: 500 .74rem/1.2 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--blue-deep); }
.hw-ar-card-body time { font-size: .85rem; color: var(--steel); }
.hw-ar-card-x { color: var(--ink-2); font-size: .95rem; }
.hw-ar-intro h1 { max-width: 14ch; }

/* ---------- wider screens (phones first: 390px is the main view) ---------- */
@media (min-width: 700px) { .hw-ar-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hw-ar-pairs { grid-template-columns: 1fr 1fr; } }
@media (min-width: 920px) {
  .hw-ar-hero { padding: 34px 0 64px; }
  .hw-ar-hero-grid { grid-template-columns: 1.1fr .9fr; gap: 52px; align-items: center; }
  .hw-ar-frame > img, .hw-ar-frame > .hw-art-panel { aspect-ratio: 4 / 3; }
  .hw-ar-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 919px) { .hw-ar-motif { top: auto; bottom: -.08em; } }
@media (max-width: 520px) {
  .hw-ar-hero .hw-actions > * { flex: 1 1 100%; }
  .hw-ar-cta, .hw-ar-answer { padding: 16px; }
}
@media (prefers-reduced-motion: no-preference) {
  .hw-ar-rail i { animation: hw-ar-fill 2.4s var(--ease) both; }
  .hw-ar-flow .hw-ar-rail i { animation-name: hw-ar-run; }
  @keyframes hw-ar-fill { from { height: 8%; } to { height: 100%; } }
  @keyframes hw-ar-run { from { width: 8%; } to { width: 100%; } }
}
@media (prefers-reduced-motion: reduce) { .hw-ar-card { transition: none; } }
