/* =========================================================
   NTX Home Services — service pages
   (installations.html, maintenance.html, repairs.html, upgrades.html,
   service_page_template.html and gallery.html share one layout)
   Loads after css/global.css.
   1. Layout   2. How Does Service Work?   3. Contact buttons
   4. Photo sections   5. Schedule Service buttons
   6. Full service list   7. Scroll progress   8. Motion   9. Tablets and phones
   ========================================================= */

/* Icons used only on the service pages (approved artwork in /vectors) */
.svc-icon--faucet { --icon: url('../vectors/Faucet%20Black-01.svg'); }
.svc-icon--artwork { --icon: url('../vectors/Artwork%20Black-01.svg'); }
.svc-icon--closet { --icon: url('../vectors/Closet%20Systems%20Black-01.svg'); }
.svc-icon--smart-home { --icon: url('../vectors/Smart%20Home%20Black-01.svg'); }
.svc-icon--door { --icon: url('../vectors/Door%20Black-01.svg'); }
.svc-icon--caulk { --icon: url('../vectors/Caulk%20Black-01.svg'); }
.svc-icon--paint { --icon: url('../vectors/Paint%20Roller%202%20Black-01.svg'); }
.svc-icon--fan { --icon: url('../vectors/Fan%20Black-01.svg'); }
.svc-icon--ventilation { --icon: url('../vectors/Ventilation-01.svg'); }
.svc-icon--power-washing { --icon: url('../vectors/Power%20Washing%20Black-01.svg'); }
.svc-icon--floor { --icon: url('../vectors/Floor%20Black-01.svg'); }
.svc-icon--drywall { --icon: url('../vectors/Drywall%20Black-01.svg'); }
.svc-icon--window { --icon: url('../vectors/Window%20Black-01.svg'); }
.svc-icon--accent-wall { --icon: url('../vectors/Accent%20Wall%20Black-01.svg'); }
.svc-icon--house { --icon: url('../vectors/House%20Black-01.svg'); }

/* ---------- 1. Layout ---------- */

/* Number icons for the step circles */
.svc-icon--n1 { --icon: url('../vectors/1-01.svg'); }
.svc-icon--n2 { --icon: url('../vectors/2-01.svg'); }
.svc-icon--n3 { --icon: url('../vectors/3-01.svg'); }
.svc-icon--n4 { --icon: url('../vectors/4-01.svg'); }
.svc-icon--n5 { --icon: url('../vectors/5-01.svg'); }

/* Blue gradient text */
.svc-blue-text,
.vhero__index,
.svc-slogan,
.process__detail-step {
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Process column on the left (at most 22% of the screen), photos on the right. */
.svc {
  display: grid;
  grid-template-columns: minmax(17rem, 22%) minmax(0, 1fr);
  align-items: start;
  background: var(--color-bg);
}

/* ---------- 2. How Does Service Work? ---------- */

.svc-process {
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
  height: calc(100svh - var(--header-h));
  /* Short screens: the column scrolls on its own instead of cutting off the buttons. */
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
  background:
    radial-gradient(120% 60% at 0% 0%, rgba(246, 162, 29, 0.07) 0%, rgba(246, 162, 29, 0) 60%),
    linear-gradient(180deg, #11151a 0%, #0d1014 100%);
  /* Divider: a hairline with an orange accent at the middle, fading at both ends. */
  border-right: 1px solid;
  border-image: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.16) 20%, rgba(246, 162, 29, 0.55) 50%, rgba(255, 255, 255, 0.16) 80%, rgba(255, 255, 255, 0) 100%) 1;
}

.svc-process__inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: clamp(1.5rem, 3vh, 2.5rem) clamp(1.25rem, 1.8vw, 2rem);
}

.svc-process__title {
  margin-top: 0.6rem;
  font-size: clamp(1.75rem, 1.1rem + 1.3vw, 2.5rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

/* Timeline */
@property --ring-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 135deg;
}

@keyframes ring-spin { to { --ring-angle: 495deg; } }

.process {
  --bubble: 3rem;
  --fill: 0;
  position: relative;
  margin: clamp(1.25rem, 3vh, 2.25rem) 0 0;
  padding: 0;
  list-style: none;
}

/* The connecting line runs from the first circle's center to the last one's,
   and fills with orange up to the selected step. */
.process::before,
.process::after {
  content: '';
  position: absolute;
  top: calc(var(--step-pad) + var(--bubble) / 2);
  bottom: calc(var(--step-pad) + var(--bubble) / 2);
  left: calc(var(--bubble) / 2 - 0.5px);
  width: 1px;
}
.process { --step-pad: clamp(0.4rem, 1vh, 0.65rem); }
.process::before { background: rgba(255, 255, 255, 0.14); }
.process::after {
  width: 2px;
  margin-left: -0.5px;
  background: linear-gradient(180deg, var(--orange-start), var(--orange-end));
  transform: scaleY(var(--fill));
  transform-origin: top;
  transition: transform 0.6s var(--ease);
}

.process__step { position: relative; z-index: 1; padding-block: var(--step-pad); }

.process__trigger {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
}
.process__trigger:focus-visible { outline-offset: 6px; }

/* Circle: grows on hover, and a second ring with a gap spins its gradient around it,
   like the job tags on the Jobs page. Sizes change through inset and width (not scale)
   so the number stays sharp the whole time. */
.process__bubble {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: var(--bubble);
  height: var(--bubble);
}
.process__bubble::before,
.process__bubble::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  transition: inset 0.45s var(--ease), opacity 0.4s var(--ease), background-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.process__bubble::before {
  inset: 0;
  background: #171c22;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}
.process__bubble::after {
  inset: 0;
  padding: 1.5px;
  background: conic-gradient(from var(--ring-angle), var(--orange-start), var(--orange-end), rgba(236, 100, 35, 0.15), var(--orange-start));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  opacity: 0;
}

/* The number follows the label color: grey, then white when selected. */
.process__bubble .icon {
  position: relative;
  width: 1.35rem;
  height: 1.35rem;
  background: rgba(255, 255, 255, 0.5);
  transition: background-color 0.4s var(--ease), width 0.45s var(--ease), height 0.45s var(--ease);
}

.process__step.is-active .process__bubble::before,
.process__trigger:hover .process__bubble::before {
  inset: -0.2rem;
  background: #1d232a;
  box-shadow: inset 0 0 0 1px rgba(246, 162, 29, 0.45), 0 10px 26px rgba(0, 0, 0, 0.45);
}
.process__step.is-active .process__bubble .icon,
.process__trigger:hover .process__bubble .icon { width: 1.55rem; height: 1.55rem; background: #fff; }
.process__step.is-active .process__bubble::after,
.process__trigger:hover .process__bubble::after { inset: -0.65rem; opacity: 1; }
.process__trigger:hover .process__bubble::after,
.process.is-auto .process__step.is-active .process__bubble::after { animation: ring-spin 1.6s linear infinite; } /* also spins while the steps advance on their own */

/* Labels: the selected step reads larger and brighter, the rest step back. */
.process__label {
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: rgba(255, 255, 255, 0.5);
  transform-origin: left center;
  transition: color 0.4s var(--ease), transform 0.45s var(--ease);
}
/* The circles show the step numbers, so this small label is hidden. Delete "display: none" to bring it back. */
.process__num {
  display: none;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.35);
  transition: color 0.4s var(--ease);
}
.process__name {
  font-family: var(--font-heading);
  font-size: clamp(0.9rem, 0.8rem + 0.2vw, 1rem);
  font-weight: 500;
  line-height: 1.22;
}
.process__step.is-active .process__label,
.process__trigger:hover .process__label { color: #fff; }
.process__step.is-active .process__label { transform: translateX(0.2rem) scale(1.06); }
.process__step.is-active .process__num { color: var(--orange-start); }

/* Description: every step's text sits in the same grid cell and cross-fades. */
.process__details {
  display: grid;
  margin-top: clamp(1rem, 2.4vh, 1.75rem);
  padding: 0.95rem 1.05rem 1rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
}
.process__detail {
  grid-area: 1 / 1;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.97) translateY(4px);
  transform-origin: left top;
  transition: opacity 0.35s var(--ease), transform 0.5s var(--ease), visibility 0s 0.35s;
}
.process__detail.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.45s var(--ease) 0.08s, transform 0.55s var(--ease) 0.08s, visibility 0s;
}
/* "Step 01 of 05" shows on phones; desktop shows the step's title in blue instead. */
.process__detail-step {
  display: none;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.process__detail-title {
  font-size: 1.0625rem;
  font-weight: 500;
  line-height: 1.25;
  background: var(--gradient-blue);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.process__detail-text {
  margin-top: 0.4rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(0.875rem, 0.8rem + 0.2vw, 1rem);
  line-height: 1.5;
}

/* ---------- 3. Contact buttons (same fill as the Jobs page Job Description buttons) ---------- */

.process-ctas {
  display: grid;
  gap: 0.6rem;
  margin: auto 0 0;
  padding: clamp(1.25rem, 3vh, 2rem) 0 0;
  list-style: none;
}

.process-cta {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  min-height: 3.25rem;
  padding: 0.6rem 1.1rem;
  overflow: hidden;
  border: 1.5px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  color: #fff;
  font-weight: var(--weight-label);
  letter-spacing: 0.02em;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.35s var(--ease), color 0.35s var(--ease);
}
.process-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--gradient-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.process-cta .icon { width: 1.35rem; height: 1.35rem; transition: background 0.35s var(--ease); }
.process-cta__arrow { display: inline-block; transition: transform 0.35s var(--ease); }

.process-cta:hover { border-color: var(--orange-end); }
.process-cta:hover::before { transform: scaleX(1); }
.process-cta:hover .icon { background: #fff; }
.process-cta:hover .process-cta__arrow { transform: translateX(5px); }

/* Desktop: the three buttons stack, as wide as the text card above. Phones: one compact row (section 9). */
.process-ctas { gap: 0.5rem; }

/* Desktop screens of average height and shorter: tighter spacing so the whole column fits. */
@media (min-width: 60.01rem) and (max-height: 60rem) {
  .process { --bubble: 2.6rem; --step-pad: 0.4rem; margin-top: 1rem; }
  .process__bubble .icon { width: 1.25rem; height: 1.25rem; }
  .svc-process__inner { padding-block: 1rem 0.9rem; }
  .svc-process__title { font-size: clamp(1.5rem, 1rem + 1vw, 2rem); }
  .process__details { margin-top: 0.85rem; padding: 0.8rem 1rem 0.85rem; }
  .process-ctas { padding-top: 0.85rem; gap: 0.4rem; }
  .process-ctas .process-cta { min-height: 2.75rem; padding-block: 0.4rem; }
}

/* ---------- 4. Photo sections ---------- */

.svc-showcase { position: relative; min-width: 0; container-type: inline-size; }

/* Each section is as tall as its photo at the column's width (photos are 2000 × 1116),
   and grows if the text needs more room. */
.vhero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: max(30rem, 55.8cqi);
  overflow: hidden;
  background: #0b0d10;
}
.vhero + .vhero { border-top: 1px solid rgba(255, 255, 255, 0.08); }

/* The photo is a little taller than its section so it can drift while scrolling. */
.vhero__media { position: absolute; inset: -6% 0; z-index: -2; will-change: transform; }
.vhero__media img { width: 100%; height: 100%; object-fit: cover; }

.vhero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.vhero__content {
  position: relative;
  max-width: 40rem;
  padding: clamp(2rem, 5vw, 4.5rem);
}

/* Small editorial label: number, hairline, category */
/* "NTX HOME SERVICES" in the blue gradient above each headline */
.vhero__index {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, 0.7)) drop-shadow(0 1px 12px rgba(0, 0, 0, 0.5));
}
.vhero__index--orange { background-image: var(--gradient-orange); }

/* Schedule Service switch (data-schedule-button on the section) */
.vhero[data-schedule-button='hide'] .v3-btn { display: none; }

/* Numbered white label (gallery.html) */
.vhero__index--plain { background: none; color: rgba(255, 255, 255, 0.82); }
.vhero__index span {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--orange-start);
}
.vhero__index span::after {
  content: '';
  width: 2.25rem;
  height: 1px;
  background: rgba(255, 255, 255, 0.45);
}

.vhero__title {
  margin-top: 1.1rem;
  font-size: clamp(2.5rem, 1.2rem + 3.1vw, 4.75rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.035em;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25);
}

.vhero__text {
  max-width: 32rem;
  margin-top: 1.25rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 0.94rem + 0.25vw, 1.1875rem);
  line-height: 1.6;
}

.vhero .v3-btn { margin-top: 2rem; }

/* 1. Primary: text low on the left, over a deep bottom-left shade. */
.vhero--primary { align-items: flex-end; }
.vhero--primary .vhero__media img { object-position: 50% 55%; }
.vhero--primary::before {
  background:
    linear-gradient(0deg, rgba(8, 10, 12, 0.92) 0%, rgba(8, 10, 12, 0.55) 38%, rgba(8, 10, 12, 0) 68%),
    linear-gradient(90deg, rgba(8, 10, 12, 0.55) 0%, rgba(8, 10, 12, 0) 55%);
}
.vhero--primary .vhero__content { max-width: 48rem; }
.vhero--primary .vhero__title { font-size: clamp(2.75rem, 1.2rem + 3.8vw, 5.5rem); }

/* 2. Fixtures: text high on the left, over the dark ceiling beams. */
.vhero--fixtures { align-items: flex-start; }
.vhero--fixtures .vhero__media img { object-position: 70% 50%; }
.vhero--fixtures::before {
  background:
    linear-gradient(180deg, rgba(8, 10, 12, 0.82) 0%, rgba(8, 10, 12, 0.45) 40%, rgba(8, 10, 12, 0) 65%),
    linear-gradient(90deg, rgba(8, 10, 12, 0.6) 0%, rgba(8, 10, 12, 0) 50%);
}

/* 3. Mount: text right-aligned over the right side of the photo. */
.vhero--mount { align-items: center; justify-content: flex-end; text-align: right; }
.vhero--mount .vhero__media img { object-position: 35% 50%; }
.vhero--mount::before {
  background:
    linear-gradient(270deg, rgba(8, 10, 12, 0.9) 0%, rgba(8, 10, 12, 0.62) 32%, rgba(8, 10, 12, 0) 62%),
    linear-gradient(0deg, rgba(8, 10, 12, 0.45) 0%, rgba(8, 10, 12, 0) 40%);
}
.vhero--mount .vhero__content { display: flex; flex-direction: column; align-items: flex-end; }
.vhero--mount .vhero__text { margin-left: auto; }

/* gallery.html shows the section at about the width it had in the photo column. */
.gallery-demo { max-width: 72rem; margin-inline: auto; }

/* Gallery version (gallery.html): a dark plate overlaps the changing photos. */
.vhero--gallery { align-items: center; background: #0e1115; }
.vgallery {
  position: absolute;
  inset: clamp(1.5rem, 3vw, 2.5rem) 0 clamp(1.5rem, 3vw, 2.5rem) 34%;
  overflow: hidden;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}
.vgallery__slides { position: absolute; inset: 0; }
.vgallery__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.2s var(--ease), transform 7s linear;
}
.vgallery__slide.is-active { opacity: 1; transform: scale(1.12); }
.vgallery__slide:nth-child(3) { object-position: 55% 50%; }

.vgallery::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(14, 17, 21, 0.55) 0%, rgba(14, 17, 21, 0) 30%), linear-gradient(0deg, rgba(8, 10, 12, 0.6) 0%, rgba(8, 10, 12, 0) 30%);
  pointer-events: none;
}

.vgallery__thumbs {
  position: absolute;
  right: clamp(1rem, 2.5vw, 2rem);
  bottom: clamp(1rem, 2.5vw, 2rem);
  z-index: 1;
  display: flex;
  gap: 0.6rem;
}
.vgallery__thumb {
  position: relative;
  width: clamp(4.5rem, 7vw, 6.5rem);
  aspect-ratio: 16 / 10;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0.375rem;
  background: #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25), 0 8px 20px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.vgallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.vgallery__thumb:hover { opacity: 0.9; transform: translateY(-2px); }
.vgallery__thumb.is-active { opacity: 1; box-shadow: 0 0 0 1.5px var(--orange-start), 0 8px 20px rgba(0, 0, 0, 0.4); }
.vgallery__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: var(--gradient-orange);
  transform: scaleX(0);
  transform-origin: left;
}

.vhero__plate {
  z-index: 1;
  width: min(30rem, 44%);
  margin-left: clamp(1.5rem, 3vw, 2.5rem);
  padding: clamp(1.75rem, 3vw, 2.75rem);
  border-radius: var(--radius-lg);
  background: rgba(17, 21, 26, 0.86);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 30px 60px rgba(0, 0, 0, 0.45);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
  backdrop-filter: blur(18px) saturate(130%);
}
.vhero__plate .vhero__title { font-size: clamp(2.25rem, 1.2rem + 2.4vw, 4rem); }
/* Orange brand accent along the plate's top edge */
.vhero__plate::before {
  content: '';
  position: absolute;
  top: 0;
  left: clamp(1.75rem, 3vw, 2.75rem);
  width: 3rem;
  height: 2px;
  background: var(--gradient-orange);
}

/* 4. Explore: centered, low, with the arrow that opens the full list. */
.vhero--explore { align-items: flex-end; justify-content: center; text-align: center; }
.vhero--explore .vhero__media img { object-position: 60% 50%; }
.vhero--explore::before {
  background:
    radial-gradient(60% 55% at 50% 72%, rgba(8, 10, 12, 0.55) 0%, rgba(8, 10, 12, 0) 100%),
    linear-gradient(0deg, rgba(8, 10, 12, 0.94) 0%, rgba(8, 10, 12, 0.66) 45%, rgba(8, 10, 12, 0.2) 75%, rgba(8, 10, 12, 0) 90%);
}
.vhero--explore .vhero__content { display: flex; flex-direction: column; align-items: center; max-width: 46rem; }
.vhero--explore .vhero__index { justify-content: center; }
.vhero--explore .vhero__text { margin-inline: auto; }
.vhero--explore:focus { outline: none; }

.explore-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  margin-top: 2rem;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
}
.explore-toggle__circle {
  position: relative;
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: rgba(16, 19, 23, 0.4);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: background-color 0.35s var(--ease), box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}
/* View All Services is blue: a blue outline and arrow that fill with the blue gradient on hover. */
.explore-toggle__circle { color: var(--blue-start); box-shadow: inset 0 0 0 1.5px var(--blue-start); }
.explore-toggle__label { color: var(--blue-start); }
.explore-toggle__circle svg { width: 1.6rem; height: 1.6rem; transition: transform 0.5s var(--ease); }
.explore-toggle:hover .explore-toggle__circle {
  background: var(--gradient-blue);
  color: #fff;
  box-shadow: inset 0 0 0 1.5px transparent, 0 14px 34px rgba(17, 112, 140, 0.45);
  transform: translateY(2px);
}
.explore-toggle[aria-expanded='true'] .explore-toggle__circle svg { transform: rotate(180deg); }

/* ---------- 5. Schedule Service buttons: one shape, a different hover on each photo ---------- */

.v3-btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 3.4rem;
  padding: 0.8rem 1.6rem 0.8rem 1.3rem;
  overflow: hidden;
  border-radius: var(--radius-sm);
  color: #fff;
  font-size: 1rem;
  font-weight: var(--weight-label);
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), color 0.3s var(--ease);
}
.v3-btn .icon { width: 1.25rem; height: 1.25rem; background: #fff; transition: background 0.3s var(--ease); }
.v3-btn::before,
.v3-btn::after { content: ''; position: absolute; z-index: -1; pointer-events: none; }

/* A. Glass button that fills with orange from the left; the phone gives a small ring. */
.v3-btn--sweep {
  background: rgba(16, 19, 23, 0.35);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.4);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}
.v3-btn--sweep::before {
  inset: 0;
  background: var(--gradient-orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.v3-btn--sweep:hover { box-shadow: inset 0 0 0 1.5px transparent, 0 14px 34px rgba(236, 100, 35, 0.35); }
.v3-btn--sweep:hover::before { transform: scaleX(1); }

@keyframes phone-ring {
  0%, 100% { transform: rotate(0); }
  20%, 60% { transform: rotate(-14deg); }
  40%, 80% { transform: rotate(14deg); }
}

/* B. Blue: the gradient slides to its darker side while rings pulse outward, like a phone ringing. */
.v3-btn--ripple {
  overflow: visible;
  background: linear-gradient(135deg, var(--blue-start) 0%, var(--blue-end) 50%, var(--blue-start) 100%);
  background-size: 200% 100%;
  background-position: 0% 0;
  box-shadow: 0 10px 30px rgba(17, 112, 140, 0.35);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
  transition: background-position 0.6s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.v3-btn--ripple::before,
.v3-btn--ripple::after {
  inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 1.5px var(--blue-start);
  opacity: 0;
}
.v3-btn--ripple:hover { background-position: 100% 0; box-shadow: 0 14px 34px rgba(17, 112, 140, 0.5); }

/* Blue version of D (Explore section) */
.v3-btn--blue::before { background: var(--gradient-blue); }
.v3-btn--blue:hover { box-shadow: inset 0 0 0 1.5px transparent, 0 14px 34px rgba(17, 112, 140, 0.45); }

/* C. Solid orange with a band of light passing across. */
.v3-btn--shine {
  background: var(--gradient-orange);
  color: var(--color-text-dark);
  box-shadow: 0 10px 30px rgba(236, 100, 35, 0.3);
}
.v3-btn--shine .icon { background: var(--color-text-dark); }
.v3-btn--shine::after {
  z-index: 0;
  top: 0;
  bottom: 0;
  left: 0;
  width: 45%;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.55) 50%, rgba(255, 255, 255, 0) 100%);
  transform: translateX(-130%) skewX(-18deg);
}
.v3-btn--shine:hover { box-shadow: 0 14px 36px rgba(236, 100, 35, 0.45); transform: scale(1.02); }
.v3-btn--shine:hover::after { transform: translateX(330%) skewX(-18deg); transition: transform 0.85s var(--ease); }

/* D. The orange circle behind the phone icon grows to fill the button. */
.v3-btn--grow {
  padding-left: 0.55rem;
  background: rgba(16, 19, 23, 0.4);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.35);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}
.v3-btn--grow .icon { margin: 0 0.35rem 0 0.75rem; }
.v3-btn--grow::before {
  inset: 0;
  background: var(--gradient-orange);
  clip-path: circle(1.2rem at 1.9rem 50%);
  transition: clip-path 0.55s var(--ease);
}
.v3-btn--grow:hover { box-shadow: inset 0 0 0 1.5px transparent, 0 14px 34px rgba(236, 100, 35, 0.35); }
.v3-btn--grow:hover::before { clip-path: circle(150% at 1.9rem 50%); }

/* ---------- 6. Full service list ---------- */

.svc-more {
  display: grid;
  grid-template-rows: 0fr;
  background:
    radial-gradient(80% 50% at 100% 0%, rgba(74, 193, 235, 0.06) 0%, rgba(74, 193, 235, 0) 60%),
    #0e1115;
  transition: grid-template-rows 0.7s var(--ease);
}
.svc-more.is-open { grid-template-rows: 1fr; }
.svc-more__inner { min-height: 0; overflow: hidden; }
.svc-more:not(.is-open) .svc-more__inner { visibility: hidden; transition: visibility 0s 0.7s; }

.svc-more__content {
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4.5rem) clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid rgba(246, 162, 29, 0.35);
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity 0.5s var(--ease), transform 0.7s var(--ease);
}
.svc-more.is-open .svc-more__content { opacity: 1; transform: none; transition-delay: 0.15s; }

.svc-more__title {
  margin-top: 0.6rem;
  font-size: clamp(2rem, 1.2rem + 2vw, 3.25rem);
  font-weight: 500;
  letter-spacing: -0.03em;
}

.svc-groups {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: clamp(2rem, 4vw, 3rem);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}
@media (min-width: 100rem) {
  .svc-groups { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
/* Six groups: three across on wide screens. Two groups: always side by side. */
@media (min-width: 80rem) {
  .svc-groups--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 100rem) {
  .svc-groups--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.svc-group {
  padding: clamp(1.5rem, 2.6vw, 2.25rem);
  background: #12161b;
  transition: background-color 0.35s var(--ease);
}
.svc-group:hover { background: #151a20; }
.svc-group .icon { width: 2.5rem; height: 2.5rem; }
.svc-group__title { margin-top: 1.1rem; font-size: 1.3rem; font-weight: 500; }

/* Diamond bullets, the same as the homepage ribbon */
.svc-list { margin: 1rem 0 0; padding: 0; list-style: none; }
.svc-list li {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  padding-block: 0.4rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.975rem;
}
.svc-list li + li { border-top: 1px solid rgba(255, 255, 255, 0.05); }
.svc-list li::before {
  content: '';
  flex: none;
  width: 0.4rem;
  height: 0.4rem;
  background: var(--gradient-orange);
  transform: translateY(-0.12rem) rotate(45deg);
}

/* Columns 2 and 4 use the blue gradient for the icon and bullets. */
.svc-group--blue .icon,
.svc-group--blue .svc-list li::before { background: var(--gradient-blue); }

.svc-slogan {
  display: block;
  width: fit-content;
  margin: clamp(2.5rem, 5vw, 3.5rem) auto 0;
  font-family: var(--font-heading);
  font-size: clamp(1.125rem, 0.9rem + 1vw, 1.75rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.1em;
  text-align: center;
  text-transform: uppercase;
}

/* Four photos, no text */
.svc-photos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.6rem, 1.2vw, 1rem);
  margin: clamp(2rem, 4vw, 3rem) 0 0;
  padding: 0;
  list-style: none;
}
.svc-photos li { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: #000; }
.svc-photos img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease), opacity 1s var(--ease); }

/* Slideshow: the photos stack and cross-fade. */
.svc-photos img + img { position: absolute; inset: 0; }
.svc-photos li.is-slideshow img { opacity: 0; }
.svc-photos li.is-slideshow img.is-active { opacity: 1; }
.svc-photos li:hover img { transform: scale(1.06); }

/* Have Something Else in Mind? sits below the list, so it shows whether the list is open or not. */
.svc-final-wrap {
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 5vw, 4.5rem);
  background: #0e1115;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.svc-final {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(2rem, 4vw, 3rem) 1.5rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.015) 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  text-align: center;
}
.svc-final__title { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.25rem); font-weight: 500; letter-spacing: -0.02em; }
.svc-final__text { max-width: 36rem; margin-top: 0.75rem; color: var(--color-text-muted); text-wrap: balance; }
.svc-final__cta { justify-content: center; width: auto; min-width: 16rem; margin-top: 1.75rem; }

.svc-more__close {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: clamp(3rem, 6vw, 4.5rem) auto 0;
  padding: 0.6rem 0;
  border: 0;
  border-bottom: 1.5px solid var(--orange-start);
  background: none;
  color: #fff;
  font-weight: var(--weight-label);
  cursor: pointer;
}
.svc-more__close:hover { color: var(--orange-start); }
.svc-more__close .chevron { width: 0.75rem; }

/* ---------- 7. Scroll progress for the photo column ---------- */

/* A taller version of the v2 hero scroll line, along the right edge of the photos. */
.showcase-progress {
  --p: 0;
  position: fixed;
  top: calc(var(--header-h) + (100vh - var(--header-h)) / 2);
  right: clamp(0.75rem, 1.4vw, 1.25rem);
  z-index: 5;
  width: 2px;
  height: min(42vh, 22rem);
  overflow: hidden;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.22);
  opacity: 0;
  transform: translateY(-50%);
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.showcase-progress.is-visible { opacity: 1; }
.showcase-progress span {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--orange-start), var(--orange-end));
  transform: scaleY(var(--p));
  transform-origin: top;
}

/* ---------- 8. Motion: each photo section enters its own way ---------- */

@media (prefers-reduced-motion: no-preference) {
  .vhero[data-reveal] .vhero__content > * {
    opacity: 0;
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease), clip-path 1s var(--ease);
  }
  .vhero.is-in .vhero__content > * { opacity: 1; transform: none; filter: none; }
  .vhero.is-in .vhero__content > :nth-child(2) { transition-delay: 0.1s; }
  .vhero.is-in .vhero__content > :nth-child(3) { transition-delay: 0.22s; }
  .vhero.is-in .vhero__content > :nth-child(4) { transition-delay: 0.34s; }
  .vhero.is-in .vhero__content > :nth-child(5) { transition-delay: 0.46s; }

  /* 1. Rise into place while the photo settles from a slow zoom. */
  .vhero--primary .vhero__content > * { transform: translateY(1.75rem); }
  .vhero--primary .vhero__media img { transform: scale(1.08); transition: transform 2.4s var(--ease); }
  .vhero--primary.is-in .vhero__media img { transform: none; }

  /* 2. Slide in from the left, out of a soft blur. */
  .vhero--fixtures .vhero__content > * { transform: translateX(-2.5rem); filter: blur(6px); }

  /* 3. The plate unveils from the left, then its text follows. */
  .vhero--gallery .vhero__plate { clip-path: inset(0 100% 0 0 round var(--radius-lg)); transition: clip-path 1.1s var(--ease); }
  .vhero--gallery.is-in .vhero__plate { clip-path: inset(0 0 0 0 round var(--radius-lg)); }
  .vhero--gallery .vhero__content > * { transform: translateY(0.75rem); }
  .vhero--gallery.is-in .vhero__content > * { transition-delay: 0.45s; }
  .vhero--gallery.is-in .vhero__content > :nth-child(3) { transition-delay: 0.55s; }
  .vhero--gallery.is-in .vhero__content > :nth-child(4) { transition-delay: 0.65s; }
  .vhero--gallery .vgallery { clip-path: inset(0 0 0 100%); transition: clip-path 1.3s var(--ease) 0.15s; }
  .vhero--gallery.is-in .vgallery { clip-path: inset(0 0 0 0); }

  /* 4. Scale up gently from the center. */
  .vhero--explore .vhero__content > * { transform: scale(0.94); }

  /* Phone ring on the first button */
  .v3-btn--sweep:hover .icon { animation: phone-ring 0.7s var(--ease); }

  /* Pulsing rings on the blue Fixtures button */
  .v3-btn--ripple:hover::before { animation: btn-ripple 1.4s var(--ease) infinite; }
  .v3-btn--ripple:hover::after { animation: btn-ripple 1.4s var(--ease) 0.7s infinite; }

  /* 3. Mount: the text glides in from the right. */
  .vhero--mount .vhero__content > * { transform: translateX(2.5rem); }

  /* The arrow bobs until the list is opened. */
  @keyframes arrow-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
  .explore-toggle[aria-expanded='false'] .explore-toggle__circle svg { animation: arrow-bob 2.2s var(--ease) infinite; }
  .explore-toggle:hover .explore-toggle__circle svg { animation: none; }

  /* Gallery thumbnail timer */
  @keyframes gallery-timer { to { transform: scaleX(1); } }
  .vgallery.is-playing .vgallery__thumb.is-active .vgallery__bar { animation: gallery-timer 6s linear forwards; }
  .vgallery.is-paused .vgallery__thumb.is-active .vgallery__bar { animation-play-state: paused; }
}

@media (prefers-reduced-motion: reduce) {
  .vgallery__slide { transition: opacity 0.4s; transform: none; }
  .vgallery__slide.is-active { transform: none; }
  .process__label,
  .process__detail,
  .process__bubble { transition-duration: 0.01s; }
}

/* ---------- 9. Tablets and phones: one column, process after the first photo ---------- */

@media (max-width: 60rem) {
  .svc { display: flex; flex-direction: column; }
  .svc-showcase { display: contents; }
  .vhero--primary { order: 1; }
  .svc-process { order: 2; }
  .vhero:not(.vhero--primary),
  .svc-more,
  .svc-final-wrap { order: 3; }
  .showcase-progress { display: none; }

  .svc-process {
    position: static;
    height: auto;
    overflow: visible;
    border: 0;
    border-block: 1px solid rgba(255, 255, 255, 0.08);
    border-image: none;
  }
  .svc-process__inner { padding: 2.5rem var(--gutter) 2.25rem; }

  /* Timeline turns sideways: five circles in a row. */
  .process { --bubble: 3rem; --step-pad: 0.6rem; display: flex; margin-top: 1.5rem; }
  .process__step { flex: 1; display: flex; justify-content: center; }
  .process::before,
  .process::after {
    top: calc(var(--step-pad) + var(--bubble) / 2);
    bottom: auto;
    left: 10%;
    right: 10%;
    width: auto;
    height: 1px;
    margin: 0;
  }
  .process::after {
    height: 2px;
    margin-top: -0.5px;
    background: linear-gradient(90deg, var(--orange-start), var(--orange-end));
    transform: scaleX(var(--fill));
    transform-origin: left;
  }
  .process__trigger { justify-content: center; width: auto; }
  .process__label {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .process__details { margin-top: 1.25rem; }
  .process__detail-step { display: block; }
  .process__detail-title { margin-top: 0.35rem; font-size: 1.25rem; background: none; color: #fff; }

  /* Three buttons in one compact row, icon above label */
  .process-ctas { grid-template-columns: repeat(3, minmax(0, 1fr)); padding-top: 1.25rem; }
  .process-ctas .process-cta {
    flex-direction: column;
    justify-content: center;
    gap: 0.45rem;
    min-height: 5rem;
    padding: 0.75rem 0.3rem;
    font-size: 0.875rem;
    line-height: 1.3;
    text-align: center;
  }

  .vhero { min-height: clamp(32rem, 82svh, 48rem); }
  .vhero--primary { min-height: min(calc(100svh - var(--header-h)), 48rem); }
  .vhero__media { inset: 0; }

  /* Gallery: photos on top, plate underneath. */
  .vhero--gallery { flex-direction: column; align-items: stretch; min-height: 0; }
  .vgallery { position: relative; inset: auto; aspect-ratio: 4 / 3; border-radius: 0; }
  .vhero__plate {
    width: auto;
    margin: -2.5rem var(--gutter) var(--gutter);
    padding: 1.75rem;
  }

  .svc-photos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 47.99rem) {
  .vhero__content { padding: 2rem var(--gutter) 2.5rem; }
  .vhero--fixtures .vhero__media img { object-position: 78% 50%; }
  .vhero--fixtures { align-items: flex-end; }
  .vhero--fixtures::before {
    background: linear-gradient(0deg, rgba(8, 10, 12, 0.92) 0%, rgba(8, 10, 12, 0.5) 45%, rgba(8, 10, 12, 0) 75%);
  }
  .vhero--mount { align-items: flex-end; }
  .vhero--mount::before {
    background: linear-gradient(0deg, rgba(8, 10, 12, 0.92) 0%, rgba(8, 10, 12, 0.5) 45%, rgba(8, 10, 12, 0) 75%);
  }
  .vhero .v3-btn { width: 100%; justify-content: center; }
  .vhero .v3-btn--grow { width: auto; }
  .svc-groups { grid-template-columns: 1fr; }
  .vgallery__thumb { width: 4rem; }
}
