.sector-page[data-sector="tekstil"] {
  --textile-hero-height: clamp(18.5rem, 42vh, 26.5rem);
  --textile-overhang: clamp(8.5rem, 20vh, 12.5rem);
}

@supports (height: 1svh) {
  .sector-page[data-sector="tekstil"] {
    --textile-hero-height: clamp(18.5rem, 42svh, 26.5rem);
    --textile-overhang: clamp(8.5rem, 20svh, 12.5rem);
  }
}

.textile-hero {
  position: relative;
  z-index: 3;
  height: var(--textile-hero-height);
  overflow: visible;
  pointer-events: none;
  background: transparent;
}

.textile-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 72% 98% at 50% 38%, #506b85b3, #354f6a66 52%, transparent 84%),
    linear-gradient(154deg, #192a41, #243b55 62%, #1a2c43);
  border-bottom: 1px dashed var(--textile-stitch, #a2c8e3b8);
  pointer-events: none;
  transition: opacity .35s ease-out;
}

.textile-hero.is-rendered::before {
  opacity: 0;
}

.textile-hero-label {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.textile-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transition: opacity .35s ease-out;
}

.textile-hero.is-rendered .textile-fallback {
  opacity: 0;
}

.textile-canvas {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  display: block;
  width: 100%;
  height: calc(100% + var(--textile-overhang));
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s ease-out;
}

.textile-hero.is-rendered .textile-canvas {
  opacity: 1;
}

.textile-replay-button {
  position: absolute;
  z-index: 4;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.textile-replay-button[hidden] {
  display: none;
}

.textile-replay-button:focus-visible {
  outline: 2px solid var(--sector-accent, #c0e7ff);
  outline-offset: 4px;
}

.sector-page[data-sector="tekstil"] .sector-page-heading--compact {
  position: relative;
  z-index: 1;
  min-height: clamp(5.5rem, 11.5svh, 7.2rem);
  padding-block: 1.8rem .85rem;
  align-items: end;
  border-bottom: 1px dashed var(--textile-stitch);
}

.sector-page[data-sector="tekstil"] .visual-services {
  padding-top: clamp(2.8rem, 5.2vw, 4.4rem);
}

@media (max-width: 780px) {
  .sector-page[data-sector="tekstil"] {
    --textile-hero-height: clamp(12.2rem, 26svh, 15.5rem);
    --textile-overhang: clamp(2.0rem, 4.2svh, 2.8rem);
  }

  .sector-page[data-sector="tekstil"] .sector-page-heading--compact {
    min-height: auto;
    padding-block: calc(var(--textile-overhang) * .68 + .35rem) .75rem;
  }

  .sector-page[data-sector="tekstil"] .visual-services {
    padding-top: 1.05rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .textile-hero::before,
  .textile-fallback,
  .textile-canvas {
    transition: none;
  }
}
