/* ==========================================================================
   SECTION 07 — FULL-CYCLE MARKETING POWERHOUSE / FIELD PROOF
   Staggered cards collapse on scroll with neon traveling border on hover
   ========================================================================== */

.tbx-s07 {
  --bg: #080909;
  --orange: #f28b3c;
  --orange-soft: rgba(242, 139, 60, .45);
  --text: #f4f1ee;
  --p: 0;
  position: relative;
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: visible;
  width: 100%;
}

.tbx-s07 * {
  box-sizing: border-box;
}

/* Tall wrapper gives the scroll distance; stage stays pinned */
.tbx-s07 .scroller {
  position: relative;
  height: 260vh;
}

.tbx-s07 .stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  min-height: 600px;
  overflow: hidden;
  background:
    radial-gradient(60vw 40vh at 100% 0%, rgba(242, 139, 60, .22), transparent 65%),
    radial-gradient(50vw 30vh at 50% 100%, rgba(242, 139, 60, .07), transparent 70%),
    var(--bg);
}

.tbx-s07 .stage::before {
  /* Slow drifting glow, top-right */
  content: "";
  position: absolute;
  right: -12vw;
  top: -18vh;
  width: 34vw;
  height: 34vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 139, 60, .28), transparent 68%);
  filter: blur(30px);
  animation: s07Drift 9s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes s07Drift {
  to {
    transform: translate(-3vw, 3vh) scale(1.12);
    opacity: .7;
  }
}

/* Eyebrow */
.tbx-s07 .eyebrow {
  position: absolute;
  left: 4.9%;
  top: 12vh;
  display: flex;
  gap: 1.9vw;
  align-items: flex-start;
}

.tbx-s07 .eyebrow i {
  display: block;
  width: 4vw;
  height: 1px;
  margin-top: .7vw;
  background: var(--orange);
  transform-origin: left;
  animation: s07Grow 1s .2s cubic-bezier(.2, .7, .2, 1) both;
}

.tbx-s07 .eyebrow span {
  font-size: max(.68vw, 10px);
  font-weight: 600;
  letter-spacing: .32em;
  line-height: 1.55;
  text-transform: uppercase;
  animation: s07Fade 1s .35s both;
  font-family: inherit;
}

@keyframes s07Grow {
  from {
    transform: scaleX(0);
  }
}

@keyframes s07Fade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* Vertical divider */
.tbx-s07 .divider {
  position: absolute;
  left: 50.9%;
  top: 11vh;
  height: 40vh;
  width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, .14) 25%, rgba(255, 255, 255, .14) 75%, transparent);
  transform-origin: top;
  animation: s07GrowY 1.2s .3s ease both;
}

@keyframes s07GrowY {
  from {
    transform: scaleY(0);
  }
}

/* Copy block */
.tbx-s07 .copy {
  position: absolute;
  left: 54.2%;
  top: 12vh;
  width: 42%;
}

.tbx-s07 .copy h2 {
  font-size: clamp(18px, 2.7vw, 28px);
  line-height: 1.25;
  font-weight: 500;
  letter-spacing: 0em;
  font-family: inherit;
  white-space: nowrap;
}

.tbx-s07 .copy h2 .line {
  display: block;
  overflow: hidden;
  padding-bottom: .12em;
  margin-bottom: -.12em;
}

.tbx-s07 .copy h2 .line>span {
  display: block;
  animation: s07LineUp 1s cubic-bezier(.2, .8, .2, 1) both;
}

.tbx-s07 .copy h2 .line:nth-child(1)>span {
  animation-delay: .25s;
}

.tbx-s07 .copy h2 .line:nth-child(2)>span {
  animation-delay: .38s;
}

.tbx-s07 .copy h2 .line:nth-child(3)>span {
  animation-delay: .51s;
}

.tbx-s07 .copy h2 .line:nth-child(4)>span {
  animation-delay: .64s;
}

@keyframes s07LineUp {
  from {
    transform: translateY(105%);
  }
}

.tbx-s07 .copy h2 em {
  font-style: normal;
  color: var(--orange);
}

.tbx-s07 .copy p {
  margin-top: 2.4vh;
  font-size: clamp(14px, min(1.55vw, 2.7vh), 32px);
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: -.035em;
  color: rgba(255, 255, 255, .92);
  max-width: 35em;
  animation: s07Fade 1s .85s both;
  font-family: inherit;
}

.tbx-s07 .copy .rule {
  display: block;
  margin-top: 3.5vh;
  width: 12.6vw;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), transparent);
  transform-origin: left;
  animation: s07Grow 1.2s 1.05s cubic-bezier(.2, .7, .2, 1) both;
}

/* Cards */
.tbx-s07 .cards {
  position: absolute;
  left: 1.8%;
  right: 1.8%;
  bottom: 7vh;
  display: flex;
  align-items: flex-start;
  height: clamp(210px, min(19vw, 34vh), 360px);
}

.tbx-s07 .slot {
  flex: 1;
  position: relative;
  height: 100%;
  --o: 0;
  /* stagger collapses into a straight line as --p -> 1 */
  transform: translateY(calc(var(--o) * 1.85vw * (1 - var(--p)))) skewY(calc(-1deg * (1 - var(--p))));
  will-change: transform;
}

.tbx-s07 .slot:nth-child(1) {
  --o: 0;
}

.tbx-s07 .slot:nth-child(2) {
  --o: 1;
}

.tbx-s07 .slot:nth-child(3) {
  --o: .42;
}

.tbx-s07 .slot:nth-child(4) {
  --o: 1.32;
}

.tbx-s07 .slot:nth-child(5) {
  --o: 1.7;
}

.tbx-s07 .card {
  position: absolute;
  inset: 0;
  padding: min(2.1vw, 3.4vh) 1.9vw min(1.8vw, 3vh);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .008) 55%, rgba(242, 139, 60, .05));
  border: 1px solid var(--orange-soft);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  animation: s07CardIn .9s cubic-bezier(.2, .8, .2, 1) forwards;
  animation-delay: calc(.9s + var(--i) * .12s);
  transition: border-color .4s, background .4s, box-shadow .4s, translate .5s cubic-bezier(.2, .8, .2, 1);
}

.tbx-s07 .slot:hover {
  z-index: 3;
}

.tbx-s07 .slot:nth-child(1) .card {
  --i: 0;
}

.tbx-s07 .slot:nth-child(2) .card {
  --i: 1;
}

.tbx-s07 .slot:nth-child(3) .card {
  --i: 2;
}

.tbx-s07 .slot:nth-child(4) .card {
  --i: 3;
}

.tbx-s07 .slot:nth-child(5) .card {
  --i: 4;
}

@keyframes s07CardIn {
  from {
    opacity: 0;
    transform: translateY(5vh);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.tbx-s07 .card:hover {
  border-color: rgba(255, 160, 90, .35);
  translate: 0 -6px;
  background: linear-gradient(180deg, rgba(242, 139, 60, .09), rgba(255, 255, 255, .01) 60%, rgba(242, 139, 60, .1));
  box-shadow: 0 0 26px rgba(242, 139, 60, .35), 0 0 70px rgba(242, 139, 60, .16), inset 0 0 28px rgba(242, 139, 60, .12);
}

/* Neon border: a bright arc that travels around the edge on hover */
@property --ang {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

.tbx-s07 .neon {
  position: absolute;
  inset: -1px;
  padding: 2px;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transition: opacity .35s;
  background: conic-gradient(from var(--ang), transparent 0 50%, #ff8a2a 70%, #fff1e0 82%, #ff8a2a 92%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  filter: drop-shadow(0 0 4px #ff8a2a) drop-shadow(0 0 12px rgba(255, 138, 42, .85));
  animation: s07Spin 2.2s linear infinite;
}

.tbx-s07 .card:hover .neon {
  opacity: 1;
}

@keyframes s07Spin {
  to {
    --ang: 360deg;
  }
}

/* glowing top edge + bottom bloom */
.tbx-s07 .card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 14%;
  width: 32%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #ffb27a, transparent);
  box-shadow: 0 0 14px 3px rgba(242, 139, 60, .55);
  animation: s07Glow 3.6s ease-in-out infinite;
  animation-delay: calc(var(--i) * .5s);
}

.tbx-s07 .card::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -1px;
  height: 40%;
  background: radial-gradient(60% 100% at 50% 100%, rgba(242, 139, 60, .22), transparent 70%);
  pointer-events: none;
  opacity: .7;
}

@keyframes s07Glow {

  0%,
  100% {
    opacity: .55;
    transform: scaleX(.8);
  }

  50% {
    opacity: 1;
    transform: scaleX(1.15);
  }
}

.tbx-s07 .shine {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.tbx-s07 .shine::before {
  content: "";
  position: absolute;
  top: -25%;
  bottom: -25%;
  left: 0;
  width: 45%;
  transform: translateX(-170%) skewX(-22deg);
  opacity: 0;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 196, 140, .08) 30%, rgba(255, 226, 196, .38) 50%, rgba(255, 196, 140, .08) 70%, transparent 100%);
}

.tbx-s07 .card:hover .shine::before {
  animation: s07Shine .95s cubic-bezier(.35, .1, .25, 1) forwards;
}

@keyframes s07Shine {
  0% {
    opacity: 1;
    transform: translateX(-170%) skewX(-22deg);
  }

  100% {
    opacity: 1;
    transform: translateX(330%) skewX(-22deg);
  }
}

.tbx-s07 .idx {
  position: absolute;
  top: 1.1vw;
  right: 1.5vw;
  font-size: clamp(11px, 1.05vw, 20px);
  font-weight: 400;
  letter-spacing: .02em;
  color: rgba(255, 255, 255, .85);
}

.tbx-s07 .num {
  position: relative;
  z-index: 1;
  margin-top: .2vw;
  font-size: clamp(32px, min(4.3vw, 7.6vh), 84px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.07em;
}

.tbx-s07 .label {
  position: relative;
  z-index: 1;
  margin-top: .7vw;
  font-size: clamp(12px, min(1.3vw, 2.4vh), 26px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.025em;
  color: rgba(255, 255, 255, .92);
}

.tbx-s07 .icon {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding-top: 6px;
  width: clamp(26px, 2.5vw, 48px);
  height: clamp(26px, 2.5vw, 48px);
  color: var(--orange);
  animation: s07Float 3.4s ease-in-out infinite;
  animation-delay: calc(var(--i) * .35s);
}

.tbx-s07 .icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes s07Float {
  50% {
    transform: translateY(-.4vw);
  }
}

/* Tablet / mobile: normal flow, nothing absolutely positioned */
@media (max-width: 900px) {
  .tbx-s07 .scroller {
    height: auto;
  }

  .tbx-s07 .stage {
    position: relative;
    height: auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 28px;
    padding: 44px 6% 48px;
  }

  .tbx-s07 .eyebrow,
  .tbx-s07 .copy,
  .tbx-s07 .cards {
    position: static;
  }

  .tbx-s07 .eyebrow i {
    width: 36px;
  }

  .tbx-s07 .eyebrow span {
    font-size: 10px;
  }

  .tbx-s07 .divider {
    display: none;
  }

  .tbx-s07 .copy {
    width: 100%;
  }

  .tbx-s07 .copy h2 {
    font-size: clamp(20px, 5.4vw, 26px);
    line-height: 1.25;
    white-space: normal;
  }

  .tbx-s07 .copy p {
    font-size: 14px;
    margin-top: 12px;
  }

  .tbx-s07 .copy .rule {
    width: 40%;
    margin-top: 16px;
  }

  .tbx-s07 .cards {
    flex-wrap: wrap;
    height: auto;
    margin-top: 8px;
  }

  .tbx-s07 .slot {
    flex: 0 0 50%;
    height: 150px;
    transform: translateY(calc(var(--o) * 10px * (1 - var(--p))));
  }

  .tbx-s07 .slot:nth-child(5) {
    flex-basis: 100%;
    height: 130px;
  }

  .tbx-s07 .card {
    padding: 14px;
  }

  .tbx-s07 .idx {
    top: 10px;
    right: 12px;
  }

  .tbx-s07 .num {
    font-size: 32px;
  }

  .tbx-s07 .label {
    font-size: 12px;
    margin-top: 4px;
  }

  .tbx-s07 .icon {
    width: 26px;
    height: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .tbx-s07 *,
  .tbx-s07 *::before,
  .tbx-s07 *::after {
    animation-duration: .01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
  }

  .tbx-s07 .slot {
    transform: none !important;
  }
}