/* =========================================================
   PROMPT 4B, B3 - Industries: four open columns (shared
   dv_industry_cards() component - Industries, Home, Capabilities).
   No card box, no numbers. On white/off-white sections only, so the
   "white highlight" the brief mentions is used as the accent (teal)
   rather than literal white, which would be invisible on this
   background - navy for structural lines, teal for the one
   highlighted element per motif.
   ========================================================= */
.dv-ind-open-grid {
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 0;
}
.dv-ind-open-col {
  position: relative;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  transition: opacity .4s var(--m-ease-out);
}
.dv-ind-open-col:first-child { border-top: none; }

@media (min-width: 700px) {
  .dv-ind-open-grid { grid-template-columns: 1fr 1fr; column-gap: clamp(2rem, 4vw, 3.5rem); }
  .dv-ind-open-col:nth-child(2) { border-top: none; }
  .dv-ind-open-col:nth-child(1), .dv-ind-open-col:nth-child(2) { border-top: none; }
}

@media (min-width: 1100px) {
  /* Prompt 4G, G6: the divider-to-text gap used to be the grid's own
     column-gap (28-48px) PLUS this column's own right padding (the
     same clamp again) stacked on one side only, while the other side
     of the line had none at all - a wide, asymmetric gutter. column-
     gap removed; a plain, equal 18px padding on both sides of each
     column now gives every divider a normal, symmetric gap. */
  .dv-ind-open-grid { grid-template-columns: repeat(4, 1fr); column-gap: 0; row-gap: 0; }
  .dv-ind-open-col {
    border-top: none;
    border-left: 1px solid var(--border);
    padding: 0 18px;
  }
  .dv-ind-open-col:first-child { border-left: none; padding-left: 0; }
  .dv-ind-open-col:last-child { padding-right: 0; }
  /* The vertical divider itself "draws in" top to bottom on scroll - see
     the ::before pseudo (the real border above stays as the at-rest
     line so nothing moves if JS never runs). */
  html.js .dv-motion .dv-ind-open-col:not(:first-child) { border-left-color: transparent; }
  html.js .dv-motion .dv-ind-open-col:not(:first-child)::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--border);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform .6s var(--m-ease-out);
  }
  html.js .dv-motion [data-dv-ind-open-grid].is-revealed .dv-ind-open-col::before {
    transform: scaleY(1);
  }
}

/* Dim the other columns on hover/focus of any one column. */
html.js .dv-motion [data-dv-ind-open-grid]:hover .dv-ind-open-col,
html.js .dv-motion [data-dv-ind-open-grid]:focus-within .dv-ind-open-col {
  opacity: .55;
}
html.js .dv-motion [data-dv-ind-open-grid] .dv-ind-open-col:hover,
html.js .dv-motion [data-dv-ind-open-grid] .dv-ind-open-col:focus-within {
  opacity: 1;
}

/* Prompt 4D, D3: now holds one Font Awesome icon (was a hand-drawn
   line motif, removed - see dv_industry_icon_name() in
   inc/template-tags.php). */
.dv-ind-open-motif {
  width: 56px;
  height: 56px;
  margin-bottom: 1.25rem;
  color: var(--navy);
  font-size: 2rem;
  display: flex;
  align-items: center;
}
html.js .dv-motion .dv-ind-open-motif {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .5s var(--m-ease-out), transform .5s var(--m-ease-out);
}
html.js .dv-motion .dv-ind-open-col.is-played .dv-ind-open-motif {
  opacity: 1;
  transform: none;
}

.dv-ind-open-title {
  font-size: clamp(1.375rem, 1.5vw + 1rem, 1.75rem);
  line-height: 1.2;
  position: relative;
  display: inline-block;
  padding-bottom: .4rem;
}
.dv-ind-open-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 100%;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .45s var(--m-ease-out);
}
html.js .dv-motion [data-dv-ind-open-grid] .dv-ind-open-col:hover .dv-ind-open-title::after,
html.js .dv-motion [data-dv-ind-open-grid] .dv-ind-open-col:focus-within .dv-ind-open-title::after {
  transform: scaleX(1);
}

.dv-ind-open-body {
  margin-top: .75rem;
  font-size: 1.0625rem;
  line-height: 1.6;
}

@media (prefers-reduced-motion: reduce) {
  .dv-ind-open-col,
  .dv-ind-open-title::after,
  .dv-ind-open-motif,
  html.js .dv-motion .dv-ind-open-col:not(:first-child)::before {
    transition: none;
  }
  html.js .dv-motion .dv-ind-open-col:not(:first-child)::before { transform: scaleY(1); }
  html.js .dv-motion .dv-ind-open-motif { opacity: 1; transform: none; }
  html.js .dv-motion [data-dv-ind-open-grid]:hover .dv-ind-open-col,
  html.js .dv-motion [data-dv-ind-open-grid]:focus-within .dv-ind-open-col {
    opacity: 1;
  }
}
