/*
 * Homepage-only presentation styles.
 * Loaded only by /index.php to keep global CSS lean on inner pages.
 */

body.page-home {
  --hero-copy-offset: 3.6svh;
}

.hero {
  position: relative;
  height: calc(100svh - var(--header-height));
  min-height: 640px;
  display: grid;
  align-items: center;
  padding: calc(var(--header-height) + 42px) 0 78px;
  overflow: clip;
  isolation: isolate;
  background: var(--bg);
}

.hero__slides,
.hero__slide,
.hero__media,
.hero__media::after,
.hero__media img,
.hero__media video {
  position: absolute;
  inset: 0;
}

.hero__slides {
  z-index: 0;
}

.hero__slide {
  display: grid;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: scale(1.018);
  transition:
    opacity .9s cubic-bezier(.22, 1, .36, 1),
    visibility .9s cubic-bezier(.22, 1, .36, 1),
    transform 1.25s cubic-bezier(.22, 1, .36, 1);
}

.hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 1;
}

.hero__media {
  z-index: 0;
  overflow: hidden;
}

.hero__media::after {
  content: "";
  z-index: 1;
  background:
    rgba(3, 7, 13, .58);
}

.hero__media img,
.hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(1.05) contrast(1.04);
}

.hero__media video {
  display: block;
}

.hero__content {
  position: relative;
  z-index: 2;
  width: var(--desktop-frame);
  max-width: none;
  margin-inline: auto;
  transform: translateY(var(--hero-copy-offset));
}

.hero__copy {
  width: 39vw;
  min-width: 0;
  text-align: left;
}

.hero__slide.is-active .hero__copy {
  animation: heroCopyIn .72s cubic-bezier(.22, 1, .36, 1) both;
}

.hero :is(h1, .hero__title) {
  max-width: none;
  margin-bottom: 18px;
  color: #fff;
  font-size: var(--hero-title-size);
  line-height: 1.06;
  text-wrap: balance;
}

.hero .kicker {
  display: block;
  margin: 0 0 14px;
  color: var(--hero-text-on-media);
  font-family: var(--font-title);
  font-size: clamp(12px, .78vw, 15px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: .22em;
  text-transform: uppercase;
  text-shadow: 0 10px 28px rgba(0, 0, 0, .40);
}

.hero .lead {
  max-width: none;
  color: rgba(238, 244, 252, .86);
  font-size: clamp(15px, .96vw, 18px);
  line-height: 1.72;
}

.hero__mark {
  color: var(--brand-text);
}

.hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero__ghost {
  --btn-bg: rgba(255, 255, 255, .10);
  --btn-text: #fff;
  --btn-border: rgba(255, 255, 255, .24);
  backdrop-filter: blur(14px);
}

.hero__stats { display: none; }

.hero__controls {
  position: absolute;
  left: 50%;
  bottom: 38px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: auto;
  max-width: none;
  margin-inline: 0;
  transform: translateX(-50%);
}

.hero__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 18px;
}

.hero__dot {
  position: relative;
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .42);
  cursor: pointer;
  overflow: hidden;
  transition: width .28s ease, background .24s ease, transform .24s ease, box-shadow .24s ease;
}

.hero__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transform: scaleX(0);
  transform-origin: left center;
  background: var(--brand);
}

.hero__dot:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, .68);
}

.hero__dot.is-active {
  width: 68px;
  background: rgba(255, 255, 255, .26);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .16) inset;
}

.hero__dot.is-active::after {
  animation: heroDotProgress var(--hero-slide-delay, 6200ms) linear forwards;
}

.hero--slider.is-paused .hero__dot.is-active::after {
  animation-play-state: paused;
}

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

@keyframes heroCopyIn {
  from {
    opacity: 0;
    transform: translate3d(-18px, 12px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}


@media (prefers-reduced-motion: reduce) {
  .hero__slide,
  .hero__slide.is-active .hero__copy,
  .hero__dot,
  .hero__dot::after,
  body.page-home .hero__controls::after {
    animation: none;
    transition: none;
  }
}

/* Product story: sticky tabbed product showcase */
.section--product-story {
  --product-head-top: 0px;
  --product-bg: #f3f8ff;
  --product-surface: rgba(255, 255, 255, .62);
  --product-ink: #071427;
  --product-text: rgba(32, 51, 76, .84);
  --product-muted: rgba(67, 86, 114, .74);
  --product-line: rgba(12, 27, 48, .14);
  --product-tab-line: rgba(12, 27, 48, .18);
  --product-accent: var(--brand);
  position: relative;
  isolation: isolate;
  overflow: clip;
  padding: clamp(64px, 8svh, 92px) 0 clamp(72px, 9svh, 108px);
  background:
    var(--product-bg);
  color: var(--product-ink);
}

:root[data-theme="dark"] .section--product-story {
  --product-bg: #050a12;
  --product-surface: rgba(255, 255, 255, .035);
  --product-ink: #f8fbff;
  --product-text: rgba(225, 235, 248, .84);
  --product-muted: rgba(190, 205, 226, .66);
  --product-line: rgba(255, 255, 255, .15);
  --product-tab-line: rgba(255, 255, 255, .16);
  background:
    #07101d;
}

body:has(.site-header:not(.is-hidden)) .section--product-story { --product-head-top: var(--header-height); }
body:has(.site-header.is-hidden) .section--product-story { --product-head-top: 0px; }

.section--product-story::before,
.section--product-story::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.section--product-story::before {
  opacity: .34;
  background-image: none;
  background-size: 28px 28px;
  mask-image: none;
}

.section--product-story::after {
  opacity: .8;
  background:
    var(--product-bg);
}

.product-story__inner {
  width: min(100%, 1500px);
}

.product-story__head {
  position: sticky;
  top: var(--product-head-top);
  z-index: 5;
  margin: calc(clamp(12px, 2svh, 22px) * -1) 0 clamp(26px, 4svh, 48px);
  padding: clamp(14px, 2.2svh, 24px) 0 0;
  text-align: center;
  background: var(--product-bg);
}

.product-story__head .kicker {
  margin-bottom: 8px;
  color: color-mix(in oklab, var(--product-muted) 82%, var(--product-accent));
}

.product-story__head .section-title {
  margin-inline: auto;
  max-width: 980px;
  color: var(--product-ink);
  font-size: var(--type-section-title);
  font-weight: 400;
  line-height: var(--type-section-title-line);
  text-shadow: none;
  text-wrap: var(--type-section-wrap);
}

:root[data-theme="dark"] .product-story__head .section-title {
  text-shadow: 0 16px 46px rgba(0, 0, 0, .38);
}

.product-story__rule {
  height: 1px;
  margin: clamp(12px, 1.6svh, 18px) auto 0;
  background: var(--product-line);
}

.product-story__tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--product-tab-count, 4), minmax(0, 1fr));
  gap: 0;
  width: min(100%, 1220px);
  margin: 0 auto;
  border-bottom: 1px solid var(--product-tab-line);
}

.product-story__tab-label {
  display: inline;
}

.product-story__tab-label--mobile {
  display: none;
}

.product-story__tab {
  position: relative;
  min-height: 46px;
  padding: 10px 14px 12px;
  border: 0;
  background: transparent;
  color: color-mix(in oklab, var(--product-ink) 78%, var(--product-muted));
  font-family: var(--font-title);
  font-size: clamp(13px, .86vw, 16px);
  font-weight: 400;
  line-height: 1.15;
  text-align: center;
  transition: color .25s ease, transform .25s ease;
}

.product-story__tab::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: -1px;
  height: 3px;
  border-radius: 999px;
  background: transparent;
  transform: scaleX(.36);
  opacity: 0;
  transition: transform .28s ease, opacity .28s ease, background .28s ease;
}

.product-story__tab:hover,
.product-story__tab.is-active {
  color: var(--product-ink);
  transform: translateY(-1px);
}

.product-story__tab.is-active::after {
  background: var(--brand);
  transform: scaleX(1);
  opacity: 1;
}

.product-story__content {
  display: grid;
  gap: clamp(44px, 7svh, 82px);
}

.product-story__panel {
  display: grid;
  grid-template-columns: minmax(340px, .88fr) minmax(500px, 1.16fr);
  align-items: center;
  gap: clamp(38px, 4.6vw, 78px);
  min-height: clamp(500px, 58svh, 650px);
  padding: clamp(8px, 1.6svh, 20px) clamp(18px, 3vw, 58px) clamp(40px, 6svh, 72px);
  border-bottom: 1px solid var(--product-line);
  scroll-margin-top: calc(var(--product-head-top) + 172px);
}

.product-story__panel:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.product-story__copy {
  max-width: 640px;
}

.product-story__eyebrow {
  margin: 0 0 8px;
  color: color-mix(in oklab, var(--product-muted) 74%, var(--brand-2));
  font-family: var(--font-title);
  font-size: 10px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: .28em;
  text-transform: uppercase;
}

.product-story__copy h3 {
  margin: 0 0 12px;
  color: var(--product-ink);
  font-size: var(--type-subsection-title);
  font-weight: 400;
  line-height: var(--type-subsection-title-line);
}

.product-story__copy p {
  margin: 0;
  color: var(--product-text);
  font-size: clamp(14px, .96vw, 16.5px);
  line-height: 1.45;
}

.product-story__benefits {
  margin-top: clamp(16px, 2.2svh, 24px);
}

.product-story__benefits h4 {
  margin: 0 0 9px;
  color: var(--product-ink);
  font-family: var(--font-title);
  font-size: clamp(16px, 1.05vw, 20px);
  font-weight: 400;
  line-height: 1;
}

.product-story__benefits ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 1.15em;
  color: var(--product-text);
  font-size: clamp(13.5px, .9vw, 15.5px);
  line-height: 1.24;
}

.product-story__benefits li::marker {
  color: var(--product-accent);
}

.product-story__cta {
  margin-top: clamp(18px, 3svh, 28px);
  min-width: 240px;
}

.product-gallery {
  min-width: 0;
}

.product-gallery__track {
  display: flex;
  min-width: 0;
  overflow: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
}

.product-gallery__slide {
  position: relative;
  isolation: isolate;
  flex: 0 0 100%;
  display: grid;
  place-items: center;
  min-height: clamp(290px, 38svh, 430px);
  margin: 0;
  padding: 0;
  scroll-snap-align: start;
  content-visibility: auto;
  contain-intrinsic-size: auto 390px;
}

.product-gallery__slide::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 50%;
  bottom: 8%;
  width: min(58%, 520px);
  height: 13%;
  border-radius: 50%;
  background: rgba(0, 0, 0, .42);
  transform: translateX(-50%);
  pointer-events: none;
}

:root[data-theme="light"] .product-gallery__slide::after {
  background: rgba(20, 43, 77, .10);
}

.product-gallery__slide img {
  width: min(100%, 850px);
  max-height: clamp(270px, 37svh, 420px);
  object-fit: contain;
}

.product-gallery__tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0;
  margin-top: clamp(8px, 1.5svh, 16px);
  border-bottom: 1px solid var(--product-tab-line);
}

.product-gallery__tab {
  position: relative;
  min-height: 36px;
  padding: 7px 10px 11px;
  border: 0;
  background: transparent;
  color: color-mix(in oklab, var(--product-ink) 58%, var(--product-muted));
  font-size: 12px;
  font-weight: 900;
  transition: color .22s ease, transform .22s ease;
}

.product-gallery__tab::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: -1px;
  height: 2px;
  border-radius: 999px;
  background: transparent;
  transition: background .22s ease, opacity .22s ease;
}

.product-gallery__tab:hover,
.product-gallery__tab.is-active {
  color: var(--product-ink);
  transform: translateY(-1px);
}

.product-gallery__tab.is-active::after {
  background: var(--brand);
}

@media (max-width: 1180px) {
  .product-story__panel {
    grid-template-columns: 1fr;
    min-height: auto;
  }
}

.product-gallery__preview {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: inherit;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: zoom-in;
}

.product-gallery__preview:focus-visible {
  outline: 3px solid color-mix(in oklab, var(--product-accent) 80%, #fff);
  outline-offset: 6px;
  border-radius: 20px;
}

.product-gallery__preview img {
  transition: transform .28s ease;
}

.product-gallery__preview:hover img {
  transform: scale(1.015);
}


/* Portfolio: compact four-card showcase inspired by the approved mockup */
.section--portfolio {
  --portfolio-lubrication: #ffc400;
  padding: 86px 0 92px;
  background:
    transparent;
}

.section--portfolio .container {
  width: min(100% - 48px, 1320px);
}

.portfolio-head {
  max-width: 980px;
  margin: 0 auto 44px;
  text-align: center;
}

.portfolio-head > div,
.portfolio-head .lead {
  max-width: 860px;
  margin-inline: auto;
}

.portfolio-actions {
  display: flex;
  justify-content: center;
  margin-top: 34px;
}

.portfolio-actions__link {
  --btn-bg: var(--brand);
  --btn-border: color-mix(in oklab, var(--brand) 74%, #fff);
  min-height: 48px;
  padding-inline: 26px;
}

.portfolio-actions__link:hover {
  border-color: color-mix(in oklab, var(--brand) 74%, #fff);
  background: color-mix(in oklab, var(--brand) 88%, #780814);
}
@media (max-width: 720px) {
  .section--portfolio {
    padding: 58px 0 62px;
  }

  .section--portfolio .container {
    width: min(100% - 32px, 1360px);
  }

  .portfolio-head {
    margin-bottom: 30px;
  }

  .portfolio-actions {
    margin-top: 18px;
  }
}

/* Company overview: first landing section after hero */
.section--company-overview {
  padding: 88px 0 102px;
  overflow: hidden;
  isolation: isolate;
  background:
    var(--bg-soft);
}

.section--company-overview::before,
.section--company-overview::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}

.section--company-overview::before {
  left: max(24px, calc((100vw - var(--container)) / 2));
  bottom: 58px;
  width: min(560px, 48vw);
  height: 340px;
  opacity: .46;
  background-image: none;
  background-size: 26px 26px;
  mask-image: none;
}

.section--company-overview::after {
  right: -12vw;
  bottom: -8vw;
  width: min(820px, 62vw);
  height: min(520px, 42vw);
  opacity: .5;
  background:
    transparent;
  clip-path: polygon(10% 100%, 52% 8%, 100% 100%);
}

.company-overview {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(420px, 1.08fr);
  gap: clamp(42px, 5vw, 82px);
  align-items: center;
  min-height: 360px;
}

.company-overview__content {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
}

:root[data-theme="dark"] .company-overview__content::before {
  content: "";
  position: absolute;
  inset: -34px -46px -34px -38px;
  z-index: -1;
  border-radius: 28px;
  background: rgba(7, 11, 18, .56);
  box-shadow: 0 28px 90px rgba(0, 0, 0, .16);
  pointer-events: none;
}

.company-overview__head {
  display: grid;
  justify-items: center;
  text-align: center;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto clamp(34px, 4vw, 52px);
}

.company-overview__head .kicker {
  justify-content: center;
  margin: 0 0 12px;
  font-size: var(--type-kicker);
}

.company-overview__head .section-title {
  width: 100%;
  max-width: none;
  margin: 0 auto var(--space-title-copy);
  font-size: var(--type-section-title);
  line-height: var(--type-section-title-line);
  white-space: normal;
  text-wrap: var(--type-section-wrap);
}

.company-overview__head .lead {
  max-width: 820px;
  margin: 0 auto;
  font-size: var(--type-section-lead);
}

.company-overview__intro {
  max-width: 620px;
}

.company-overview__intro h3 {
  margin: 0 0 14px;
  font-size: var(--type-subsection-title);
  line-height: var(--type-subsection-title-line);
}

.company-overview__intro p {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.78;
}

:root[data-theme="dark"] .section--company-overview::before {
  opacity: .24;
  background-image: none;
}

:root[data-theme="dark"] .company-overview__head .section-title,
:root[data-theme="dark"] .company-overview__intro h3 {
  color: #fff;
  text-shadow: 0 14px 34px rgba(0, 0, 0, .34);
}

:root[data-theme="dark"] .company-overview__head .lead,
:root[data-theme="dark"] .company-overview__intro p {
  color: color-mix(in oklab, #fff 82%, var(--text-muted));
  text-shadow: 0 8px 28px rgba(0, 0, 0, .26);
}

:root[data-theme="dark"] .company-overview__more {
  color: #fff;
  text-shadow: 0 8px 24px rgba(0, 0, 0, .24);
}

.company-overview__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 28px;
  margin-top: 28px;
}

.company-overview__more {
  min-height: 46px;
  color: var(--text);
}
@media (max-width: 1100px) {
  .company-overview {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .company-overview__head .section-title {
    max-width: 900px;
    white-space: normal;
    text-wrap: var(--type-section-wrap);
  }
}
@media (max-width: 720px) {
  .section--company-overview {
    padding: 72px 0 82px;
  }

  .company-overview__head {
    margin-bottom: 30px;
  }

  .company-overview__head .section-title {
    font-size: var(--type-section-title);
  }

  .company-overview {
    display: flex;
    flex-direction: column;
    gap: 26px;
  }

  .company-overview__content {
    display: contents;
  }

  :root[data-theme="dark"] .company-overview__content::before {
    content: none;
  }

  .company-overview__intro {
    order: 2;
    max-width: none;
  }

  .company-overview__actions {
    order: 3;
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 10px;
    width: 100%;
    margin-top: -2px;
  }

  .company-overview__actions .btn,
  .company-overview__more {
    width: 100%;
    min-width: 0;
    min-height: 44px;
  }

  .company-overview__more {
    justify-content: center;
    padding: 0 12px;
    border: 1px solid var(--border-strong);
    border-radius: var(--button-radius);
    background: color-mix(in oklab, var(--surface-solid) 74%, transparent);
    color: var(--text);
    font-size: clamp(11px, 3.15vw, 13px);
    line-height: 1;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .10);
  }

  .company-overview__actions .btn {
    padding-inline: 12px;
    font-size: clamp(11px, 3.15vw, 13px);
    white-space: nowrap;
  }
}

.hero__controls {
  animation: heroControlsIn .72s cubic-bezier(.22, 1, .36, 1) .38s both;
}

@keyframes heroControlsIn {
  from {
    opacity: 0;
    transform: translate3d(-50%, 14px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(-50%, 0, 0);
  }
}


/* Hero cinematic treatment inspired by the previous Protec landing page */
body.page-home .hero {
  height: calc(100svh - 20px);
  min-height: 0;
  max-height: none;
  padding: calc(var(--header-height) + 46px) 0 76px;
}

body.page-home .hero__media::after {
  background:
    rgba(3, 7, 13, .58);
}

body.page-home .hero__copy {
  width: min(48vw, 860px);
}

body.page-home .hero :is(h1, .hero__title) {
  margin-bottom: 18px;
  line-height: 1.045;
  letter-spacing: -.025em;
  font-weight: 400;
  text-shadow: 0 16px 40px rgba(0, 0, 0, .44);
}

body.page-home .hero .lead {
  max-width: min(43vw, 760px);
  color: rgba(238, 244, 252, .88);
  text-shadow: 0 10px 30px rgba(0, 0, 0, .30);
}

body.page-home .hero__actions .btn {
  position: relative;
  min-height: 54px;
  padding-inline: 28px;
  border-radius: var(--button-radius);
  overflow: hidden;
}

body.page-home .hero__actions .btn::after {
  content: "→";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 2px;
  line-height: 1;
  transform: translateX(0);
  transition: transform .22s cubic-bezier(.22, 1, .36, 1), opacity .22s ease;
}

body.page-home .hero__actions .btn:hover::after {
  transform: translateX(4px);
}

body.page-home .hero__ghost {
  --btn-bg: rgba(7, 11, 18, .34);
  --btn-border: rgba(255, 255, 255, .26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 18px 36px rgba(0, 0, 0, .18);
}

body.page-home .hero__controls {
  width: var(--desktop-frame);
  bottom: 24px;
  min-height: 36px;
  align-items: flex-end;
}

body.page-home .hero__controls::before,
body.page-home .hero__controls::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  pointer-events: none;
  transform-origin: left center;
}

body.page-home .hero__controls::before {
  height: 1px;
  background: rgba(255, 255, 255, .28);
  opacity: .66;
}

body.page-home .hero__controls::after {
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--brand);
  opacity: .95;
  transform: scaleX(0);
  box-shadow: 0 0 18px rgba(226, 27, 45, .28);
}

body.page-home .hero--slider.is-progressing .hero__controls::after {
  animation: heroLineProgress var(--hero-slide-delay, 6200ms) linear forwards;
}

body.page-home .hero--slider.is-paused .hero__controls::after {
  animation-play-state: paused;
}

body.page-home .hero__dots {
  position: relative;
  z-index: 2;
  min-height: 10px;
  padding: 0;
  gap: 12px;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

body.page-home .hero__dot,
body.page-home .hero__dot.is-active {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, .46);
  box-shadow: none;
}

body.page-home .hero__dot.is-active {
  background: #fff;
}

body.page-home .hero__dot::after {
  content: none;
  animation: none;
}

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


/* Continuous homepage content canvas: one ambience from Company Overview through Portfolio and FAQ */
.home-content-canvas {
  position: relative;
  isolation: isolate;
  overflow: visible;
  background:
    var(--bg-soft);
}

.home-content-canvas::before,
.home-content-canvas::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}

.home-content-canvas::before {
  inset: 0;
  opacity: .38;
  background:
    transparent;
  mix-blend-mode: normal;
}

.home-content-canvas::after {
  left: max(24px, calc((100vw - var(--container)) / 2));
  top: clamp(700px, 44vw, 980px);
  width: min(680px, 50vw);
  height: min(720px, 66vw);
  opacity: .042;
  background-image: none;
  background-size: 30px 30px;
  mask-image: none;
}

.home-content-canvas > .section {
  position: relative;
  z-index: 1;
}

.home-content-canvas > .section:not(.section--product-story) {
  background: transparent;
}

.home-content-canvas .section--company-overview,
.home-content-canvas .section--field-problems,
.home-content-canvas .section--industries-showcase,
.home-content-canvas .section--services,
.home-content-canvas .section--portfolio,
.home-content-canvas .section--faq {
  background: transparent;
}

.home-content-canvas .section--company-overview::before {
  opacity: .34;
}

.home-content-canvas .section--company-overview::after {
  opacity: .38;
}


/* Landing section dividers: subtle structure without boxing every section */
.home-content-canvas .section--industries-showcase,
.home-content-canvas .section--services,
.home-content-canvas .section--faq {
  position: relative;
}

.home-content-canvas .section--industries-showcase::before,
.home-content-canvas .section--services::before,
.home-content-canvas .section--faq::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  width: min(1180px, calc(100% - 48px));
  height: 1px;
  pointer-events: none;
  background: color-mix(in oklab, var(--text) 12%, transparent);
  transform: translateX(-50%);
}

.home-content-canvas .section--industries-showcase::after,
.home-content-canvas .section--services::after,
.home-content-canvas .section--faq::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 3;
  width: clamp(72px, 7vw, 112px);
  height: 2px;
  pointer-events: none;
  background: var(--brand);
  transform: translateX(-50%);
}

:root[data-theme="dark"] .home-content-canvas .section--industries-showcase::before,
:root[data-theme="dark"] .home-content-canvas .section--services::before,
:root[data-theme="dark"] .home-content-canvas .section--faq::before {
  background: color-mix(in oklab, #fff 14%, transparent);
}

@media (max-width: 720px) {
  .home-content-canvas .section--industries-showcase::before,
  .home-content-canvas .section--services::before,
  .home-content-canvas .section--faq::before {
    width: calc(100% - 32px);
  }
}

:root[data-theme="dark"] .home-content-canvas {
  background:
    #07111f;
}

:root[data-theme="dark"] .home-content-canvas::before {
  opacity: 0;
  background: transparent;
}

:root[data-theme="dark"] .home-content-canvas::after {
  opacity: .055;
  background-image: none;
}

:root[data-theme="light"] .home-content-canvas .field-problem-card,
:root[data-theme="light"] .home-content-canvas .service-assurance {
  background-color: color-mix(in oklab, #fff 88%, transparent);
}
@media (prefers-reduced-motion: reduce) {

  .hero__controls {
    transform: translateX(-50%) !important;
  }
}
@media (max-width: 720px) {
  body.page-home {
    --hero-copy-offset: 0px;
  }

  body.page-home .hero {
    height: auto;
    min-height: clamp(560px, 82svh, 690px);
    padding: calc(var(--header-height) + 36px) 0 86px;
    align-items: start;
  }

  body.page-home .hero__slide {
    align-items: start;
  }

  body.page-home .hero__media::after {
    background:
      rgba(5, 10, 19, .56);
  }

  body.page-home .hero__media img {
    object-position: 56% center;
  }

  body.page-home .hero__slide:nth-child(2) .hero__media img,
  body.page-home .hero__slide:nth-child(4) .hero__media img {
    object-position: 62% center;
  }

  body.page-home .hero__slide:nth-child(3) .hero__media img {
    object-position: 68% center;
  }

  body.page-home .hero__content {
    width: min(100% - 32px, 430px);
    display: grid;
    align-items: start;
    min-height: 0;
    margin-inline: auto;
    transform: none;
  }

  body.page-home .hero__copy {
    width: min(100%, 342px);
    max-width: 342px;
    text-align: left;
  }

  body.page-home .hero .kicker {
    margin-bottom: 12px;
    font-size: 10px;
    letter-spacing: .24em;
  }

  body.page-home .hero :is(h1, .hero__title) {
    max-width: 100%;
    margin-bottom: 14px;
    font-size: var(--hero-title-size);
    line-height: 1.08;
    letter-spacing: -.02em;
    text-wrap: balance;
  }

  body.page-home .hero .lead {
    max-width: 31ch;
    color: rgba(238, 244, 252, .84);
    font-size: clamp(13px, 3.45vw, 14.5px);
    line-height: 1.58;
  }

  body.page-home .hero__actions {
    gap: 10px;
    margin-top: 22px;
  }

  body.page-home .hero__actions .btn {
    min-height: 44px;
    padding-inline: 17px;
    border-radius: var(--button-radius);
    font-size: 12px;
    line-height: 1.1;
    box-shadow: 0 14px 28px rgba(0, 0, 0, .24);
  }

  body.page-home .hero__ghost {
    --btn-bg: rgba(6, 11, 19, .42);
  }

  body.page-home .hero__controls {
    bottom: 28px;
    width: calc(100% - 32px);
    min-height: 30px;
  }

  body.page-home .hero__controls::before {
    opacity: .46;
  }

  body.page-home .hero__dots {
    gap: 9px;
    min-height: 9px;
  }

  body.page-home .hero__dot,
  body.page-home .hero__dot.is-active {
    width: 7px;
    height: 7px;
  }

  body.page-home .hero__dot.is-active {
    background: #fff;
  }

  .section--company-overview {
    padding: 56px 0 62px;
  }

  .company-overview__head {
    margin-bottom: 28px;
  }

  .footer-cta-section--home {
    background:
      var(--bg-soft);
  }
}
@media (max-width: 380px) {

  body.page-home .hero {
    min-height: clamp(520px, 78svh, 620px);
    padding-top: calc(var(--header-height) + 30px);
  }

  body.page-home .hero__copy {
    max-width: 310px;
  }

  body.page-home .hero .lead {
    max-width: 29ch;
    font-size: 12.75px;
  }

  body.page-home .hero__actions .btn {
    min-height: 42px;
    padding-inline: 14px;
    font-size: 11.5px;
  }
}
@media (max-width: 720px) {
  body.page-home .hero {
    min-height: clamp(560px, 80svh, 660px);
    padding: calc(var(--header-height) + 34px) 0 84px;
    align-items: center;
  }

  body.page-home .hero__slide {
    align-items: center;
  }

  body.page-home .hero__media::after {
    background:
      rgba(4, 9, 18, .52);
  }

  body.page-home .hero__content {
    width: min(100% - 34px, 430px);
    align-items: center;
    justify-items: center;
    transform: translateY(-12px);
  }

  body.page-home .hero__copy {
    width: min(100%, 370px);
    max-width: 370px;
    margin-inline: auto;
    text-align: center;
  }

  body.page-home .hero .kicker {
    margin-inline: auto;
    text-align: center;
  }

  body.page-home .hero :is(h1, .hero__title),
  body.page-home .hero .lead {
    margin-inline: auto;
    text-align: center;
  }

  body.page-home .hero .lead {
    max-width: 34ch;
  }

  body.page-home .hero__actions {
    justify-content: center;
  }

  body.page-home .hero__actions .btn {
    min-width: min(43vw, 156px);
    justify-content: center;
  }

  body.page-home .hero__controls {
    bottom: 26px;
  }

  .section--portfolio .container {
    width: min(100% - 28px, 1320px);
  }

  .portfolio-actions {
    margin-top: 16px;
  }
}
@media (max-width: 380px) {
  body.page-home .hero {
    min-height: clamp(530px, 78svh, 620px);
  }

  body.page-home .hero__content {
    width: min(100% - 28px, 390px);
    transform: translateY(-8px);
  }

  body.page-home .hero__copy {
    max-width: 330px;
  }

  body.page-home .hero .lead {
    max-width: 31ch;
  }

  body.page-home .hero__actions {
    gap: 8px;
  }

  body.page-home .hero__actions .btn {
    min-width: calc(50% - 4px);
    padding-inline: 10px;
  }
}

/* 2026-07-29: Desktop homepage hero shade only on copy side for brighter visual balance */
@media (min-width: 761px) {
  body.page-home .hero__media::after {
    background: linear-gradient(
      90deg,
      rgba(3, 7, 13, .72) 0%,
      rgba(3, 7, 13, .66) 18%,
      rgba(3, 7, 13, .48) 36%,
      rgba(3, 7, 13, .24) 54%,
      rgba(3, 7, 13, .08) 64%,
      rgba(3, 7, 13, 0) 74%
    );
  }
}

/* Kicker di atas hero media harus tetap putih pada kedua tema. */
:root[data-theme="light"] .hero .kicker {
  color: var(--hero-text-on-media);
}

/* Larger homepage hero controls improve touch target size. */
body.page-home .hero__dots {
  gap: 0;
}

body.page-home .hero__dot,
body.page-home .hero__dot.is-active {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

body.page-home .hero__dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .46);
  transition: background .24s ease, transform .24s ease, box-shadow .24s ease;
}

body.page-home .hero__dot:hover,
body.page-home .hero__dot:focus-visible,
body.page-home .hero__dot.is-active {
  background: transparent;
}

body.page-home .hero__dot:hover::before,
body.page-home .hero__dot:focus-visible::before {
  background: rgba(255, 255, 255, .78);
  transform: scale(1.2);
}

body.page-home .hero__dot.is-active::before {
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .16);
}

body.page-home .hero__dot:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -5px;
  border-radius: 999px;
}

/* 2026-08-02: Tighter homepage vertical rhythm without changing section layouts. */
@media (min-width: 721px) {
  body.page-home .section--company-overview {
    padding: 68px 0 74px;
  }

  body.page-home .company-overview__head {
    margin-bottom: clamp(28px, 3vw, 38px);
  }

  body.page-home .company-overview {
    min-height: 320px;
  }

  body.page-home .section--field-problems {
    padding: 68px 0 74px;
  }

  body.page-home .section--field-problems .section-head {
    margin-bottom: 32px;
  }

  body.page-home .section--product-story {
    padding: clamp(50px, 6svh, 68px) 0 clamp(58px, 7svh, 78px);
  }

  body.page-home .product-story__head {
    margin-bottom: clamp(24px, 3svh, 34px);
    padding-top: clamp(10px, 1.4svh, 16px);
  }

  body.page-home .product-story__content {
    gap: clamp(26px, 4svh, 44px);
  }

  body.page-home .section--industries-showcase,
  body.page-home .section--services,
  body.page-home .section--portfolio {
    padding: 72px 0 76px;
  }

  body.page-home .section--faq {
    padding: 72px 0 66px;
  }

  body.page-home .section--industries-showcase .section-head,
  body.page-home .services-head,
  body.page-home .portfolio-head,
  body.page-home .section--faq .section-head {
    margin-bottom: 32px;
  }

  body.page-home .portfolio-actions {
    margin-top: 26px;
  }
}

@media (min-width: 1181px) {
  body.page-home .product-story__panel {
    min-height: clamp(410px, 48svh, 525px);
    gap: clamp(34px, 4vw, 64px);
    padding: clamp(4px, 1svh, 12px) clamp(18px, 3vw, 52px) clamp(30px, 4.4svh, 48px);
  }

  body.page-home .product-gallery__slide {
    min-height: clamp(250px, 32svh, 360px);
    contain-intrinsic-size: auto 330px;
  }

  body.page-home .product-gallery__slide img {
    max-height: clamp(240px, 31svh, 350px);
  }
}

@media (min-width: 721px) and (max-width: 1180px) {
  body.page-home .product-story__panel {
    min-height: auto;
    gap: 30px;
    padding: 4px 22px 38px;
  }

  body.page-home .product-gallery__slide {
    min-height: clamp(250px, 38svh, 340px);
    contain-intrinsic-size: auto 310px;
  }

  body.page-home .product-gallery__slide img {
    max-height: clamp(240px, 36svh, 330px);
  }
}

@media (max-width: 720px) {
  body.page-home .section--product-story {
    --product-mobile-gutter: clamp(18px, 5.4vw, 24px);
    padding: 44px 0 64px;
    overflow: hidden;
  }

  body.page-home .product-story__inner {
    width: 100%;
  }

  body.page-home .product-story__head {
    position: relative;
    top: auto;
    margin: 0 0 24px;
    padding: 0 var(--product-mobile-gutter);
  }

  body.page-home .product-story__head .kicker {
    margin-bottom: 7px;
  }

  body.page-home .product-story__head .section-title {
    max-width: 18ch;
    font-size: clamp(22px, 6.5vw, 28px);
    line-height: 1.08;
  }

  body.page-home .product-story__rule {
    margin-top: 14px;
  }

  body.page-home .product-story__tabs {
    width: 100%;
  }

  body.page-home .product-story__tab {
    min-height: 48px;
    padding: 10px 6px 12px;
    font-size: clamp(11.5px, 3.35vw, 13px);
    line-height: 1.08;
  }

  body.page-home .product-story__tab::after {
    left: 8%;
    right: 8%;
  }

  body.page-home .product-story__tab-label--desktop {
    display: none;
  }

  body.page-home .product-story__tab-label--mobile {
    display: inline;
  }

  body.page-home .product-story__content {
    display: block;
  }

  body.page-home .product-story__panel {
    display: none;
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    min-height: 0;
    padding: 0 var(--product-mobile-gutter) 22px;
    border-bottom: 0;
    scroll-margin-top: calc(var(--header-height, 72px) + 14px);
  }

  body.page-home .product-story__panel.is-active {
    display: grid;
    animation: productStoryMobileIn .32s ease both;
  }

  body.page-home .product-story__panel:last-child {
    padding-bottom: 22px;
  }

  body.page-home .product-story__copy {
    width: 100%;
    max-width: none;
  }

  body.page-home .product-story__eyebrow {
    margin-bottom: 7px;
    font-size: 9.5px;
    line-height: 1.25;
    letter-spacing: .23em;
  }

  body.page-home .product-story__copy h3 {
    margin-bottom: 9px;
    font-size: clamp(21px, 6vw, 26px);
    line-height: 1.08;
  }

  body.page-home .product-story__copy > p {
    font-size: 14px;
    line-height: 1.48;
  }

  body.page-home .product-story__benefits {
    margin-top: 15px;
  }

  body.page-home .product-story__benefits h4 {
    margin-bottom: 8px;
    font-size: 16px;
  }

  body.page-home .product-story__benefits ul {
    gap: 5px;
    padding-left: 1.1em;
    font-size: 13px;
    line-height: 1.34;
  }

  body.page-home .product-story__benefits li:nth-child(n + 4) {
    display: none;
  }

  body.page-home .product-story__cta {
    width: 100%;
    min-width: 0;
    margin-top: 18px;
    justify-content: center;
  }

  body.page-home .product-gallery {
    min-width: 0;
  }

  body.page-home .product-gallery__slide {
    min-height: 220px;
    padding-inline: 2px;
    contain-intrinsic-size: auto 230px;
  }

  body.page-home .product-gallery__slide::after {
    bottom: 9%;
    width: min(62%, 260px);
    height: 11%;
  }

  body.page-home .product-gallery__slide img {
    width: min(100%, 560px);
    max-height: 220px;
  }

  body.page-home .product-gallery__tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 4px;
    border-top: 1px solid var(--product-tab-line);
  }

  body.page-home .product-gallery__tab {
    min-height: 42px;
    padding: 9px 6px 10px;
    font-size: 10.5px;
    line-height: 1.18;
  }
}

@keyframes productStoryMobileIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 360px) {
  body.page-home .section--product-story {
    --product-mobile-gutter: 16px;
  }

  body.page-home .product-story__tab {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.page-home .product-story__panel.is-active {
    animation: none;
  }
}
