.home-main {
  overflow: hidden;
  background: #fff;
}

/* =========================================================
   PLCSEA HOMEPAGE
   RTL HERO — copy right / visual left
   ========================================================= */

/* =========================================================
   HERO
   ========================================================= */

.hero-showcase {
  position: relative;
  height: 535px;
  overflow: hidden;
  border-bottom: 1px solid #dce9f5;
   background:
        linear-gradient(
            270deg,
            #f5faff 0%,
            #f8fbff 36%,
            #f2f9ff 50%,
            #eaf6ff 100%
        );
}

.hero-stage {
  position: relative;
  width: min(calc(100% - 4rem), 1360px);
  height: 100%;
  margin-inline: auto;
}

/* ---------------------------------------------------------
   Hero navigation — clean centered progress labels
   --------------------------------------------------------- */

.hero-nav {
  position: absolute;
  z-index: 30;
  top: 27px;
  right: 0;
  display: grid;
  width: 41%;
  max-width: 500px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  direction: rtl;
}

.hero-nav button {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 42px;
  padding: 0 0 13px;
  border: 0;
  background: transparent;
  color: #6b7f96;
  font-family: "Inter", Inter, Arial, sans-serif;
  cursor: pointer;
  transform: none;
  transition: none;
}

/* Stable hover: color only. No transform, no font-weight change, no animation restart. */
.hero-nav button:hover,
.hero-nav button:focus-visible {
  color: var(--ocean-700);
}

/* Child layers must never participate in pointer hit-testing. */
.hero-nav button > span,
.hero-nav button > b,
.hero-nav button > i {
  pointer-events: none;
}

/* Numeric bubbles 01 / 02 / 03 are intentionally removed visually. */
.hero-nav button span {
  display: none;
}

.hero-nav button b {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  color: inherit;
  font-family: "Inter", Inter, Arial, sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .025em;
  text-align: center;
  white-space: nowrap;
}

.hero-nav button::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 1px;
  background: #cedceb;
  content: "";
}

.hero-nav button:first-child::after,
.hero-nav button:last-child::after {
  right: 0;
  left: 0;
}

.hero-nav button:hover::after,
.hero-nav button:focus-visible::after {
  background: #8fbce6;
}

/* Keep the active progress animation running continuously; pause it in-place on hover
   instead of removing/restarting its class, which caused visible flicker. */
.hero-nav button[aria-selected="true"]:hover i::after,
.hero-nav button[aria-selected="true"]:focus-visible i::after {
  animation-play-state: paused;
}

.hero-nav button i {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 4px;
  left: 0;
  height: 2px;
  overflow: hidden;
  border-radius: 999px;
  background: transparent;
}

.hero-nav button i::after {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan-500), var(--ocean-600));
  content: "";
  transform: scaleX(0);
  transform-origin: right;
}

.hero-nav button[aria-selected="true"] {
  color: var(--navy-950);
}

.hero-nav button[aria-selected="true"] b {
  font-weight: 800;
}

.hero-nav button[aria-selected="true"].is-progressing i::after {
  animation: plcseaHeroReferenceProgress 6.5s linear forwards;
}

@keyframes plcseaHeroReferenceProgress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* ---------------------------------------------------------
   Hero scenes — image left / copy right
   --------------------------------------------------------- */

.hero-scenes {
  position: relative;
  height: 100%;
}

.hero-scene {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 59%) minmax(430px, 41%);
  align-items: stretch;
  direction: ltr;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition:
    opacity 480ms ease,
    visibility 0s linear 480ms;
}

.hero-scene.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;

  transition:
    opacity 480ms ease,
    visibility 0s linear 0s;
}

/* ---------------------------------------------------------
   Hero copy — right
   --------------------------------------------------------- */

.hero-copy {
  position: relative;
  z-index: 12;
  grid-column: 2;
  display: flex;
  align-items: center;
  padding: 88px 0 28px 28px;
  transform: translateX(55px);
  direction: rtl;
}

.hero-copy__content {
  width: 100%;
  max-width: 520px;
  margin-right: 0;
  margin-left: auto;

  opacity: 0;
  transform: translateY(10px);

  transition:
    opacity 420ms ease 100ms,
    transform 520ms cubic-bezier(.22,.7,.2,1) 100ms;
}

.hero-scene.is-active .hero-copy__content {
  opacity: 1;
  transform: translateY(0);
}

.hero-copy h1,
.hero-copy h2 {
    font-family: "Estedad", "Vazirmatn", Tahoma, Arial, sans-serif;
    font-size: clamp(2.28rem, 2.9vw, 3rem);
    font-weight: 700;
    line-height: 1.28;
    letter-spacing: -0.018em;
}

.hero-copy h1 span,
.hero-copy h2 span {
    font-weight: 600;
}

.hero-copy h1 span,
.hero-copy h1 strong,
.hero-copy h2 span,
.hero-copy h2 strong {
  display: block;
}

.hero-copy h1 strong,
.hero-copy h2 strong {
  color: var(--ocean-600);
  font-weight: 700;
}

.hero-copy p {
  max-width: 475px;
  margin: 0 0 17px;
  color: #314a66;
  font-family: "Estedad", "Vazirmatn", Tahoma, Arial, sans-serif;
  font-size: .97rem;
  font-weight: 500;
  line-height: 2;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 19px;
}

.hero-actions .button {
  display: inline-flex;
  min-width: 172px;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 7px;
  box-shadow: none;
  font-family: "Estedad", "Vazirmatn", Tahoma, Arial, sans-serif;
  font-weight: 600;
  font-size: .84rem;
}

.hero-actions .button--outline {
  border: 1px solid #8ebcf3;
  background: rgba(255,255,255,.96);
  color: #0a2d59;
}

.hero-actions .button--outline:hover {
  border-color: var(--ocean-600);
  background: #f2f8ff;
  color: var(--ocean-700);
}

.hero-tech-tags {
  display: flex;
  width: 100%;
  max-width: 470px;
  align-items: center;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  direction: rtl;
}

.hero-tech-tags li {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 42px;
  flex: 1;
  align-items: center;
  justify-content: center;
  padding: 0 17px;
  border: 0;
  background: transparent;
  color: #153451;
  font-family: "Inter", Inter, Arial, sans-serif;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .005em;
  text-align: center;
}

.hero-tech-tags li:not(:last-child) {
  border-left: 1px solid #d5e2ef;
}

.hero-tech-tags li::before {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 8px;
  border: 1.5px solid var(--ocean-600);
  border-radius: 50%;
  background: rgba(8,124,240,.08);
  content: "";
}

/* ---------------------------------------------------------
   Hero visual — left
   --------------------------------------------------------- */

.hero-visual {
  position: relative;
  z-index: 3;
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
}

.hero-visual__frame {
  position: absolute;
  inset: 0 0 0 -80px;
  overflow: hidden;
  background: #dceefa;

  clip-path: polygon(
    0 0,
    94.5% 0,
    100% 50%,
    94.5% 100%,
    0 100%
  );
}
.hero-visual__frame::before {
  position: absolute;
  z-index: 2;
  inset: 0;
  background:
    linear-gradient(
      270deg,
      rgba(255,255,255,.82) 0%,
      rgba(255,255,255,.30) 10%,
      rgba(255,255,255,0) 25%
    );
  content: "";
  pointer-events: none;
}

.hero-visual__frame::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  background:
    linear-gradient(
      0deg,
      rgba(3,42,79,.055),
      transparent 34%
    );
  content: "";
  pointer-events: none;
}

.hero-visual img {
  object-position: left center;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
}

.hero-scene--store .hero-visual img {
  object-position: left center;
}

.hero-scene--learn .hero-visual img {
  object-position: left center;
}

.hero-scene--solutions .hero-visual img {
  object-position: left center;
}

/* ---------------------------------------------------------
   Engineered divider
   Reference-style layered full-height chevrons
   --------------------------------------------------------- */

/*
 * The reference does not use short decorative strokes.
 * It uses several FULL-HEIGHT chevron bands that all share
 * the same apex toward the RTL text panel.
 */

.hero-visual__edge {
  position: absolute;
  z-index: 12;
  top: 0;
  right: -2px;
  bottom: 0;
  width: 132px;
  pointer-events: none;
}

/* لایه شیشه‌ای اصلی */
.hero-visual__edge::before {
  position: absolute;
  inset: 0;
  content: "";

  background:
    linear-gradient(
      90deg,
      rgba(255,255,255,.10) 0%,
      rgba(255,255,255,.34) 48%,
      rgba(255,255,255,.68) 100%
    );

  clip-path: polygon(
    0 0,
    24% 0,
    100% 50%,
    24% 100%,
    0 100%,
    68% 50%
  );
}

/* خط نور/اکسنت */
.hero-visual__edge::after {
  position: absolute;
  top: 0;
  right: -4px;
  bottom: 0;
  width: 118px;
  content: "";

  background: linear-gradient(
    180deg,
    rgba(23, 174, 235, 0.12) 0%,
    rgba(14, 144, 240, 0.32) 20%,
    rgba(8, 124, 240, 0.78) 50%,
    rgba(14, 144, 240, 0.32) 80%,
    rgba(23, 174, 235, 0.10) 100%
  );

  clip-path: polygon(
    8% 0,
    12% 0,
    100% 50%,
    12% 100%,
    8% 100%,
    96% 50%
  );

  opacity: 0.88;
  pointer-events: none;
}
/* =========================================================
   HERO RESPONSIVE
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .product-showcase .home-product-card,
  .product-showcase .home-product-card.is-reveal-ready {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .home-product-card__media img {
    transition: none;
  }
}

@media (max-width: 1360px) {
  .hero-copy {
    transform: none;
    padding-right: 18px;
    padding-left: 20px;
  }

  .hero-copy__content {
    max-width: 100%;
  }
}

@media (max-width: 1180px) {
  .hero-stage {
    width: min(calc(100% - 3rem),1360px);
  }

  .hero-scene {
    grid-template-columns: minmax(0,58%) minmax(370px,42%);
  }

  .hero-nav {
    width: 42%;
  }

  .hero-copy {
    transform: none;
    padding-right: 18px;
    padding-left: 20px;
  }

  .hero-copy__content {
    max-width: 100%;
  }

  .hero-copy h1,
  .hero-copy h2 {
    font-size: clamp(2.15rem,3.5vw,2.8rem);
  }

  .hero-visual__edge {
    right: -5px;
    width: 210px;
  }

  .hero-visual__edge::after {
    width: 166px;
  }

}

@media (max-width: 860px) {
  .hero-showcase {
    height: 760px;
    background:
      linear-gradient(
        180deg,
        #fff 0%,
        #f8fbff 48%,
        #eaf6ff 100%
      );
  }

  .hero-stage {
    width: min(calc(100% - 2rem),1360px);
  }

  .hero-nav {
    top: 22px;
    right: 0;
    left: 0;
    width: 100%;
    max-width: none;
  }

  .hero-scene {
    grid-template-columns: 1fr;
    grid-template-rows: 410px 350px;
  }

  .hero-copy {
    grid-column: 1;
    grid-row: 1;
    padding: 100px 8px 18px;
  }

  .hero-copy__content {
    max-width: 680px;
    margin-right: 0;
  }

  .hero-copy h1,
  .hero-copy h2 {
    max-width: 640px;
    font-size: clamp(2rem,6vw,2.7rem);
  }

  .hero-copy p {
    max-width: 620px;
    font-size: .9rem;
  }

  .hero-tech-tags {
    max-width: 520px;
  }

  .hero-visual {
    grid-column: 1;
    grid-row: 2;
  }

  .hero-visual__frame {
    inset: 0 -32px 0;
    clip-path: none;
  }

  .hero-visual__frame::before {
    background:
      linear-gradient(
        180deg,
        rgba(255,255,255,.45),
        transparent 28%
      );
  }

  .hero-visual__edge {
    display: none;
  }

  .hero-visual::before,
  .hero-visual::after {
    display: none;
  }
}

@media (max-width: 580px) {
  .hero-showcase {
    height: 360px;
  }

  .hero-stage {
    width: min(calc(100% - 1.25rem),1360px);
  }

  .hero-nav {
    top: 18px;
  }

  .hero-nav button {
    min-height: 40px;
    padding: 0 2px 12px;
  }

  .hero-nav button b {
    right: 0;
    left: 0;
    font-size: 8.5px;
    text-align: center;
    transform: none;
  }

  .hero-nav button::after {
    right: 4px;
    left: 4px;
  }

  .hero-scene {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
  }

  .hero-copy {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 78px 0 10px;
    transform: none;
    text-align: center;
  }

  .hero-copy__content {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    text-align: center;
  }

  .hero-visual {
    display: none;
  }

  .hero-copy h1,
  .hero-copy h2 {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    margin-bottom: 12px;
    font-size: clamp(1.8rem,9vw,2.3rem);
    line-height: 1.42;
    text-align: center;
  }

  .hero-copy p {
    width: 100%;
    max-width: 100%;
    margin-inline: auto;
    margin-bottom: 14px;
    font-size: .82rem;
    line-height: 1.85;
    text-align: center;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    justify-content: center;
    gap: 8px;
    margin-bottom: 17px;
  }

  .hero-actions .button {
    min-width: 0;
    min-height: 45px;
    padding-inline: 8px;
    font-size: .73rem;
  }

  .hero-tech-tags li {
    min-height: 36px;
    padding-inline: 7px;
    font-size: .61rem;
  }

  .hero-tech-tags li::before {
    width: 6px;
    height: 6px;
    margin-left: 5px;
  }

  .hero-visual__frame {
    inset-inline: -8px;
  }
}

/* =========================================================
   TRUST STRIP
   ========================================================= */

.trust-strip {
  position: relative;
  z-index: 30;

  margin-top: -50px;

  padding: 0;
}

.trust-grid {
  display: grid;

  width: min(calc(100% - 4rem), 1320px);
  min-height: 102px;

  margin-inline: auto;

  grid-template-columns:
    repeat(4, minmax(0, 1fr));

  overflow: hidden;

  border: 1px solid #d7e4f1;
  border-radius: 14px;

  background:
    rgba(255, 255, 255, 0.985);

  box-shadow:
    0 16px 42px rgba(10, 46, 88, 0.10);
}

.trust-item {

  transform: translateX(-12px);
  
  display: flex;

  min-width: 0;

  align-items: center;

  gap: 14px;

  padding: 18px 22px;
}

.trust-item:not(:last-child) {
  border-left: 1px solid #dfe9f3;
}

.trust-item__icon {
  display: grid;

  width: 48px;
  height: 48px;

  flex: 0 0 48px;

  place-items: center;

  border: 1px solid #cbe0f5;
  border-radius: 11px;

  background: #f5faff;

  color: var(--ocean-600);
}

.trust-item__icon svg {
  width: 26px;
  height: 26px;

  fill: none;
  stroke: currentColor;

  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.trust-item > span:last-child {
  min-width: 0;
}

.trust-item strong,
.trust-item small {
  display: block;
}

.trust-item strong {
    margin-bottom: 4px;
    color: var(--navy-950);
    font-family: "Estedad", "Vazirmatn", Tahoma, Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.5;
}

.trust-item small {
    color: #53677d;
    font-family: "Estedad", "Vazirmatn", Tahoma, Arial, sans-serif;
    font-size: 0.76rem;
    font-weight: 400;
    line-height: 1.8;
}


/* =========================================================
   THREE FEATURE CARDS
   ========================================================= */

.brand-pillars {
  padding-block: 38px 34px;
}

/* Scroll reveal — feature cards */
.pillar-card.is-reveal-ready {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 520ms cubic-bezier(.22,.7,.2,1),
    transform 620ms cubic-bezier(.22,.7,.2,1),
    border-color 260ms ease,
    box-shadow 320ms ease;
}

.pillar-card.is-reveal-ready.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.pillar-grid .pillar-card:nth-child(2).is-revealed {
  transition-delay: 70ms;
}

.pillar-grid .pillar-card:nth-child(3).is-revealed {
  transition-delay: 140ms;
}

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

.pillar-card {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid #d7e5f2;
  border-radius: 18px;
  background: #dfeaf4;
  color: #fff;
  isolation: isolate;
  box-shadow: 0 8px 24px rgba(4, 34, 67, 0.07);
  transition: border-color 260ms ease, box-shadow 320ms ease;
}

.pillar-card__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.pillar-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.001);
  transition: transform 700ms cubic-bezier(.2,.7,.2,1), filter 320ms ease;
}

.pillar-card__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(5, 28, 55, 0.05) 0%,
    rgba(5, 28, 55, 0.10) 38%,
    rgba(5, 28, 55, 0.34) 62%,
    rgba(3, 22, 45, 0.84) 100%
  );
  transition: opacity 320ms ease;
}

.pillar-card__copy {
  position: absolute;
  z-index: 2;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  width: 62%;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px 24px 22px;
  direction: rtl;
  background: linear-gradient(
    90deg,
    rgba(3, 24, 48, 0.04) 0%,
    rgba(3, 24, 48, 0.48) 16%,
    rgba(3, 24, 48, 0.84) 42%,
    rgba(3, 24, 48, 0.96) 100%
  );
}

.pillar-card__copy em {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 9px;
  color: #28c9ef;
  font-family: var(--plcsea-font-tech);
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.05em;
}

.pillar-card__copy em::after {
  width: 22px;
  height: 1px;
  background: currentColor;
  content: "";
  opacity: 0.82;
}

.pillar-card__copy b {
  display: block;
  margin: 0;
  color: #fff;
  font-family: var(--plcsea-font);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.65;
}

.pillar-card__copy small {
  display: block;
  max-width: 270px;
  margin-top: 5px;
  color: rgba(255,255,255,.74);
  font-family: var(--plcsea-font);
  font-size: 0.69rem;
  font-weight: 400;
  line-height: 1.9;
}

.pillar-card__copy i {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 14px;
  color: #fff;
  font-family: var(--plcsea-font);
  font-size: 0.7rem;
  font-style: normal;
  font-weight: 600;
  transition: gap 240ms ease, color 240ms ease;
}

.pillar-card--services .pillar-card__shade {
  background: linear-gradient(
    90deg,
    rgba(3, 22, 46, .03) 0%,
    rgba(3, 22, 46, .12) 42%,
    rgba(3, 22, 46, .40) 68%,
    rgba(2, 20, 42, .88) 100%
  );
}

.pillar-card--downloads .pillar-card__shade {
  background: linear-gradient(
    90deg,
    rgba(3, 35, 61, .03) 0%,
    rgba(4, 55, 91, .12) 42%,
    rgba(4, 67, 110, .38) 68%,
    rgba(3, 30, 58, .88) 100%
  );
}

.pillar-card--projects .pillar-card__shade {
  background: linear-gradient(
    90deg,
    rgba(5, 27, 52, .03) 0%,
    rgba(5, 40, 73, .12) 42%,
    rgba(5, 50, 89, .40) 68%,
    rgba(3, 24, 49, .90) 100%
  );
}

.pillar-card:hover {
  border-color: #bfd8ec;
  box-shadow: 0 18px 38px rgba(4, 38, 77, 0.13);
}

.pillar-card:hover .pillar-card__media img {
  transform: scale(1.028);
}

.pillar-card:hover .pillar-card__copy i {
  gap: 11px;
  color: #52d8f3;
}

.pillar-card:focus-visible {
  outline: 2px solid var(--ocean-600);
  outline-offset: 3px;
}

@media (max-width: 1080px) {
  .pillar-grid {
    gap: 14px;
  }

  .pillar-card {
    min-height: 208px;
  }

  .pillar-card__copy {
    width: 67%;
    padding: 21px 20px;
  }

  .pillar-card__copy b {
    font-size: 1.02rem;
  }

  .pillar-card__copy small {
    font-size: 0.65rem;
  }
}

@media (max-width: 860px) {
  .brand-pillars {
    padding-block: 30px 24px;
  }

  .pillar-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .pillar-card {
    min-height: 190px;
    border-radius: 15px;
  }

  .pillar-card__copy {
    width: 58%;
    padding: 21px 22px;
  }
}

@media (max-width: 580px) {
  .brand-pillars {
    padding-block: 24px 18px;
  }

  .pillar-card {
    min-height: 170px;
    border-radius: 14px;
  }

  .pillar-card__copy {
    width: 72%;
    padding: 17px 16px;
  }

  .pillar-card__copy em {
    margin-bottom: 6px;
    font-size: 0.6rem;
  }

  .pillar-card__copy b {
    font-size: 0.95rem;
  }

  .pillar-card__copy small {
    margin-top: 3px;
    font-size: 0.61rem;
    line-height: 1.75;
  }

  .pillar-card__copy i {
    padding-top: 9px;
    font-size: 0.63rem;
  }
}

/* =========================================================
   HOMEPAGE EDITOR CONTENT
   ========================================================= */

.homepage-editor-content {
  padding-block: 26px;

  border-top: 1px solid #e1edf7;
}

.homepage-editor-content
.entry-content > *:first-child {
  margin-top: 0;
}

.homepage-editor-content
.entry-content > *:last-child {
  margin-bottom: 0;
}


/* =========================================================
   PRODUCT SHOWCASE — compact homepage variant
   ========================================================= */

.products-section {
  padding-block: 20px 38px;
  background: linear-gradient(180deg, #fff, #fbfdff);
}

.showcase-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.showcase-heading .eyebrow {
  margin-bottom: .18rem;
}

.showcase-heading h2 {
  margin: 0;
  font-size: clamp(1.35rem, 1.1rem + .7vw, 1.85rem);
}

.showcase-heading__actions {
  display: flex;
  align-items: center;
  gap: .4rem;
}

.showcase-heading__actions .text-link {
  margin-left: .45rem;
  font-size: .74rem;
  white-space: nowrap;
}

.showcase-heading__actions button {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  padding: 0;
  border: 1px solid #cfe0ef;
  border-radius: 50%;
  background: #fff;
  color: var(--ocean-600);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.showcase-heading__actions button:hover:not(:disabled) {
  border-color: var(--ocean-600);
  background: var(--ocean-600);
  color: #fff;
}

.showcase-heading__actions button:disabled {
  cursor: default;
  opacity: .35;
}

[data-product-showcase].is-static .showcase-heading__actions button {
  display: none;
}

.product-showcase {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 2px 2px 12px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.product-showcase::-webkit-scrollbar {
  display: none;
}

.product-showcase .home-product-card {
  display: flex;
  flex: 0 0 calc((100% - 64px) / 5);
  min-width: 0;
  min-height: 318px;
  flex-direction: column;
  overflow: hidden;
  scroll-snap-align: start;
  border: 1px solid #cfe2f2;
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 8px 22px rgba(6, 46, 86, .065);
  transition:
    border-color 220ms ease,
    box-shadow 280ms ease,
    background 220ms ease,
    opacity 520ms cubic-bezier(.22,.7,.2,1);
}

/* Home product reveal — opacity only.
   No card translation: this keeps wheel scrolling perfectly stable. */
.product-showcase .home-product-card.is-reveal-ready {
  opacity: 0;
  transition-delay: 0ms;
}

.product-showcase .home-product-card.is-reveal-ready.is-revealed {
  opacity: 1;
  transition-delay: var(--home-card-reveal-delay, 0ms);
}

.product-showcase .home-product-card:hover {
  border-color: #8fc3e8;
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    #f8fcff 100%
  );
  box-shadow:
    0 18px 38px rgba(4, 52, 96, .12),
    0 4px 12px rgba(8, 124, 240, .05);
}

.home-product-card__media {
  position: relative;
  display: flex;
  height: 150px;
  flex: 0 0 150px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 10px 12px 7px;
  border-bottom: 1px solid #dbeaf6;
  background: linear-gradient(180deg, #f6fbff 0%, #edf7ff 100%);
  transition: background 260ms ease;
}

.home-product-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: contain;
  object-position: center;
  transition: transform 320ms ease;
}

.product-showcase .home-product-card:hover .home-product-card__media {
  background: linear-gradient(180deg, #f2f9ff 0%, #e9f5ff 100%);
}

.product-showcase .home-product-card:hover .home-product-card__media img {
  transform: scale(1.045);
}

.home-product-card__body {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  padding: 13px 14px 12px;
}

.home-product-card__meta {
  display: flex;
  min-height: 18px;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  color: #72849a;
  font-family: var(--plcsea-font);
  font-size: .63rem;
  line-height: 1.4;
  white-space: nowrap;
}

.home-product-card__meta i {
  width: 3px;
  height: 3px;
  flex: 0 0 3px;
  border-radius: 50%;
  background: #9fb5c9;
}

.home-product-card__meta span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-product-card__title {
  margin: 6px 0 0;
  font-family: var(--plcsea-font-tech);
  font-size: .92rem;
  font-weight: 750;
  line-height: 1.35;
  direction: ltr;
  text-align: right;
}

.home-product-card__title a {
  color: var(--navy-950);
  text-decoration: none;
}

.home-product-card__title a:hover {
  color: var(--ocean-600);
}

.product-showcase .home-product-card:hover .home-product-card__title a {
  color: var(--ocean-600);
}

.product-showcase .home-product-card:hover .home-product-card__cart {
  border-color: var(--ocean-600);
  background: var(--ocean-600);
  color: #fff;
}

.home-product-card__spec {
  min-height: 19px;
  margin: 7px 0 0;
  overflow: hidden;
  color: #425a73;
  font-family: var(--plcsea-font-tech);
  font-size: .68rem;
  font-weight: 500;
  line-height: 1.5;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-product-card__footer {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
}

.home-product-card__price {
  min-width: 0;
  color: var(--navy-950);
  font-family: var(--plcsea-font);
  font-size: .76rem;
  font-weight: 700;
  line-height: 1.55;
}

.home-product-card__price del {
  display: none;
}

.home-product-card__price ins {
  text-decoration: none;
}

.home-product-card__cart {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border: 1px solid #bcd9ef;
  border-radius: 9px;
  background: #f7fbff;
  color: var(--ocean-600);
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease, transform 180ms ease;
}

.home-product-card__cart svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-product-card__cart:hover {
  border-color: var(--ocean-600);
  background: var(--ocean-600);
  color: #fff;
}

.home-product-card__media:focus-visible,
.home-product-card__title a:focus-visible,
.home-product-card__cart:focus-visible {
  outline: 2px solid var(--ocean-600);
  outline-offset: 2px;
}

@media (max-width: 1180px) {
  .product-showcase .home-product-card {
    flex-basis: calc((100% - 48px) / 4);
  }
}

@media (max-width: 860px) {
  .products-section {
    padding-block: 27px 31px;
  }

  .showcase-heading {
    align-items: center;
  }

  .showcase-heading__actions .text-link {
    display: none;
  }

  .product-showcase {
    gap: 14px;
  }

  .product-showcase .home-product-card {
    flex-basis: calc((100% - 14px) / 2.15);
    min-height: 304px;
  }

  .home-product-card__media {
    height: 142px;
    flex-basis: 142px;
  }
}

@media (max-width: 580px) {
  .products-section {
    padding-block: 18px 28px;
  }

  .showcase-heading {
    gap: .65rem;
    margin-bottom: .9rem;
  }

  .showcase-heading h2 {
    font-size: 1.24rem;
  }

  .showcase-heading__actions {
    gap: .3rem;
  }

  .showcase-heading__actions button {
    width: 31px;
    height: 31px;
    flex-basis: 31px;
  }

  .product-showcase {
    gap: 12px;
    padding-bottom: 10px;
  }

  .product-showcase .home-product-card {
    flex-basis: min(78vw, 258px);
    min-height: 300px;
  }

  .home-product-card__media {
    height: 138px;
    flex-basis: 138px;
  }

  .home-product-card__body {
    padding: 12px 13px 11px;
  }

  .home-product-card__title {
    font-size: .88rem;
  }
}

/* =========================================================
   DYNAMIC CONTENT SECTIONS
   ========================================================= */

.content-section {
  padding-block: 38px;

  border-top: 1px solid #e1edf7;
}

.content-section:nth-of-type(even) {
  background: #f7fbff;
}

.content-section .content-card__media {
  height: 165px;

  aspect-ratio: auto;
}


/* =========================================================
   SERVICE ADVANTAGES
   ========================================================= */

.service-advantages {
  position: relative;
  overflow: hidden;
  padding-block: 24px 28px;
  border-top: 1px solid #dce9f4;
  background:
    radial-gradient(circle at 94% 18%, rgba(22,151,238,.075), transparent 18rem),
    linear-gradient(180deg, #f7fbff 0%, #eef7fd 100%);
}

.service-advantages__flow {
  display: none;
}

.advantages-grid {
  position: relative;
  display: grid;
  width: min(calc(100% - 4rem),1320px);
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 12px;
  margin-inline: auto;
  padding: 0;
}

.advantage-item {
  position: relative;
  display: grid;
  min-width: 0;
  min-height: 118px;
  grid-template-columns: 46px minmax(0,1fr);
  align-items: center;
  gap: 13px;
  padding: 16px 17px;
  border: 1px solid #d3e3ef;
  border-radius: 15px;
  background: linear-gradient(145deg,#fff,#f8fcff);
  box-shadow: 0 7px 20px rgba(6,45,84,.045);
  transition:
    transform 220ms cubic-bezier(.22,.7,.2,1),
    border-color 200ms ease,
    box-shadow 240ms ease;
}

.advantage-item::before {
  position: absolute;
  top: 0;
  right: 17px;
  left: 17px;
  height: 2px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg,transparent,#168cf0 35%,#49c4ec 65%,transparent);
  content: "";
  opacity: .58;
}

.advantage-item:hover {
  border-color: #9dc9e8;
  box-shadow: 0 13px 28px rgba(6,50,91,.085);
  transform: translateY(-3px);
}

.advantage-item > span {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid #bddbf1;
  border-radius: 12px;
  background: linear-gradient(145deg,#f5fbff,#ebf7ff);
  color: #087cf0;
}

.advantage-item svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.advantage-item b,
.advantage-item small {
  display: block;
}

.advantage-item b {
  margin: 0 0 4px;
  color: var(--navy-950);
  font-size: .82rem;
  font-weight: 720;
  line-height: 1.6;
}

.advantage-item small {
  color: #657a90;
  font-size: .62rem;
  line-height: 1.75;
}

/* =========================================================
   RESPONSIVE — non-hero homepage sections
   ========================================================= */

@media (max-width: 1080px) {
   .trust-grid {
    width: calc(100% - 32px);
  }

  .trust-item {
    gap: 10px;
    padding-inline: 15px;
  }

  .trust-item strong { font-size: .84rem; }
  .trust-item small { font-size: .7rem; }

  .product-showcase .product-card {
    flex-basis: calc((100% - 2.4rem) / 4);
  }

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

  .advantage-item:nth-child(2) {
    border-left: 0;
  }

  .advantage-item:nth-child(-n + 2) {
    border-bottom: 1px solid #d7e6f2;
  }
}

@media (max-width: 860px) {
  .trust-strip {
    margin-top: -28px;
  }

  .trust-grid {
    width: min(calc(100% - 2rem),1320px);
    grid-template-columns: repeat(2,minmax(0,1fr));
  }

  .trust-item:nth-child(2) {
    border-left: 0;
  }

  .trust-item:nth-child(-n + 2) {
    border-bottom: 1px solid #dfe9f3;
  }

  .product-showcase .product-card {
    flex-basis: calc((100% - 1.6rem) / 3);
  }
}

@media (max-width: 580px) {
  .trust-strip {
    margin-top: 0;
    padding-top: 14px;
    background: #fff;
  }

  .trust-grid {
    width: min(calc(100% - 1.25rem),1320px);
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .trust-item,
  .trust-item:nth-child(n) {
    display: flex;
    min-height: 122px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 9px;
    border: 1px solid #d6e5f1;
    border-radius: 13px;
    background: #fff;
    text-align: center;
    transform: none;
  }

  .trust-item strong,
  .trust-item small {
    width: 100%;
    text-align: center;
  }

  .trust-item__icon {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
  }

  .products-section {
    padding-block: 18px 28px;
  }

  .showcase-heading {
    flex-direction: column;
    align-items: center;
    gap: 7px;
    text-align: center;
  }

  .showcase-heading > div:first-child {
    width: 100%;
    align-items: center;
    text-align: center;
  }

  .home-heading__title-group {
    margin-inline: auto;
    align-items: center;
  }

  .home-heading__title-group h2,
  .showcase-heading h2 {
    font-size: 1.15rem;
    text-align: center;
  }

  .showcase-heading__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-inline: auto;
    direction: ltr;
  }

  .showcase-heading__actions .text-link {
    display: none;
  }

  .showcase-heading__actions button {
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    font-size: 1rem;
  }

  .product-showcase .product-card {
    flex-basis: min(72vw,230px);
  }

  .product-showcase .product-card__media {
    height: 135px;
  }

  .content-section {
    padding-block: 28px;
  }

  .advantages-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 8px;
    padding-block: 8px;
  }

  .advantage-item,
  .advantage-item:nth-child(n) {
    display: flex;
    min-height: 118px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 8px;
    border: 1px solid #d6e5f1;
    border-radius: 13px;
    text-align: center;
  }

  .advantage-item > div,
  .advantage-item b,
  .advantage-item small {
    width: 100%;
    text-align: center;
  }
}

/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .hero-nav button[aria-selected="true"].is-progressing i::after {
    animation: none;
    transform: scaleX(1);
  }

  .hero-copy__content,
  .hero-visual {
    transition: none;
    filter: none;
  }

  .product-showcase {
    scroll-behavior: auto;
  }
}

/* Prevent browser scroll anchoring jitter during hero scene changes */
body.home,
.hero-showcase,
.hero-scenes,
.hero-scene,
.trust-strip {
    overflow-anchor: none;
}

/* =========================================================
   HOME KNOWLEDGE — editorial feature + secondary stories
   ========================================================= */

.home-knowledge {
  position: relative;
  overflow: hidden;
  padding-block: 58px 64px;
  border-block: 1px solid #e0edf7;
  background:
    radial-gradient(circle at 8% 18%, rgba(8,124,240,.07), transparent 25rem),
    linear-gradient(180deg, #f9fcff 0%, #ffffff 48%, #f7fbff 100%);
}

.home-knowledge::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(13,92,160,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13,92,160,.035) 1px, transparent 1px);
  background-size: 44px 44px;
  content: "";
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
}

.home-knowledge > .container {
  position: relative;
  z-index: 1;
}

.home-knowledge__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 24px;
}

.home-knowledge__heading .eyebrow {
  margin-bottom: 5px;
}

.home-knowledge__heading h2 {
  margin: 0;
  color: var(--navy-950);
  font-family: var(--plcsea-font);
  font-size: clamp(1.5rem, 1.2rem + .8vw, 2rem);
  font-weight: 750;
  line-height: 1.55;
}

.home-knowledge__heading p {
  max-width: 670px;
  margin: 6px 0 0;
  color: #61758a;
  font-family: var(--plcsea-font);
  font-size: .76rem;
  line-height: 1.9;
}

.home-knowledge__all,
.home-knowledge__read {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ocean-600);
  font-family: var(--plcsea-font);
  font-weight: 650;
  text-decoration: none;
}

.home-knowledge__all {
  flex: 0 0 auto;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(8,124,240,.25);
  font-size: .75rem;
}

.home-knowledge__all span,
.home-knowledge__read span {
  transition: transform 220ms ease;
}

.home-knowledge__all:hover span,
.home-knowledge__read:hover span {
  transform: translateX(-4px);
}

.home-knowledge__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.58fr) minmax(330px, .82fr);
  gap: 18px;
  direction: rtl;
}

.home-knowledge-featured,
.home-knowledge-card {
  overflow: hidden;
  border: 1px solid #d2e4f2;
  background: rgba(255,255,255,.96);
  box-shadow: 0 10px 30px rgba(4,43,82,.065);
  transition:
    transform 280ms cubic-bezier(.22,.7,.2,1),
    border-color 220ms ease,
    box-shadow 280ms ease;
}

.home-knowledge-featured {
  display: grid;
  min-height: 420px;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr);
  border-radius: 20px;
}

.home-knowledge-featured:hover,
.home-knowledge-card:hover {
  transform: translateY(-5px);
  border-color: #9fcbed;
  box-shadow: 0 20px 44px rgba(4,48,91,.115);
}

.home-knowledge-featured__media,
.home-knowledge-card__media {
  position: relative;
  display: block;
  overflow: hidden;
  background: #eaf4fb;
}

.home-knowledge-featured__media img,
.home-knowledge-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 650ms cubic-bezier(.2,.7,.2,1);
}

.home-knowledge-featured:hover img,
.home-knowledge-card:hover img {
  transform: scale(1.035);
}

.home-knowledge-featured__badge {
  position: absolute;
  top: 18px;
  right: 18px;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 11px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 999px;
  background: rgba(4,40,75,.82);
  backdrop-filter: blur(8px);
  color: #fff;
  font-family: var(--plcsea-font);
  font-size: .64rem;
  font-weight: 650;
}

.home-knowledge-featured__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 32px 30px;
}

.home-knowledge__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 13px;
  margin-bottom: 10px;
  color: #71859a;
  font-family: var(--plcsea-font);
  font-size: .64rem;
}

.home-knowledge__meta span {
  color: var(--ocean-600);
  font-weight: 650;
}

.home-knowledge__meta time {
  direction: rtl;
}

.home-knowledge-featured h3,
.home-knowledge-card h3 {
  margin: 0;
  font-family: var(--plcsea-font);
  font-weight: 700;
}

.home-knowledge-featured h3 {
  font-size: clamp(1.28rem, 1.05rem + .6vw, 1.7rem);
  line-height: 1.75;
}

.home-knowledge-featured h3 a,
.home-knowledge-card h3 a {
  color: var(--navy-950);
  text-decoration: none;
  transition: color 180ms ease;
}

.home-knowledge-featured:hover h3 a,
.home-knowledge-card:hover h3 a {
  color: var(--ocean-700);
}

.home-knowledge-featured__body > p,
.home-knowledge-card__body > p {
  color: #526a80;
  font-family: var(--plcsea-font);
}

.home-knowledge-featured__body > p {
  margin: 11px 0 19px;
  font-size: .76rem;
  line-height: 2;
}

.home-knowledge__read {
  margin-top: auto;
  font-size: .71rem;
}

.home-knowledge__secondary {
  display: grid;
  min-width: 0;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.home-knowledge-card {
  display: grid;
  min-height: 0;
  grid-template-columns: 42% minmax(0, 1fr);
  border-radius: 16px;
}

.home-knowledge-card__body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 19px 18px;
}

.home-knowledge-card h3 {
  font-size: .9rem;
  line-height: 1.8;
}

.home-knowledge-card__body > p {
  display: -webkit-box;
  margin: 7px 0 10px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  font-size: .67rem;
  line-height: 1.9;
}

.home-knowledge-card .home-knowledge__read {
  font-size: .65rem;
}

@media (max-width: 1050px) {
  .home-knowledge__layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, .85fr);
  }

  .home-knowledge-featured {
    grid-template-columns: 1fr;
  }

  .home-knowledge-featured__media {
    min-height: 235px;
  }

  .home-knowledge-featured__body {
    padding: 24px;
  }

  .home-knowledge-card {
    grid-template-columns: 1fr;
  }

  .home-knowledge-card__media {
    min-height: 125px;
  }
}

@media (max-width: 760px) {
  .home-knowledge {
    padding-block: 38px 44px;
  }

  .home-knowledge__heading {
    display: block;
    margin-bottom: 18px;
    text-align: center;
  }

  .home-knowledge__heading p {
    margin-inline: auto;
  }

  .home-knowledge__all {
    margin-top: 12px;
  }

  .home-knowledge__layout {
    display: block;
  }

  .home-knowledge-featured {
    display: block;
    min-height: 0;
    border-radius: 17px;
  }

  .home-knowledge-featured__media {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .home-knowledge-featured__body {
    padding: 21px 19px 20px;
  }

  .home-knowledge-featured h3 {
    font-size: 1.08rem;
  }

  .home-knowledge-featured__body > p {
    margin-bottom: 14px;
    font-size: .7rem;
  }

  .home-knowledge__secondary {
    display: flex;
    gap: 12px;
    margin-top: 14px;
    overflow-x: auto;
    padding: 2px 2px 10px;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .home-knowledge__secondary::-webkit-scrollbar {
    display: none;
  }

  .home-knowledge-card {
    display: block;
    flex: 0 0 min(82vw, 310px);
    scroll-snap-align: start;
    border-radius: 15px;
  }

  .home-knowledge-card__media {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .home-knowledge-card__body {
    min-height: 185px;
    padding: 17px 16px;
  }

  .home-knowledge-card h3 {
    font-size: .84rem;
  }
}

@media (max-width: 420px) {
  .home-knowledge {
    padding-block: 32px 38px;
  }

  .home-knowledge__heading h2 {
    font-size: 1.42rem;
  }

  .home-knowledge__heading p {
    font-size: .7rem;
  }

  .home-knowledge-featured__badge {
    top: 12px;
    right: 12px;
  }

  .home-knowledge-card {
    flex-basis: 84vw;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-knowledge-featured,
  .home-knowledge-card,
  .home-knowledge-featured__media img,
  .home-knowledge-card__media img {
    transition: none;
  }
}


/* =========================================================
   HOME KNOWLEDGE — POLISH V2
   heading balance / reveal / premium hover
   ========================================================= */

.home-knowledge__heading > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.home-knowledge__heading .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 7px;
  font-size: .72rem;
  letter-spacing: .11em;
}

.home-knowledge__heading .eyebrow::before,
.home-knowledge__heading .eyebrow::after {
  width: 30px;
  height: 1px;
  flex: 0 0 30px;
  background: currentColor;
  content: "";
  opacity: .72;
}

.home-knowledge__heading h2 {
  font-size: clamp(1.62rem, 1.25rem + .9vw, 2.08rem);
  line-height: 1.48;
}

/* Reveal state */
.home-knowledge-featured,
.home-knowledge-card {
  opacity: 0;
  transform: translateY(22px);
}

.home-knowledge.is-revealed .home-knowledge-featured,
.home-knowledge.is-revealed .home-knowledge-card {
  opacity: 1;
  transform: translateY(0);
}

.home-knowledge-featured {
  transition:
    opacity 560ms cubic-bezier(.22,.7,.2,1),
    transform 650ms cubic-bezier(.22,.7,.2,1),
    border-color 240ms ease,
    box-shadow 300ms ease;
}

.home-knowledge-card {
  transition:
    opacity 520ms cubic-bezier(.22,.7,.2,1),
    transform 600ms cubic-bezier(.22,.7,.2,1),
    border-color 240ms ease,
    box-shadow 300ms ease;
}

.home-knowledge.is-revealed .home-knowledge-card:nth-child(1) {
  transition-delay: 90ms;
}

.home-knowledge.is-revealed .home-knowledge-card:nth-child(2) {
  transition-delay: 170ms;
}

/* Featured card premium finish */
.home-knowledge-featured {
  position: relative;
  border-color: #c8deee;
  background:
    linear-gradient(
      145deg,
      #ffffff 0%,
      #fbfdff 58%,
      #f4faff 100%
    );
  box-shadow:
    0 12px 34px rgba(5,44,83,.07),
    0 2px 5px rgba(5,44,83,.025);
}

.home-knowledge-featured::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #087cf0, #31b5f1, #58d1e6);
  content: "";
  opacity: 0;
  transform: scaleX(.35);
  transform-origin: right;
  transition: opacity 260ms ease, transform 320ms ease;
}

.home-knowledge-featured:hover {
  border-color: #8fc2e8;
  box-shadow:
    0 22px 48px rgba(5,48,92,.13),
    0 5px 14px rgba(8,124,240,.05);
  transform: translateY(-6px);
}

.home-knowledge-featured:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.home-knowledge-featured__media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(4,38,72,.08), transparent 38%);
  content: "";
  pointer-events: none;
}

.home-knowledge-featured:hover .home-knowledge-featured__media img {
  transform: scale(1.045);
}

.home-knowledge-featured__badge {
  box-shadow: 0 7px 20px rgba(3,39,74,.18);
}

.home-knowledge-featured:hover h3 a {
  color: #0874df;
}

/* Secondary cards */
.home-knowledge-card {
  position: relative;
  border-color: #d4e4ef;
  background: linear-gradient(180deg, #fff, #fbfdff);
  box-shadow: 0 7px 22px rgba(5,43,82,.05);
}

.home-knowledge-card::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: #168cf0;
  content: "";
  opacity: 0;
  transform: scaleX(.35);
  transform-origin: right;
  transition: opacity 220ms ease, transform 260ms ease;
}

.home-knowledge-card:hover {
  border-color: #96c5e8;
  box-shadow: 0 16px 34px rgba(5,50,92,.11);
  transform: translateY(-5px);
}

.home-knowledge-card:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.home-knowledge-card:hover .home-knowledge-card__media img {
  transform: scale(1.055);
}

.home-knowledge-card:hover h3 a {
  color: #0874df;
}

.home-knowledge__read {
  position: relative;
  width: fit-content;
}

.home-knowledge__read::after {
  position: absolute;
  right: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transition: width 220ms ease;
}

.home-knowledge__read:hover::after {
  width: 100%;
}

@media (max-width: 760px) {
  .home-knowledge__heading > div {
    align-items: center;
  }

  .home-knowledge__heading .eyebrow {
    justify-content: center;
  }

  .home-knowledge-featured:hover,
  .home-knowledge-card:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-knowledge-featured,
  .home-knowledge-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* =========================================================
   HOME KNOWLEDGE — EDITORIAL REDESIGN V3
   tighter rhythm / balanced 1+2 layout / scroll-only reveal
   ========================================================= */

.home-knowledge {
  padding-block: 20px 44px;
}

.home-knowledge__heading {
  margin-bottom: 10px;
}

.home-knowledge__heading > div {
  max-width: 760px;
}

.home-knowledge__heading .eyebrow {
  margin-bottom: 5px;
  font-size: .7rem;
}

.home-knowledge__heading h2 {
  font-size: clamp(1.56rem, 1.22rem + .82vw, 1.98rem);
  line-height: 1.48;
}

.home-knowledge__heading p {
  margin-top: 4px;
}

/* Better editorial balance: featured card + two compact stories */
.home-knowledge__layout {
  grid-template-columns: minmax(0, 1.35fr) minmax(350px, .95fr);
  gap: 16px;
}

.home-knowledge-featured {
  height: 360px;
  min-height: 360px;
  grid-template-columns: 54% 46%;
  border-radius: 18px;
}

.home-knowledge-featured__body {
  padding: 24px 23px;
}

.home-knowledge-featured h3 {
  font-size: clamp(1.2rem, 1rem + .48vw, 1.52rem);
  line-height: 1.72;
}

.home-knowledge-featured__body > p {
  margin: 9px 0 16px;
  font-size: .73rem;
  line-height: 1.95;
}

/* Secondary cards fit the featured card height exactly */
.home-knowledge__secondary {
  height: 360px;
  min-height: 360px;
  grid-template-rows: repeat(2, 172px);
  gap: 16px;
}

.home-knowledge-card {
  min-height: 172px;
  height: 172px;
  grid-template-columns: 40% minmax(0, 1fr);
  border-radius: 15px;
}

.home-knowledge-card__body {
  justify-content: center;
  padding: 15px 16px;
}

.home-knowledge-card .home-knowledge__meta {
  margin-bottom: 6px;
  font-size: .58rem;
}

.home-knowledge-card h3 {
  font-size: .82rem;
  line-height: 1.75;
}

.home-knowledge-card__body > p {
  margin: 5px 0 8px;
  font-size: .62rem;
  line-height: 1.78;
}

/* More polished media treatment */
.home-knowledge-featured__media,
.home-knowledge-card__media {
  background:
    linear-gradient(145deg, #eef7fd, #e6f1f8);
}

.home-knowledge-featured__media::before,
.home-knowledge-card__media::before {
  position: absolute;
  z-index: 2;
  inset: 0;
  border: 1px solid rgba(255,255,255,.24);
  content: "";
  pointer-events: none;
}

.home-knowledge-featured__media::before {
  border-radius: 0 18px 18px 0;
}

/* Accent line gives the featured story more identity */
.home-knowledge-featured__body::before {
  position: absolute;
  top: 26px;
  right: 0;
  width: 3px;
  height: 54px;
  border-radius: 999px;
  background: linear-gradient(180deg, #087cf0, #54cdec);
  content: "";
  opacity: .78;
}

/* Secondary cards use a lighter accent */
.home-knowledge-card__body {
  position: relative;
}

.home-knowledge-card__body::before {
  position: absolute;
  top: 16px;
  right: 0;
  width: 2px;
  height: 34px;
  border-radius: 999px;
  background: #8ecdf3;
  content: "";
  opacity: .7;
}

/* Scroll reveal — desktop: featured + two secondary cards.
   Uses only opacity/transform to keep scrolling light. */
.home-knowledge-featured {
  opacity: 0;
  transform: translateY(28px) scale(.985);
  transition:
    opacity 520ms cubic-bezier(.22,.7,.2,1),
    transform 620ms cubic-bezier(.22,.7,.2,1),
    border-color 240ms ease,
    box-shadow 300ms ease;
}

.home-knowledge-card {
  opacity: 0;
  transform: translateX(-18px);
  transition:
    opacity 460ms cubic-bezier(.22,.7,.2,1),
    transform 560ms cubic-bezier(.22,.7,.2,1),
    border-color 240ms ease,
    box-shadow 300ms ease;
}

.home-knowledge.is-revealed .home-knowledge-featured {
  opacity: 1;
  transform: translateY(0) scale(1);
  transition-delay: 0ms;
}

.home-knowledge.is-revealed .home-knowledge__secondary .home-knowledge-card:nth-child(1) {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 100ms;
}

.home-knowledge.is-revealed .home-knowledge__secondary .home-knowledge-card:nth-child(2) {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 180ms;
}

/* Reset delays while leaving the viewport so the next reveal stays clean. */
.home-knowledge:not(.is-revealed) .home-knowledge-featured,
.home-knowledge:not(.is-revealed) .home-knowledge-card {
  transition-delay: 0ms;
}

/* Premium hover */
.home-knowledge-featured:hover {
  transform: translateY(-6px);
  border-color: #87bfe7;
  box-shadow:
    0 24px 52px rgba(5,48,92,.135),
    0 5px 14px rgba(8,124,240,.055);
}

.home-knowledge-card:hover {
  transform: translateY(-4px);
  border-color: #91c4e8;
  box-shadow:
    0 17px 36px rgba(5,50,92,.115);
}

.home-knowledge-featured:hover .home-knowledge-featured__media img {
  transform: scale(1.05);
}

.home-knowledge-card:hover .home-knowledge-card__media img {
  transform: scale(1.06);
}

.home-knowledge-featured:hover h3 a,
.home-knowledge-card:hover h3 a {
  color: #0874df;
}

/* Tablet */
@media (max-width: 1050px) {
  .home-knowledge__layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  }

  .home-knowledge-featured {
    min-height: 350px;
    grid-template-columns: 1fr;
  }

  .home-knowledge-featured__media {
    min-height: 190px;
  }

  .home-knowledge__secondary {
    grid-template-rows: repeat(2, 167px);
  }

  .home-knowledge-card {
    height: 167px;
    min-height: 167px;
  }
}

/* Mobile: featured first, secondary stories become a swipe row */
@media (max-width: 760px) {
  .home-knowledge {
    padding-block: 28px 38px;
  }

  .home-knowledge__heading {
    margin-bottom: 12px;
  }

  .home-knowledge__layout {
    display: block;
  }

  .home-knowledge-featured {
    display: block;
    min-height: 0;
    height: auto;
  }

  .home-knowledge-featured__media {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .home-knowledge-featured__body::before {
    top: 20px;
    height: 44px;
  }

  .home-knowledge__secondary {
    display: flex;
    gap: 12px;
    margin-top: 14px;
    overflow-x: auto;
    padding: 2px 2px 10px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .home-knowledge__secondary::-webkit-scrollbar {
    display: none;
  }

  .home-knowledge-card {
    display: block;
    flex: 0 0 min(82vw, 310px);
    width: min(82vw, 310px);
    height: auto;
    min-height: 0;
    opacity: 1;
    transform: none;
    transition:
      border-color 240ms ease,
      box-shadow 300ms ease;
    scroll-snap-align: start;
  }

  .home-knowledge-card__media {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .home-knowledge-card__body {
    min-height: 170px;
  }

  .home-knowledge-featured:hover,
  .home-knowledge-card:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-knowledge-featured,
  .home-knowledge-card {
    opacity: 1;
    transform: none;
    transition: none;
  }
}


/* =========================================================
   HOME — EDITORIAL MODERNIZATION
   Consultation phone / gateways / projects / section rhythm / final CTA
   ========================================================= */

/* Consultation phone — top-left of the Home hero */
.home-consult-phone {
  position: absolute;
  z-index: 36;
  top: 20px;
  left: 0;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 10px;
  padding: 7px 12px 7px 10px;
  border: 1px solid rgba(181, 211, 236, .92);
  border-radius: 12px;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(12px);
  color: var(--navy-950);
  box-shadow: 0 8px 26px rgba(7, 46, 83, .07);
  font-family: var(--plcsea-font);
  text-decoration: none;
  transition: transform 200ms ease, border-color 200ms ease, box-shadow 220ms ease, background 200ms ease;
}

.home-consult-phone:hover {
  border-color: #8fc3e8;
  background: rgba(255,255,255,.98);
  box-shadow: 0 12px 30px rgba(7, 52, 96, .11);
  transform: translateY(-2px);
}

.home-consult-phone__icon {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(145deg, #eef8ff, #e5f5ff);
  color: var(--ocean-600);
}

.home-consult-phone__icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-consult-phone__copy {
  display: grid;
  gap: 1px;
  text-align: right;
}

.home-consult-phone__copy small {
  color: #667b90;
  font-size: .58rem;
  font-weight: 550;
  line-height: 1.4;
}

.home-consult-phone__copy strong {
  color: #0b3158;
  font-family: var(--plcsea-font);
  font-size: .78rem;
  font-weight: 750;
  line-height: 1.35;
  letter-spacing: .015em;
  font-variant-numeric: tabular-nums;
}


/* Quick gateways: lighter, shorter and more navigation-oriented */
.brand-pillars {
  padding-block: 30px 26px;
}

.pillar-grid {
  gap: 14px;
}

.pillar-card {
  min-height: 188px;
  border-radius: 16px;
  box-shadow: 0 7px 20px rgba(4, 34, 67, .055);
}

.pillar-card__copy {
  width: 64%;
  padding: 19px 20px 17px;
}

.pillar-card__copy em {
  margin-bottom: 7px;
  font-size: .61rem;
}

.pillar-card__copy b {
  font-size: 1rem;
}

.pillar-card__copy small {
  margin-top: 3px;
  font-size: .64rem;
  line-height: 1.78;
}

.pillar-card__copy i {
  padding-top: 10px;
  font-size: .64rem;
}


/* STORE gets a subtle technical field without changing its existing card system */
.products-section {
  position: relative;
  overflow: hidden;
  padding-block: 28px 42px;
  border-top: 1px solid #e5eef6;
  background:
    linear-gradient(rgba(10, 86, 150, .024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 86, 150, .024) 1px, transparent 1px),
    linear-gradient(180deg, #fff 0%, #fbfdff 100%);
  background-size: 48px 48px, 48px 48px, auto;
}

.products-section > .container {
  position: relative;
  z-index: 1;
}

.showcase-heading {
  margin-bottom: 1rem;
}

.showcase-heading .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.showcase-heading .eyebrow::before {
  width: 26px;
  height: 1px;
  background: currentColor;
  content: "";
}


/* Shared Home section heading structure.
   Persian title starts from the right; English eyebrow is centered
   over the Persian title itself, not over the subtitle. */
.showcase-heading,
.home-projects__heading,
.home-knowledge__heading {
  direction: rtl;
  text-align: right;
}

.showcase-heading > div:first-child,
.home-projects__heading > div:first-child,
.home-knowledge__heading > div:first-child {
  display: flex;
  max-width: min(100%, 760px);
  flex-direction: column;
  align-items: flex-start;
  text-align: right;
}

.home-heading__title-group {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  flex-direction: column;
  align-items: center;
}

.home-heading__title-group .eyebrow {
  align-self: center;
  margin-inline: auto;
  text-align: center;
}

.home-heading__title-group h2 {
  width: auto;
  max-width: 100%;
  margin-inline: 0;
  text-align: right;
}

.home-projects__heading > div:first-child > p,
.home-knowledge__heading > div:first-child > p {
  width: 100%;
  max-width: 700px;
  margin-inline: 0;
  text-align: right;
}


/* =========================================================
   HOME PROJECTS — BUILD SOLUTIONS editorial showcase
   ========================================================= */

.home-projects {
  position: relative;
  overflow: hidden;
  padding-block: 20px 44px;
  border-block: 1px solid #dceaf5;
  background:
    radial-gradient(circle at 92% 16%, rgba(8,124,240,.075), transparent 24rem),
    linear-gradient(180deg, #f6fbff 0%, #eef7fd 48%, #f8fcff 100%);
}

.home-projects::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(12,91,159,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12,91,159,.03) 1px, transparent 1px);
  background-size: 46px 46px;
  content: "";
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
}

.home-projects > .container {
  position: relative;
  z-index: 1;
}

.home-projects__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 10px;
}

.home-projects__heading > div {
  max-width: 760px;
}

.home-projects__heading .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 6px;
  font-size: .7rem;
  letter-spacing: .11em;
}

.home-projects__heading .eyebrow::before,
.home-projects__heading .eyebrow::after {
  width: 30px;
  height: 1px;
  flex: 0 0 30px;
  background: currentColor;
  content: "";
  opacity: .72;
}

.home-projects__heading h2 {
  margin: 0;
  color: var(--navy-950);
  font-family: var(--plcsea-font);
  font-size: clamp(1.56rem, 1.22rem + .82vw, 1.98rem);
  font-weight: 750;
  line-height: 1.5;
}

.home-projects__heading p {
  max-width: 700px;
  margin: 5px 0 0;
  color: #60758a;
  font-family: var(--plcsea-font);
  font-size: .74rem;
  line-height: 1.9;
}

.home-projects__all,
.home-projects__read {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  color: var(--ocean-600);
  font-family: var(--plcsea-font);
  font-weight: 700;
  text-decoration: none;
}

.home-projects__all {
  flex: 0 0 auto;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(8,124,240,.24);
  font-size: .72rem;
}

.home-projects__read {
  margin-top: auto;
  font-size: .67rem;
}

.home-projects__all span,
.home-projects__read span {
  transition: transform 220ms ease;
}

.home-projects__all:hover span,
.home-projects__read:hover span {
  transform: translateX(-4px);
}

.home-projects__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(350px, .95fr);
  gap: 16px;
  direction: ltr;
}

.home-project-featured,
.home-project-card {
  overflow: hidden;
  border: 1px solid #cbdfea;
  background: rgba(255,255,255,.98);
  box-shadow: 0 9px 28px rgba(4,43,82,.06);
  direction: rtl;
}

.home-project-featured {
  display: grid;
  height: 360px;
  min-height: 360px;
  grid-template-columns: 54% 46%;
  border-radius: 18px;
}

.home-projects__secondary {
  display: grid;
  min-width: 0;
  height: 360px;
  min-height: 360px;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.home-project-card {
  display: grid;
  height: 172px;
  min-height: 172px;
  grid-template-columns: 40% minmax(0, 1fr);
  border-radius: 15px;
}

.home-project-featured__media,
.home-project-card__media {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
  background: linear-gradient(145deg, #eaf4fb, #e3eef6);
}

.home-project-featured__media img,
.home-project-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 650ms cubic-bezier(.2,.7,.2,1);
}

.home-project__placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 150px;
  place-items: center;
  color: var(--ocean-600);
}

.home-project__placeholder .plcsea-icon,
.home-project__placeholder svg {
  width: 48px;
  height: 48px;
  opacity: .5;
}

.home-project-featured__badge {
  position: absolute;
  top: 15px;
  right: 15px;
  display: inline-flex;
  min-height: 29px;
  align-items: center;
  padding: 5px 10px;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 999px;
  background: rgba(4,40,75,.82);
  backdrop-filter: blur(8px);
  color: #fff;
  font-family: var(--plcsea-font);
  font-size: .61rem;
  font-weight: 700;
}

.home-project-featured__body,
.home-project-card__body {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
}

.home-project-featured__body {
  padding: 24px 23px;
}

.home-project-card__body {
  padding: 15px 16px;
}

.home-project-featured__body::before,
.home-project-card__body::before {
  position: absolute;
  right: 0;
  border-radius: 999px;
  content: "";
}

.home-project-featured__body::before {
  top: 26px;
  width: 3px;
  height: 54px;
  background: linear-gradient(180deg, #087cf0, #54cdec);
  opacity: .8;
}

.home-project-card__body::before {
  top: 16px;
  width: 2px;
  height: 34px;
  background: #8ecdf3;
  opacity: .7;
}

.home-project__meta {
  display: flex;
  align-items: center;
  min-height: 18px;
  margin-bottom: 7px;
  color: #70859a;
  font-family: var(--plcsea-font);
  font-size: .59rem;
}

.home-project__meta span {
  color: var(--ocean-600);
  font-weight: 700;
}

.home-project-featured h3,
.home-project-card h3 {
  margin: 0;
  font-family: var(--plcsea-font);
  font-weight: 750;
}

.home-project-featured h3 {
  font-size: clamp(1.18rem, 1rem + .46vw, 1.5rem);
  line-height: 1.72;
}

.home-project-card h3 {
  font-size: .82rem;
  line-height: 1.75;
}

.home-project-featured h3 a,
.home-project-card h3 a {
  color: var(--navy-950);
  text-decoration: none;
  transition: color 180ms ease;
}

.home-project-featured__body > p,
.home-project-card__body > p {
  color: #536b80;
  font-family: var(--plcsea-font);
}

.home-project-featured__body > p {
  margin: 9px 0 16px;
  font-size: .72rem;
  line-height: 1.95;
}

.home-project-card__body > p {
  display: -webkit-box;
  margin: 5px 0 8px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  font-size: .61rem;
  line-height: 1.78;
}

/* Same premium surface and hover language as Knowledge cards. */
.home-project-featured {
  position: relative;
  border-color: #c8deee;
  background:
    linear-gradient(
      145deg,
      #ffffff 0%,
      #fbfdff 58%,
      #f4faff 100%
    );
  box-shadow:
    0 12px 34px rgba(5,44,83,.07),
    0 2px 5px rgba(5,44,83,.025);
}

.home-project-featured::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #087cf0, #31b5f1, #58d1e6);
  content: "";
  opacity: 0;
  transform: scaleX(.35);
  transform-origin: right;
  transition: opacity 260ms ease, transform 320ms ease;
}

.home-project-featured__media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(4,38,72,.08), transparent 38%);
  content: "";
  pointer-events: none;
}

.home-project-card {
  position: relative;
  border-color: #d4e4ef;
  background: linear-gradient(180deg, #fff, #fbfdff);
  box-shadow: 0 7px 22px rgba(5,43,82,.05);
}

.home-project-card::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: #168cf0;
  content: "";
  opacity: 0;
  transform: scaleX(.35);
  transform-origin: right;
  transition: opacity 220ms ease, transform 260ms ease;
}

/* Project scroll reveal — exactly the same motion language as Knowledge. */
.home-project-featured {
  opacity: 0;
  transform: translateY(28px) scale(.985);
  transition:
    opacity 520ms cubic-bezier(.22,.7,.2,1),
    transform 620ms cubic-bezier(.22,.7,.2,1),
    border-color 240ms ease,
    box-shadow 300ms ease;
}

.home-project-card {
  opacity: 0;
  transform: translateX(18px);
  transition:
    opacity 460ms cubic-bezier(.22,.7,.2,1),
    transform 560ms cubic-bezier(.22,.7,.2,1),
    border-color 240ms ease,
    box-shadow 300ms ease;
}

.home-projects.is-revealed .home-project-featured {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.home-projects.is-revealed .home-projects__secondary .home-project-card:nth-child(1) {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 100ms;
}

.home-projects.is-revealed .home-projects__secondary .home-project-card:nth-child(2) {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 180ms;
}

.home-projects:not(.is-revealed) .home-project-featured,
.home-projects:not(.is-revealed) .home-project-card {
  transition-delay: 0ms;
}

.home-project-featured:hover {
  transform: translateY(-6px);
  border-color: #8fc2e8;
  box-shadow:
    0 22px 48px rgba(5,48,92,.13),
    0 5px 14px rgba(8,124,240,.05);
}

.home-project-featured:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.home-project-card:hover {
  transform: translateY(-5px);
  border-color: #96c5e8;
  box-shadow: 0 16px 34px rgba(5,50,92,.11);
}

.home-project-card:hover::after {
  opacity: 1;
  transform: scaleX(1);
}

.home-project-featured:hover .home-project-featured__media img {
  transform: scale(1.045);
}

.home-project-card:hover .home-project-card__media img {
  transform: scale(1.055);
}

.home-project-featured:hover h3 a,
.home-project-card:hover h3 a {
  color: #0874df;
}


/* LEARN remains editorial but shifts to a clean white field for contrast */
.home-knowledge {
  border-block: 0;
  background:
    radial-gradient(circle at 8% 18%, rgba(8,124,240,.045), transparent 24rem),
    #fff;
}


/* Advantages become the bridge into the final CTA */
.service-advantages {
  border-top: 1px solid #dce9f4;
  border-bottom: 0;
}


/* =========================================================
   FINAL ENGINEERING CTA
   ========================================================= */

.home-engineering-cta {
  position: relative;
  padding-block: 34px 42px;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(35,176,232,.16), transparent 22rem),
    linear-gradient(135deg, #062b50 0%, #073d70 58%, #085593 100%);
}

.home-engineering-cta::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  content: "";
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
}

.home-engineering-cta__panel {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 138px;
  grid-template-columns: 62px minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 24px 26px;
  border: 1px solid rgba(180,222,247,.22);
  border-radius: 19px;
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(8px);
  box-shadow: 0 18px 45px rgba(0,18,38,.18);
}

.home-engineering-cta__icon {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 1px solid rgba(150,218,250,.22);
  border-radius: 17px;
  background: rgba(93,196,241,.11);
  color: #8bdcff;
}

.home-engineering-cta__icon .plcsea-icon,
.home-engineering-cta__icon svg {
  width: 29px;
  height: 29px;
}

.home-engineering-cta__content {
  min-width: 0;
}

.home-engineering-cta__content .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  color: #69d1f4;
  font-size: .62rem;
}

.home-engineering-cta__content .eyebrow::before {
  width: 24px;
  height: 1px;
  background: currentColor;
  content: "";
}

.home-engineering-cta__content h2 {
  margin: 0;
  color: #fff;
  font-family: var(--plcsea-font);
  font-size: clamp(1.05rem, .94rem + .45vw, 1.34rem);
  line-height: 1.75;
}

.home-engineering-cta__content p {
  max-width: 760px;
  margin: 4px 0 0;
  color: rgba(231,244,255,.75);
  font-family: var(--plcsea-font);
  font-size: .7rem;
  line-height: 1.85;
}

.home-engineering-cta__actions {
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}

.home-engineering-cta__actions .button {
  min-height: 42px;
  justify-content: center;
  border-color: #1596ef;
  background: #0c85e8;
  color: #fff;
  box-shadow: none;
}

.home-engineering-cta__actions .button:hover,
.home-engineering-cta__actions .button:focus-visible {
  border-color: #31a9f4;
  background: #1596ef;
  color: #fff;
  transform: translateY(-2px);
}

.home-engineering-cta__actions .button--outline {
  border-color: rgba(183,224,249,.55);
  background: rgba(255,255,255,.06);
  color: #eaf7ff;
}

.home-engineering-cta__actions .button--outline:hover,
.home-engineering-cta__actions .button--outline:focus-visible {
  border-color: rgba(213,239,255,.8);
  background: rgba(255,255,255,.12);
  color: #fff;
}


/* =========================================================
   HOME EDITORIAL RESPONSIVE
   ========================================================= */

@media (max-width: 1050px) {
  .home-projects__layout {
    grid-template-columns: minmax(300px, .85fr) minmax(0, 1.15fr);
  }

  .home-project-featured {
    height: 350px;
    min-height: 350px;
    grid-template-columns: 1fr;
  }

  .home-project-featured__media {
    min-height: 190px;
  }

  .home-projects__secondary {
    height: 350px;
    min-height: 350px;
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }

  .home-project-card {
    height: 167px;
    min-height: 167px;
  }

  .home-engineering-cta__panel {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .home-engineering-cta__icon {
    width: 56px;
    height: 56px;
  }

  .home-engineering-cta__actions {
    grid-column: 1 / -1;
    white-space: normal;
  }
}

@media (max-width: 860px) {
  .home-consult-phone {
    top: 62px;
    left: 4px;
    min-height: 42px;
    padding: 5px 9px 5px 7px;
  }

  .home-consult-phone__icon {
    width: 29px;
    height: 29px;
    flex-basis: 29px;
  }

  .home-consult-phone__copy small {
    font-size: .53rem;
  }

  .home-consult-phone__copy strong {
    font-size: .7rem;
  }
}

@media (max-width: 760px) {
  .home-projects {
    padding-block: 30px 38px;
  }

  .home-projects__heading {
    display: block;
    margin-bottom: 13px;
    text-align: center;
  }

  .home-projects__heading > div {
    max-width: none;
  }

  .home-projects__heading .eyebrow {
    justify-content: center;
  }

  .home-projects__heading p {
    margin-inline: auto;
  }

  .home-projects__all {
    margin-top: 11px;
  }

  .home-projects__layout {
    display: block;
  }

  .home-project-featured {
    display: block;
    height: auto;
    min-height: 0;
  }

  .home-projects__secondary {
    height: auto;
    min-height: 0;
  }

  .home-project-featured__media {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .home-project-featured__body {
    padding: 21px 19px 20px;
  }

  .home-project-featured h3 {
    font-size: 1.08rem;
  }

  .home-project-featured__body > p {
    font-size: .7rem;
  }

  .home-projects__secondary {
    display: flex;
    gap: 12px;
    margin-top: 14px;
    overflow-x: auto;
    padding: 2px 2px 10px;
    direction: rtl;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .home-projects__secondary::-webkit-scrollbar {
    display: none;
  }

  .home-project-card {
    display: block;
    flex: 0 0 min(82vw, 310px);
    width: min(82vw, 310px);
    height: auto;
    min-height: 0;
    opacity: 1;
    transform: none;
    transition:
      border-color 240ms ease,
      box-shadow 300ms ease;
    scroll-snap-align: start;
  }

  .home-project-card__media {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .home-project-card__body {
    min-height: 170px;
  }

  .home-project-featured:hover,
  .home-project-card:hover {
    transform: none;
  }

  .home-engineering-cta {
    padding-block: 28px 34px;
  }

  .home-engineering-cta__panel {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .home-engineering-cta__icon {
    margin-inline: auto;
  }

  .home-engineering-cta__content .eyebrow {
    justify-content: center;
  }

  .home-engineering-cta__content .eyebrow::after {
    width: 24px;
    height: 1px;
    background: currentColor;
    content: "";
  }

  .home-engineering-cta__actions {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 580px) {
  .home-consult-phone {
    top: 58px;
    left: 0;
    border-radius: 10px;
  }

  .home-consult-phone__copy small {
    display: none;
  }

  .home-consult-phone__copy strong {
    font-size: .67rem;
  }

  .brand-pillars {
    padding-block: 20px 18px;
  }

  .pillar-card {
    min-height: 158px;
  }

  .products-section {
    padding-block: 22px 31px;
  }

  .home-projects__heading h2 {
    font-size: 1.38rem;
  }

  .home-projects__heading p {
    font-size: .68rem;
  }

  .home-project-card {
    flex-basis: 84vw;
  }

  .home-engineering-cta__panel {
    padding: 20px 17px;
    border-radius: 16px;
  }

  .home-engineering-cta__actions {
    grid-template-columns: 1fr;
  }

  .home-engineering-cta__actions .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-project-featured,
  .home-project-card {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }

  .home-consult-phone,
  .home-engineering-cta__actions .button {
    transition: none;
  }
}
