/* Shared motion + 3D interaction primitives */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.28) 45%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.65s ease;
  z-index: 0;
  pointer-events: none;
}
.btn > * { position: relative; z-index: 1; }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn-primary {
  box-shadow:
    0 10px 28px rgba(31, 107, 90, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 18px 40px rgba(31, 107, 90, 0.34);
}

.section-band {
  position: relative;
  isolation: isolate;
}
.section-band--mint {
  background:
    radial-gradient(600px 260px at 8% 15%, rgba(61, 156, 240, 0.14), transparent 55%),
    radial-gradient(700px 280px at 90% 30%, rgba(244, 162, 97, 0.14), transparent 55%),
    radial-gradient(700px 280px at 40% 80%, rgba(42, 157, 143, 0.16), transparent 60%),
    linear-gradient(180deg, rgba(214, 232, 226, 0.55), rgba(238, 241, 240, 0));
}
.section-band--ink {
  background:
    radial-gradient(700px 320px at 12% 20%, rgba(108, 99, 255, 0.22), transparent 55%),
    radial-gradient(800px 360px at 90% 10%, rgba(42, 157, 143, 0.28), transparent 55%),
    radial-gradient(600px 280px at 50% 100%, rgba(231, 111, 81, 0.18), transparent 50%),
    linear-gradient(160deg, #0f1c18 0%, #122820 48%, #16352c 100%);
  color: #fff;
}
.section-band--ink .lead,
.section-band--ink .eyebrow { color: #9fd7ce; }
.section-band--ink .eyebrow::before { background: #9fd7ce; }
.section-band--ink .display { color: #fff; }
.section-band--warm {
  background:
    radial-gradient(700px 300px at 15% 20%, rgba(244, 162, 97, 0.2), transparent 55%),
    radial-gradient(700px 300px at 90% 40%, rgba(231, 111, 81, 0.12), transparent 55%),
    linear-gradient(180deg, rgba(255, 244, 230, 0.7), rgba(238, 241, 240, 0));
}

.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease, background 0.35s ease;
  will-change: transform;
}
.tilt-card:hover {
  box-shadow: 0 22px 50px rgba(14, 21, 18, 0.12);
}

.float-3d {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 28px rgba(14, 21, 18, 0.18));
  transform: translateZ(0);
  transform-origin: center center;
  animation: floatY 5.2s ease-in-out infinite;
  will-change: transform;
}
.float-3d--slow { animation-duration: 7.2s; animation-name: floatSpin; }
.float-3d--delay { animation-delay: -2.2s; }
.float-3d--bob { animation-name: floatBob; animation-duration: 4.4s; }

@keyframes floatY {
  0%, 100% { transform: translateY(0) rotate(-2deg) scale(1); }
  50% { transform: translateY(-16px) rotate(2.5deg) scale(1.03); }
}
@keyframes floatSpin {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-12px) rotate(4deg); }
}
@keyframes floatBob {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(0deg); }
  25% { transform: translate3d(6px, -10px, 0) rotate(2deg); }
  50% { transform: translate3d(0, -18px, 0) rotate(-1deg); }
  75% { transform: translate3d(-6px, -8px, 0) rotate(3deg); }
}

.media-3d {
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 28px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(61, 156, 240, 0.28), transparent 42%),
    radial-gradient(circle at 80% 25%, rgba(244, 162, 97, 0.28), transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(43, 179, 159, 0.3), transparent 45%),
    linear-gradient(160deg, #e8f3ef 0%, #d5e7e1 100%);
  border: 1px solid rgba(31, 107, 90, 0.12);
  min-height: 280px;
  perspective: 900px;
}
.media-3d img {
  width: min(78%, 340px);
  position: relative;
  z-index: 1;
}
.media-3d::before,
.media-3d::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}
.media-3d::before {
  width: 140px;
  height: 140px;
  top: 12%;
  right: 10%;
  background: rgba(42, 157, 143, 0.2);
  animation: pulseOrb 6s ease-in-out infinite;
}
.media-3d::after {
  width: 90px;
  height: 90px;
  bottom: 14%;
  left: 12%;
  background: rgba(14, 21, 18, 0.08);
  animation: pulseOrb 7.5s ease-in-out infinite reverse;
}

@keyframes pulseOrb {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.18); opacity: 1; }
}

.icon-3d {
  width: 112px;
  height: 112px;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 14px 28px rgba(14, 21, 18, 0.14);
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
  animation: iconPulse 5.5s ease-in-out infinite;
}
.icon-3d:nth-child(1) { animation-delay: 0s; }
.tilt-card:nth-child(2n) .icon-3d { animation-delay: -1.4s; }
.tilt-card:nth-child(3n) .icon-3d { animation-delay: -2.8s; }
.tilt-card:hover .icon-3d {
  animation-play-state: paused;
  transform: translateY(-10px) scale(1.08) rotate(-4deg);
  box-shadow: 0 22px 40px rgba(14, 21, 18, 0.2);
}
@keyframes iconPulse {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(2deg); }
}

/* Custom IT / HUD cursor */
@media (hover: hover) and (pointer: fine) {
  html.has-cursor,
  html.has-cursor body,
  html.has-cursor a,
  html.has-cursor button,
  html.has-cursor .btn,
  html.has-cursor [data-tilt] {
    cursor: none !important;
  }
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  z-index: 10050;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s ease;
}
html.has-cursor .cursor.is-ready { opacity: 1; }

.cursor__dot {
  position: absolute;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: #2bb39f;
  box-shadow: 0 0 0 2px rgba(11, 20, 17, 0.2), 0 0 14px rgba(43, 179, 159, 0.55);
  will-change: transform;
}

.cursor__ring {
  position: absolute;
  width: 42px;
  height: 42px;
  margin: -21px 0 0 -21px;
  border-radius: 50%;
  border: 1.5px solid rgba(43, 179, 159, 0.85);
  box-shadow: 0 0 0 1px rgba(11, 20, 17, 0.08), inset 0 0 12px rgba(43, 179, 159, 0.12);
  will-change: transform;
}

.cursor__cross {
  position: absolute;
  width: 22px;
  height: 22px;
  margin: -11px 0 0 -11px;
  will-change: transform;
}
.cursor__cross::before,
.cursor__cross::after {
  content: "";
  position: absolute;
  background: rgba(14, 21, 18, 0.75);
}
.cursor__cross::before {
  left: 50%;
  top: 0;
  width: 1.5px;
  height: 100%;
  transform: translateX(-50%);
}
.cursor__cross::after {
  top: 50%;
  left: 0;
  height: 1.5px;
  width: 100%;
  transform: translateY(-50%);
}

.cursor__scan {
  position: absolute;
  width: 54px;
  height: 54px;
  margin: -27px 0 0 -27px;
  border-radius: 50%;
  border: 1px dashed rgba(31, 107, 90, 0.35);
  will-change: transform;
}

.cursor-trail {
  position: fixed;
  top: 0;
  left: 0;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: rgba(43, 179, 159, 0.45);
  pointer-events: none;
  z-index: 10049;
  opacity: 0;
  will-change: transform, opacity;
}

.cursor.is-hover .cursor__ring {
  border-color: #1f6b5a;
  background: rgba(43, 179, 159, 0.08);
}
.cursor.is-hover .cursor__dot {
  background: #0b1411;
  box-shadow: 0 0 0 2px rgba(43, 179, 159, 0.45);
}
.cursor.is-click .cursor__ring {
  border-width: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .float-3d,
  .float-3d--slow,
  .float-3d--bob,
  .icon-3d,
  .media-3d::before,
  .media-3d::after,
  .hero__orb { animation: none !important; }
  .btn::after { display: none; }
  .cursor,
  .cursor-trail { display: none !important; }
}
