/* Section 03: industry examples with matching dark fronts and dark flip backs. */
.industry-approach {
  padding: 112px 0 108px;
  background: var(--page-bg);
  color: var(--text);
}

.industry-header {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: end;
  gap: 56px;
  margin-bottom: 45px;
}

.industry-header > * { min-width: 0; }

.industry-approach .eyebrow {
  display: block;
  margin: 0 0 25px;
  padding: 0;
  border-radius: 0;
  background: none;
  color: var(--muted);
  font: 600 11px/1.5 Arial, sans-serif;
  letter-spacing: .16em;
}

.industry-approach .display-title {
  margin: 0;
  color: var(--text);
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: -.055em;
}

.industry-header .section-lead {
  justify-self: end;
  margin: 0 0 4px;
  color: var(--body-text);
  font-size: clamp(14px, 1.15vw, 17px);
  line-height: 1.85;
  letter-spacing: -.025em;
}

.industry-disclosure {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: -.025em;
}

.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 24px;
}

.industry-card {
  position: relative;
  min-width: 0;
  perspective: 1600px;
}

/* Keep the scroll reveal on the article and the flip on its inner wrapper. */
.industry-card-inner {
  display: grid;
  gap: 24px;
  height: 100%;
}

.industry-card.is-interactive .industry-card-inner {
  gap: 0;
  transform-style: preserve-3d;
  transition: transform .65s cubic-bezier(.22, .7, .25, 1);
}

.industry-card.is-flipped .industry-card-inner { transform: rotateY(180deg); }

.industry-card-face {
  position: relative;
  min-width: 0;
  padding: 32px 30px 88px;
  border: 1px solid rgb(255 255 255 / 9%);
  border-top-color: rgb(255 244 228 / 23%);
  border-left-color: rgb(255 255 255 / 14%);
  border-bottom-color: rgb(0 0 0 / 60%);
  border-radius: 14px;
  /* A lit rim, a shaded lower edge, then contact and ambient shadows. */
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 7%),
    inset 1px 0 0 rgb(255 255 255 / 3%),
    inset -1px -2px 0 rgb(0 0 0 / 24%),
    0 3px 0 #111, 0 4px 0 rgb(255 255 255 / 6%),
    3px 9px 14px rgb(0 0 0 / 28%),
    8px 28px 40px -12px rgb(0 0 0 / 52%);
  transition: box-shadow .24s ease, border-color .24s ease;
}

/* The thin highlight follows the same upper-left light on both faces. */
.industry-card-face::before {
  content: '';
  position: absolute;
  top: 0;
  right: 14px;
  left: 14px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(255 241 221 / 23%) 18%, rgb(255 255 255 / 4%) 76%, transparent);
  pointer-events: none;
}

.industry-card.is-interactive .industry-card-front { transform: translateZ(2px); }

.industry-card.is-interactive .industry-card-face {
  grid-area: 1 / 1;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.industry-card-front {
  background: radial-gradient(ellipse at 8% 0%, rgb(255 243 226 / 7%), transparent 58%),
    linear-gradient(145deg, #292724, #1a1a1a 43%, #101010);
  color: var(--text);
  cursor: pointer;
}

.industry-card-back {
  display: flex;
  flex-direction: column;
  border-top-color: rgb(255 196 155 / 29%);
  border-left-color: rgb(255 196 155 / 16%);
  background: radial-gradient(ellipse at 8% 0%, rgb(255 196 151 / 6%), transparent 58%),
    linear-gradient(145deg, #302a25, #202020 40%, #141414);
  color: #fff;
}

.industry-card.is-interactive .industry-card-back { transform: rotateY(180deg) translateZ(2px); }

.industry-kicker {
  margin: 0;
  color: var(--muted);
  font: 600 11px/1.5 Arial, sans-serif;
  letter-spacing: .075em;
}

.industry-card-back .industry-kicker { color: var(--muted); }

.industry-card-title {
  margin: 36px 0 29px;
  color: inherit;
  font-size: clamp(26px, 2.45vw, 36px);
  font-weight: 800;
  line-height: 1.38;
  letter-spacing: -.055em;
}

.industry-front-copy {
  margin: 24px 0 0;
  color: var(--body-text);
  font-size: 13px;
  line-height: 1.9;
  letter-spacing: -.035em;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.industry-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  padding: 5px;
  object-fit: cover;
  border: 1px solid rgb(255 255 255 / 13%);
  border-top-color: rgb(255 255 255 / 27%);
  border-left-color: rgb(255 255 255 / 20%);
  border-radius: 8px;
  background: linear-gradient(145deg, #3a3835, #202020 45%, #111);
  box-shadow: 2px 3px 0 #101010, 2px 4px 0 rgb(255 255 255 / 8%),
    3px 7px 10px rgb(0 0 0 / 32%), 6px 18px 25px -7px rgb(0 0 0 / 44%);
}

.industry-category {
  margin: 24px 0 21px;
  color: inherit;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: -.025em;
}

.industry-card-note {
  min-height: calc(3.4em + 20px);
  margin: 0;
  padding-top: 19px;
  border-top: 1px solid var(--line);
  color: var(--body-text);
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: -.035em;
}

/* The native control stays outside the rotating faces, so focus never disappears. */
.industry-flip-toggle {
  position: absolute;
  z-index: 2;
  right: 30px;
  bottom: 25px;
  left: 30px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color .25s ease;
}

.industry-card.is-flipped .industry-flip-toggle { color: #fff; }
.industry-card.is-interactive .industry-flip-toggle { display: flex; }

.industry-flip-icon {
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border: 1px solid #555;
  border-radius: 50%;
  font: 400 20px/1 Arial, sans-serif;
}

.industry-card.is-flipped .industry-flip-icon {
  border-color: var(--orange);
  background: var(--orange);
  color: #080808;
}

.industry-flip-toggle:focus-visible,
.industry-inquiry-link:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 5px;
  border-radius: 3px;
}

.industry-back-title {
  margin: 36px 0 30px;
  color: #fff;
  font-size: clamp(23px, 2.1vw, 30px);
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: -.045em;
}

.industry-expanded-label {
  margin: 0 0 14px;
  color: #ffad7f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .015em;
}

.industry-flow {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: industry-flow;
}

.industry-flow li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: baseline;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid #444;
  color: #fff;
  font-size: 14px;
  line-height: 1.65;
  letter-spacing: -.03em;
  counter-increment: industry-flow;
}

.industry-flow li:last-child { border-bottom: 1px solid #444; }

.industry-flow li::before {
  content: counter(industry-flow, decimal-leading-zero);
  color: #ffad7f;
  font: 600 11px/1.6 Arial, sans-serif;
}

.industry-expanded-copy {
  margin: 24px 0 24px;
  color: var(--body-text);
  font-size: 14px;
  line-height: 1.9;
  letter-spacing: -.025em;
}

.industry-inquiry-link {
  display: inline-flex;
  align-items: center;
  align-self: start;
  gap: 12px;
  min-height: 44px;
  margin-top: auto;
  color: #ffad7f;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
  text-decoration: underline;
  text-underline-offset: 5px;
}

@media (hover: hover) {
  .industry-inquiry-link:hover { text-decoration-thickness: 2px; }
  .industry-card.is-interactive:hover .industry-card-face {
    border-top-color: rgb(255 209 177 / 36%);
    border-left-color: rgb(255 220 196 / 21%);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 10%),
      inset 1px 0 0 rgb(255 255 255 / 4%),
      inset -1px -2px 0 rgb(0 0 0 / 24%),
      0 3px 0 #111, 0 4px 0 rgb(255 255 255 / 7%),
      4px 12px 18px rgb(0 0 0 / 33%),
      10px 34px 46px -12px rgb(0 0 0 / 58%);
  }
}

/* The separate translate leaves both the scroll reveal and inner flip intact. */
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .industry-card.is-interactive:not(.motion-item) { transition: translate .24s ease; }
  .industry-card.is-interactive:not(.motion-item):hover { translate: 0 -4px; }
}

@media (max-width: 1100px) {
  .industry-card-face { padding: 28px 24px 86px; }
  .industry-card-title { margin-top: 30px; font-size: clamp(21px, 2.4vw, 26px); }
  .industry-kicker { font-size: 10px; letter-spacing: .05em; }
  .industry-grid { gap: 20px; }
  .industry-header { gap: 36px; }
  .industry-flip-toggle { right: 24px; left: 24px; bottom: 23px; }
  .industry-back-title { margin: 30px 0 25px; font-size: 23px; }
  .industry-expanded-copy { font-size: 13px; }
}

@media (max-width: 900px) {
  .industry-approach { padding-block: 88px; }
  .industry-header { grid-template-columns: 1fr; gap: 24px; margin-bottom: 34px; }
  .industry-header .section-lead { justify-self: start; max-width: 540px; font-size: 15px; }
  .industry-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; gap: 22px; }
  .industry-card-face { padding: 32px 32px 88px; }
  .industry-card-title { font-size: 36px; }
  .industry-card-note { min-height: 0; }
  .industry-flip-toggle { right: 32px; left: 32px; bottom: 25px; }
  .industry-back-title { font-size: 30px; }
  .industry-expanded-copy { font-size: 14px; }
}

@media (max-width: 760px) {
  .industry-approach { padding: 72px 0; }
  .industry-approach > .container { width: calc(100% - 40px); }
  .industry-approach .eyebrow { margin-bottom: 20px; font-size: 10px; }
  .industry-approach .display-title { font-size: clamp(31px, 8.1vw, 46px); line-height: 1.38; }
  .industry-header { gap: 22px; margin-bottom: 28px; }
  .industry-header .section-lead { font-size: 13px; line-height: 1.9; }
  .industry-disclosure { margin-bottom: 21px; font-size: 11px; line-height: 1.9; }
  .industry-grid { gap: 18px; }
  .industry-card-face { padding: 27px 24px 82px; border-radius: 12px; box-shadow: inset 0 1px 0 rgb(255 255 255 / 7%), inset -1px -2px 0 rgb(0 0 0 / 22%), 0 2px 0 #111, 0 3px 0 rgb(255 255 255 / 5%), 2px 8px 13px rgb(0 0 0 / 26%), 4px 18px 26px -9px rgb(0 0 0 / 44%); }
  .industry-image { padding: 4px; box-shadow: 1px 2px 0 #111, 1px 3px 0 rgb(255 255 255 / 7%), 2px 5px 8px rgb(0 0 0 / 28%), 4px 12px 18px -6px rgb(0 0 0 / 38%); }
  .industry-card-title { margin: 27px 0 24px; font-size: clamp(21px, 6.1vw, 34px); }
  .industry-front-copy { margin-top: 22px; font-size: 12px; line-height: 1.9; }
  .industry-category { margin: 22px 0 19px; font-size: 12px; }
  .industry-card-note { font-size: 12px; line-height: 1.8; }
  .industry-flip-toggle { right: 24px; left: 24px; bottom: 21px; }
  .industry-back-title { margin: 27px 0 24px; font-size: clamp(21px, 5.8vw, 28px); }
  .industry-flow li { padding-block: 10px; font-size: 13px; }
  .industry-expanded-copy { margin-block: 22px; font-size: 13px; line-height: 1.85; }
}

@media (prefers-reduced-motion: reduce) {
  .industry-approach *,
  .industry-approach *::before,
  .industry-approach *::after { transition: none !important; animation: none !important; }
}
