body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: #f4f6f3;
}

.frontpage {
  --fp-box: min(90vw, 1480px);
  --fp-ink: #171918;
  --fp-text: #2c342f;
  --fp-muted: #68736d;
  --fp-paper: #fbfaf4;
  --fp-field: #eef1ed;
  --fp-line: #d8ddd6;
  --fp-rust: #b95739;
  --fp-gold: #ddb548;
  --fp-green: #285d42;
  color: #171918;
  background: #eef1ed;
}

.frontpage img,
.frontpage video {
  display: block;
}

.fp-container {
  width: var(--fp-box);
  margin: 0 auto;
}

.fp-kicker {
  margin: 0 0 14px;
  color: #bd5a38;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.trade-slider {
  position: relative;
  min-height: 0;
  overflow: hidden;
  color: var(--fp-ink);
  padding: 140px 0 42px;
  background:
    linear-gradient(180deg, #e6ece8 0%, var(--fp-field) 58%, #f4f6f3 100%);
}

.slider-stage {
  position: relative;
  width: var(--fp-box);
  min-height: 520px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(23, 25, 24, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(90deg, var(--fp-paper) 0%, var(--fp-paper) 52%, #dfe5df 52%, #dfe5df 100%);
  box-shadow: 0 26px 72px rgba(23, 25, 24, 0.13);
}

.slider-panel {
  position: absolute;
  inset: 0;
  isolation: isolate;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 520ms ease, visibility 520ms ease;
}

.slider-panel.is-active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.slider-panel::before,
.slider-panel::after {
  position: absolute;
  content: "";
}

.slider-panel::before {
  z-index: 0;
  top: 18px;
  right: 18px;
  bottom: 86px;
  left: 52%;
  border-radius: 8px;
  background-position: center;
  background-size: cover;
  box-shadow: inset 0 -80px 110px rgba(23, 25, 24, 0.12);
  transform: scale(1.025);
  transition: transform 900ms ease;
}

.slide-procurement::before {
  background-image: url("../wp-content/uploads/2024/06/trucont-aluminum-scrap-bales.jpg");
  background-position: center center;
}

.slide-products::before {
  background-image: url("../wp-content/uploads/2024/06/trucont-cardboard-paper-bales.jpg");
  background-position: center center;
}

.slide-battery::before {
  background-image: url("../wp-content/uploads/2024/06/trucont-auto-engines-scrap.jpg");
  background-position: center center;
}

.slider-panel.is-active::before {
  transform: scale(1);
}

.slider-panel::after {
  z-index: 0;
  top: 18px;
  bottom: 18px;
  left: calc(52% - 1px);
  width: 1px;
  background: rgba(23, 25, 24, 0.14);
}

.slide-content {
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  width: 52%;
  min-height: 520px;
  margin: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 38px clamp(28px, 3.6vw, 50px) 36px;
  background: var(--fp-paper);
}

.slide-copy {
  max-width: 650px;
  text-shadow: none;
}

.slide-copy::before {
  display: block;
  width: fit-content;
  margin: 0 0 18px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--fp-gold);
  color: var(--fp-rust);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
  content: "01 / 03";
}

.slide-products .slide-copy::before {
  content: "02 / 03";
}

.slide-battery .slide-copy::before {
  content: "03 / 03";
}

.trade-slider .fp-kicker {
  color: var(--fp-rust);
}

.trade-slider h1,
.trade-slider h2 {
  margin: 0;
  max-width: 620px;
  color: var(--fp-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.78rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
}

.hero-statement {
  max-width: 590px;
  margin: 14px 0 0;
  color: var(--fp-green);
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.32;
}

.hero-summary {
  max-width: 590px;
  margin: 10px 0 0;
  color: var(--fp-text);
  font-size: 0.9rem;
}

.frontpage .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.btn-ghost {
  color: var(--fp-ink);
  background: #ffffff;
  border-color: var(--fp-line);
}

.btn-ghost:hover {
  background: var(--fp-ink);
  border-color: var(--fp-ink);
  color: #ffffff;
}

.slide-docket {
  max-width: 650px;
  padding: 14px 16px;
  border: 1px solid var(--fp-line);
  border-left: 4px solid var(--fp-gold);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(23, 25, 24, 0.07);
}

.slide-docket span {
  display: block;
  color: var(--fp-rust);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.slide-docket strong {
  display: block;
  margin-top: 10px;
  color: var(--fp-ink);
  font-size: 1rem;
  line-height: 1.18;
}

.slide-docket p {
  margin: 8px 0 0;
  color: var(--fp-muted);
  font-size: 0.84rem;
}

.slider-controls {
  position: absolute;
  z-index: 3;
  right: calc((100vw - var(--fp-box)) / 2 + clamp(26px, 3vw, 40px));
  bottom: 70px;
  left: auto;
  width: auto;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 38px auto 38px;
  gap: 8px;
  align-items: center;
  justify-content: end;
  padding-right: 0;
  transform: none;
}

.slider-arrow,
.slide-tab {
  appearance: none;
  border: 1px solid var(--fp-line);
  color: var(--fp-ink);
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.slider-arrow {
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-size: 1.28rem;
  line-height: 1;
}

.slider-arrow:hover,
.slide-tab:hover,
.slide-tab.is-active {
  border-color: var(--fp-gold);
  background: var(--fp-gold);
  color: var(--fp-ink);
}

.slider-arrow:hover,
.slide-tab:hover {
  transform: translateY(-1px);
}

.slide-tabs {
  display: flex;
  gap: 6px;
}

.slide-tab {
  position: relative;
  min-height: 38px;
  display: inline-grid;
  grid-template-columns: auto auto;
  gap: 8px;
  align-items: center;
  padding: 8px 11px;
  border-radius: 8px;
  text-align: left;
}

.slide-tab:last-child {
  border-right: 1px solid var(--fp-line);
}

.slide-tab::before {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 5px;
  height: 2px;
  background: transparent;
  content: "";
}

.slide-tab.is-active::before {
  background: rgba(23, 25, 24, 0.32);
}

.slide-tab span {
  display: block;
  color: inherit;
  font-size: 0.78rem;
  font-weight: 800;
}

.slide-tab strong {
  display: block;
  margin-top: 0;
  color: inherit;
  font-size: 0.82rem;
  line-height: 1.2;
}

.slide-tab em {
  display: none;
  margin-top: 0;
  color: inherit;
  font-size: 0.78rem;
  font-style: normal;
}

.fp-section {
  padding: 98px 0;
}

.fp-section > .fp-container,
.fp-cta > .fp-container {
  padding: 44px;
  border: 1px solid rgba(23, 25, 24, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 20px 54px rgba(23, 25, 24, 0.08);
}

.fp-dark > .fp-container {
  border-color: rgba(255, 255, 255, 0.12);
  background: #111514;
}

.fp-battery > .fp-container {
  background: #e9eee9;
}

.fp-cta > .fp-container {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(17, 21, 20, 0.82);
}

.fp-profile {
  padding-top: 68px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(360px, 0.82fr);
  gap: 70px;
  align-items: start;
  margin-bottom: 42px;
}

.section-heading h2,
.fp-battery h2,
.fp-cta h2 {
  margin: 0;
  color: #171918;
  font-size: 3rem;
  line-height: 1.04;
  letter-spacing: 0;
}

.section-heading p,
.profile-copy p,
.fp-battery p {
  margin: 0;
  color: #4f5b56;
  font-size: 1rem;
  line-height: 1.78;
}

.section-heading > div:last-child {
  display: grid;
  gap: 10px;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 54px;
  align-items: start;
}

.profile-copy {
  display: grid;
  gap: 18px;
  max-width: 730px;
}

.profile-copy a {
  color: #256447;
  font-weight: 800;
}

.profile-photo {
  height: 520px;
  overflow: hidden;
  border-radius: 8px;
  background: #171918;
  box-shadow: 0 26px 70px rgba(23, 25, 24, 0.16);
}

.profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.process-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 52px;
  border: 1px solid #d8ddd6;
  background: #ffffff;
}

.process-strip div {
  min-height: 126px;
  padding: 22px;
  border-right: 1px solid #d8ddd6;
}

.process-strip div:last-child {
  border-right: 0;
}

.process-strip span {
  display: block;
  color: #bd5a38;
  font-size: 0.78rem;
  font-weight: 800;
}

.process-strip strong {
  display: block;
  margin-top: 14px;
  color: #171918;
  font-size: 1.06rem;
  line-height: 1.26;
}

.fp-products,
.fp-proof,
.fp-testimonials {
  background: #ffffff;
}

.material-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  grid-auto-rows: 270px;
  gap: 18px;
}

.material-card {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: #171918;
  box-shadow: 0 20px 60px rgba(23, 25, 24, 0.08);
}

.material-feature {
  grid-row: span 2;
}

.material-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.86;
  transition: transform 220ms ease, opacity 220ms ease;
}

.material-card:hover img {
  transform: scale(1.035);
  opacity: 0.68;
}

.material-card span {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
}

.material-card strong,
.material-card em {
  display: block;
}

.material-card strong {
  color: #171918;
  font-size: 1rem;
  line-height: 1.18;
}

.material-card em {
  min-width: max-content;
  color: #256447;
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 800;
}

.fp-dark {
  color: #ffffff;
  background: #111514;
}

.fp-dark .section-heading h2,
.fp-dark h3 {
  color: #ffffff;
}

.fp-dark .section-heading p {
  color: rgba(255, 255, 255, 0.7);
}

.stream-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.stream-grid article {
  min-height: 430px;
  padding: 30px;
  background: #171d1b;
}

.stream-grid span {
  color: #f2c75c;
  font-size: 0.8rem;
  font-weight: 800;
}

.stream-grid h3 {
  margin: 20px 0 0;
  font-size: 1.15rem;
  line-height: 1.22;
  letter-spacing: 0;
}

.stream-grid p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.68;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.proof-grid figure {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #171918;
  box-shadow: 0 24px 70px rgba(23, 25, 24, 0.12);
}

.proof-grid video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #171918;
}

.proof-grid figcaption {
  padding: 16px 18px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.92rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.service-grid article {
  display: grid;
  grid-template-rows: 190px auto 1fr;
  gap: 18px;
  padding: 18px;
  border: 1px solid #d8ddd6;
  border-radius: 8px;
  background: #ffffff;
}

.service-grid img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  border-radius: 6px;
  background: #eef1ed;
}

.service-grid h3 {
  margin: 0;
  color: #171918;
  font-size: 1.08rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.service-grid p {
  margin: 0;
  color: #4f5b56;
  line-height: 1.68;
}

.fp-battery {
  background: #e9eee9;
}

.battery-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 0.75fr);
  gap: 66px;
  align-items: center;
}

.battery-grid > div {
  display: grid;
  gap: 18px;
}

.battery-grid img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 26px 70px rgba(23, 25, 24, 0.16);
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.testimonial-grid article {
  display: flex;
  min-height: 360px;
  flex-direction: column;
  padding: 26px;
  border: 1px solid #d8ddd6;
  border-radius: 8px;
  background: #f8faf7;
}

.testimonial-grid h3 {
  margin: 0 0 18px;
  color: #171918;
  font-size: 1.1rem;
  line-height: 1.24;
  letter-spacing: 0;
}

.testimonial-grid blockquote {
  margin: 0;
  color: #303936;
  line-height: 1.68;
}

.testimonial-grid cite {
  display: block;
  margin-top: auto;
  padding-top: 20px;
  color: #62706a;
  font-size: 0.9rem;
  font-style: normal;
}

.fp-cta {
  padding: 74px 0;
  color: #ffffff;
  background:
    linear-gradient(90deg, rgba(12, 16, 15, 0.94), rgba(12, 16, 15, 0.68)),
    url("../wp-content/uploads/2024/06/trucont-eps-foam-blocks.jpg") center / cover no-repeat;
}

.cta-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.fp-cta h2 {
  max-width: 760px;
  color: #ffffff;
}

@media (max-width: 1080px) {
  .slider-stage,
  .slide-content {
    min-height: 520px;
  }

  .trade-slider {
    padding: 132px 0 34px;
  }

  .slider-panel::before {
    bottom: 82px;
    left: 56%;
  }

  .slider-panel::after {
    left: calc(56% - 1px);
  }

  .slide-content {
    width: 56%;
    gap: 13px;
    padding: 30px 30px 32px;
  }

  .slider-controls {
    bottom: 64px;
    right: calc((100vw - var(--fp-box)) / 2 + 22px);
  }

  .slide-tab {
    min-width: 38px;
    grid-template-columns: 1fr;
    place-items: center;
    text-align: center;
  }

  .slide-tab strong {
    display: none;
  }

  .trade-slider h1,
  .trade-slider h2 {
    font-size: 2.42rem;
  }

  .slide-docket {
    padding: 14px 16px;
  }

  .section-heading,
  .profile-grid,
  .battery-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .profile-photo,
  .battery-grid img {
    height: 430px;
  }

  .process-strip,
  .stream-grid,
  .service-grid,
  .testimonial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-strip div:nth-child(2),
  .stream-grid article:nth-child(2) {
    border-right: 0;
  }

  .material-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .slider-stage {
    min-height: 0;
    background: var(--fp-paper);
  }

  .slider-panel {
    position: relative;
    inset: auto;
    display: none;
    opacity: 1;
  }

  .slider-panel.is-active {
    display: block;
  }

  .slider-panel::before {
    top: 18px;
    right: 18px;
    bottom: auto;
    left: 18px;
    height: 256px;
  }

  .slider-panel::after {
    display: none;
  }

  .slide-content {
    width: 100%;
    min-height: 0;
    justify-content: flex-start;
    padding: 306px 32px 34px;
    background: transparent;
  }

  .slider-controls {
    position: static;
    width: var(--fp-box);
    margin: 14px auto 0;
    transform: none;
  }
}

@media (max-width: 760px) {
  .fp-container {
    width: 100%;
  }

  .slider-stage,
  .slide-content {
    min-height: 0;
  }

  .trade-slider {
    padding: 98px 0 22px;
  }

  .slider-stage {
    width: 100%;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    background: var(--fp-paper);
    box-shadow: none;
  }

  .slider-panel::before {
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    height: 202px;
    border-radius: 0;
  }

  .slider-panel::after {
    display: none;
  }

  .slide-content {
    width: 100%;
    justify-content: flex-start;
    gap: 16px;
    padding: 226px 18px 26px;
    background: transparent;
  }

  .trade-slider h1,
  .trade-slider h2 {
    font-size: 2.28rem;
    line-height: 1;
  }

  .hero-statement {
    font-size: 1rem;
  }

  .hero-summary {
    font-size: 0.9rem;
  }

  .frontpage .hero-actions {
    display: grid;
  }

  .process-strip,
  .stream-grid,
  .proof-grid,
  .service-grid,
  .testimonial-grid,
  .material-grid {
    grid-template-columns: 1fr;
  }

  .slide-docket {
    display: block;
    max-width: none;
    padding: 14px 15px;
  }

  .slider-controls {
    position: static;
    bottom: auto;
    width: calc(100% - 24px);
    margin: 12px auto 0;
    grid-template-columns: 36px auto 36px;
    gap: 8px;
    justify-content: center;
    padding-left: 0;
    padding-right: 0;
    transform: none;
  }

  .slider-arrow {
    min-height: 36px;
    font-size: 1.22rem;
  }

  .slide-tab {
    min-width: 36px;
    min-height: 36px;
    padding: 8px 10px;
    display: grid;
    grid-template-columns: 1fr;
    place-items: center;
    text-align: center;
  }

  .slide-tab span {
    font-size: 0.88rem;
  }

  .slide-tab strong,
  .slide-tab em {
    display: none;
  }

  .process-strip div {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid #d8ddd6;
  }

  .process-strip div {
    border-bottom-color: #d8ddd6;
  }

  .process-strip div:last-child {
    border-bottom: 0;
  }

  .fp-section {
    padding: 44px 0;
  }

  .fp-section > .fp-container,
  .fp-cta > .fp-container {
    width: 100%;
    padding: 32px 18px;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .fp-profile {
    padding-top: 36px;
  }

  .section-heading {
    gap: 20px;
    margin-bottom: 30px;
  }

  .section-heading h2,
  .fp-battery h2,
  .fp-cta h2 {
    font-size: 2.2rem;
    line-height: 1.08;
  }

  .profile-photo,
  .battery-grid img {
    height: 360px;
    border-radius: 0;
    box-shadow: none;
  }

  .material-grid {
    grid-auto-rows: 300px;
  }

  .material-feature {
    grid-row: span 1;
  }

  .stream-grid article,
  .testimonial-grid article {
    min-height: auto;
  }

  .cta-layout {
    display: grid;
  }
}

@media (max-width: 430px) {
  .slider-stage,
  .slide-content {
    min-height: 0;
  }

  .slide-content {
    padding-right: 16px;
    padding-left: 16px;
  }

  .fp-section > .fp-container,
  .fp-cta > .fp-container {
    padding-right: 16px;
    padding-left: 16px;
  }

  .trade-slider h1,
  .trade-slider h2 {
    font-size: 2.06rem;
  }

  .hero-statement {
    font-size: 0.96rem;
  }

  .slide-docket {
    padding: 12px 13px;
  }

  .profile-photo,
  .battery-grid img {
    height: 310px;
  }

  .material-card span {
    display: grid;
    align-items: start;
  }

  .material-card em {
    min-width: 0;
  }
}
