/* ===== INDUSTRIES PAGE ===== */
/* Accordion layout mirroring technologies page, with ind- namespace */

:root {
  --ind-side: max(6vw, calc((100vw - 1400px) / 2 + 40px));
}

/* ══════════════════════════════════════
   HERO
   ══════════════════════════════════════ */
.ind-hero {
  background: #fff9f8;
  padding-bottom: 0;
  overflow: hidden;
  position: relative;
}

.ind-hero__container {
  padding: 0 var(--ind-side);
}

.ind-hero__text {
  max-width: 680px;
}

.ind-hero__label {
  font-family: "Poppins", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #751560;
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 2rem;
}

.ind-hero__label::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1.2rem;
  height: 1.5px;
  background: #751560;
  transform: translateY(-50%);
}

.ind-hero__title {
  font-family: "Poppins", sans-serif;
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 300;
  color: var(--theme, #32013a);
  line-height: 1.08;
  margin: 0 0 2rem 0;
  letter-spacing: -0.025em;
}

.ind-hero__subtitle {
  font-family: "Poppins", sans-serif;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  font-weight: 300;
  color: var(--theme, #32013a);
  line-height: 1.7;
  margin: 0;
  max-width: 540px;
  opacity: 0.65;
}

/* ══════════════════════════════════════
   INDUSTRIES INDEX (horizontal pills)
   ══════════════════════════════════════ */
.ind-index {
  background: #fff9f8;
  padding: 3rem 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.ind-index::-webkit-scrollbar {
  display: none;
}

.ind-index__track {
  display: flex;
  gap: 0.6rem;
  padding: 0 var(--ind-side);
  min-width: max-content;
}

.ind-index__pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.3rem;
  border: 1px solid rgba(50, 1, 58, 0.12);
  border-radius: 100px;
  background: transparent;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--theme, #32013a);
  white-space: nowrap;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0;
  transform: translateY(6px);
}

.ind-index.in-view .ind-index__pill {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.3s ease,
              border-color 0.3s ease,
              color 0.3s ease;
}

.ind-index.in-view .ind-index__pill:nth-child(1) { transition-delay: 0.05s; }
.ind-index.in-view .ind-index__pill:nth-child(2) { transition-delay: 0.1s; }
.ind-index.in-view .ind-index__pill:nth-child(3) { transition-delay: 0.15s; }
.ind-index.in-view .ind-index__pill:nth-child(4) { transition-delay: 0.2s; }
.ind-index.in-view .ind-index__pill:nth-child(5) { transition-delay: 0.25s; }
.ind-index.in-view .ind-index__pill:nth-child(6) { transition-delay: 0.3s; }
.ind-index.in-view .ind-index__pill:nth-child(7) { transition-delay: 0.35s; }

.ind-index__pill:hover {
  background: rgba(117, 21, 96, 0.06);
  border-color: rgba(117, 21, 96, 0.2);
}

.ind-index__pill--active {
  background: var(--theme, #32013a) !important;
  border-color: var(--theme, #32013a) !important;
  color: #fff !important;
}

.ind-index__pill-num {
  font-size: 0.7rem;
  font-weight: 500;
  opacity: 0.5;
}

.ind-index__pill--active .ind-index__pill-num {
  opacity: 0.7;
}

/* ══════════════════════════════════════
   INDUSTRY ACCORDION
   ══════════════════════════════════════ */
.ind-list {
  background: #fff9f8;
  padding: 0 0 100px;
}

.ind-list__container {
  padding: 0 var(--ind-side);
}

/* ─── Row ─── */
.ind-row {
  border-top: 1px solid rgba(50, 1, 58, 0.1);
  position: relative;
  opacity: 0;
  transform: translateY(12px);
}

.ind-row:last-child {
  border-bottom: 1px solid rgba(50, 1, 58, 0.1);
}

.ind-list.in-view .ind-row {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(0.05s + var(--row-index) * 0.07s);
}

/* ─── Accent edge ─── */
.ind-row__accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent, #751560);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 0 2px 2px 0;
}

.ind-row--open .ind-row__accent {
  transform: scaleY(1);
}

/* ─── Header (clickable) ─── */
.ind-row__header {
  display: grid;
  grid-template-columns: 3.5rem 1fr auto 24px;
  gap: 0;
  align-items: center;
  width: 100%;
  padding: 2rem 0;
  padding-left: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  color: inherit;
  transition: opacity 0.25s ease;
}

.ind-row__header:hover {
  opacity: 0.7;
}

.ind-row__number {
  font-family: "Poppins", sans-serif;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent, #751560);
  letter-spacing: 0.05em;
  opacity: 0.6;
}

.ind-row__title {
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.3rem, 2vw, 1.85rem);
  font-weight: 300;
  color: var(--theme, #32013a);
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.ind-row__tagline {
  font-family: "Poppins", sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--theme, #32013a);
  opacity: 0.38;
  white-space: nowrap;
  margin-right: 2rem;
  transition: opacity 0.25s ease;
}

.ind-row--open .ind-row__tagline {
  opacity: 0.55;
}

/* Toggle indicator — thin plus that becomes minus */
.ind-row__toggle {
  display: block;
  width: 18px;
  height: 18px;
  position: relative;
  flex-shrink: 0;
}

.ind-row__toggle::before,
.ind-row__toggle::after {
  content: "";
  position: absolute;
  background: var(--theme, #32013a);
  border-radius: 1px;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.35s ease;
}

/* Horizontal bar */
.ind-row__toggle::before {
  top: 50%;
  left: 0;
  right: 0;
  height: 1.5px;
  transform: translateY(-50%);
}

/* Vertical bar (rotates to disappear) */
.ind-row__toggle::after {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1.5px;
  transform: translateX(-50%);
}

.ind-row--open .ind-row__toggle::after {
  transform: translateX(-50%) rotate(90deg);
  opacity: 0;
}

/* ─── Body (expandable) ─── */
.ind-row__body {
  height: 0;
  overflow: hidden;
  transition: height 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.ind-row__body-inner {
  padding: 0.5rem 0 3rem calc(1.5rem + 3.5rem);
}

.ind-row__content {
  display: grid;
  grid-template-columns: 280px 1fr 260px;
  gap: 2.5rem;
  align-items: start;
}

/* ─── Image column ─── */
.ind-row__image-col {
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s,
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s;
}

.ind-row--open .ind-row__image-col {
  opacity: 1;
  transform: translateX(0);
}

.ind-row__image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 0;
  overflow: hidden;
}

.ind-row__image {
  object-fit: cover;
}

.ind-row__image-overlay {
  position: absolute;
  inset: 0;
  mix-blend-mode: multiply;
  opacity: 0.35;
}

/* ─── Description column ─── */
.ind-row__desc-col {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.15s,
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.15s;
}

.ind-row--open .ind-row__desc-col {
  opacity: 1;
  transform: translateY(0);
}

.ind-row__description {
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.75;
  color: var(--theme, #32013a);
  margin: 0 0 2rem 0;
  opacity: 0.75;
}

/* Detail page link */
.ind-row__detail-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Poppins", sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: #fff;
  background: var(--accent, #751560);
  text-decoration: none;
  padding: 0.65em 1.5em;
  border-radius: 0;
  margin-bottom: 2rem;
  transition: background 0.25s ease, gap 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.ind-row__detail-link:hover {
  background: var(--theme, #32013a);
}

.ind-row__detail-arrow {
  font-weight: 300;
  font-size: 1.05em;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
}

.ind-row__detail-link:hover .ind-row__detail-arrow {
  transform: translateX(3px);
}

.ind-row__meta-label {
  display: block;
  font-family: "Poppins", sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent, #751560);
  opacity: 0.6;
  margin-bottom: 0.6rem;
}

/* Case study links */
.ind-row__cases-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.ind-row__case-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: "Poppins", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--theme, #32013a);
  text-decoration: none;
  transition: color 0.2s ease, gap 0.2s ease;
}

.ind-row__case-link:hover {
  color: var(--accent, #751560);
}

.ind-row__case-arrow {
  font-weight: 300;
  font-size: 1.15rem;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-block;
}

.ind-row__case-link:hover .ind-row__case-arrow {
  transform: translateX(3px);
}

/* ─── Capabilities column ─── */
.ind-row__caps-col {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.2s,
              transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}

.ind-row--open .ind-row__caps-col {
  opacity: 1;
  transform: translateY(0);
}

.ind-row__capabilities {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.ind-row__capability {
  font-family: "Poppins", sans-serif;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--theme, #32013a);
  opacity: 0.65;
  padding-left: 1.1rem;
  position: relative;
  line-height: 1.4;
}

.ind-row__capability::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 5px;
  height: 1.5px;
  background: var(--accent, #751560);
  border-radius: 1px;
  opacity: 0.6;
}

/* ══════════════════════════════════════
   CTA
   ══════════════════════════════════════ */
.ind-cta {
  padding: 120px 0 160px;
  background: #fff9f8;
  text-align: center;
}

.ind-cta__container {
  padding: 0 var(--ind-side);
}

.ind-cta__label {
  display: block;
  font-family: "Poppins", sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: #751560;
  margin-bottom: 1.2rem;
  opacity: 0;
  transform: translateY(10px);
}

.ind-cta__title {
  font-family: "Poppins", sans-serif;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  font-weight: 300;
  color: var(--theme, #32013a);
  margin: 0 0 1rem 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(20px);
}

.ind-cta__subtitle {
  font-family: "Poppins", sans-serif;
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--theme, #32013a);
  opacity: 0;
  transform: translateY(20px);
  margin: 0 auto 2.5rem;
  line-height: 1.6;
  max-width: 440px;
}

.ind-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background-color: var(--theme, #32013a);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 1em 2.2em;
  border-radius: 0;
  text-decoration: none;
  transition: background-color 0.25s ease, gap 0.25s ease;
  opacity: 0;
  transform: translateY(20px);
}

.ind-cta__btn:hover {
  background-color: #751560;
}

.ind-cta__btn-arrow {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 1.1em;
}

.ind-cta__btn:hover .ind-cta__btn-arrow {
  transform: translateX(3px);
}

.ind-cta.in-view .ind-cta__label {
  opacity: 0.7;
  transform: translateY(0);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.ind-cta.in-view .ind-cta__title {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.08s,
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.08s;
}

.ind-cta.in-view .ind-cta__subtitle {
  opacity: 0.65;
  transform: translateY(0);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.14s,
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.14s;
}

.ind-cta.in-view .ind-cta__btn {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.25s,
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.25s,
              background-color 0.25s ease,
              gap 0.25s ease;
}

/* ══════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════ */

/* Large Desktop (1600px+) */
@media (min-width: 1600px) {
  :root {
    --ind-side: max(11vw, 250px);
  }

  .ind-row__header {
    padding: 2.5rem 0 2.5rem 1.5rem;
  }

  .ind-row__content {
    grid-template-columns: 320px 1fr 280px;
    gap: 3.5rem;
  }
}

/* Very large (1800px+) */
@media (min-width: 1800px) {
  .ind-list__container,
  .ind-hero__container,
  .ind-cta__container {
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 40px;
    padding-right: 40px;
  }

  .ind-index__track {
    max-width: 1500px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 40px;
    padding-right: 40px;
  }
}

/* Mid-desktop (1200px and below) */
@media (max-width: 1200px) {
  .ind-row__content {
    grid-template-columns: 240px 1fr 220px;
    gap: 2rem;
  }
}

/* Tablet (991px and below) */
@media (max-width: 991px) {
  .ind-hero {
    padding-bottom: 0;
  }

  .ind-index__track {
    gap: 0.5rem;
  }

  .ind-list {
    padding-bottom: 60px;
  }

  .ind-row__header {
    grid-template-columns: 2.5rem 1fr 18px;
    padding: 1.75rem 0 1.75rem 1rem;
  }

  .ind-row__tagline {
    display: none;
  }

  .ind-row__body-inner {
    padding-left: calc(1rem + 2.5rem);
  }

  .ind-row__content {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .ind-row__image-col {
    grid-column: 1 / -1;
  }

  .ind-row__image-wrapper {
    aspect-ratio: 16 / 7;
  }

  .ind-cta {
    padding: 80px 0 120px;
  }
}

/* Mobile (767px and below) */
@media (max-width: 767px) {
  .ind-hero__label {
    font-size: 0.7rem;
  }

  .ind-index {
    padding: 2rem 0;
  }

  .ind-index__pill {
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
  }

  .ind-row__header {
    grid-template-columns: 2rem 1fr 16px;
    gap: 0;
    padding: 1.5rem 0 1.5rem 0.75rem;
  }

  .ind-row__number {
    font-size: 0.7rem;
  }

  .ind-row__title {
    font-size: 1.2rem;
  }

  .ind-row__body-inner {
    padding-left: calc(0.75rem + 2rem);
    padding-bottom: 2rem;
  }

  .ind-row__content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .ind-row__image-wrapper {
    aspect-ratio: 16 / 9;
  }

  .ind-row__description {
    font-size: 0.9rem;
  }

  .ind-cta {
    padding: 60px 0 100px;
  }

  .ind-cta__btn {
    font-size: 0.9rem;
    padding: 0.9em 2em;
  }
}

/* Small Mobile (479px and below) */
@media (max-width: 479px) {
  .ind-row__header {
    grid-template-columns: 1.75rem 1fr 14px;
    padding: 1.25rem 0 1.25rem 0.5rem;
  }

  .ind-row__toggle {
    width: 14px;
    height: 14px;
  }

  .ind-row__body-inner {
    padding-left: calc(0.5rem + 1.75rem);
    padding-bottom: 1.5rem;
  }

  .ind-row__image-wrapper {
    aspect-ratio: 3 / 2;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  .ind-row,
  .ind-row__body,
  .ind-row__toggle::before,
  .ind-row__toggle::after,
  .ind-row__accent,
  .ind-row__image-col,
  .ind-row__desc-col,
  .ind-row__caps-col,
  .ind-cta__label,
  .ind-cta__title,
  .ind-cta__subtitle,
  .ind-cta__btn,
  .ind-index__pill {
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .ind-row__accent {
    transform: scaleY(0) !important;
  }

  .ind-row--open .ind-row__accent {
    transform: scaleY(1) !important;
  }

  .ind-cta__subtitle {
    opacity: 0.65 !important;
  }
}
