/* ==========================================================================
   Astra brand pattern: "Slats"
   A pure HTML/CSS rebuild of the louvred blue panel. Each row is its own
   element so it can rotate into place when its section enters the viewport.
   Markup:  <div class="slats" data-slats> <i></i> x 11 </div>
   Sizes are in container units so the panel scales cleanly at any width.
   ========================================================================== */

.slats {
  --slat-ease: cubic-bezier(.16, .84, .24, 1);
  --slat-dur: 1.25s;
  --slat-stagger: 85ms;
  container-type: inline-size;
  position: relative;
  width: 100%;
  aspect-ratio: 1280 / 726;
  display: flex;
  flex-direction: column;
  perspective: 1600px;
  perspective-origin: 50% 30%;
}

.slats > i {
  --h: 62;
  position: relative;
  display: block;
  flex: 0 0 auto;
  height: calc(var(--h) / 726 * 100%);
  transform-origin: 50% 0%;
  backface-visibility: hidden;
  will-change: transform, opacity;
  background: var(--face);
}
.slats > i::before,
.slats > i::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
}
/* top lip: the lit front edge of the slat */
.slats > i::before {
  top: 0;
  height: var(--lip, 0);
  background: var(--lip-c, transparent);
}
/* bottom lip (lower slats show their underside, lit from below) */
.slats > i::after {
  bottom: 0;
  height: var(--lip-b, 0);
  background: var(--lip-b-c, transparent);
}

/* ---- Row 1: pale, sky-lit top slat with a glint ------------------------- */
.slats > i:nth-child(1) {
  --h: 62;
  --face:
    linear-gradient(180deg, rgba(255,255,255,.10) 0%, rgba(255,255,255,0) 30%, rgba(0,20,90,.10) 100%),
    linear-gradient(90deg, #dfe2f3 0%, #dcdff2 34%, #c9d3f1 46%, #93aff0 56%, #4d8ae9 66%, #1f6be2 76%, #0d55d8 88%, #0b48d0 100%);
  --lip-b: .16cqw;
  --lip-b-c: #0a2fa6;
}
.slats > i:nth-child(1) > b {
  /* the fine diagonal glint near the right end */
  position: absolute;
  left: 72%;
  top: 46%;
  width: 14%;
  height: .1cqw;
  background: linear-gradient(90deg, rgba(190,210,255,0), rgba(190,210,255,.7) 40%, rgba(190,210,255,0));
  transform: rotate(-4.2deg);
  transform-origin: 0 50%;
}

/* ---- Row 2: bright azure ------------------------------------------------ */
.slats > i:nth-child(2) {
  --h: 64;
  --face:
    linear-gradient(180deg, rgba(255,255,255,.06) 0%, rgba(0,0,0,0) 40%, rgba(0,10,70,.16) 100%),
    linear-gradient(90deg, #0b80ea 0%, #0a74e8 24%, #0862e2 46%, #0650d6 66%, #0540c6 86%, #0538bc 100%);
  --lip: .12cqw;
  --lip-c: #0a52d6;
}

/* ---- Row 3 ---------------------------------------------------------------- */
.slats > i:nth-child(3) {
  --h: 66;
  --face:
    linear-gradient(180deg, rgba(255,255,255,.05) 0%, rgba(0,0,0,0) 35%, rgba(0,8,60,.22) 100%),
    linear-gradient(90deg, #0652de 0%, #0548d8 30%, #043cc4 56%, #0330a6 80%, #032a94 100%);
  --lip: .22cqw;
  --lip-c: linear-gradient(90deg, #1b66f2, #1556e6 60%, #1048d4);
}

/* ---- Row 4 ---------------------------------------------------------------- */
.slats > i:nth-child(4) {
  --h: 70;
  --face:
    linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0) 30%, rgba(0,4,40,.30) 100%),
    linear-gradient(90deg, #0544d4 0%, #043bc6 32%, #0430ac 58%, #03258c 82%, #021f7a 100%);
  --lip: .34cqw;
  --lip-c: linear-gradient(90deg, #1a5ef0, #165aec 50%, #1250de);
}

/* ---- Row 5 ---------------------------------------------------------------- */
.slats > i:nth-child(5) {
  --h: 74;
  --face:
    linear-gradient(180deg, rgba(10,40,160,.25) 0%, rgba(0,0,0,0) 30%, rgba(0,2,30,.35) 100%),
    linear-gradient(90deg, #032694 0%, #021f84 32%, #02186c 60%, #011256 84%, #010e4a 100%);
  --lip: .4cqw;
  --lip-c: linear-gradient(90deg, #1756ea, #1452e6 55%, #124ce0);
}

/* ---- Row 6 ---------------------------------------------------------------- */
.slats > i:nth-child(6) {
  --h: 75;
  --face:
    linear-gradient(180deg, rgba(10,40,170,.22) 0%, rgba(0,0,0,0) 26%, rgba(0,0,10,.4) 100%),
    linear-gradient(90deg, #02115c 0%, #020d4c 34%, #010938 64%, #01062a 86%, #010422 100%);
  --lip: .46cqw;
  --lip-c: linear-gradient(90deg, #1d60f4, #1a5cf0 50%, #1854ea);
}

/* ---- Row 7: first silver-white lip, near-black face ---------------------- */
.slats > i:nth-child(7) {
  --h: 78;
  --face:
    linear-gradient(180deg, rgba(20,40,140,.18) 0%, rgba(0,0,0,0) 22%),
    linear-gradient(90deg, #010520 0%, #010318 40%, #000210 70%, #00020c 100%);
  --lip: .4cqw;
  --lip-c: linear-gradient(90deg, #cdd6f6 0%, #c5cff4 45%, #a9bbf0 75%, #7d9ae8 100%);
}

/* ---- Row 8: second white lip, face rolls into the underside -------------- */
.slats > i:nth-child(8) {
  --h: 72;
  --face:
    linear-gradient(90deg, rgba(0,0,0,0) 70%, rgba(0,0,10,.25) 100%),
    linear-gradient(180deg, #00020c 0%, #000312 30%, #01061f 52%, #020d3c 72%, #05206e 88%, #072a8a 100%);
  --lip: .4cqw;
  --lip-c: linear-gradient(90deg, #d4dbf8 0%, #cfd7f7 40%, #a8bcf2 66%, #5079e6 84%, #1a4fe0 100%);
}

/* ---- Row 9: edge-on slat, thin blue line over a navy gap ----------------- */
.slats > i:nth-child(9) {
  --h: 38;
  --face:
    linear-gradient(180deg, #000416 0%, #000416 18%, #06217e 19%, #041a6c 45%, #062284 75%, #08299a 100%);
  --lip: 0;
  --lip-b: 0;
}
.slats > i:nth-child(9) > b {
  position: absolute;
  left: 0;
  right: 0;
  top: 18%;
  height: .5cqw;
  background: linear-gradient(90deg, #1a4cdc, #1d52e4 50%, #1a4ad8);
  box-shadow: 0 -.12cqw 0 #000312;
}

/* ---- Row 10: underside, lit lip at the bottom, slight flare at right ----- */
.slats > i:nth-child(10) {
  --h: 52;
  --face:
    linear-gradient(90deg, rgba(0,0,30,.35) 0%, rgba(0,0,0,0) 8%),
    linear-gradient(180deg, #000208 0%, #00030c 38%, #010a2e 60%, #04208a 80%, #0a36c8 93%, #0d3ed6 100%);
  --lip-b: .46cqw;
  --lip-b-c: linear-gradient(90deg, #1a4ee8, #1d54f0 50%, #1a50ec);
  clip-path: polygon(0 0, 99.3% 0, 100% 100%, .2% 100%);
}

/* ---- Row 11: deepest underside, bright cobalt foot ----------------------- */
.slats > i:nth-child(11) {
  --h: 75;
  --face:
    linear-gradient(90deg, rgba(0,0,30,.45) 0%, rgba(0,0,0,0) 7%),
    linear-gradient(180deg, #000008 0%, #00020c 30%, #000414 46%, #021458 66%, #0730b4 84%, #0b3ee0 96%, #0c40e4 100%);
  --lip-b: .4cqw;
  --lip-b-c: linear-gradient(90deg, #184ced, #1c52f3 50%, #184ced);
  clip-path: polygon(0 0, 99.6% 0, 100% 100%, .1% 100%);
}

/* ---- Entrance: each row rotates in on its top hinge ---------------------- */
.slats[data-slats] > i {
  opacity: 0;
  transform: rotateX(-92deg);
  transition:
    transform var(--slat-dur) var(--slat-ease),
    opacity calc(var(--slat-dur) * .5) ease-out;
  transition-delay: calc(var(--i, 0) * var(--slat-stagger));
}
.slats[data-slats].is-in > i {
  opacity: 1;
  transform: rotateX(0deg);
}
.slats > i:nth-child(1)  { --i: 0; }
.slats > i:nth-child(2)  { --i: 1; }
.slats > i:nth-child(3)  { --i: 2; }
.slats > i:nth-child(4)  { --i: 3; }
.slats > i:nth-child(5)  { --i: 4; }
.slats > i:nth-child(6)  { --i: 5; }
.slats > i:nth-child(7)  { --i: 6; }
.slats > i:nth-child(8)  { --i: 7; }
.slats > i:nth-child(9)  { --i: 8; }
.slats > i:nth-child(10) { --i: 9; }
.slats > i:nth-child(11) { --i: 10; }

/* Bottom-up variant: rows rotate in from the foot of the panel */
.slats[data-slats="up"] > i {
  transform-origin: 50% 100%;
  transform: rotateX(92deg);
  transition-delay: calc((10 - var(--i, 0)) * var(--slat-stagger));
}

@media (prefers-reduced-motion: reduce) {
  .slats[data-slats] > i {
    transform: none;
    transition: opacity .6s ease-out;
    transition-delay: calc(var(--i, 0) * 40ms);
  }
}

/* ---- The atmosphere the panel lives in ----------------------------------- */
.slat-stage {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(90% 40% at 50% 82%, rgba(30,130,245,.4) 0%, rgba(10,90,220,0) 70%),
    linear-gradient(180deg, #000 0%, #000 34%, #00020e 44%, #000b30 54%, #001a66 64%, #00329e 74%, #004cc6 84%, #005fd4 92%, #0a6bdb 100%);
}
.slat-stage::after {
  /* soft side vignette, as in the photograph */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(140% 100% at 50% 40%, rgba(0,0,0,0) 55%, rgba(0,0,20,.4) 100%);
  -webkit-mask: linear-gradient(180deg,#000 70%,transparent 100%);
  mask: linear-gradient(180deg,#000 70%,transparent 100%);
  pointer-events: none;
}
