/* ==========================================================================
   Click On Screens · Industries pages (industries/*.html)
   Built on the solution pages' design system (solutions/css/styles.css): same
   hero, section heads, tones, verbs list and CTA card. This file only adds the
   pieces the industry copy needs.
   ========================================================================== */

/* ---------- Hero: square screen photos (the upscaled composites) ----------
   --st / --sb: the band of the photo, as fractions of its height, kept between the nav and the copy */
.hero--ind { --arh: 1; }
.hero--ind-all   { --st: .30; --sb: .58; }   /* billboard */
.hero--ind-fuel  { --st: .27; --sb: .62; }   /* outdoor screen on the canopy pillar */
.hero--ind-cafe  { --st: .26; --sb: .56; }   /* menu boards over the counter */
.hero--ind-super { --st: .33; --sb: .63; }   /* screen inside the store window */
@media (max-width: 760px) {
  /* phones: the photo's band starts just below the floating nav */
  .hero--ind { --scene-w-m: 150vw; padding-top: calc(100px + var(--sh) * (var(--sb) - var(--st))); }
  .hero--ind .scene { top: calc(84px - var(--sh) * var(--st)); }
  .hero--ind::after { --band: calc(84px + var(--sh) * (var(--sb) - var(--st)));
    background: linear-gradient(180deg, transparent 0, transparent calc(var(--band) - 70px), rgba(14,15,30,.9) calc(var(--band) + 4px), var(--ink) calc(var(--band) + 60px)); }
}

/* ---------- Touchpoints: a spotlight (the Display Solutions pattern). The list picks one display and its photo
   fills the panel; group names (Forecourt / Store / …) sit in the list between their displays ---------- */
.touch-group { display: flex; align-items: center; gap: 10px; padding: 18px 4px 8px; border-bottom: 1px solid var(--line); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-3); }
.touch-group:first-child { padding-top: 12px; }
.touch-group__n { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 5px; background: var(--accent); color: #fff; font: 500 13px/1 "Pixelify Sans", monospace; letter-spacing: 0; }
@media (min-width: 901px) { .tp-spot .touch-group { flex: none; } }
.tp-stage { padding: 0; overflow: hidden; min-height: 420px; }
.tp-stage > .tp-pane { position: relative; margin: 0; min-height: 0; border-radius: inherit; overflow: hidden; }
.tp-pane .screen-photo { position: absolute; inset: 0; transform: scale(1.04); transition: transform 1.2s var(--ease); }
.tp-pane.on .screen-photo { transform: none; }
.tp-pane figcaption { position: absolute; left: 16px; bottom: 16px; z-index: 1; display: inline-flex; align-items: baseline; gap: 10px; max-width: calc(100% - 32px); padding: 8px 14px; border-radius: 8px; background: rgba(14,15,30,.78); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; font-size: 14px; line-height: 1.35; }
.tp-pane figcaption .idx { font-size: 13px; }

/* ---------- One network: a store, a group of stores, the whole network (LED dot map, like the Display Solutions map) ---------- */
.reach { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); max-width: 1080px; margin: clamp(40px, 5vw, 64px) auto 0; }
.reach__tile { display: grid; justify-items: center; gap: 22px; padding: clamp(28px, 3vw, 44px) 20px; text-align: center; }
.reach__map { display: grid; grid-template-columns: repeat(4, 22px); gap: 12px; }
.reach__map i { width: 22px; height: 22px; border-radius: 4px; background: var(--dot-off); box-shadow: inset 0 0 0 1px var(--line-2); }
.reach__map i.on { background: var(--accent); box-shadow: 0 0 12px rgba(220,79,53,.6); }
.js .reach.rv .reach__map i.on { opacity: .25; transition: opacity .5s var(--ease); transition-delay: calc(.4s + var(--j, 0) * 60ms); }
.js .reach.rv.in .reach__map i.on { opacity: 1; }
.reach__tile p { font-family: "Geist", sans-serif; font-size: 20px; line-height: 1.3; letter-spacing: -0.01em; color: var(--fg); }

/* ---------- Day parts: four pixel-grid tiles beside the menu boards (js/industries.js draws the tiles).
   Each time of day shows for a few seconds and the boards switch with it ---------- */
.daypart { max-width: 1180px; margin: clamp(40px, 5vw, 64px) auto 0; }
.daypart--split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 3vw, 44px); align-items: center; }
.daypart__label { margin-bottom: 16px; }
.dp-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dp-tile { display: grid; gap: 10px; padding: 12px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--dot-off-bg, rgba(255,255,255,.02)); text-align: left; transition: border-color .35s, background .35s; }
.dp-tile canvas { display: block; width: 100%; aspect-ratio: 26 / 15; }
.dp-tile[aria-checked="true"] { border-color: var(--accent); background: rgba(220,79,53,.06); }
.dp-tile__lab { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.dp-tile__lab b { font-family: "Geist", sans-serif; font-weight: 400; font-size: clamp(16px, .9rem + .4vw, 20px); color: var(--fg-3); transition: color .3s; }
.dp-tile[aria-checked="true"] .dp-tile__lab b, .dp-tile:hover .dp-tile__lab b { color: var(--fg); }
.dp-tile__lab small { font: 500 12px/1 "Pixelify Sans", monospace; letter-spacing: .04em; color: var(--fg-3); }
.dp-tile__bar { height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.dp-tile__bar i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.dp-tile[aria-checked="true"] .dp-tile__bar i { animation: dp-fill 2.8s linear forwards; }
.dp-tile.is-held .dp-tile__bar i { animation-duration: 5s; }
.is-paused .dp-tile[aria-checked="true"] .dp-tile__bar i { animation-play-state: paused; }
@keyframes dp-fill { to { transform: scaleX(1); } }
.daypart__board { overflow: hidden; aspect-ratio: 1.5; padding: 0; }
.daypart__board .screen-photo { border-radius: inherit; }
.daypart__board .screen-photo__ad.is-swap { animation: screen-photo-on .7s linear both; }

/* ---------- Connected network: Digital Displays + Central Media Management + … ---------- */
.eq { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 6px 18px; max-width: 1080px; margin: clamp(36px, 4.5vw, 56px) auto 0; font-family: "Geist", sans-serif; font-size: clamp(1.6rem, 1rem + 2vw, 2.75rem); line-height: 1.2; letter-spacing: -0.02em; text-align: center; }
.eq a { color: var(--fg); background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .35s var(--ease), color .25s; }
.eq a:hover, .eq a:focus-visible { color: var(--accent-text); background-size: 100% 1px; }
.eq__plus { color: var(--accent); }
.eq__note { max-width: 640px; margin: 28px auto 0; text-align: center; text-wrap: balance; }

/* ---------- Retail media: the About page's tile grid, titles only ---------- */
.why--list > li { min-height: 0; padding-block: clamp(22px, 2.2vw, 30px); }

/* ---------- Industries landing: one card per industry ---------- */
.ind-cards { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); margin-top: clamp(40px, 5vw, 64px); }
.ind-card { position: relative; display: flex; flex-direction: column; }
.ind-card figure { margin: 0 0 20px; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--surface); }
.ind-card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.ind-card:hover figure img { transform: scale(1.04); }
.ind-card .idx { margin-bottom: 6px; }
.ind-card h3 { font-family: "Geist", sans-serif; font-weight: 400; font-size: clamp(22px, 1rem + .8vw, 28px); line-height: 1.2; letter-spacing: -0.015em; color: var(--fg); }
.ind-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.ind-card:hover h3 { color: var(--accent-text); }
.ind-card p { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--fg-2); }
.ind-card__go { display: inline-flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 18px; font-size: 15px; color: var(--fg); }
.ind-card__go .go { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); transition: transform .35s var(--ease); }
.ind-card__go .go svg { width: 12px; height: 12px; }
.ind-card:hover .ind-card__go .go { transform: translateX(3px); }

@media (max-width: 1100px) {
  .ind-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .tp-stage { min-height: 0; aspect-ratio: 4 / 3; }
  .reach { grid-template-columns: minmax(0, 1fr); max-width: 420px; }
  .daypart--split { grid-template-columns: 1fr; }
  .daypart__board { aspect-ratio: 1.6; }
}
@media (max-width: 600px) {
  .ind-cards { grid-template-columns: minmax(0, 1fr); }
  .tp-pane figcaption { left: 10px; bottom: 10px; padding: 6px 10px; font-size: 13px; }
  .tp-pane__grp { display: none; }
  .dp-tiles { gap: 8px; }
  .dp-tile { padding: 8px; gap: 8px; }
  .ind-card figure { aspect-ratio: 4 / 3; }
}
@media (prefers-reduced-motion: reduce) {
  .tp-pane .screen-photo, .ind-card figure img { transition: none; transform: none; }
  .dp-tile[aria-checked="true"] .dp-tile__bar i { animation: none; transform: scaleX(1); }
}
