/* ==========================================================================
   IdeasPro: premium effects layer
   Additive only. Loads after style.css (functions.php already enqueues this
   file), so your original design is untouched underneath.
   ========================================================================== */

:root {
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
}


/* ==========================================================================
   1. SCROLL PROGRESS BAR
   ========================================================================== */

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 1100;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  box-shadow: 0 0 14px rgba(249, 115, 22, 0.75);
  will-change: transform;
}


/* ==========================================================================
   2. HERO HEADLINE: MASKED WORD REVEAL
   The title stays hidden only while JS is about to split it; a failsafe
   reveals it after 1.5s if the script ever fails.
   ========================================================================== */

.js .hero-title:not(.is-split) {
  opacity: 0;
  animation: titleFailsafe 0.01s 1.5s forwards;
}

@keyframes titleFailsafe {
  to { opacity: 1; }
}

.hero-title.is-split { animation: none; }

.hero-title .word-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0.08em 0.04em 0.16em;
  margin: -0.08em -0.04em -0.16em;
}

.hero-title .word {
  display: inline-block;
  transform: translateY(115%);
  animation: wordRise 0.95s var(--ease-premium) forwards;
  animation-delay: calc(var(--i, 0) * 75ms + 150ms);
}

@keyframes wordRise {
  to { transform: translateY(0); }
}

/* The original gradient moves from the wrapper onto each word. */
.hero-title .word-mask,
.hero-title .word,
.hero-title .hero-accent {
  background: none;
  -webkit-text-fill-color: currentColor;
}

.hero-title .hero-accent .word {
  background: linear-gradient(135deg, #ffffff 30%, var(--primary-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Subtitle and buttons follow the headline. */
.hero-title.is-split ~ .hero-subtitle { animation-delay: 0.85s; }
.hero-title.is-split ~ .hero-cta-group { animation-delay: 1.05s; }


/* ==========================================================================
   3. HERO DEPTH: GRAIN, ORBS, CURSOR GLOW, SCROLL CUE
   ========================================================================== */

/* Film grain for a tactile, premium surface. */
.hero-section::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-orb {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}

.orb-ember {
  width: 420px;
  height: 420px;
  top: -80px;
  right: -60px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.5), transparent 70%);
  animation: orbDrift 16s ease-in-out infinite alternate;
}

.orb-blue {
  width: 560px;
  height: 560px;
  bottom: -180px;
  left: -160px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.32), transparent 70%);
  animation: orbDrift 20s -6s ease-in-out infinite alternate-reverse;
}

.orb-ember-small {
  width: 260px;
  height: 260px;
  top: 40%;
  left: 42%;
  background: radial-gradient(circle, rgba(253, 186, 116, 0.3), transparent 70%);
  animation: orbDrift 12s -3s ease-in-out infinite alternate;
}

@keyframes orbDrift {
  from { translate: 0 0; }
  to   { translate: 46px -32px; }
}

.hero-cursor-glow {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 540px;
  height: 540px;
  margin: -270px 0 0 -270px;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.2), transparent 65%);
  transition: opacity 0.5s ease;
  will-change: transform;
}

.hero-section:hover .hero-cursor-glow { opacity: 1; }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 4;
  display: flex;
  transform: translateX(-50%);
  transition: opacity 0.4s ease;
  animation: cueIn 1s 1.8s backwards;
}

.scroll-cue.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.scroll-cue-mouse {
  position: relative;
  width: 26px;
  height: 42px;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 14px;
}

.scroll-cue-mouse span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 3px;
  height: 8px;
  margin-left: -1.5px;
  border-radius: 2px;
  background: var(--primary-color);
  animation: cueWheel 1.8s ease-in-out infinite;
}

@keyframes cueIn {
  from { opacity: 0; transform: translate(-50%, 12px); }
}

@keyframes cueWheel {
  0%   { opacity: 0; transform: translateY(0); }
  30%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

@media (max-width: 700px) {
  .hero-orb,
  .hero-cursor-glow,
  .scroll-cue { display: none; }
}


/* ==========================================================================
   4. HERO ESTIMATOR CARD: 3D TILT + GLARE
   Float now uses the `translate` property, so it no longer fights the
   tilt's `transform`.
   ========================================================================== */

@keyframes telemetryFloat {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -9px; }
}

.glass-telemetry-card.is-tilting {
  transition:
    transform 0.12s ease-out,
    box-shadow 0.45s ease,
    border-color 0.45s ease;
}

.tilt-glare {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    420px circle at var(--gx, 50%) var(--gy, 0%),
    rgba(255, 255, 255, 0.11),
    transparent 45%
  );
  transition: opacity 0.3s ease;
}

.glass-telemetry-card.is-tilting .tilt-glare { opacity: 1; }

/* The enquiry form shares this class: keep it still so it is easy to use. */
#configurator .glass-telemetry-card {
  animation: none;
}

#configurator .glass-telemetry-card:hover {
  transform: none;
}


/* ==========================================================================
   5. STANDARDS TICKER
   ========================================================================== */

.marquee-section {
  position: relative;
  background: var(--bg-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.marquee-viewport {
  padding: 22px 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.marquee-group {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  padding-left: 28px;
  white-space: nowrap;
  color: var(--text-light);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.marquee-item::after {
  content: '';
  width: 6px;
  height: 6px;
  margin-left: 28px;
  border-radius: 50%;
  background: var(--primary-color);
  box-shadow: 0 0 10px var(--primary-color);
}


/* ==========================================================================
   6. SECTION HEADINGS: DRAWN UNDERLINE + SCRUBBED PARAGRAPHS
   ========================================================================== */

.section-header h2::after {
  content: '';
  display: block;
  width: 56px;
  height: 3px;
  margin: 16px auto 4px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
  transform: scaleX(0);
  transition: transform 0.9s 0.3s var(--ease-premium);
}

.section-header.is-visible h2::after { transform: scaleX(1); }

.scrub-word {
  opacity: 0.2;
  transition: opacity 0.35s ease;
}

.scrub-word.is-lit { opacity: 1; }


/* ==========================================================================
   7. SERVICE CARDS: ROTATING LIGHT BORDER + SOFT DOT GRID BACKDROP
   ========================================================================== */

@property --beam {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

.card-3d {
  --beam: 0deg;
  border-color: transparent;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(#e2e8f0, #e2e8f0) border-box;
}

.card-3d:hover {
  border-color: transparent;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    conic-gradient(
      from var(--beam),
      rgba(249, 115, 22, 0.18),
      var(--primary-color) 18%,
      rgba(249, 115, 22, 0.18) 38%,
      rgba(249, 115, 22, 0.18)
    ) border-box;
  animation: beamSpin 3.2s linear infinite;
}

@keyframes beamSpin {
  to { --beam: 360deg; }
}

.services-section:not(#configurator)::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(15, 23, 42, 0.08) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000, transparent 70%);
}


/* ==========================================================================
   8. METRICS BAR
   ========================================================================== */

.metric-box h3 {
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 28px rgba(249, 115, 22, 0.3);
}

@media (min-width: 901px) {
  .metric-box { position: relative; }

  .metric-box + .metric-box::before {
    content: '';
    position: absolute;
    top: 12%;
    left: -15px;
    width: 1px;
    height: 76%;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  }
}


/* ==========================================================================
   9. WORKFLOW: PROGRESS LINE + ACTIVE STEPS
   ========================================================================== */

.workflow-grid { position: relative; }

.workflow-line { display: none; }

@media (min-width: 1101px) {

  .workflow-line {
    display: block;
    position: absolute;
    top: -20px;
    left: 0;
    right: 0;
    height: 2px;
    border-radius: 2px;
    background: rgba(15, 23, 42, 0.08);
    overflow: hidden;
  }

  .workflow-line span {
    display: block;
    height: 100%;
    transform: scaleX(0);
    transform-origin: 0 50%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    box-shadow: 0 0 12px rgba(249, 115, 22, 0.6);
    will-change: transform;
  }

  .workflow-step::before {
    content: '';
    position: absolute;
    top: -25px;
    left: 24px;
    width: 12px;
    height: 12px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: #e2e8f0;
    box-shadow: 0 0 0 1px #cbd5e1;
    transition: background 0.4s ease, box-shadow 0.4s ease;
  }

  .workflow-step.is-active::before {
    background: var(--primary-color);
    box-shadow: 0 0 0 1px var(--primary-color), 0 0 16px rgba(249, 115, 22, 0.7);
  }
}

.workflow-step.is-active { border-color: rgba(249, 115, 22, 0.45); }

.workflow-step.is-active .step-num { color: rgba(249, 115, 22, 0.55); }


/* ==========================================================================
   10. TECHNOLOGY EXPLORER: SLIDING TAB INDICATOR + STAGGERED PANELS
   ========================================================================== */

.tab-triggers { position: relative; }

.tab-indicator {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  border-radius: 30px;
  pointer-events: none;
  background: var(--primary-color);
  box-shadow: 0 8px 25px rgba(249, 115, 22, 0.35);
  transition:
    transform 0.45s var(--ease-premium),
    width 0.45s var(--ease-premium),
    height 0.45s var(--ease-premium);
}

.tab-triggers.has-indicator .tab-trigger {
  position: relative;
  z-index: 1;
}

.tab-triggers.has-indicator .tab-trigger:hover,
.tab-triggers.has-indicator .tab-trigger.active {
  transform: none;
}

.tab-triggers.has-indicator .tab-trigger.active {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}

.tab-content.active .tab-info h3,
.tab-content.active .tab-info p,
.tab-content.active .spec-list li,
.tab-content.active .tab-telemetry-badge {
  animation: tabItemIn 0.7s var(--ease-premium) backwards;
}

.tab-content.active .tab-info p { animation-delay: 0.08s; }
.tab-content.active .spec-list li:nth-child(1) { animation-delay: 0.16s; }
.tab-content.active .spec-list li:nth-child(2) { animation-delay: 0.22s; }
.tab-content.active .spec-list li:nth-child(3) { animation-delay: 0.28s; }
.tab-content.active .tab-telemetry-badge { animation-delay: 0.2s; }

@keyframes tabItemIn {
  from { opacity: 0; transform: translateY(16px); }
}

.badge-big { font-variant-numeric: tabular-nums; }


/* ==========================================================================
   11. BUTTONS & SCROLL-TO-TOP RING
   ========================================================================== */

.scroll-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.scroll-ring rect {
  fill: none;
  stroke: var(--primary-color);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}


/* ==========================================================================
   12. REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {

  .hero-orb,
  .scroll-cue-mouse span,
  .card-3d:hover {
    animation: none;
  }

  .hero-title .word {
    animation: none;
    transform: none;
  }

  .section-header h2::after { transform: scaleX(1); transition: none; }

  .tab-content.active .tab-info h3,
  .tab-content.active .tab-info p,
  .tab-content.active .spec-list li,
  .tab-content.active .tab-telemetry-badge {
    animation: none;
  }
}
/* Mobile overflow & header actions spacing polish */
body,
.site-main {
  overflow-x: clip;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

@media (max-width: 900px) {
  .scroll-reveal.reveal-from-left:not(.is-visible),
  .scroll-reveal.reveal-from-right:not(.is-visible) {
    transform: translateY(28px);
    filter: none;
  }

  .scroll-reveal.reveal-from-bottom:not(.is-visible),
  .scroll-reveal.reveal-zoom:not(.is-visible),
  .scroll-reveal.reveal-rotate:not(.is-visible) {
    filter: none;
  }
}

@media (max-width: 600px) {
  .header-actions {
    gap: 8px;
  }

  .site-header .header-cta {
    padding: 10px 13px;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .site-header .logo img {
    width: 148px;
    max-height: 48px;
  }
}