/* =========================================================
   EagleEase IT — experience layer
   Sits on top of styles.css. Everything here is additive: the
   pages read correctly without it, and without the script.

   Motif: the repair bench. A circuit trace runs the length of
   the page, labels are set in a diagnostic mono, and indicator
   LEDs mark each section.
   ========================================================= */
:root{
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --ember: #ff9a63;
}

/* ---------------------------------------------------------
   Utility type: eyebrows become bench labels with a status LED
   --------------------------------------------------------- */
.eyebrow{
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: .72rem;
  letter-spacing: .16em;
  display: flex;
  align-items: flex-start;
  gap: .7em;
}
.eyebrow.center{ justify-content: center; }
.eyebrow::before{
  content: "";
  flex: none;
  width: 6px; height: 6px;
  margin-top: .48em;
  border-radius: 1px;
  background: var(--red-400);
  box-shadow: 0 0 0 3px rgba(182,34,44,.18), 0 0 10px rgba(217,66,76,.85);
  animation: eeLed 2.6s ease-in-out infinite;
}
@keyframes eeLed{
  0%, 100%{ opacity: 1; }
  50%{ opacity: .35; }
}

/* ---------------------------------------------------------
   Depth: film grain over the black, soft crimson light in the
   dark bands so they never read as flat fills
   --------------------------------------------------------- */
body::after{
  content: "";
  position: fixed;
  inset: 0;
  z-index: 96;
  pointer-events: none;
  opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}
.section.dark{
  background:
    radial-gradient(55% 60% at 100% 0%, rgba(182,34,44,.075), transparent 62%),
    var(--black);
}
.section.dark:nth-of-type(even){
  background:
    radial-gradient(55% 60% at 0% 100%, rgba(182,34,44,.075), transparent 62%),
    var(--black);
}

/* ---------------------------------------------------------
   The trace — a PCB trace that draws down the page on scroll
   --------------------------------------------------------- */
main{ position: relative; }
.ee-trace{
  position: absolute;
  left: 0; top: 0;
  z-index: 3;
  pointer-events: none;
  overflow: visible;
}
.ee-trace-base{ stroke: rgba(255,255,255,.07); stroke-width: 1.5; fill: none; }
.ee-trace-live{
  stroke: var(--red-400);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 5px rgba(217,66,76,.75));
}
.ee-node .ring{
  fill: var(--black);
  stroke: rgba(255,255,255,.16);
  stroke-width: 1.5;
  transition: stroke .4s, r .4s var(--ease-out);
}
.ee-node .pad{
  fill: rgba(255,255,255,.2);
  transition: fill .4s;
}
.ee-node.is-lit .ring{ stroke: var(--red-400); }
.ee-node.is-lit .pad{ fill: var(--ember); filter: drop-shadow(0 0 6px rgba(255,154,99,.9)); }
.ee-head{ fill: #fff; filter: drop-shadow(0 0 7px rgba(255,154,99,1)); }
/* Full-bleed colour bands sit over the trace, like a trace passing under a chip. */
.cta-banner, .ticker{ position: relative; z-index: 4; }

/* ---------------------------------------------------------
   Header: tucks away on the way down, returns on the way up
   --------------------------------------------------------- */
.site-header{
  transition: transform .38s var(--ease-out), border-color var(--dur-base), box-shadow var(--dur-base);
}
.site-header.is-tucked{ transform: translateY(-102%); }

/* ---------------------------------------------------------
   Hero
   --------------------------------------------------------- */
.hero-media{ inset: -18px; }
/* a diagnostic sweep across the photo */
.hero-scan{
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-scan::before{
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: 0;
  width: 22vw;
  background: linear-gradient(90deg, transparent, rgba(217,66,76,.10) 70%, rgba(255,154,99,.28) 99%, transparent);
  transform: translateX(-30vw);
  animation: eeScan 9s cubic-bezier(.5,0,.3,1) 2.2s infinite;
}
@keyframes eeScan{
  0%{ transform: translateX(-30vw); opacity: 0; }
  6%{ opacity: 1; }
  46%{ opacity: 1; }
  52%, 100%{ transform: translateX(110vw); opacity: 0; }
}

/* Headline: each question acts out its own word before it's "fixed". */
.hero-q .ch{ display: inline-block; will-change: transform; }
.hero-q.is-dated{
  font-family: "Times New Roman", Times, serif;
  font-weight: 400;
  letter-spacing: .01em;
  color: #9d9da6;
}
.hero-caret{
  display: inline-block;
  width: .08em;
  height: .82em;
  margin-left: .06em;
  background: var(--red-400);
  vertical-align: -.06em;
  animation: eeCaret .5s steps(1) infinite;
}
@keyframes eeCaret{ 50%{ opacity: 0; } }
.hero-answer .accent{
  background: linear-gradient(100deg, var(--red-400) 0%, var(--red-400) 40%, #ffd0c2 50%, var(--red-400) 60%, var(--red-400) 100%);
  background-size: 260% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--red-400);
}
.hero-answer .accent.is-shined{
  background-position: 0% 0;
  transition: background-position 1.1s var(--ease-out);
}

.hero-cue{
  position: absolute;
  left: 50%;
  bottom: 1.4rem;
  z-index: 1;
  transform: translateX(-50%);
  display: grid;
  justify-items: center;
  gap: .5rem;
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  transition: opacity .4s;
}
.hero-cue::after{
  content: "";
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--red-400), transparent);
  transform-origin: top;
  animation: eeCue 1.9s var(--ease-out) infinite;
}
@keyframes eeCue{
  0%{ transform: scaleY(0); opacity: 1; }
  60%{ transform: scaleY(1); opacity: 1; }
  100%{ transform: scaleY(1); opacity: 0; }
}
.hero-cue.is-gone{ opacity: 0; }
@media (max-width: 900px), (max-height: 620px){ .hero-cue{ display: none; } }

/* ---------------------------------------------------------
   Headings: words rise out of a mask
   --------------------------------------------------------- */
.w{
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: .14em;
  margin-bottom: -.14em;
}
.wi{ display: inline-block; will-change: transform; }

/* ---------------------------------------------------------
   Service ticker
   --------------------------------------------------------- */
.ticker{
  overflow: hidden;
  background: #08080a;
  border-block: 1px solid rgba(255,255,255,.07);
  padding-block: .95rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.ticker-track{
  display: flex;
  width: max-content;
  will-change: transform;
}
.ticker-track.is-running{ animation: eeTicker var(--ticker-dur, 40s) linear infinite; }
@keyframes eeTicker{ to{ transform: translateX(calc(var(--ticker-w, 50%) * -1)); } }
.ticker-set{
  display: flex;
  align-items: center;
  flex: none;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ticker-set li{
  display: flex;
  align-items: center;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: .76rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #a9a9b1;
  white-space: nowrap;
}
.ticker-set li::after{
  content: "";
  width: 5px; height: 5px;
  margin-inline: 1.9rem;
  background: var(--red-500);
  transform: rotate(45deg);
  box-shadow: 0 0 8px rgba(217,66,76,.7);
}
.ticker-set li:nth-child(3n+1){ color: #fff; }

/* ---------------------------------------------------------
   Cards: a light that follows the pointer, and a slight tilt
   --------------------------------------------------------- */
.service-card, .why-card, .review-card, .feature-card, .plan-card, .contact-form{
  position: relative;
  isolation: isolate;
}
.fx-spot{
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 0%), rgba(217,66,76,.22), transparent 62%);
}
*:hover > .fx-spot{ opacity: 1; }

@media (hover: hover) and (pointer: fine){
  .theme-red .service-card.fx-tilt,
  .section.dark .feature-card.fx-tilt{
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px));
    transition: transform .28s var(--ease-out), box-shadow var(--dur-base), border-color var(--dur-base), background var(--dur-base);
  }
  .theme-red .service-card.fx-tilt:hover,
  .section.dark .feature-card.fx-tilt:hover{ --lift: -6px; }
}

/* FAQ rows warm up on hover / when open */
.faq-item{ transition: border-color var(--dur-base), background var(--dur-base); }
.faq-item:hover, .faq-item[open]{ border-color: rgba(198,43,53,.5); }
.faq-item[open]{ background: linear-gradient(180deg, rgba(182,34,44,.09), rgba(255,255,255,0) 60%), var(--black-card); }

/* ---------------------------------------------------------
   Process: a pipeline that fills as you scroll, lighting each step
   --------------------------------------------------------- */
.process-grid li::before{
  content: "";
  position: absolute;
  top: -6px; left: 0;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--black);
  border: 2px solid rgba(255,255,255,.28);
  z-index: 1;
  transition: border-color .4s, background .4s, box-shadow .4s, transform .4s var(--ease-out);
}
.process-num{ font-family: var(--font-mono); font-weight: 500; letter-spacing: -.02em; }
.js-motion .process-grid::before{ transform: scaleX(var(--p, 0)); transition: none; }
.js-motion .process-grid li .process-num{ color: rgba(217,66,76,.4); transition: color .4s, text-shadow .4s, transform var(--dur-base) var(--ease-out); }
.js-motion .process-grid li h3{ opacity: .55; transition: opacity .4s; }
.js-motion .process-grid li.is-on .process-num{ color: var(--red-400); text-shadow: 0 0 22px rgba(217,66,76,.55); }
.js-motion .process-grid li.is-on h3{ opacity: 1; }
.process-grid li.is-on::before{
  border-color: var(--red-400);
  background: var(--ember);
  box-shadow: 0 0 0 4px rgba(182,34,44,.22), 0 0 14px rgba(255,154,99,.85);
  transform: scale(1.15);
}
@media (max-width: 680px){
  .process-grid li::before{ top: 0; left: -6px; }
  .process-grid::before{ width: 2px; height: 100%; transform-origin: top; }
  .js-motion .process-grid::before{ transform: scaleY(var(--p, 0)); }
  .process-grid li.is-on{ border-left-color: transparent; }
}

/* ---------------------------------------------------------
   Builder gateway: copy on the left, a rig that assembles on scroll
   --------------------------------------------------------- */
.gateway-inner.has-rig{
  max-width: var(--container);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: var(--space-8);
  align-items: center;
  text-align: left;
}
.has-rig .gateway-lede{ margin-inline: 0; }
.has-rig .gateway-points{
  flex-direction: column;
  align-items: flex-start;
  gap: .7rem;
}
.gateway-rig{ position: relative; max-width: 520px; width: 100%; margin-inline: auto; }
.rig-svg{ width: 100%; height: auto; overflow: visible; }
.rig-svg text{
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .16em;
  fill: #8d8d98;
}
.rig-rgb{ opacity: .4; }
.gateway-rig.is-live .rig-rgb{ opacity: 1; filter: drop-shadow(0 0 5px rgba(217,66,76,.9)); }
.rig-glow{ opacity: 0; }
/* powered on: the lighting breathes */
.gateway-rig.is-live .rig-rgb{ animation: eeRigPulse 2.6s ease-in-out infinite; }
@keyframes eeRigPulse{ 50%{ opacity: .55; } }

.rig-checks{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
}
.rig-checks li{
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .38rem .7rem;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: .64rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #7d7d88;
  transition: color .3s, border-color .3s, background .3s;
}
.rig-checks li::before{
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #3a3a44;
  transition: background .3s, box-shadow .3s;
}
.rig-checks li.is-ok{ color: #fff; border-color: rgba(198,43,53,.6); background: rgba(182,34,44,.14); }
.rig-checks li.is-ok::before{ background: var(--ember); box-shadow: 0 0 9px rgba(255,154,99,.9); }

@media (max-width: 980px){
  .gateway-inner.has-rig{ grid-template-columns: minmax(0, 1fr); text-align: center; gap: var(--space-7); }
  .has-rig .eyebrow{ justify-content: center; }
  .has-rig .gateway-lede{ margin-inline: auto; }
  .has-rig .gateway-points{ align-items: center; }
  .gateway-rig{ max-width: 400px; }
}

/* ---------------------------------------------------------
   Gallery: tiles open like shutters; click to view large
   --------------------------------------------------------- */
.gallery-item{ cursor: zoom-in; }
.gallery-item:focus-visible{ outline: 2.5px solid var(--focus-ring); outline-offset: 3px; }
.gallery-item::before{
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(8,8,10,.6), transparent 45%);
  opacity: 0;
  transition: opacity var(--dur-base);
  pointer-events: none;
}
.gallery-item:hover::before{ opacity: 1; }
.gallery-zoom{
  position: absolute;
  right: .8rem; bottom: .8rem;
  z-index: 2;
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--red-500);
  color: #fff;
  opacity: 0;
  transform: translateY(8px) scale(.9);
  transition: opacity var(--dur-base), transform var(--dur-base) var(--ease-out);
  pointer-events: none;
}
.gallery-zoom svg{ width: 17px; height: 17px; }
.gallery-item:hover .gallery-zoom,
.gallery-item:focus-visible .gallery-zoom{ opacity: 1; transform: none; }

.lb{
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  grid-template-rows: 1fr auto;
  place-items: center;
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(6,6,8,.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s, visibility 0s linear .3s;
}
.lb.is-open{ opacity: 1; visibility: visible; transition: opacity .3s, visibility 0s; }
.lb-stage{
  position: relative;
  max-width: min(92vw, 880px);
  max-height: 76vh;
  aspect-ratio: 1 / 1;
  height: 100%;
}
.lb-img{
  width: 100%; height: 100%;
  object-fit: contain;
  border-radius: var(--radius-md);
  transform: scale(.94);
  opacity: 0;
  transition: transform .45s var(--ease-out), opacity .3s;
}
.lb.is-open .lb-img.is-ready{ transform: none; opacity: 1; }
.lb-bar{
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-4);
  max-width: min(92vw, 880px);
  width: 100%;
  color: #c7c7cc;
  font-size: .9rem;
}
.lb-count{ font-family: var(--font-mono); font-size: .74rem; letter-spacing: .14em; color: var(--red-400); flex: none; }
.lb-cap{ flex: 1; min-width: 0; }
.lb-btn{
  width: 46px; height: 46px;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.18);
  background: rgba(20,20,24,.7);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast);
}
.lb-btn:hover{ background: var(--red-500); border-color: var(--red-500); }
.lb-btn:active{ transform: scale(.94); }
.lb-btn svg{ width: 20px; height: 20px; }
.lb-close{ position: absolute; top: clamp(.8rem, 2.5vw, 1.6rem); right: clamp(.8rem, 2.5vw, 1.6rem); }

/* ---------------------------------------------------------
   Reviews: the five stars land one by one
   --------------------------------------------------------- */
.stars{ display: flex; gap: 3px; margin-bottom: .35rem; }
.stars svg{ width: 15px; height: 15px; color: var(--ember); filter: drop-shadow(0 0 5px rgba(255,154,99,.55)); }

/* ---------------------------------------------------------
   CTA banner: moving bench-tape stripes under the copy
   --------------------------------------------------------- */
.cta-banner{ overflow: hidden; isolation: isolate; }
.cta-banner::before{
  content: "";
  position: absolute;
  inset: -40% -10%;
  z-index: -1;
  background: repeating-linear-gradient(115deg, rgba(0,0,0,.06) 0 22px, transparent 22px 64px);
  animation: eeStripes 7s linear infinite;
}
@keyframes eeStripes{ to{ transform: translateX(71px); } }

/* ---------------------------------------------------------
   Footer: the name, written large, filling in as you arrive
   --------------------------------------------------------- */
.footer-wordmark{
  --fill: 0;
  margin: 0;
  padding: var(--space-6) var(--space-5) .06em;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(2.6rem, 13.4vw, 12.5rem);
  line-height: 1.12;
  letter-spacing: -.045em;
  text-align: center;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.14);
  background: linear-gradient(90deg, var(--red-700) 0%, var(--red-500) calc(var(--fill) * 100%), transparent calc(var(--fill) * 100%));
  -webkit-background-clip: text;
  background-clip: text;
  user-select: none;
}
.footer-wordmark + .footer-bottom{ padding-top: var(--space-4); }

/* ---------------------------------------------------------
   Buttons: a sheen crosses the primary button on hover
   --------------------------------------------------------- */
.btn-primary{ position: relative; overflow: hidden; }
.btn-primary::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.28) 50%, transparent 65%);
  transform: translateX(-130%);
  pointer-events: none;
}
.btn-primary:hover::after{ transform: translateX(130%); transition: transform .7s var(--ease-out); }

/* ---------------------------------------------------------
   Reduced motion: keep the look, drop the movement
   --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce){
  .eyebrow::before, .hero-scan::before, .hero-cue::after, .cta-banner::before,
  .ticker-track.is-running, .gateway-rig.is-live .rig-rgb{ animation: none; }
  .hero-scan, .hero-cue{ display: none; }
  .site-header.is-tucked{ transform: none; }
  .rig-rgb{ opacity: 1; }
  .rig-glow{ opacity: 1; }
  .footer-wordmark{ --fill: 1; }
}
