
.pwi {
  --pwi-red: #e62e45;
  --pwi-red-dark: #c92339;
  --pwi-ink: #141414;
  --pwi-ink-soft: #11112a;
  --pwi-grey: #757575;
  --pwi-band: #f2f3f5;
  --pwi-border: #e1e1e1;
  font-family: 'Roboto', Arial, sans-serif;
  color: var(--pwi-ink);
}
.pwi *, .pwi *::before, .pwi *::after { box-sizing: border-box; }

.pwi__wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.pwi-sec { padding: 90px 0; background: #fff; }
.pwi-sec--band { background: var(--pwi-band); }
/* second white section in a row: no double gap */
.pwi-sec.pwi-sec--flush { padding-top: 0; }

/* ---------- buttons: 48 high, radius 5, 16/700 uppercase ---------- */
.pwi .pwi-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 28px;
  border: 1.6px solid var(--pwi-red);
  border-radius: 5px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
/* #allrecords: Tilda's "#allrecords a { color: red }" otherwise wins */
#allrecords .pwi .pwi-btn { background: var(--pwi-red); color: #fff; }
#allrecords .pwi .pwi-btn:hover { background: var(--pwi-red-dark); border-color: var(--pwi-red-dark); color: #fff; }
#allrecords .pwi .pwi-btn--outline { background: #fff; color: var(--pwi-red); }
#allrecords .pwi .pwi-btn--outline:hover { background: var(--pwi-red); border-color: var(--pwi-red); color: #fff; }
.pwi-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.pwi-actions--center { justify-content: center; }

/* ---------- hero: photo + left dark gradient, 515 high ---------- */
.pwi-hero {
  position: relative;
  min-height: 515px;
  display: flex;
  align-items: center;
  padding: 60px 0;
  background: #1b1b1b center/cover no-repeat;
  overflow: hidden;
}
.pwi-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.62) 38%, rgba(0,0,0,.12) 72%, rgba(0,0,0,0) 100%);
}
.pwi-hero__inner { position: relative; z-index: 2; width: 100%; }
.pwi-crumbs {
  margin: 0 0 34px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  text-transform: uppercase;
  color: #fff;
}
#allrecords .pwi .pwi-crumbs a { color: #fff; text-decoration: none; }
#allrecords .pwi .pwi-crumbs a:hover { text-decoration: underline; }
.pwi-crumbs__sep { padding: 0 6px; }
.pwi-hero__title {
  margin: 0 0 24px;
  max-width: 648px;
  font-size: 40px;
  font-weight: 600;
  line-height: 46px;
  text-transform: uppercase;
  color: #fff;
}
.pwi-hero__sub {
  margin: 0 0 40px;
  max-width: 580px;
  font-size: 18px;
  line-height: 27px;
  color: #fff;
}

/* ---------- section head: H2 → red rule → lead, left-aligned ---------- */
.pwi-head { margin: 0 0 48px; }
.pwi-head:last-child { margin-bottom: 0; }
.pwi-head__title {
  margin: 0;
  font-size: 48px;
  font-weight: 700;
  line-height: 55px;
  text-transform: uppercase;
  color: var(--pwi-ink);
}
.pwi-rule { width: 59px; height: 2px; margin: 8px 0 0; background: var(--pwi-red); }
.pwi-head__lead {
  margin: 30px 0 0;
  font-size: 18px;
  line-height: 28px;
  color: var(--pwi-ink-soft);
}
.pwi-head__lead + .pwi-head__lead { margin-top: 16px; }

/* ---------- icon cards: 336 wide, 3 per row, white on band ---------- */
.pwi-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 76px; }
.pwi-cards--2 { grid-template-columns: repeat(2, 1fr); }
.pwi-card {
  padding: 20px 20px 30px;
  background: #fff;
  border: 1.6px solid var(--pwi-border);
  border-radius: 5px;
}
.pwi-sec:not(.pwi-sec--band) .pwi-card { background: var(--pwi-band); border-color: var(--pwi-band); }
.pwi-card__icon { display: block; width: 40px; height: 40px; color: var(--pwi-red); }
.pwi-card__icon svg, .pwi-card__icon img { display: block; width: 100%; height: 100%; }
.pwi-card__rule {
  height: 1px;
  margin: 8px 0 25px;
  background: linear-gradient(90deg, var(--pwi-red) 0%, rgba(230,46,69,0) 100%);
}
.pwi-card__title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
  text-transform: uppercase;
  color: var(--pwi-ink);
}
.pwi-card__text { margin: 25px 0 0; font-size: 18px; line-height: 28px; color: var(--pwi-ink-soft); }

/* closing card of a list ("any other source"): red, title only */
.pwi .pwi-card.pwi-card--accent { background: var(--pwi-red); border-color: var(--pwi-red); }
.pwi-card--accent .pwi-card__icon, .pwi-card--accent .pwi-card__title { color: #fff; }
.pwi-card--accent .pwi-card__rule { background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,0) 100%); }

/* four vertical cards in one row */
.pwi-cards--4 { grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pwi-cards--4 .pwi-card { padding: 30px 20px 40px; }

/* ---------- statement: H2 on the left, one paragraph large on the right ---------- */
.pwi-statement { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.pwi-statement .pwi-head { margin: 0; }
.pwi-statement__text { margin: 0; font-size: 24px; font-weight: 500; line-height: 32px; color: var(--pwi-ink); }

/* ---------- section with H2 + list on the left, photo on the right ---------- */
.pwi-feature .pwi-head { margin-bottom: 0; }
.pwi-feature.pwi-feature--center { align-items: center; }
.pwi-feature .pwi-head + .pwi-checks { margin-top: 40px; }

/* ---------- feature row: text 560 | media 560, gap 40 ---------- */
.pwi-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.pwi-feature + .pwi-feature { margin-top: 90px; }
.pwi-feature--reverse .pwi-feature__media { order: -1; }
.pwi-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 100px;
  height: 30px;
  padding: 0 10px;
  border-radius: 5px;
  background: var(--pwi-red);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
}
.pwi-feature__title {
  margin: 30px 0 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 37px;
  text-transform: uppercase;
  color: var(--pwi-ink);
}
.pwi-feature__sub {
  margin: 20px 0 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
  text-transform: uppercase;
  color: var(--pwi-red);
}
.pwi-feature__text { margin: 25px 0 0; font-size: 18px; line-height: 27px; color: var(--pwi-grey); }
.pwi-checks { margin: 40px 0 0; padding: 0; list-style: none; }
.pwi-checks li {
  position: relative;
  margin: 0 0 10px;
  padding-left: 35px;
  font-size: 18px;
  line-height: 27px;
  color: var(--pwi-grey);
}
.pwi-checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  background: url("/images/education/check-bullet.png") no-repeat center/contain;
}
/* larger list next to an H2 (challenges): .pwi-statement > .pwi-head + ul.pwi-checks--lg */
.pwi-statement .pwi-checks { margin: 0; }
.pwi-checks--lg li { margin-bottom: 20px; padding-left: 40px; font-size: 20px; font-weight: 500; line-height: 28px; color: var(--pwi-ink); }
.pwi-checks--lg li:last-child { margin-bottom: 0; }
.pwi-checks--lg li::before { top: 4px; width: 22px; height: 22px; }
@media screen and (max-width: 640px) {
  .pwi-checks--lg li { margin-bottom: 14px; padding-left: 34px; font-size: 17px; line-height: 25px; }
  .pwi-checks--lg li::before { width: 20px; height: 20px; top: 2px; }
}
.pwi-feature__media img { display: block; width: 100%; aspect-ratio: 14 / 9; object-fit: cover; }

/* ---------- numbered steps: 4 per row ---------- */
.pwi-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.pwi-step__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  border-radius: 3px;
  background: var(--pwi-red);
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}
.pwi-step__title {
  margin: 30px 0 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
  text-transform: uppercase;
  color: var(--pwi-ink);
}
.pwi-step__text { margin: 30px 0 0; font-size: 18px; line-height: 28px; color: var(--pwi-ink-soft); }

/* ---------- case studies: photo 560×380 + dark plate ---------- */
.pwi-cases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 40px; }
.pwi-cases--3 { grid-template-columns: repeat(3, 1fr); gap: 20px; }
#allrecords .pwi .pwi-case {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 380px;
  padding: 40px;
  background: #1b1b1b center/cover no-repeat;
  text-decoration: none;
  color: #fff;
}
#allrecords .pwi .pwi-cases--3 .pwi-case { min-height: 460px; padding: 20px; }
/* photo is an <img> (alt for search), laid under the plate */
.pwi-case__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pwi-case__plate {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 150px;
  padding: 20px 70px 20px 20px;
  border-radius: 5px;
  background: var(--pwi-ink);
  transition: background-color .2s ease;
}
#allrecords .pwi .pwi-case:hover .pwi-case__plate { background: var(--pwi-red); }
.pwi-case__plate::after {
  content: "";
  position: absolute;
  right: 28px;
  top: 50%;
  width: 12px;
  height: 12px;
  border-top: 2px solid #fff;
  border-right: 2px solid #fff;
  transform: translateY(-50%) rotate(45deg);
}
.pwi-case__tag { margin: 0 0 5px; font-size: 14px; font-weight: 700; line-height: 22px; text-transform: uppercase; }
.pwi-case__title { margin: 0; font-size: 18px; font-weight: 700; line-height: 28px; text-transform: uppercase; }
.pwi-case__text { margin: 8px 0 0; font-size: 16px; line-height: 24px; color: rgba(255,255,255,.85); }
.pwi-more { margin-top: 40px; text-align: center; }
#allrecords .pwi .pwi-more .pwi-btn { min-height: 55px; min-width: 237px; }

/* ---------- centred CTA: H2 42/50 → rule → lead → buttons ---------- */
.pwi-cta { max-width: 840px; margin: 0 auto; text-align: center; }
.pwi-cta__title {
  margin: 0;
  font-size: 42px;
  font-weight: 700;
  line-height: 50px;
  text-transform: uppercase;
  color: var(--pwi-ink);
}
.pwi-cta .pwi-rule { margin: 20px auto 0; }
.pwi-cta__lead { margin: 27px 0 0; font-size: 18px; line-height: 28px; color: var(--pwi-ink-soft); }
.pwi-cta .pwi-actions { margin-top: 30px; justify-content: center; }
/* short closing CTA ("Ready to Explore Further?") */
.pwi-cta--small .pwi-cta__title { font-size: 28px; line-height: 34px; }
.pwi-cta--small .pwi-actions { margin-top: 25px; }

/* ---------- quote ---------- */
.pwi-quote { position: relative; padding: 40px 50px 40px 90px; border: 1.6px solid var(--pwi-border); border-radius: 5px; }
.pwi-quote::before { content: "\201C"; position: absolute; left: 36px; top: 22px; font-size: 80px; font-weight: 700; line-height: 1; color: var(--pwi-red); }
.pwi-quote__text { margin: 0; font-size: 24px; font-weight: 500; line-height: 32px; color: var(--pwi-ink); }
.pwi-quote__author { margin: 24px 0 0; font-size: 16px; color: var(--pwi-grey); }
.pwi-quote__author strong { font-weight: 700; }

/* ---------- two paragraphs side by side (one paragraph = one column) ---------- */
.pwi-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin: 30px 0 0; }
.pwi-cols p { margin: 0; font-size: 18px; line-height: 28px; color: var(--pwi-ink-soft); }
.pwi-head + .pwi-cols { margin-top: 0; }

/* ---------- product block inside "How Polywall Helps": label → H3 → text ---------- */
.pwi-product + .pwi-product { margin-top: 90px; }
.pwi-product__label {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 22px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--pwi-red);
}
.pwi-product__title {
  margin: 8px 0 0;
  font-size: 32px;
  font-weight: 700;
  line-height: 37px;
  text-transform: uppercase;
  color: var(--pwi-ink);
}
.pwi-product .pwi-rule { margin-bottom: 30px; }
.pwi-product__text p { margin: 0; font-size: 18px; line-height: 28px; color: var(--pwi-ink-soft); }
.pwi-product__text p + p { margin-top: 16px; }
.pwi-product__sub {
  margin: 50px 0 20px;
  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
  text-transform: uppercase;
  color: var(--pwi-ink);
}

/* "any content" list as small insets: red edge, 5 per row */
.pwi-chips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin: 0; padding: 0; list-style: none; }
.pwi-chips li {
  display: flex;
  align-items: center;
  min-height: 72px;
  padding: 14px 16px;
  border-left: 3px solid var(--pwi-red);
  border-radius: 0 5px 5px 0;
  background: var(--pwi-band);
  font-size: 16px;
  font-weight: 500;
  line-height: 22px;
  color: var(--pwi-ink);
}
.pwi-sec--band .pwi-chips li { background: #fff; }

/* text link with an arrow ("Learn more") */
.pwi-link-row { margin: 30px 0 0; }
#allrecords .pwi .pwi-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--pwi-red);
}
.pwi-link::after {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s ease;
}
#allrecords .pwi .pwi-link:hover { color: var(--pwi-red-dark); }
.pwi-link:hover::after { transform: translateX(3px) rotate(45deg); }

/* product screenshot (Stages): 16:9, rounded, not cropped to the photo ratio */
.pwi-feature__media--shot img, .pwi-product__media--shot img { aspect-ratio: 16 / 9; object-fit: cover; }

/* Stages scenarios: looping demo video + badge + title + text (videos from /product/stages) */
.pwi-scns { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin: 40px 0 0; }
.pwi-scn { display: flex; flex-direction: column; border-radius: 5px; background: #fff; overflow: hidden; }
.pwi-sec:not(.pwi-sec--band) .pwi-scn { background: var(--pwi-band); }
.pwi-scn__media { position: relative; aspect-ratio: 16 / 9; background: #0d1116; }
.pwi-scn__media video { display: block; width: 100%; height: 100%; object-fit: cover; }
.pwi-scn__body { padding: 24px 24px 30px; }
.pwi-scn__body .pwi-badge { min-width: 0; height: 26px; font-size: 12px; }
.pwi-scn__title { margin: 18px 0 0; font-size: 20px; font-weight: 700; line-height: 24px; text-transform: uppercase; color: var(--pwi-ink); }
.pwi-scn__text { margin: 14px 0 0; font-size: 16px; line-height: 25px; color: var(--pwi-ink-soft); }

/* case carousel: 2 cards per view, arrows next to the heading (pw-industry.js) */
.pwi-carousel__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.pwi-carousel__head .pwi-head { margin-bottom: 48px; }
.pwi-carousel__nav { display: flex; gap: 10px; flex: none; margin-bottom: 48px; }
.pwi-carousel__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1.6px solid var(--pwi-red);
  border-radius: 5px;
  background: #fff;
  color: var(--pwi-red);
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, opacity .2s ease;
}
.pwi-carousel__btn:hover { background: var(--pwi-red); color: #fff; }
.pwi-carousel__btn:disabled { opacity: .35; cursor: default; background: #fff; color: var(--pwi-red); }
.pwi-carousel__btn::before {
  content: "";
  width: 10px;
  height: 10px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateX(-2px) rotate(45deg);
}
.pwi-carousel__btn--prev::before { transform: translateX(2px) rotate(-135deg); }
.pwi-carousel[data-static] .pwi-carousel__nav { display: none; }
.pwi-carousel__track {
  display: flex;
  gap: 40px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.pwi-carousel__track::-webkit-scrollbar { display: none; }
#allrecords .pwi .pwi-carousel__track .pwi-case { flex: 0 0 calc(50% - 20px); scroll-snap-align: start; }

/* ================= responsive ================= */
@media screen and (max-width: 1199px) {
  .pwi__wrap { max-width: 980px; }
  .pwi-cards { gap: 20px; }
  .pwi-steps { gap: 20px; }
  .pwi-feature { gap: 20px; }
  .pwi-feature__title { font-size: 29px; line-height: 33px; }
}

@media screen and (max-width: 959px) {
  .pwi__wrap { max-width: 640px; }
  .pwi-sec { padding: 70px 0; }
  .pwi-hero { min-height: 465px; }
  .pwi-cards, .pwi-cards--4, .pwi-cases--3 { grid-template-columns: 1fr 1fr; }
  .pwi-statement { grid-template-columns: 1fr; gap: 30px; }
  .pwi-steps { grid-template-columns: 1fr 1fr; gap: 40px 20px; }
  .pwi-feature { grid-template-columns: 1fr; gap: 30px; }
  .pwi-feature + .pwi-feature { margin-top: 70px; }
  .pwi-feature--reverse .pwi-feature__media { order: 0; }
  .pwi-cases { grid-template-columns: 1fr; gap: 20px; }
  .pwi-cols, .pwi-scns { grid-template-columns: 1fr; gap: 20px; }
  .pwi-chips { grid-template-columns: 1fr 1fr; }
  .pwi-product + .pwi-product { margin-top: 70px; }
  .pwi-carousel__track { gap: 20px; }
  /* below 960 the case carousel is a plain column: no swiping, no arrows */
  .pwi-carousel__track { flex-direction: column; overflow: visible; scroll-snap-type: none; }
  #allrecords .pwi .pwi-carousel__track .pwi-case { flex-basis: auto; }
  .pwi-carousel__nav { display: none; }
  .pwi-cta { text-align: left; }
  .pwi-cta .pwi-rule { margin-left: 0; }
  .pwi-cta .pwi-actions { justify-content: flex-start; }
}

@media screen and (max-width: 639px) {
  .pwi__wrap { max-width: 480px; padding: 0 10px; }
  .pwi-sec { padding: 56px 0; }
  .pwi-hero { min-height: 420px; }
  .pwi-hero::after { background: rgba(0,0,0,.62); }
  .pwi-crumbs { margin-bottom: 24px; font-size: 16px; }
  .pwi-hero__title { font-size: 30px; line-height: 35px; }
  .pwi-hero__sub { margin-bottom: 30px; font-size: 16px; line-height: 24px; }
  .pwi-hero .pwi-btn { min-width: 220px; }
  .pwi-head__title, .pwi-feature__title, .pwi-cta__title { font-size: 30px; line-height: 35px; }
  .pwi-head__lead, .pwi-card__text, .pwi-step__text, .pwi-cta__lead { font-size: 16px; line-height: 25px; }
  .pwi-feature__text, .pwi-checks li { font-size: 16px; line-height: 24px; }
  .pwi-cards, .pwi-cards--2, .pwi-cards--4, .pwi-cases--3, .pwi-steps { grid-template-columns: 1fr; gap: 20px; }
  .pwi-statement__text { font-size: 20px; line-height: 28px; }
  .pwi-cols p, .pwi-product__text p { font-size: 16px; line-height: 25px; }
  .pwi-product__title { font-size: 26px; line-height: 31px; }
  .pwi-chips { grid-template-columns: 1fr; gap: 8px; }
  .pwi-chips li { min-height: 0; font-size: 15px; }
  .pwi-carousel__head { display: block; }
  .pwi-carousel__head .pwi-head { margin-bottom: 24px; }
  .pwi-carousel__nav { margin-bottom: 24px; }
  #allrecords .pwi .pwi-case { min-height: 300px; padding: 20px; }
  .pwi-quote { padding: 70px 20px 30px; }
  .pwi-quote::before { left: 20px; top: 14px; }
  .pwi-quote__text { font-size: 20px; line-height: 28px; }
}

@media screen and (max-width: 479px) {
  /* as Tilda's 320 artboard on /industries/oil-and-gas: a 320px column centred (28px edges at 375) */
  .pwi__wrap { max-width: 320px; padding: 0; }
  .pwi-actions .pwi-btn, .pwi-hero .pwi-btn { width: 100%; }
}

