/* The hero in sections (index.html, assets/hero-sections.js): today's hero demo, with what it adds.
   Same interface, same type; ink, paper, white; cape red only in the mark's cape (ADR-0061). */

@media (min-width: 721px) { .hx .artifact { position: relative; } }
.hx-mark { display: block; width: 100%; height: 100%; }

/* The chip in the chat comes in once Design Superpowers is added */
.js .hx .app-skill { opacity: 0; transform: scale(.85); transform-origin: 100% 50%; transition: opacity .4s, transform .5s var(--ease); }
.js .hx .app-skill.on, .hx.rest .app-skill { opacity: 1; transform: none; }

/* 1. Add it: Customize, Plugins */
.hx-sheet { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; background: rgb(18 18 18 / .16); opacity: 0; pointer-events: none; transition: opacity .4s; }
.hx-sheet.on { opacity: 1; }
.hx-modal { width: min(440px, 88%); background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 40px 90px -30px rgb(0 0 0 / .45), 0 0 0 1px rgb(0 0 0 / .06); transform: translateY(10px) scale(.98); transition: transform .5s var(--ease); }
.hx-sheet.on .hx-modal { transform: none; }
.hx-mbar { height: 42px; display: flex; align-items: center; gap: 14px; padding: 0 16px; border-bottom: 1px solid #EEEEEA; font-size: 13px; }
.hx-mbar b { font-weight: 500; } .hx-mbar span { color: var(--muted); }
.hx-mbody { position: relative; padding: 16px; display: grid; gap: 12px; min-height: 200px; align-content: start; }
.hx-head { position: relative; display: flex; justify-content: space-between; align-items: center; font-size: 15px; }
.hx-head b { font-weight: 500; }
.hx-add { font-size: 13px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; transition: background .15s; }
.hx-add.press { background: var(--bg-2); }
.hx-menu { position: absolute; right: 0; top: 38px; z-index: 2; background: #fff; border-radius: 10px; padding: 9px 14px; font-size: 13px; box-shadow: 0 14px 34px -14px rgb(0 0 0 / .35), 0 0 0 1px rgb(0 0 0 / .06); opacity: 0; transform: translateY(-4px); transition: opacity .2s, transform .3s var(--ease); }
.hx-menu.on { opacity: 1; transform: none; }
.hx-drop { height: 0; overflow: hidden; display: grid; place-items: center; border-radius: 12px; transition: height .4s var(--ease), background .3s; }
.hx-drop.on { height: 74px; background: var(--bg); box-shadow: inset 0 0 0 1.5px #C9C9C3; }
.hx-plug { opacity: 0; transform: translateY(-26px) rotate(-4deg); transition: opacity .3s, transform .6s cubic-bezier(.2, .9, .3, 1.2); }
.hx-plug.on { opacity: 1; transform: none; }
.hx-plug b { background: none !important; padding: 0; }
.hx-added { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; background: var(--bg); opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .5s var(--ease); }
.hx-added.on { opacity: 1; transform: none; }
.hx-added > svg { width: 38px; height: 38px; flex: none; }
.hx-added span { display: grid; flex: 1; font-size: 14px; } .hx-added b { font-weight: 500; } .hx-added small { color: var(--muted); font-size: 12px; }
.hx-tog { width: 34px; height: 20px; border-radius: 999px; background: #D6D6D0; position: relative; transition: background .25s; }
.hx-tog::after { content: ""; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: left .25s var(--ease); }
.hx-tog.on { background: var(--ink); } .hx-tog.on::after { left: 17px; }

/* 2. Ask: the slash brings the designer up */
.hx-slash { position: absolute; left: 10px; bottom: calc(100% + 8px); z-index: 3; display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 12px; padding: 9px 14px 9px 10px; font-size: 13px; box-shadow: 0 18px 40px -16px rgb(0 0 0 / .35), 0 0 0 1px rgb(0 0 0 / .06); opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .3s var(--ease), background .15s; pointer-events: none; white-space: nowrap; }
.hx-slash.on { opacity: 1; transform: none; }
.hx-slash.press { background: var(--bg-2); }
.hx-slash svg { width: 24px; height: 24px; flex: none; }
.hx-slash b { font: 400 12.5px var(--mono); } .hx-slash span { color: var(--muted); }

/* 3. It builds: under the hood, many things at once */
.hx-bench { position: absolute; left: 0; right: 0; top: 44px; bottom: 0; z-index: 2; background: #F7F7F5; padding: clamp(10px, 1.4vw, 18px); display: grid; gap: 10px; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr); grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "facts slides" "story slides" "brand slides"; opacity: 0; visibility: hidden; transition: opacity .5s, visibility 0s .5s; }
.hx-bench.on { opacity: 1; visibility: visible; transition: opacity .5s; }
.hx-bench.out { opacity: 0; visibility: hidden; transition: opacity .6s, visibility 0s .6s; }
.hx-t { position: relative; min-height: 0; overflow: hidden; background: #fff; border-radius: 10px; padding: 10px 12px; box-shadow: 0 0 0 1px rgb(0 0 0 / .05); opacity: 0; transform: translateY(8px); transition: opacity .5s, transform .6s var(--ease); }
.hx-t.on { opacity: 1; transform: none; }
.hx-l { font: 400 10.5px var(--mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; display: flex; align-items: center; gap: 7px; }
.hx-t.on .hx-l::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); animation: hx-pulse 1.2s ease-in-out infinite; }
.hx-bench.checked .hx-t .hx-l::before { animation: none; }
@keyframes hx-pulse { 50% { opacity: .25; } }
.hx-bench li, .hx-gov span, .hx-sw i, .hx-dec i, .hx-url, .hx-aa { opacity: 0; transform: translateY(4px); transition: opacity .35s, transform .45s var(--ease); }
.hx-bench .on { opacity: 1; transform: none; }
.hx-facts { grid-area: facts; }
.hx-facts ul { display: grid; gap: 4px; }
.hx-facts li { display: flex; align-items: baseline; gap: 8px; font-size: 11.5px; color: var(--ink-2); white-space: nowrap; }
.hx-facts b { font-weight: 500; font-size: 14px; letter-spacing: -0.02em; color: var(--ink); width: 64px; flex: none; }
.hx-facts span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.hx-facts em { font: 400 9.5px var(--mono); font-style: normal; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }
.hx-story { grid-area: story; }
.hx-story::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 28px; background: linear-gradient(rgb(255 255 255 / 0), #fff); }
.hx-gov { font-size: 13px; line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 7px; }
.hx-gov span { display: inline-block; }
.hx-story ol { display: grid; gap: 1px; }
.hx-story li { font-size: 10px; line-height: 1.45; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hx-story li em { font: 400 9px var(--mono); font-style: normal; margin-right: 6px; color: #A9A9A3; }
.hx-brand { grid-area: brand; display: flex; flex-direction: column; gap: 8px; }
.hx-url { align-self: flex-start; font: 400 11px var(--mono); background: var(--bg); border-radius: 999px; padding: 3px 10px; }
.hx-sw { display: flex; gap: 6px; }
.hx-sw i { width: 22px; height: 22px; border-radius: 6px; background: var(--c); box-shadow: inset 0 0 0 1px rgb(0 0 0 / .1); }
.hx-aa { font-size: 26px; font-weight: 500; letter-spacing: -0.03em; line-height: 1; display: flex; align-items: baseline; gap: 8px; }
.hx-aa small { font: 400 10px var(--mono); letter-spacing: 0; color: var(--muted); }
.hx-dec { display: flex; flex-wrap: wrap; gap: 5px; }
.hx-dec i { font-style: normal; font-size: 10.5px; border-radius: 999px; padding: 3px 9px; background: var(--ink); color: #fff; }
.hx-slides { grid-area: slides; display: flex; flex-direction: column; }
.hx-grid { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; align-content: center; }
.hx-grid span { position: relative; aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; background: repeating-linear-gradient(135deg, #EFEFEB 0 6px, #F6F6F3 6px 12px); box-shadow: 0 0 0 1px rgb(0 0 0 / .06); opacity: 1; transform: none; }
.hx-grid img { width: 100%; height: 100%; object-fit: cover; clip-path: inset(0 100% 0 0); transition: clip-path .7s cubic-bezier(.6, 0, .2, 1); }
.hx-grid span.on img { clip-path: inset(0 0 0 0); }
.hx-grid i { position: absolute; right: 4px; bottom: 4px; width: 15px; height: 15px; border-radius: 50%; background: #fff; color: var(--ink); font: normal 600 9px/15px var(--font); text-align: center; box-shadow: 0 1px 4px rgb(0 0 0 / .3); opacity: 0; transform: scale(.4); transition: opacity .25s, transform .35s cubic-bezier(.2, .9, .3, 1.4); }
.hx-bench.checked .hx-grid i { opacity: 1; transform: none; }
.hx-bench.checked .hx-grid span:nth-child(n) i { transition-delay: calc(var(--k, 0) * 1ms); }
.hx-grid span:nth-child(1) i { --k: 0; } .hx-grid span:nth-child(2) i { --k: 140; } .hx-grid span:nth-child(3) i { --k: 280; } .hx-grid span:nth-child(4) i { --k: 420; } .hx-grid span:nth-child(5) i { --k: 560; } .hx-grid span:nth-child(6) i { --k: 700; } .hx-grid span:nth-child(7) i { --k: 840; } .hx-grid span:nth-child(8) i { --k: 980; } .hx-grid span:nth-child(9) i { --k: 1120; }

/* 5. Share it: the reply and the two files */
.hx-more { transition: opacity .4s; }
.hx-arrive { animation: hx-in .5s var(--ease) both; }
.hx-arrive.bot { animation-delay: .15s; }
@keyframes hx-in { from { opacity: 0; transform: translateY(8px); } }
.hx-loader { width: 16px; height: 16px; flex: none; }
.hx-files { display: flex; flex-wrap: wrap; gap: 8px; }
.hx-files .card { max-width: 290px; }
.hx-files .card b { max-width: 200px; }
.hx-ico { flex: none; width: 40px; height: 28px; border-radius: 4px; display: grid; place-items: center; background: #EDEDE9; font: 500 9px var(--mono); color: var(--ink-2); }

.hx-tabs { margin-top: 18px; }
.hx-fine { text-align: center; margin-top: 6px; }

@media (max-width: 720px) {
  .hx-bench { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; grid-template-areas: "facts story" "slides slides" "brand brand"; gap: 8px; padding: 10px; }
  .hx-story ol { display: none; }
  .hx-gov { font-size: 11.5px; margin: 0; }
  .hx-facts li { font-size: 10px; } .hx-facts b { font-size: 12px; width: 50px; } .hx-facts em { display: none; }
  .hx-facts li:nth-child(4) { display: none; }
  .hx-brand { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .hx-brand .hx-l { width: 100%; margin-bottom: 0; }
  .hx-aa { font-size: 20px; } .hx-aa small { display: none; }
  .hx-dec i:nth-child(n+3) { display: none; }
  .hx-files .card { max-width: 100%; }
  .hx-tabs .case { font-size: 13px; padding: 10px 10px 12px; }
}

/* ---------- The wall: every presentation, first try (assets/hero-wall.js); the pictures carry it, nothing moves on hover ---------- */
.hw-lead { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.2; letter-spacing: -0.02em; max-width: 26ch; }
.hw-kpi { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 36px 0 52px; border-top: 1px solid var(--line); }
.hw-kpi > div { padding: 20px 20px 0 0; display: grid; gap: 4px; align-content: start; }
.hw-kpi > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.hw-kpi dt { font-size: clamp(36px, 3.6vw, 56px); line-height: 1; letter-spacing: -0.04em; font-weight: 300; }
.hw-kpi dd { margin: 0; font-size: 14px; color: var(--muted); }
.hw-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 28px; }
.hw-card { all: unset; cursor: pointer; display: grid; gap: 14px; min-width: 0; -webkit-tap-highlight-color: transparent; }
.hw-cover { position: relative; display: block; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #111; box-shadow: 0 1px 0 rgb(0 0 0 / .04), 0 26px 60px -30px rgb(0 0 0 / .55), 0 0 0 1px rgb(0 0 0 / .06); }
.hw-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s; }
.hw-cover img.in { opacity: 0; }
.hw-card:focus-visible .hw-cover { outline: 2px solid var(--ink); outline-offset: 3px; }
.hw-meta { display: grid; gap: 1px; font-size: 15px; min-width: 0; }
.hw-meta b { font-weight: 500; letter-spacing: -0.01em; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.hw-meta span { font-size: 13px; color: var(--muted); }
@media (max-width: 1020px) { .hw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 18px; } }
@media (max-width: 600px) { .hw-grid { grid-template-columns: 1fr; gap: 28px; } .hw-kpi { grid-template-columns: 1fr 1fr; margin: 28px 0 36px; } .hw-kpi > div:nth-child(3) { padding-left: 0; border-left: 0; } .hw-kpi > div:nth-child(n+3) { padding-top: 18px; } }

/* ---------- Pricing: how many need this superpower; the marks are the picture, each one puts its cape on ---------- */
.hp-head { text-align: center; margin: 0 auto 52px; }
.hp-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hp-card { position: relative; overflow: hidden; background: #fff; border-radius: 16px; padding: 30px 28px 28px; display: flex; flex-direction: column; box-shadow: 0 0 0 1px rgb(0 0 0 / .05); }
.hp-card.main { box-shadow: 0 0 0 1.5px var(--ink); }
.hp-pic { height: 150px; display: flex; align-items: center; margin-bottom: 26px; }
.hpx .p-capes { height: auto; max-width: none; overflow: visible; margin: 0; -webkit-mask: none; mask: none; }
.hpx [data-capes="1"] i { width: 96px; height: 96px; }
.hpx [data-capes="20"] { display: grid; grid-template-columns: repeat(10, 26px); gap: 6px; }
.hpx [data-capes="20"] i { width: 26px; height: 26px; }
.hpx [data-capes="56"] { display: grid; grid-template-columns: repeat(14, 26px); gap: 6px; flex: none; }
.hpx [data-capes="56"] i { width: 26px; height: 26px; }
.hp-card h3 { font-size: 24px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
.hp-amt { font-size: 44px; letter-spacing: -0.035em; line-height: 1.1; margin-top: 12px; }
.hp-amt small { font-size: 15px; letter-spacing: 0; color: var(--muted); }
.hp-note { color: var(--ink-2); font-size: 15px; margin: 8px 0 24px; flex: 1; }
.hp-card .btn { align-self: flex-start; }
.hp-card .btn.ghost { border-color: var(--line); }
@media (max-width: 1020px) { .hp-cards { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }
@media (max-width: 720px) {
  .hp-head { margin-bottom: 36px; }
  .hp-pic { height: 120px; margin-bottom: 20px; }
  .hpx [data-capes="1"] i { width: 80px; height: 80px; }
  .hpx [data-capes="20"], .hpx [data-capes="56"] { gap: 5px; }
  .hpx [data-capes="20"] { grid-template-columns: repeat(10, 22px); }
  .hpx [data-capes="56"] { grid-template-columns: repeat(14, 22px); }
  .hpx [data-capes="20"] i, .hpx [data-capes="56"] i { width: 22px; height: 22px; }
}

/* ---------- The close: the mark puts its cape on, one line, one way in ---------- */
.hx-close { margin-top: clamp(100px, 12vw, 170px); padding: clamp(80px, 10vw, 140px) 0 clamp(100px, 12vw, 170px); border-top: 1px solid var(--line); }
.hx-family { position: relative; width: clamp(84px, 9vw, 120px); aspect-ratio: 1; margin: 0 auto 36px; }
.hx-family .p-capes { height: auto; max-width: none; overflow: visible; margin: 0; -webkit-mask: none; mask: none; }
.hx-family .p-capes i, .hx-family > img { width: 100%; height: 100%; }
.hx-family > img { position: absolute; inset: 0; opacity: 0; transition: opacity .45s var(--ease); }
.hx-family > img.on { opacity: 1; }
.hx-close h2 { font-size: clamp(40px, 5vw, 76px); }
.hx-close .acts { margin-top: 34px; }

/* ---------- The footer: the mark, the page's own links, the company and the small print ---------- */
.hx-foot { border-top: 1px solid var(--line); padding: 40px 0 36px; font-size: 14px; }
.hx-foot-in { display: flex; align-items: center; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap; }
.hx-foot nav { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.hx-foot nav a { color: var(--muted); text-decoration: none; }
.hx-foot nav a:hover { color: var(--ink); }
.hx-foot-legal { margin-top: 32px; display: grid; gap: 6px; }
.hx-foot-legal p { max-width: 90ch; }
.hx-foot-legal a { color: inherit; }
@media (max-width: 720px) { .hx-foot-in { flex-direction: column; align-items: flex-start; } .hx-foot nav { gap: 10px 20px; } }

/* ---------- The hero's top: the tools as labels, the headline, one line, one button ---------- */
.hx-tools { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.hx-tools li { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 999px; font-size: 13.5px; font-weight: 500; letter-spacing: -0.005em; color: var(--muted); background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.hx-tools li.live { color: var(--ink); background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / .06), inset 0 0 0 1px rgb(0 0 0 / .08); }
.hx-tools li.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.hx-tools small { font: 400 10.5px var(--mono); letter-spacing: .04em; text-transform: uppercase; color: #A9A9A3; }
.hx-sub { max-width: 62ch; }
@media (max-width: 720px) { .hx-tools { gap: 6px; margin-bottom: 20px; } .hx-tools li { height: 30px; padding: 0 12px; font-size: 13px; } }

/* QA 2026-10-27: no poster shows through while it builds; the request stays in view; the slash menu fits a phone; a wider chat on a tablet */
.hx .artifact.building .art-frame { visibility: hidden; }
.hx [data-thread] { overflow-anchor: none; }
.hx [data-thread].hx-top { justify-content: flex-start; }
.hx-slash { max-width: calc(100% - 20px); overflow: hidden; }
.hx-slash span { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1020px) and (min-width: 721px) { .hx .app-body.open { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); } }
.hx-slash span { min-width: 0; white-space: nowrap; }

/* Launch pages (2026-10-27): placeholders stay visible until filled; the legal links; the business line (ADR-0063, off) */
.ph { font: 400 .88em var(--mono); background: var(--bg-2); border: 1px dashed #B9B9B2; border-radius: 5px; padding: 0 5px; color: var(--ink-2); }
.hx-foot-links a { color: var(--ink-2); }
.hx-foot nav { justify-content: flex-end; }
.hp-biz { text-align: center; margin: -36px 0 44px; color: var(--muted); font-size: 15px; }
