/* ═══════════════════════════════════════════════════════════
   GR8T SPHERE ACOUSTICS — Extra Styles
   ═══════════════════════════════════════════════════════════ */

/* ── Scroll progress bar ── */
.scroll-progress {
  position: fixed;
  top: 5px;
  left: 0;
  height: 5px;
  width: 0%;
  background: linear-gradient(90deg, #00b894, #00d4a8, #00b894);
  background-size: 200% 100%;
  z-index: 200;
  transition: width .1s linear;
  animation: progressShimmer 2s linear infinite;
  pointer-events: none;
}

@keyframes progressShimmer {
  0%   { background-position: 0% 0%; }
  100% { background-position: 200% 0%; }
}

/* ── Cursor glow ── */
.cursor-glow {
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,184,148,.07) 0%, transparent 68%);
  pointer-events: none;
  z-index: 9000;
  transform: translate(-50%,-50%);
  transition: opacity .3s;
  will-change: left, top;
}

/* ── Freq curve canvas (hero) ── */
.ac-freq-curve-canvas {
  display: block;
  width: 100%;
  height: 52px;
}

.ac-freq-axis {
  display: flex;
  justify-content: space-between;
  font-size: .62rem;
  color: rgba(255,255,255,.32);
  padding: 3px 0 0;
  font-weight: 700;
  letter-spacing: .03em;
}

/* ══════════════════════════════════════════════════════════
   3D ROOM BEFORE / AFTER
══════════════════════════════════════════════════════════ */
.ac-3d-rooms {
  display: grid;
  grid-template-columns: 1fr 56px 1fr;
  gap: 0;
  align-items: start;
  margin-bottom: 2px;
}

.ac-3d-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ac-3d-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px;
}

.ac-canvas-wrap {
  position: relative;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  overflow: hidden;
  background: #030b07;
}

.ac-room-canvas {
  display: block;
  width: 100%;
  height: 400px;
  cursor: grab;
}

.ac-room-canvas:active { cursor: grabbing; }

.ac-canvas-hint {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(0,0,0,.62);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: .7rem;
  color: rgba(255,255,255,.55);
  pointer-events: none;
  white-space: nowrap;
  backdrop-filter: blur(6px);
  transition: opacity .4s;
}

.ac-canvas-wrap:hover .ac-canvas-hint { opacity: 0; }

/* ── Wave frequency legend ── */
.ac-wave-legend {
  position: absolute;
  bottom: 52px;
  left: 12px;
  background: rgba(0,0,0,.72);
  border: 1px solid rgba(0,184,148,.25);
  border-radius: 8px;
  padding: 8px 12px;
  backdrop-filter: blur(8px);
  z-index: 3;
  pointer-events: none;
}

.ac-wl-title {
  font-size: .6rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: rgba(255,255,255,.4);
  margin-bottom: 6px;
}

.ac-wl-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .68rem;
  color: rgba(255,255,255,.72);
  line-height: 1.6;
}

.ac-wl-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 5px currentColor;
}

/* Bullet lists below canvases */
.ac-3d-bullets {
  margin: 0;
  padding: 14px 16px;
  list-style: none;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  background: rgba(8,14,10,.8);
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.ac-3d-bullets li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .84rem;
  color: rgba(245,245,245,.85);
}

.ac-3d-bullets li.bad  span { color: #ff6b6b; }
.ac-3d-bullets li.good span { color: #00b894; }

/* Centre divider arrow */
.ac-3d-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-top: 200px; /* vertically centres with canvas */
  color: var(--muted);
  font-size: .7rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

/* ── Section divider ── */
.ac-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,184,148,.35), transparent);
  margin: 4px 0;
}

/* ══════════════════════════════════════════════════════════
   HERO
══════════════════════════════════════════════════════════ */
.ac-hero-visual {
  position: relative;
  overflow: hidden;
  border-radius: 0;
}

.ac-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.ac-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  opacity: .58;
  transition: transform .1s linear;
  z-index: 0;
}

/* Hero slideshow canvas — replaces static hero image */
.ac-slideshow-canvas {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

/* Stat chips overlay */
.ac-stat-chips {
  position: absolute;
  top: 18px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 2;
}

.ac-chip {
  background: rgba(0,0,0,.72);
  border: 1px solid rgba(0,184,148,.35);
  border-radius: 10px;
  padding: 12px 16px;
  backdrop-filter: blur(10px);
  min-width: 130px;
}

.ac-chip-val {
  display: block;
  color: #00b894;
  font-size: 1.55rem;
  font-weight: 950;
  line-height: 1.1;
}

.ac-chip-lbl {
  display: block;
  color: rgba(255,255,255,.55);
  font-size: .7rem;
  margin-top: 2px;
}

.ac-chip-bar {
  margin-top: 8px;
  height: 3px;
  background: rgba(255,255,255,.12);
  border-radius: 999px;
  overflow: hidden;
}

.ac-chip-fill {
  height: 100%;
  background: linear-gradient(90deg, #00b894, #00d4a8);
  border-radius: 999px;
  animation: chipFill .9s ease forwards;
  transform-origin: left;
}

@keyframes chipFill {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* Frequency panel */
.ac-freq-panel {
  position: absolute;
  bottom: 18px;
  left: 14px;
  right: 14px;
  background: rgba(0,0,0,.68);
  border: 1px solid rgba(0,184,148,.22);
  border-radius: 8px;
  padding: 10px 14px;
  backdrop-filter: blur(8px);
  z-index: 2;
}

.ac-freq-label {
  font-size: .66rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: rgba(255,255,255,.5);
  margin-bottom: 6px;
}

.ac-freq-bars {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 40px;
}

.ac-freq-bar {
  flex: 1;
  background: linear-gradient(180deg, #00b894 0%, rgba(0,184,148,.3) 100%);
  border-radius: 2px 2px 0 0;
  min-height: 2px;
  animation: barPop .6s ease forwards;
  transform-origin: bottom;
  transform: scaleY(0);
}

@keyframes barPop {
  to { transform: scaleY(1); }
}

/* ══════════════════════════════════════════════════════════
   SERVICES CAROUSEL
══════════════════════════════════════════════════════════ */
.ac-carousel-arrows {
  display: flex;
  gap: 10px;
  align-items: center;
}

.ac-arr-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  background: rgba(0,0,0,.4);
  color: #00b894;
  cursor: pointer;
  transition: border-color .2s, background .2s, transform .2s;
  flex-shrink: 0;
}

.ac-arr-btn:hover {
  border-color: #00b894;
  background: rgba(0,184,148,.12);
  transform: scale(1.08);
}

.ac-svc-outer {
  overflow: hidden;
  padding: 6px 0 20px;
}

.ac-svc-track {
  display: flex;
  gap: 16px;
  transition: transform .55s cubic-bezier(.25,.46,.45,.94);
  will-change: transform;
}

/* Service card */
.ac-svc-card {
  flex: 0 0 calc(20% - 13px);
  min-width: 210px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)), rgba(17,17,17,.9);
  overflow: hidden;
  cursor: pointer;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  position: relative;
}

.ac-svc-card::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, #00b894, #00d4a8);
  transform: scaleX(0);
  transition: transform .3s ease;
  transform-origin: left;
}

.ac-svc-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0,184,148,.65);
  box-shadow: 0 20px 50px rgba(0,0,0,.4), 0 0 30px rgba(0,184,148,.1);
}

.ac-svc-card:hover::after {
  transform: scaleX(1);
}

.ac-svc-img-wrap {
  height: 148px;
  overflow: hidden;
}

.ac-svc-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.ac-svc-card:hover .ac-svc-img-wrap img {
  transform: scale(1.06);
}

.ac-svc-img-placeholder {
  height: 148px;
  background: radial-gradient(circle at 60% 40%, rgba(0,184,148,.28), transparent 8rem),
              repeating-linear-gradient(90deg, rgba(0,184,148,.15) 0 2px, transparent 2px 18px),
              #071510;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ac-svc-body {
  padding: 18px 18px 22px;
}

.ac-svc-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border: 1px solid rgba(0,184,148,.45);
  border-radius: 10px;
  background: rgba(0,184,148,.1);
  color: #00b894;
}

.ac-svc-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 800;
}

.ac-svc-card p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: .87rem;
  line-height: 1.5;
}

/* ══════════════════════════════════════════════════════════
   BEFORE / AFTER
══════════════════════════════════════════════════════════ */
.ac-ba-grid {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius);
  overflow: hidden;
}

.ac-ba-panel {
  position: relative;
  min-height: 340px;
}

.ac-ba-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ac-ba-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.72) 100%);
}

.ac-ba-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: .74rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
  backdrop-filter: blur(6px);
}

.ac-ba-before {
  background: rgba(255,77,77,.15);
  border: 1px solid rgba(255,77,77,.4);
  color: #ff6b6b;
}

.ac-ba-after {
  background: rgba(0,184,148,.15);
  border: 1px solid rgba(0,184,148,.4);
  color: #00b894;
}

.ac-ba-list {
  position: absolute;
  bottom: 18px;
  left: 14px;
  right: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ac-ba-list li {
  font-size: .83rem;
  color: rgba(255,255,255,.9);
  margin: 5px 0;
  display: flex;
  align-items: center;
  gap: 7px;
}

.dot-bad { color: #ff6b6b; }
.dot-good { color: #00b894; }

.ac-ba-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #07100e;
  border-left: 1px solid rgba(255,255,255,.09);
  border-right: 1px solid rgba(255,255,255,.09);
}

/* Transform stats bar */
.ac-transform-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 2px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  background: rgba(8,9,10,.9);
  overflow: hidden;
}

.ac-transform-stat {
  padding: 18px 22px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.09);
}

.ac-transform-stat:last-child { border-right: 0; }

.ac-ts-label {
  font-size: .75rem;
  color: var(--muted);
  margin-bottom: 6px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.ac-ts-values {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}

.v-before { color: rgba(255,255,255,.4); font-size: .9rem; }
.v-arr    { color: var(--muted); font-size: .9rem; }
.v-after  { color: #00b894; font-size: .9rem; font-weight: 800; }
.v-delta  {
  font-size: .72rem;
  color: #3dff8f;
  background: rgba(61,255,143,.1);
  border-radius: 999px;
  padding: 2px 8px;
  font-weight: 900;
}

/* ══════════════════════════════════════════════════════════
   METRICS
══════════════════════════════════════════════════════════ */
.ac-metric {
  position: relative;
  overflow: hidden;
}

.ac-metric::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #00b894, transparent);
}

/* ══════════════════════════════════════════════════════════
   MEASUREMENT PLATFORM — app images
══════════════════════════════════════════════════════════ */
.ac-app-img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 7px;
  margin-bottom: 16px;
  display: block;
  transition: transform .35s ease;
}

.mini-card:hover .ac-app-img {
  transform: scale(1.03);
}

/* ══════════════════════════════════════════════════════════
   TESTIMONIALS
══════════════════════════════════════════════════════════ */
.ac-rev-outer {
  overflow: hidden;
}

.ac-rev-track {
  display: flex;
  gap: 20px;
  transition: transform .52s cubic-bezier(.25,.46,.45,.94);
  will-change: transform;
}

.ac-rev-card {
  flex: 0 0 calc(33.333% - 14px);
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.015));
  border: 1px solid rgba(255,255,255,.13);
  border-radius: var(--radius);
  padding: 26px;
  position: relative;
  transition: border-color .25s, box-shadow .25s;
  overflow: hidden;
}

.ac-rev-card::before {
  content: "\201C";
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 5.5rem;
  line-height: 1;
  color: rgba(0,184,148,.1);
  font-family: Georgia, serif;
  pointer-events: none;
}

.ac-rev-card:hover {
  border-color: rgba(0,184,148,.38);
  box-shadow: 0 14px 38px rgba(0,0,0,.32);
}

.ac-stars {
  color: #ffd700;
  font-size: 1.05rem;
  letter-spacing: 2px;
  margin-bottom: 14px;
}

.ac-star-empty { color: rgba(255,255,255,.22); }

.ac-rev-text {
  color: rgba(245,245,245,.88);
  font-size: .93rem;
  line-height: 1.68;
  margin: 0 0 20px;
}

.ac-rev-author {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid rgba(255,255,255,.09);
  padding-top: 16px;
}

.ac-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: .95rem;
  flex-shrink: 0;
  color: #fff;
}

.ac-author-name { font-weight: 800; font-size: .9rem; }
.ac-author-role { color: var(--muted); font-size: .76rem; }

.ac-rev-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
}

.ac-rev-dots {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}

.ac-rev-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.18);
  cursor: pointer;
  padding: 0;
  transition: background .2s, transform .2s;
}

.ac-rev-dots button.is-active {
  background: #00b894;
  transform: scale(1.4);
}

/* ══════════════════════════════════════════════════════════
   KNOWLEDGE HUB STORIES
══════════════════════════════════════════════════════════ */
.ac-story {
  overflow: hidden;
  padding: 0 !important;
  min-height: 0 !important;
}

.ac-story-img-wrap {
  overflow: hidden;
  height: 160px;
}

.ac-story-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}

.ac-story:hover .ac-story-img-wrap img {
  transform: scale(1.06);
}

.ac-story-body {
  padding: 18px 20px 20px;
}

.ac-story-body h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.ac-story-body p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: .88rem;
}

/* ══════════════════════════════════════════════════════════
   BRANDS MARQUEE
══════════════════════════════════════════════════════════ */
.ac-marquee-wrap {
  overflow: hidden;
  padding: 20px 0;
  border-top: 1px solid rgba(255,255,255,.12);
  border-bottom: 1px solid rgba(255,255,255,.12);
  margin-top: 10px;
}

.ac-marquee-track {
  display: flex;
  gap: 52px;
  animation: acMarquee 24s linear infinite;
  width: max-content;
}

.ac-marquee-wrap:hover .ac-marquee-track {
  animation-play-state: paused;
}

.ac-marquee-track span {
  font-weight: 900;
  font-size: .9rem;
  color: rgba(255,255,255,.38);
  white-space: nowrap;
  letter-spacing: .04em;
  transition: color .2s;
  cursor: default;
}

.ac-marquee-track span:hover {
  color: rgba(0,184,148,.75);
}

@keyframes acMarquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ══════════════════════════════════════════════════════════
   FOOTER ENHANCEMENTS
══════════════════════════════════════════════════════════ */
.ac-footer-tagline {
  font-family: 'Dancing Script', 'Brush Script MT', cursive;
  font-size: 1.45rem;
  font-style: italic;
  color: rgba(245,245,245,.72);
  margin: 10px 0 16px;
  line-height: 1.5;
  font-weight: 700;
}

.ac-social-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.ac-social {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 50%;
  color: var(--muted);
  transition: border-color .2s, color .2s, background .2s, transform .2s;
}

.ac-social:hover {
  border-color: #00b894;
  color: #00b894;
  background: rgba(0,184,148,.1);
  transform: translateY(-3px);
}

/* ══════════════════════════════════════════════════════════
   REVEAL ANIMATION (override ecosystem base)
══════════════════════════════════════════════════════════ */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .55s ease, transform .55s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger helpers */
.ac-svc-card:nth-child(1)[data-reveal] { transition-delay: .05s; }
.ac-svc-card:nth-child(2)[data-reveal] { transition-delay: .12s; }
.ac-svc-card:nth-child(3)[data-reveal] { transition-delay: .19s; }
.ac-svc-card:nth-child(4)[data-reveal] { transition-delay: .26s; }
.ac-svc-card:nth-child(5)[data-reveal] { transition-delay: .33s; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 1120px) {
  .ac-svc-card      { flex: 0 0 calc(33.333% - 11px); }
  .ac-rev-card      { flex: 0 0 calc(50% - 10px); }
  .ac-transform-row { grid-template-columns: repeat(2, 1fr); }
  .ac-3d-rooms      { grid-template-columns: 1fr; }
  .ac-3d-divider    { flex-direction: row; padding-top: 0; padding: 8px 0; justify-content: center; }
  .ac-3d-divider svg { transform: rotate(90deg); }
}

@media (max-width: 840px) {
  .ac-svc-card      { flex: 0 0 100%; min-width: 0; }
  .ac-rev-card      { flex: 0 0 100%; }
  .ac-stat-chips    { display: none; }
  .ac-transform-row { grid-template-columns: repeat(2, 1fr); }
  .ac-footer-tagline { font-size: 1.2rem; }
  .ac-room-canvas   { height: 300px; }
}
