/* Industries: an information page, kept simple. A plain hero of its own, one sector picker
   (the six sectors on the left, the chosen sector's story on the right), the stack, and
   "Not on this list?" to close. */

/* the hero: no particles, no split; a line and a row that jumps to each sector */
.ind-hero { padding: 132px 0 56px; }
.ind-badge { margin: 0 auto 18px; }
.ind-hero-title {
  max-width: 760px; margin: 0 auto 18px;
  font: 700 clamp(2.1rem, 4.4vw, 3.4rem)/1.1 var(--font-display); letter-spacing: -0.02em; color: var(--text-primary);
  text-wrap: balance;
}
.ind-hero-sub { max-width: 680px; margin: 0 auto; font-size: 1.05rem; line-height: 1.65; color: var(--text-secondary); }
.ind-jump { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin-top: 34px; }
.ind-jump a {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 2px;
  font: 500 0.9rem/1.2 var(--font-display); color: var(--text-secondary); text-decoration: none;
  border-bottom: 1px solid transparent; transition: color 0.2s ease, border-color 0.2s ease;
}
.ind-jump a svg { width: 17px; height: 17px; color: var(--accent-blue); }
.ind-jump a:hover { color: var(--text-primary); border-bottom-color: rgba(0, 98, 255, 0.35); }

/* the picker */
.ind-pick { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 40px; }
.ind-tabs { display: flex; flex-direction: column; gap: 6px; position: sticky; top: 96px; }
.ind-tabs button {
  display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 13px 14px; text-align: left; cursor: pointer;
  border: 1px solid transparent; border-radius: 12px; background: transparent; font: inherit; color: inherit;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.ind-tabs button:hover { background: rgba(255, 255, 255, 0.6); }
.ind-tabs button[aria-selected="true"] { background: #fff; border-color: rgba(0, 98, 255, 0.18); box-shadow: 0 10px 26px -18px rgba(0, 98, 255, 0.45); }
.ind-tabs button:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: 2px; }
.ind-tab-ico { flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(0, 98, 255, 0.07); color: var(--accent-blue); transition: background 0.2s ease, color 0.2s ease; }
.ind-tab-ico svg { width: 17px; height: 17px; }
.ind-tabs button[aria-selected="true"] .ind-tab-ico { background: var(--accent-blue); color: #fff; }
.ind-tab-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ind-tab-txt b { font: 600 0.92rem/1.25 var(--font-display); color: var(--text-primary); }
.ind-tab-txt small { font-size: 0.78rem; line-height: 1.45; color: var(--text-secondary);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* the panels share one cell, so switching sector never makes the page jump */
.ind-panels { display: grid; }
.ind-panel { grid-area: 1 / 1; min-width: 0; }
.ind-panel[hidden] { display: block; visibility: hidden; opacity: 0; pointer-events: none; }
.ind-panel:not([hidden]) { animation: indIn 0.45s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes indIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.ind-panel .extended-service-block { margin: 0; padding: 40px 42px; }
/* the sector's line drawing lives only in the card's empty corner: bottom right, beside the
   last point and the button, where there is no text */
.ind-panel .ind-scene, .ind-panel .extended-service-block:hover .ind-scene {
  inset: auto 0 0 auto; width: 46%; height: 44%;
  opacity: 0.22; -webkit-mask-image: none; mask-image: none;
}
.ind-panel .ind-scene svg { inset: 0; }


@media (max-width: 900px) {
  .ind-hero { padding: 110px 0 40px; }
  .ind-pick { grid-template-columns: 1fr; gap: 16px; }
  .ind-tabs { position: static; flex-direction: row; overflow-x: auto; gap: 8px; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; scroll-snap-type: x proximity; }
  .ind-tabs::-webkit-scrollbar { display: none; }
  .ind-tabs button { flex: 0 0 auto; width: auto; align-items: center; padding: 9px 13px; border-color: rgba(15, 23, 42, 0.08); background: #fff; scroll-snap-align: start; }
  .ind-tab-ico { width: 28px; height: 28px; }
  .ind-tab-txt small { display: none; }
  .ind-tab-txt b { white-space: nowrap; font-size: 0.86rem; }
  .ind-panel .extended-service-block { padding: 26px 22px; }
}
@media (prefers-reduced-motion: reduce) { .ind-panel:not([hidden]) { animation: none; } }

/* 2 — Healthcare (it had no scene): a heartbeat line runs across, the calendar's slots fill
   and a booking ticks in, the heart beats */
.ind-ecg { stroke-dasharray: 260 900; animation: indEcg 4.2s linear infinite; }
@keyframes indEcg { from { stroke-dashoffset: 260; } to { stroke-dashoffset: -900; } }
.ind-slot { transform-box: fill-box; transform-origin: center; animation: indSlot 6.4s ease-in-out infinite; }
.ind-slot:nth-of-type(2) { animation-delay: 0.6s; } .ind-slot:nth-of-type(3) { animation-delay: 1.2s; }
.ind-slot:nth-of-type(4) { animation-delay: 1.8s; } .ind-slot:nth-of-type(5) { animation-delay: 2.4s; }
@keyframes indSlot { 0%, 20% { fill: transparent; } 30%, 80% { fill: rgba(255, 107, 0, 0.35); } 92%, 100% { fill: transparent; } }
.ind-tick { stroke-dasharray: 40; stroke-dashoffset: 40; animation: indTick 6.4s ease-in-out infinite; }
@keyframes indTick { 0%, 50% { stroke-dashoffset: 40; } 60%, 85% { stroke-dashoffset: 0; } 95%, 100% { stroke-dashoffset: 40; } }
.ind-heart { transform-box: fill-box; transform-origin: center; animation: indBeat 1.6s ease-in-out infinite; }
@keyframes indBeat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.12); } 24% { transform: scale(1); } 36% { transform: scale(1.08); } 50% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .ind-ecg, .ind-slot, .ind-tick, .ind-heart { animation: none; } .ind-tick { stroke-dashoffset: 0; } }

/* ===== Dark mode (html[data-theme="dark"]) =====
   Design: docs/plans/dark-mode-design-system.md. #sectors is a band (s1): the sector card (.glass-card) is s2 from styles.css, the chosen tab pairs with it. */
:root[data-theme="dark"] .ind-jump a svg{ color:var(--blue-text); }
:root[data-theme="dark"] .ind-jump a:hover{ border-bottom-color:rgba(129,170,247,.50); }
/* the sector picker: transparent tabs; the chosen one is a card the colour of the panel it opens, with a blue-tint edge (no shadow) */
:root[data-theme="dark"] .ind-tabs button:hover{ background:rgba(150,175,230,.06); }
:root[data-theme="dark"] .ind-tabs button[aria-selected="true"]{ background:var(--dk-s2); border-color:rgba(129,170,247,.35); box-shadow:inset 0 1px 0 var(--dk-light-top); }
:root[data-theme="dark"] .ind-tabs button:focus-visible{ outline-color:var(--dk-focus); }
/* icon tiles: a 12% tint; the chosen one is a tint fill with tint ink and a ring (a pale tint under white ink would fail) */
:root[data-theme="dark"] .ind-tab-ico{ background:rgba(129,170,247,.12); color:var(--blue-text); }
:root[data-theme="dark"] .ind-tabs button[aria-selected="true"] .ind-tab-ico{ background:rgba(129,170,247,.18); color:var(--blue-text); box-shadow:inset 0 0 0 1px rgba(129,170,247,.45); }
/* the sector's line drawing (bottom right of the card): its strokes read --accent-*, which are brand values here (not a stage), so they take the tints; a touch stronger than light */
:root[data-theme="dark"] .ind-scene{ --accent-blue:#81aaf7; --accent-orange:#f39d5e; --accent-green:#6bcf9d; }
:root[data-theme="dark"] .ind-panel .ind-scene,:root[data-theme="dark"] .ind-panel .extended-service-block:hover .ind-scene{ opacity:.32; }
@media (max-width:900px){   /* the picker becomes a row of chips (restyled, none added) */
  :root[data-theme="dark"] .ind-tabs button{ background:var(--dk-s2); border-color:var(--dk-line-3); }
  :root[data-theme="dark"] .ind-tabs button[aria-selected="true"]{ background:var(--dk-s3); border-color:rgba(129,170,247,.45); }
}

/* Phones (Mars, 26 Nov): the six sector tabs sit two by two instead of a row that scrolls sideways */
@media (max-width: 767px) {
  .ind-tabs { display: grid !important; grid-template-columns: 1fr 1fr; overflow: visible; margin: 0; padding: 0; gap: 8px; scroll-snap-type: none; }
  .ind-tabs button { width: 100%; min-width: 0; padding: 9px 10px; gap: 8px; scroll-snap-align: none; }
  .ind-tab-ico { width: 26px; height: 26px; flex: none; }
  .ind-tab-txt b { white-space: normal; font-size: 0.8rem; line-height: 1.25; text-align: left; }
}
