/* ==========================================================================
   qais-industries.css: the /industries pages of qais.app (owner approved
   prototype v2, 2026-11-19). Built on qais-crm.css tokens. Pages are generated
   by scripts/marketing/industry-pages.js; the live windows and the builder are
   driven by /assets/qais-industries.js. The Industries picture menu in the nav
   lives in qais-crm.css because every marketing page shows it.
   ========================================================================== */
.dim { color: var(--fg-3); }
/* image hero */
.hx { position: relative; min-height: min(calc(100svh - 112px), 820px); display: flex; flex-direction: column; justify-content: center; overflow: hidden; color: #ECEDEF; background: #050608; isolation: isolate; }
.hx-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; z-index: -2; animation: hx-drift 26s var(--ease) both; }
@keyframes hx-drift { from { transform: scale(1.08); } to { transform: scale(1); } }
.hx-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5, 6, 8, .88) 0%, rgba(5, 6, 8, .55) 38%, rgba(5, 6, 8, 0) 68%), linear-gradient(0deg, var(--bg) 0%, rgba(5, 6, 8, 0) 26%); }
.hx-in { position: relative; width: 100%; display: grid; gap: 20px; justify-items: start; padding-top: 48px; padding-bottom: 96px; }
.hx h1 { font-size: clamp(48px, 7vw, 112px); max-width: 14ch; text-wrap: balance; color: #F4F5F6; }
.hx--page h1 { font-size: clamp(44px, 5.6vw, 92px); max-width: 12ch; }
.hx h1 .dim { color: rgba(236, 237, 239, .5); }
.hx .eyebrow { color: rgba(236, 237, 239, .8); }
.hx-sub { font-size: clamp(17px, 1.5vw, 21px); color: rgba(236, 237, 239, .78); max-width: 34ch; }
.hx .btn-ghost { color: #ECEDEF; border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .06); backdrop-filter: blur(8px); }
.hx .crumbs { display: flex; gap: 8px; font-family: var(--mono); font-size: 12px; color: rgba(236, 237, 239, .6); }
.hx .crumbs a { color: rgba(236, 237, 239, .85); text-decoration: none; }
.hx-count { position: absolute; right: 0; left: 0; bottom: 40px; display: flex; justify-content: flex-end; align-items: baseline; gap: 10px; pointer-events: none; }
.hx-count b { font-size: clamp(64px, 9vw, 150px); font-weight: 400; letter-spacing: -.05em; line-height: .8; color: rgba(255, 255, 255, .92); font-variant-numeric: tabular-nums; }
.hx-count span { font-family: var(--mono); font-size: 13px; color: rgba(236, 237, 239, .7); }
.hx-marquee { position: absolute; left: 0; right: 0; bottom: 18px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.hx-marquee div { display: flex; gap: 48px; width: max-content; animation: marquee 60s linear infinite; }
.hx-marquee span { font-family: var(--mono); font-size: 12.5px; color: var(--fg-3); white-space: nowrap; }
.hx-marquee span::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 12px; vertical-align: middle; background: var(--amber); border-radius: 1px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* image tiles */
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: 120px; gap: 12px; }
.bento .tile { grid-column: span 2; grid-row: span 3; }
.bento .t0, .bento .t1 { grid-column: span 3; grid-row: span 4; }
.bento--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 260px; }
.bento--3 .tile { grid-column: auto; grid-row: auto; }
.bento-label { margin: 48px 0 16px; }
.tile { position: relative; display: block; overflow: hidden; border-radius: var(--radius-l); background: #0A0B0D; color: #F4F5F6; text-decoration: none; isolation: isolate; min-height: 220px; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease), filter .6s var(--ease); filter: saturate(.92); }
.tile-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(5, 6, 8, .9) 0%, rgba(5, 6, 8, .25) 48%, rgba(5, 6, 8, 0) 70%); }
.tile-txt { position: absolute; left: 0; right: 0; bottom: 0; display: grid; gap: 6px; padding: 22px 24px; }
.tile-n { font-family: var(--mono); font-size: 11.5px; color: rgba(236, 237, 239, .7); }
.tile b { font-size: clamp(20px, 1.8vw, 30px); font-weight: 450; letter-spacing: -.02em; font-stretch: 112%; line-height: 1.05; }
.t0 b, .t1 b { font-size: clamp(28px, 2.8vw, 44px); }
.tile-h { font-size: 14.5px; color: rgba(236, 237, 239, .8); max-height: 0; opacity: 0; overflow: hidden; transform: translateY(6px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.tile:hover img, .tile:focus-visible img { transform: scale(1.06); filter: saturate(1.05); }
.tile:hover .tile-h, .tile:focus-visible .tile-h, .t0 .tile-h, .t1 .tile-h { max-height: 3em; opacity: 1; transform: none; }
.tile::after { content: "\2192"; position: absolute; top: 18px; right: 20px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .1); backdrop-filter: blur(8px); font-family: var(--mono); opacity: 0; transform: translateX(-6px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.tile:hover::after, .tile:focus-visible::after { opacity: 1; transform: none; }

/* build your workspace */
.build { background: var(--card-a); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.build-head { display: grid; gap: 14px; margin-bottom: 36px; }
.build-head h2 .dim { color: var(--fg-3); }
.build-grid { display: grid; grid-template-columns: minmax(300px, .75fr) minmax(0, 1.25fr); gap: 28px; align-items: start; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.presets button { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--fg-2); font: inherit; font-size: 13.5px; cursor: pointer; transition: color .2s var(--ease), border-color .2s var(--ease); }
.presets button:hover, .presets button.is-on { color: var(--fg); border-color: var(--amber-text); }
.picks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pick { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; padding: 6px 12px 6px 6px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); color: var(--fg-2); font: inherit; font-size: 14px; text-align: left; cursor: pointer; transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease); }
.pick img { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; filter: grayscale(.7) brightness(.8); transition: filter .3s var(--ease); }
.pick em { font-style: normal; font-family: var(--mono); font-size: 11.5px; color: var(--fg-3); }
.pick:hover { color: var(--fg); border-color: var(--line-2); }
.pick[aria-pressed="true"] { color: var(--fg); border-color: var(--amber-text); background: var(--amber-soft); }
.pick[aria-pressed="true"] img { filter: none; }

/* the builder's stage: tabs for the chosen industries over the living frame */
.build-stage { display: grid; gap: 12px; min-width: 0; }
.build-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.build-tab { height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--fg-2); font: inherit; font-size: 13px; cursor: pointer; transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease); }
.build-tab:hover { color: var(--fg); }
.build-tab[aria-selected="true"] { color: var(--fg); border-color: var(--amber-text); background: var(--amber-soft); }
.build-stage .live-note { text-align: right; }
.build-stage .live-note b { color: var(--fg); font-weight: 500; }
.ind-frame { width: 100%; }

/* industry page */
.live-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.live-note { font-family: var(--mono); font-size: 11.5px; color: var(--fg-3); }
.build .live-note { margin-top: 14px; text-align: right; }
.pt-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.pt-head h2 { font-size: clamp(28px, 3vw, 44px); }
.pt-head .dim { font-family: var(--mono); font-size: 12px; }
.pts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: start; }
.pt { border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--panel); transition: border-color .2s var(--ease), background .2s var(--ease); }
.pt--new { border-style: dashed; border-color: var(--line-2); }
.pt[open] { border-color: var(--line-2); background: var(--bg-2); }
.pt summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; align-items: baseline; padding: 18px 20px; }
.pt summary::-webkit-details-marker { display: none; }
.pt-n { font-family: var(--mono); font-size: 11px; color: var(--fg-3); }
.pt summary b { font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.pt-b { grid-column: 2 / 3; font-size: 14px; color: var(--fg-2); line-height: 1.45; }
.pt-tag { grid-column: 2 / 3; justify-self: start; margin-top: 6px; font-family: var(--mono); font-size: 11px; color: var(--fg-3); }
.pt-tag--on { color: var(--live); }
.pt-more { grid-column: 3; grid-row: 1; font-family: var(--mono); font-size: 18px; color: var(--fg-3); transition: transform .25s var(--ease), color .2s var(--ease); }
.pt[open] .pt-more { transform: rotate(45deg); color: var(--amber-text); }
.pt ul { list-style: none; margin: 0; padding: 0 20px 16px 20px; display: grid; }
.pt li { padding: 9px 0 9px 18px; border-top: 1px solid var(--line); font-size: 14px; color: var(--fg); position: relative; animation: feed-in .4s var(--ease) both; }
.pt li::before { content: ""; position: absolute; left: 0; top: 18px; width: 8px; height: 1px; background: var(--amber-text); }
.pairs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pairs .tile { height: 260px; }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 8px; padding-bottom: clamp(56px, 6vw, 96px); }
.pager a { display: flex; align-items: center; gap: 16px; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-l); color: var(--fg); text-decoration: none; font-size: 18px; transition: border-color .2s var(--ease); }
.pager a:hover { border-color: var(--line-2); }
.pager img { width: 120px; height: 72px; border-radius: 12px; object-fit: cover; }
.pager span { display: grid; gap: 4px; }
.pager em { font-style: normal; font-family: var(--mono); font-size: 11.5px; color: var(--fg-3); }
.pager-next { justify-content: flex-end; text-align: right; }

/* the existing feature pages that go deeper on this industry */
.deeper { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.deep { display: grid; gap: 6px; align-content: start; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-m); background: var(--panel); color: var(--fg); text-decoration: none; transition: border-color .2s var(--ease), background .2s var(--ease); }
.deep b { font-size: 16px; font-weight: 500; letter-spacing: -.01em; }
.deep b::after { content: " \2192"; font-family: var(--mono); color: var(--fg-3); transition: color .2s var(--ease); }
.deep span { font-size: 13.5px; color: var(--fg-2); line-height: 1.45; }
.deep:hover { border-color: var(--line-2); background: var(--bg-2); }
.deep:hover b::after { color: var(--amber-text); }

/* closing image band */
.final-x { position: relative; min-height: 480px; display: flex; align-items: center; overflow: hidden; color: #F4F5F6; isolation: isolate; background: #050608; }
.final-x > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.final-x .hx-shade { background: linear-gradient(90deg, rgba(5, 6, 8, .9), rgba(5, 6, 8, .35) 70%), linear-gradient(180deg, var(--bg) 0%, rgba(5, 6, 8, 0) 30%); }
.final-x-in { display: grid; gap: 28px; justify-items: start; width: 100%; }
.final-x h2 { max-width: 12ch; color: #F4F5F6; }

/* responsive */
@media (max-width: 1100px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 260px; }
  .bento .tile, .bento .t0, .bento .t1 { grid-column: auto; grid-row: auto; }
  .bento .t0 { grid-column: span 2; }
  .build-grid { grid-template-columns: 1fr; }
  .pts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }
@media (max-width: 700px) {
  .hx { min-height: 640px; }
  .hx-img { object-position: 78% 50%; }
  .hx-shade { background: linear-gradient(0deg, var(--bg) 0%, rgba(5, 6, 8, .7) 45%, rgba(5, 6, 8, .35) 100%); }
  .hx-in { align-self: end; padding-bottom: 72px; }
  .hx-count { display: none; }
  .bento, .bento--3, .pairs, .pts { grid-template-columns: 1fr; }
  .bento .t0 { grid-column: auto; }
  .bento { grid-auto-rows: 240px; }
  .picks { grid-template-columns: 1fr; }
  .pager { grid-template-columns: 1fr; }
  .pager img { width: 84px; height: 56px; }
  .tile-h { max-height: 3em; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .hx-img, .hx-marquee div, .pt li { animation: none; }
  .tile img { transition: none; }
}
