/* ============================================================
   Harris Sphere — animations.css
   ============================================================ */


/* ----------------------------------------------------------
   Animation 2: Phone — Scrolling Instagram Feed
   ---------------------------------------------------------- */
.service-with-visual {
  display: flex;
  align-items: flex-start;
  gap: 3rem;
  flex-wrap: wrap;
}

.service-text-col { flex: 1; min-width: 280px; }

.phone-mockup-wrap {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 200px;
  height: 400px;
  background: #1D1D1F;
  border-radius: 32px;
  border: 2.5px solid #2a2a2c;
  box-shadow: 0 0 0 1px #3a3a3c, 0 20px 40px rgba(0,0,0,0.22);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.phone-mockup::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 5px;
  background: #2a2a2c;
  border-radius: 3px;
  z-index: 2;
}

.phone-screen {
  position: absolute;
  inset: 22px 5px 5px;
  border-radius: 26px;
  overflow: hidden;
  background: #fff;
}

.phone-feed-track {
  display: flex;
  flex-direction: column;
  gap: 2px;
  will-change: transform;
}

.phone-feed-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.phone-feed-tile {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Gilda Display', serif;
  font-size: 0.5rem;
  text-align: center;
  padding: 4px;
  color: #fff;
  overflow: hidden;
  line-height: 1.3;
}

@media (max-width: 600px) {
  .service-with-visual { flex-direction: column; }
  .phone-mockup-wrap { width: 100%; }
  .phone-mockup { width: 180px; height: 360px; margin: 0 auto; }
}

/* ----------------------------------------------------------
   Animation 3: Laptop — Before/After Wipe
   ---------------------------------------------------------- */
.laptop-mockup-wrap {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.laptop-mockup {
  width: 440px;
  max-width: 100%;
  position: relative;
}

.laptop-body {
  background: #1D1D1F;
  border-radius: 10px 10px 0 0;
  padding: 10px 10px 0;
  box-shadow: 0 0 0 1px #3a3a3c;
  position: relative;
}

.laptop-bar {
  background: #2a2a2c;
  border-radius: 4px;
  height: 20px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  gap: 5px;
  margin-bottom: 5px;
}

.laptop-dot { width: 7px; height: 7px; border-radius: 50%; }
.laptop-dot:nth-child(1) { background: #ff5f57; }
.laptop-dot:nth-child(2) { background: #ffbd2e; }
.laptop-dot:nth-child(3) { background: #28c840; }

.laptop-url {
  flex: 1;
  background: #3a3a3c;
  border-radius: 3px;
  height: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Manrope', sans-serif;
  font-size: 7px;
  color: #888;
}

.laptop-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #fff;
}

.laptop-base {
  background: #2a2a2c;
  height: 12px;
  border-radius: 0 0 4px 4px;
  margin: 0 -3px;
}

.laptop-stand {
  width: 100px;
  height: 7px;
  background: #3a3a3c;
  border-radius: 0 0 6px 6px;
  margin: 0 auto;
}

.laptop-before,
.laptop-after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.laptop-after {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 2s cubic-bezier(0.65, 0, 0.35, 1);
}
.laptop-after.wiped { clip-path: inset(0 0% 0 0); }

.laptop-divider {
  position: absolute;
  top: 0; bottom: 0;
  width: 2px;
  background: #A9BBD0;
  left: 0%;
  transition: left 2s cubic-bezier(0.65, 0, 0.35, 1);
  z-index: 3;
  pointer-events: none;
}
.laptop-after.wiped ~ .laptop-divider { left: 100%; }

/* Before site */
.site-before {
  background: #f0ebe0;
  height: 100%;
  font-family: Arial, sans-serif;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.site-before-header {
  background: #5c4a2a;
  color: #fff;
  padding: 5px 8px;
  font-size: 6px;
  display: flex;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
}
.site-before-logo { font-weight: bold; font-size: 8px; margin-right: auto; }
.site-before-nav { display: flex; gap: 4px; font-size: 5.5px; opacity: 0.8; flex-wrap: wrap; }
.site-before-hero {
  background: linear-gradient(135deg, #8b6914, #4a7a9b);
  color: #fff;
  padding: 12px 10px;
  font-size: 9px;
  font-weight: bold;
  text-align: center;
  line-height: 1.3;
}
.site-before-hero p { font-size: 5.5px; margin-top: 4px; opacity: 0.85; font-weight: normal; }
.site-before-hero button {
  margin-top: 5px;
  background: #e67e22;
  border: none;
  color: #fff;
  padding: 3px 7px;
  font-size: 5.5px;
  border-radius: 2px;
  cursor: default;
}
.site-before-body { padding: 7px 9px; flex: 1; }
.site-before-body p { font-size: 5.5px; color: #555; line-height: 1.5; margin-bottom: 4px; }
.site-before-footer {
  background: #3a3a3a;
  color: #aaa;
  font-size: 4.5px;
  text-align: center;
  padding: 3px;
}

/* After site — improved */
.site-after {
  background: #F6F4EF;
  height: 100%;
  font-family: 'Manrope', sans-serif;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.site-after-header {
  background: #F6F4EF;
  padding: 5px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(29,29,31,0.08);
  flex-shrink: 0;
}
.site-after-logo {
  font-family: 'Gilda Display', serif;
  font-size: 8px;
  letter-spacing: 0.05em;
  color: #1D1D1F;
}
.site-after-nav { display: flex; gap: 7px; font-size: 5px; color: #5A6A7C; }

/* Hero with image placeholder */
.site-after-img-hero {
  background: linear-gradient(135deg, #DCCFC0 0%, #A9BBD0 60%, #5A6A7C 100%);
  flex: 1;
  display: flex;
  align-items: flex-end;
  padding: 10px 12px;
  position: relative;
  overflow: hidden;
  min-height: 0;
}
.site-after-img-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(29,29,31,0.30);
}
.site-after-img-overlay {
  position: relative;
  z-index: 1;
  color: #F6F4EF;
}
.site-after-img-overlay h1 {
  font-family: 'Gilda Display', serif;
  font-size: 20px;
  line-height: 1.2;
  margin-bottom: 10px;
}
.site-after-img-overlay button {
  background: #F6F4EF;
  color: #1D1D1F;
  border: none;
  padding: 6px 14px;
  font-size: 8px;
  font-weight: 600;
  border-radius: 4px;
  width: fit-content;
  cursor: default;
  letter-spacing: 0.03em;
}

/* Stats row */
.site-after-stats {
  display: flex;
  border-top: 1px solid rgba(29,29,31,0.08);
  flex-shrink: 0;
}
.site-after-stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5px 4px;
  border-right: 1px solid rgba(29,29,31,0.08);
  gap: 1px;
}
.site-after-stat:last-child { border-right: none; }
.site-after-stat-num {
  font-family: 'Gilda Display', serif;
  font-size: 10px;
  color: #1D1D1F;
  line-height: 1;
}
.site-after-stat-label {
  font-size: 4.5px;
  color: #5A6A7C;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.site-after-footer {
  background: #1D1D1F;
  color: rgba(246,244,239,0.5);
  font-size: 4.5px;
  text-align: center;
  padding: 4px;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .service-with-visual { flex-direction: column; }
  .laptop-mockup-wrap { width: 100%; }
  .laptop-mockup { width: 100%; }
}

/* ----------------------------------------------------------
   Animation 4: Orbiting Icons
   ---------------------------------------------------------- */
.orbit-scene {
  position: relative;
  width: 360px;
  height: 360px;
  margin: 0 auto;
  flex-shrink: 0;
}

.orbit-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border-radius: 16px;
  background: #1D1D1F;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  overflow: hidden;
}

.orbit-center img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.orbit-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 36px;
  height: 36px;
  margin: -18px 0 0 -18px;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform, opacity;
}

.orbit-icon svg {
  width: 24px;
  height: 24px;
  stroke: #5A6A7C;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes orbit-1 {
  0%   { transform: rotate(0deg)   translateX(130px) rotate(0deg);   opacity:1; }
  25%  { transform: rotate(90deg)  translateX(130px) rotate(-90deg);  opacity:0.35; }
  50%  { transform: rotate(180deg) translateX(130px) rotate(-180deg); opacity:1; }
  75%  { transform: rotate(270deg) translateX(130px) rotate(-270deg); opacity:0.35; }
  100% { transform: rotate(360deg) translateX(130px) rotate(-360deg); opacity:1; }
}
@keyframes orbit-2 {
  0%   { transform: rotate(90deg)  translateX(110px) rotate(-90deg);  opacity:0.35; }
  25%  { transform: rotate(180deg) translateX(110px) rotate(-180deg); opacity:1; }
  50%  { transform: rotate(270deg) translateX(110px) rotate(-270deg); opacity:0.35; }
  75%  { transform: rotate(360deg) translateX(110px) rotate(-360deg); opacity:1; }
  100% { transform: rotate(450deg) translateX(110px) rotate(-450deg); opacity:0.35; }
}
@keyframes orbit-3 {
  0%   { transform: rotate(200deg) translateX(120px) rotate(-200deg); opacity:0.35; }
  25%  { transform: rotate(290deg) translateX(120px) rotate(-290deg); opacity:1; }
  50%  { transform: rotate(380deg) translateX(120px) rotate(-380deg); opacity:0.35; }
  75%  { transform: rotate(470deg) translateX(120px) rotate(-470deg); opacity:1; }
  100% { transform: rotate(560deg) translateX(120px) rotate(-560deg); opacity:0.35; }
}
@keyframes orbit-4 {
  0%   { transform: rotate(300deg) translateX(140px) rotate(-300deg); opacity:1; }
  25%  { transform: rotate(390deg) translateX(140px) rotate(-390deg); opacity:0.35; }
  50%  { transform: rotate(480deg) translateX(140px) rotate(-480deg); opacity:1; }
  75%  { transform: rotate(570deg) translateX(140px) rotate(-570deg); opacity:0.35; }
  100% { transform: rotate(660deg) translateX(140px) rotate(-660deg); opacity:1; }
}

.orbit-icon:nth-child(2) { animation: orbit-1 18s linear infinite; }
.orbit-icon:nth-child(3) { animation: orbit-2 23s linear infinite; }
.orbit-icon:nth-child(4) { animation: orbit-3 15s linear infinite; }
.orbit-icon:nth-child(5) { animation: orbit-4 20s linear infinite; }

.orbit-scene.paused .orbit-icon { animation-play-state: paused; }

@media (max-width: 600px) {
  .orbit-scene { width: 260px; height: 260px; }
}

/* ----------------------------------------------------------
   prefers-reduced-motion: all animations off
   ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  #hs-aperture { display: none !important; }
  .phone-feed-track { transform: none !important; }
  .laptop-after { clip-path: inset(0 0% 0 0) !important; transition: none !important; }
  .laptop-divider { left: 100% !important; transition: none !important; }
  .orbit-icon { animation: none !important; }
}
