/*
Theme Name: Modulus Makers Child
Theme URI: https://modulusmakers.com
Description: Custom child theme for Modulus Makers website redesign.
Author: Modulus Makers
Template: elevatebiz
Version: 1.0.0
Text Domain: modulus-child
*/

/* Child theme base styles can go here. */

/* Hide default theme page title/header area on the custom homepage */
body:not(.wp-admin) .page .entry-header,
body:not(.wp-admin) .page-header,
body:not(.wp-admin) .entry-header,
body:not(.wp-admin) .wp-block-post-title,
body:not(.wp-admin) h1.entry-title,
body:not(.wp-admin) h1.wp-block-post-title,
body:not(.wp-admin) .main-title,
body:not(.wp-admin) .page-title {
  display: none !important;
}

/* Remove extra theme spacing around the page content */
body:not(.wp-admin) .site-content,
body:not(.wp-admin) .content-area,
body:not(.wp-admin) main,
body:not(.wp-admin) #primary,
body:not(.wp-admin) #content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* Custom homepage experience */
#modulus-home-experience {
  position: relative;
  min-height: 400vh;
  background: #000 !important;
  color: #fff;
  overflow: hidden;
}

/* Fixed 3D canvas */
#modulus-3d-canvas {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  display: block !important;
  z-index: 1 !important;
  pointer-events: auto;
}

/* Text/content layer above the canvas */
#modulus-ui-layer {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.modulus-scroll-panel {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8vw;
}

.modulus-copy {
  max-width: 720px;
  pointer-events: auto;
}

.modulus-copy .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #5be7ff;
  font-size: 0.82rem;
  margin-bottom: 1rem;
}

.modulus-copy h1,
.modulus-copy h2 {
  font-size: clamp(3rem, 8vw, 8rem);
  line-height: 0.95;
  margin: 0 0 1.5rem;
  color: #ffffff;
}

.modulus-copy p {
  font-size: clamp(1rem, 1.4vw, 1.3rem);
  line-height: 1.6;
  color: #c9ced8;
}

#capabilities-node {
  position: fixed;
  right: 5vw;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  pointer-events: auto;
  opacity: 1;
}

#capabilities-toggle {
  background: rgba(91, 231, 255, 0.12);
  color: white;
  border: 1px solid rgba(91, 231, 255, 0.7);
  border-radius: 999px;
  padding: 0.9rem 1.3rem;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

#capabilities-list {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid rgba(91, 231, 255, 0.35);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(18px);
  border-radius: 1rem;
  display: grid;
  gap: 0.5rem;
  transform: scale(0.92);
  opacity: 0;
  transition: all 0.3s ease;
}

#capabilities-node:hover #capabilities-list {
  transform: scale(1);
  opacity: 1;
}

#capabilities-list span {
  color: #dfefff;
  font-size: 0.95rem;
}

/* ============================================================
   WORD REVEAL OVERLAY
   Invisible text becomes visible only inside reveal boxes.
   The Three.js file controls wording, motion, colors, and boxes.
============================================================ */

#modulus-home-experience {
  position: relative;
}

#modulus-word-reveal-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  overflow: hidden;
}

#modulus-word-base {
  position: absolute;
  white-space: pre;
  pointer-events: none;
  user-select: none;
  will-change: transform, opacity;
}

.modulus-word-text,
.modulus-reveal-text {
  font-family: inherit;
  font-size: clamp(48px, 8vw, 160px);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 0.92;
  white-space: pre;
}

.modulus-reveal-box {
  position: absolute;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
  will-change: transform;
}

.modulus-reveal-box.debug {
  outline: 1px solid rgba(117, 247, 255, 0.8);
  background: rgba(117, 247, 255, 0.08);
}

.modulus-reveal-text {
  position: absolute;
  pointer-events: none;
  user-select: none;
}

/* ============================================================
   HELP BUBBLE / CAPABILITIES OVERRIDE
   Reuses #capabilities-node, #capabilities-toggle, and #capabilities-list.
   The Three.js file changes the message by scroll phase.
============================================================ */

#capabilities-node.modulus-help-node {
  position: fixed;
  left: 5vw;
  right: auto;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  pointer-events: auto;
  opacity: 1;
}

#capabilities-node.modulus-help-node.is-waiting {
  opacity: 0.55;
}

#capabilities-node.modulus-help-node #capabilities-toggle {
  min-width: 88px;
  min-height: 88px;
  border-radius: 999px;
  padding: 0;
  display: grid;
  place-items: center;
  background: rgba(91, 231, 255, 0.12);
  color: #ffffff;
  border: 1px solid rgba(91, 231, 255, 0.75);
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow:
    0 0 22px rgba(91, 231, 255, 0.18),
    inset 0 0 18px rgba(91, 231, 255, 0.08);
}

#capabilities-node.modulus-help-node #capabilities-list {
  position: absolute;
  left: calc(100% + 1rem);
  top: 50%;
  transform: translateY(-50%) translateX(-8px) scale(0.96);
  min-width: 230px;
  margin-top: 0;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(91, 231, 255, 0.35);
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 1rem;
  display: grid;
  gap: 0.5rem;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
}

#capabilities-node.modulus-help-node:hover #capabilities-list,
#capabilities-node.modulus-help-node:focus-within #capabilities-list {
  transform: translateY(-50%) translateX(0) scale(1);
  opacity: 1;
}

#capabilities-node.modulus-help-node #capabilities-list span,
#modulus-help-message {
  color: #dfefff;
  font-size: 0.95rem;
  line-height: 1.35;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  white-space: nowrap;
}

/* ============================================================
   WORD REVEAL REFINEMENT
   Reveal boxes are fully invisible; only clipped text is visible.
============================================================ */

.modulus-reveal-box {
  background: transparent !important;
  outline: none !important;
  border: 0 !important;
}

.modulus-reveal-box.debug {
  outline: 1px solid rgba(117, 247, 255, 0.8) !important;
  background: rgba(117, 247, 255, 0.08) !important;
}

/* ============================================================
   LAMENT WHISPER TEXT
============================================================ */

#lament-whisper-text {
  position: fixed;
  left: 2.2vw;
  right: auto;
  bottom: 2.0vh;
  z-index: 80;
  pointer-events: none;
  color: rgba(220, 210, 255, 0.0);
  font-size: clamp(11px, 1.1vw, 16px);
  letter-spacing: 0.08em;
  text-transform: none;
  text-shadow: 0 0 14px rgba(180, 130, 255, 0.0);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.45s ease,
    color 0.45s ease,
    text-shadow 0.45s ease,
    transform 0.45s ease;
}

#lament-whisper-text.show {
  opacity: 1;
  color: rgba(220, 210, 255, 0.62);
  text-shadow: 0 0 14px rgba(180, 130, 255, 0.34);
  transform: translateY(0);
}

/* ============================================================
   SLIDESHOW BUBBLE SUPPORT
============================================================ */

.raven-info-bubble[data-slideshow-images]:not([data-slideshow-images=""]) .bubble-thumb {
  object-fit: cover;
}

/* ============================================================
   NEGATIVE INVERT TOGGLE EFFECT
   Toggled by clicking the center chest zone during flyaway.
============================================================ */

#modulus-negative-invert-toggle {
  position: fixed;
  inset: 0;
  z-index: 99998;
  pointer-events: none;
  opacity: 0;
  transition-property: opacity;
  transition-timing-function: ease;
  background: rgba(255, 255, 255, 0.001);
  backdrop-filter: invert(1) hue-rotate(180deg) contrast(1.15) saturate(1.1);
  -webkit-backdrop-filter: invert(1) hue-rotate(180deg) contrast(1.15) saturate(1.1);
}

#modulus-negative-invert-toggle.active {
  opacity: 1;
}



/* Ripple pulse that fires at the moment the invert toggle changes. */
.modulus-negative-ripple-pulse {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 99999;
  pointer-events: none;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  background:
    radial-gradient(circle,
      rgba(255, 255, 255, 0.22) 0%,
      rgba(117, 247, 255, 0.20) 18%,
      rgba(155, 53, 255, 0.12) 34%,
      rgba(255, 255, 255, 0.035) 52%,
      rgba(255, 255, 255, 0.0) 70%);
  mix-blend-mode: screen;
  backdrop-filter: invert(1) hue-rotate(180deg) contrast(1.10);
  -webkit-backdrop-filter: invert(1) hue-rotate(180deg) contrast(1.10);
  animation: modulusNegativeRipplePulse 1.15s ease-out forwards;
}

@keyframes modulusNegativeRipplePulse {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0);
  }

  10% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
  }
}


/* ============================================================
   SIMPLE 3D SUBPAGES
   Used by Services, Projects, Request a Quote, Contact, and About.
============================================================ */

.modulus-subpage {
  position: relative;
  min-height: 100vh;
  background: #000;
  color: #fff;
  overflow-x: hidden;
}

.modulus-subpage-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 7vw;
  box-sizing: border-box;
}

#modulus-subpage-3d-canvas {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  display: block !important;
  z-index: 0 !important;
  pointer-events: auto;
  background: #000;
}

.modulus-subpage-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: 32px;
  border-radius: 28px;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(117, 247, 255, 0.18);
  box-shadow:
    0 0 34px rgba(0, 220, 255, 0.10),
    inset 0 0 24px rgba(255, 255, 255, 0.04);
}

.modulus-subpage-title {
  margin: 0 0 18px;
  font-size: clamp(42px, 8vw, 110px);
  line-height: 0.95;
  color: #ffffff;
  letter-spacing: -0.04em;
}

.modulus-subpage-body {
  font-size: clamp(16px, 2vw, 22px);
  line-height: 1.55;
  color: #d7e5eb;
}

.modulus-subpage-body p {
  margin-top: 0;
}

.modulus-subpage-body a {
  color: #75f7ff;
}

.modulus-subpage-body .wp-block-button__link,
.modulus-subpage-body button,
.modulus-subpage-body input[type="submit"] {
  border-radius: 999px;
  background: rgba(117, 247, 255, 0.14);
  border: 1px solid rgba(117, 247, 255, 0.70);
  color: #ffffff;
  box-shadow: 0 0 22px rgba(117, 247, 255, 0.18);
}

/* Optional page-specific content placement.
   Move text right/left per page later if needed. */

.modulus-subpage--services .modulus-subpage-content,
.modulus-subpage--projects .modulus-subpage-content,
.modulus-subpage--request-a-quote .modulus-subpage-content,
.modulus-subpage--contact .modulus-subpage-content,
.modulus-subpage--about .modulus-subpage-content {
  margin-left: 0;
  margin-right: auto;
}

@media (max-width: 768px) {
  .modulus-subpage-hero {
    min-height: 100vh;
    align-items: flex-end;
    padding: 90px 22px 70px;
  }

  .modulus-subpage-content {
    width: 100%;
    max-width: none;
    padding: 24px;
    border-radius: 22px;
  }

  .modulus-subpage-title {
    font-size: clamp(40px, 15vw, 76px);
  }

  .modulus-subpage-body {
    font-size: 16px;
  }
}

/* ============================================================
   SUBPAGE HOVER-REVEAL HEADER / FOOTER
   Added for Services / Projects / Request a Quote / Contact / About.
============================================================ */

.modulus-subpage-header-hitbox,
.modulus-subpage-footer-hitbox {
  position: fixed;
  left: 0;
  width: 100vw;
  z-index: 80;
  pointer-events: auto;
  background: transparent;
}

.modulus-subpage-header-hitbox {
  top: 0;
  height: 112px;
}

.modulus-subpage-footer-hitbox {
  bottom: 0;
  height: 170px;
}

.modulus-subpage-header,
.modulus-subpage-footer {
  position: fixed;
  left: 50%;
  z-index: 120;
  width: min(1180px, calc(100vw - 32px));
  border: 1px solid rgba(117, 247, 255, 0.24);
  background:
    linear-gradient(135deg, rgba(0, 0, 0, 0.78), rgba(13, 26, 34, 0.54)),
    radial-gradient(circle at 18% 0%, rgba(117, 247, 255, 0.16), transparent 38%),
    radial-gradient(circle at 82% 100%, rgba(155, 53, 255, 0.14), transparent 38%);
  box-shadow:
    0 18px 55px rgba(0, 0, 0, 0.42),
    0 0 32px rgba(117, 247, 255, 0.08),
    inset 0 0 28px rgba(117, 247, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

.modulus-subpage-header {
  top: 18px;
  transform: translateX(-50%) translateY(-24px);
  border-radius: 999px;
  padding: 10px;
}

body.modulus-subpage-header-visible .modulus-subpage-header {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.modulus-subpage-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.modulus-subpage-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid rgba(117, 247, 255, 0.20);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.modulus-subpage-nav-link:hover,
.modulus-subpage-nav-link:focus-visible {
  color: #ffffff;
  background: rgba(117, 247, 255, 0.16);
  border-color: rgba(117, 247, 255, 0.72);
  box-shadow:
    0 0 18px rgba(117, 247, 255, 0.16),
    inset 0 0 14px rgba(117, 247, 255, 0.08);
  transform: translateY(-1px);
  outline: none;
}

.modulus-subpage-footer {
  bottom: 18px;
  transform: translateX(-50%) translateY(30px);
  border-radius: 26px;
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(120px, 210px) 1fr;
  gap: 18px;
  align-items: center;
}

body.modulus-subpage-footer-visible .modulus-subpage-footer {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.modulus-footer-instagram-card {
  position: relative;
  min-height: 112px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(117, 247, 255, 0.24);
  background:
    radial-gradient(circle at 30% 10%, rgba(117, 247, 255, 0.18), transparent 38%),
    rgba(255, 255, 255, 0.05);
  color: #ffffff;
  text-decoration: none;
  display: grid;
  place-items: end start;
  isolation: isolate;
}

.modulus-footer-instagram-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.08) 68%),
    radial-gradient(circle at 70% 20%, rgba(155, 53, 255, 0.18), transparent 42%);
  z-index: 1;
}

.modulus-footer-instagram-card.is-missing-image {
  place-items: center;
  min-height: 92px;
}

.modulus-footer-instagram-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.86;
  transform: scale(1.02);
  z-index: 0;
}

.modulus-footer-instagram-label {
  position: relative;
  z-index: 2;
  margin: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(117, 247, 255, 0.32);
  background: rgba(0, 0, 0, 0.48);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.modulus-footer-copy {
  display: grid;
  gap: 8px;
  color: rgba(232, 246, 255, 0.86);
}

.modulus-footer-copy p {
  margin: 0;
  font-size: clamp(0.78rem, 1.1vw, 0.98rem);
  line-height: 1.45;
}

.modulus-footer-copy .modulus-footer-small {
  color: rgba(117, 247, 255, 0.76);
  font-size: 0.74rem;
  font-weight: 750;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

/* Keep page content readable underneath the hidden chrome zones. */
.modulus-subpage-hero {
  padding-top: max(120px, 12vh);
  padding-bottom: max(140px, 14vh);
}

/* Touch devices need a subtle hint because there is no hover cursor. */
@media (pointer: coarse) {
  .modulus-subpage-header-hitbox::before,
  .modulus-subpage-footer-hitbox::before {
    content: '';
    position: absolute;
    left: 50%;
    width: 72px;
    height: 3px;
    transform: translateX(-50%);
    border-radius: 999px;
    background: rgba(117, 247, 255, 0.38);
    box-shadow: 0 0 12px rgba(117, 247, 255, 0.14);
  }

  .modulus-subpage-header-hitbox::before {
    top: 14px;
  }

  .modulus-subpage-footer-hitbox::before {
    bottom: 14px;
  }
}

@media (max-width: 760px) {
  .modulus-subpage-header {
    top: 10px;
    width: calc(100vw - 18px);
    border-radius: 22px;
    padding: 8px;
  }

  .modulus-subpage-nav {
    gap: 6px;
  }

  .modulus-subpage-nav-link {
    min-height: 36px;
    padding: 0 11px;
    font-size: 0.62rem;
    letter-spacing: 0.09em;
  }

  .modulus-subpage-footer {
    bottom: 10px;
    width: calc(100vw - 18px);
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px;
    border-radius: 22px;
  }

  .modulus-footer-instagram-card {
    min-height: 82px;
  }

  .modulus-footer-copy {
    gap: 6px;
  }

  .modulus-footer-copy p {
    font-size: 0.78rem;
    line-height: 1.35;
  }

  .modulus-footer-copy .modulus-footer-small {
    font-size: 0.63rem;
  }
}

/* ============================================================
   SERVICES PAGE CONTENT
============================================================ */

.modulus-subpage--services .modulus-subpage-content {
  max-width: 980px;
}

.modulus-services-page {
  display: grid;
  gap: 28px;
}

.modulus-services-page p {
  color: rgba(232, 246, 255, 0.84);
  line-height: 1.62;
}

.services-kicker {
  margin: 0 0 10px;
  color: rgba(117, 247, 255, 0.88) !important;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.services-intro p:last-child {
  margin-bottom: 0;
  font-size: clamp(1rem, 1.3vw, 1.18rem);
}

.services-feature-image {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(117, 247, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
  box-shadow:
    0 18px 52px rgba(0, 0, 0, 0.28),
    inset 0 0 28px rgba(117, 247, 255, 0.05);
}

.services-feature-image::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.42), transparent 55%),
    radial-gradient(circle at 22% 12%, rgba(117, 247, 255, 0.14), transparent 42%);
}

.services-feature-image img {
  display: block;
  width: 100%;
  height: clamp(220px, 34vw, 420px);
  object-fit: cover;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.service-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(117, 247, 255, 0.18);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    rgba(0, 0, 0, 0.28);
  box-shadow:
    0 14px 38px rgba(0, 0, 0, 0.22),
    inset 0 0 22px rgba(117, 247, 255, 0.035);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(117, 247, 255, 0.48);
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.32),
    0 0 22px rgba(117, 247, 255, 0.08),
    inset 0 0 28px rgba(117, 247, 255, 0.055);
}

.service-card img {
  display: block;
  width: 100%;
  height: 185px;
  object-fit: cover;
  opacity: 0.9;
}

.service-card h2 {
  margin: 18px 18px 8px;
  color: #ffffff;
  font-size: clamp(1.05rem, 1.35vw, 1.32rem);
  line-height: 1.16;
}

.service-card p {
  margin: 0 18px 20px;
  font-size: 0.94rem;
}

.services-cta {
  border-radius: 24px;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid rgba(117, 247, 255, 0.24);
  background:
    radial-gradient(circle at 18% 0%, rgba(117, 247, 255, 0.16), transparent 38%),
    radial-gradient(circle at 84% 100%, rgba(155, 53, 255, 0.14), transparent 42%),
    rgba(0, 0, 0, 0.30);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.24),
    inset 0 0 30px rgba(117, 247, 255, 0.05);
}

.services-cta h2 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: clamp(1.35rem, 2.2vw, 2.1rem);
  line-height: 1.08;
}

.services-cta p {
  max-width: 720px;
  margin: 0 0 22px;
}

.services-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(117, 247, 255, 0.58);
  background: rgba(117, 247, 255, 0.14);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow:
    0 0 22px rgba(117, 247, 255, 0.12),
    inset 0 0 16px rgba(117, 247, 255, 0.08);
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.services-cta-button:hover,
.services-cta-button:focus-visible {
  transform: translateY(-2px);
  background: rgba(117, 247, 255, 0.22);
  box-shadow:
    0 0 32px rgba(117, 247, 255, 0.20),
    inset 0 0 18px rgba(117, 247, 255, 0.10);
  outline: none;
}

@media (max-width: 860px) {
  .modulus-subpage--services .modulus-subpage-content {
    max-width: min(92vw, 680px);
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card img {
    height: 210px;
  }
}

@media (max-width: 560px) {
  .modulus-services-page {
    gap: 22px;
  }

  .services-feature-image img {
    height: 220px;
  }

  .service-card img {
    height: 180px;
  }

  .service-card h2 {
    margin: 15px 15px 7px;
  }

  .service-card p {
    margin: 0 15px 17px;
    font-size: 0.88rem;
  }
}

/* ============================================================
   SERVICES PAGE POSITION TUNING
   Controls the scrollable Services content panel placement.
============================================================ */

/* Center the Services content panel horizontally */
.modulus-subpage--services .modulus-subpage-hero {
  justify-content: center;
  align-items: flex-start;
}

/* Move the Services content lower on the screen */
.modulus-subpage--services .modulus-subpage-content {
  margin-left: auto;
  margin-right: auto;
  margin-top: 45vh;
  max-width: 980px;
}

/* ============================================================
   PROJECTS PAGE CONTENT + MODAL SLIDESHOW
   Paste this at the bottom of style.css.
============================================================ */

.modulus-subpage--projects .modulus-subpage-hero {
  justify-content: center;
  align-items: flex-start;
}

.modulus-subpage--projects .modulus-subpage-content {
  margin-left: auto;
  margin-right: auto;
  margin-top: 45vh;
  max-width: 980px;
}

.modulus-projects-page {
  display: grid;
  gap: 28px;
}

.modulus-projects-page p {
  color: rgba(232, 246, 255, 0.84);
  line-height: 1.62;
}

.projects-kicker {
  margin: 0 0 10px;
  color: rgba(117, 247, 255, 0.88) !important;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.projects-intro p:last-child {
  margin-bottom: 0;
  font-size: clamp(1rem, 1.3vw, 1.18rem);
}

.projects-feature-image {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(117, 247, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
  box-shadow:
    0 18px 52px rgba(0, 0, 0, 0.28),
    inset 0 0 28px rgba(117, 247, 255, 0.05);
}

.projects-feature-image::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.42), transparent 55%),
    radial-gradient(circle at 22% 12%, rgba(117, 247, 255, 0.14), transparent 42%);
}

.projects-feature-image img {
  display: block;
  width: 100%;
  height: clamp(220px, 34vw, 420px);
  object-fit: cover;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.project-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(117, 247, 255, 0.18);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    rgba(0, 0, 0, 0.28);
  box-shadow:
    0 14px 38px rgba(0, 0, 0, 0.22),
    inset 0 0 22px rgba(117, 247, 255, 0.035);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: rgba(117, 247, 255, 0.48);
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.32),
    0 0 22px rgba(117, 247, 255, 0.08),
    inset 0 0 28px rgba(117, 247, 255, 0.055);
}

.project-card-trigger,
.project-title-trigger {
  all: unset;
  display: block;
  width: 100%;
  cursor: pointer;
}

.project-card-trigger {
  position: relative;
  overflow: hidden;
}

.project-card-trigger::after {
  content: 'View slideshow';
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid rgba(117, 247, 255, 0.32);
  background: rgba(0, 0, 0, 0.52);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.project-card:hover .project-card-trigger::after {
  opacity: 1;
  transform: translateY(0);
}

.project-card-trigger img {
  display: block;
  width: 100%;
  height: 210px;
  object-fit: cover;
  opacity: 0.9;
  transition: transform 0.22s ease, opacity 0.22s ease;
}

.project-card:hover .project-card-trigger img {
  transform: scale(1.035);
  opacity: 1;
}

.project-title-trigger h2 {
  margin: 18px 18px 8px;
  color: #ffffff;
  font-size: clamp(1.05rem, 1.35vw, 1.32rem);
  line-height: 1.16;
  transition: color 0.18s ease, text-shadow 0.18s ease;
}

.project-title-trigger:hover h2,
.project-title-trigger:focus-visible h2 {
  color: rgba(117, 247, 255, 0.96);
  text-shadow: 0 0 18px rgba(117, 247, 255, 0.14);
}

.project-card p {
  margin: 0 18px 20px;
  font-size: 0.94rem;
}

.projects-cta {
  border-radius: 24px;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid rgba(117, 247, 255, 0.24);
  background:
    radial-gradient(circle at 18% 0%, rgba(117, 247, 255, 0.16), transparent 38%),
    radial-gradient(circle at 84% 100%, rgba(155, 53, 255, 0.14), transparent 42%),
    rgba(0, 0, 0, 0.30);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.24),
    inset 0 0 30px rgba(117, 247, 255, 0.05);
}

.projects-cta h2 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: clamp(1.35rem, 2.2vw, 2.1rem);
  line-height: 1.08;
}

.projects-cta p {
  max-width: 720px;
  margin: 0 0 22px;
}

.projects-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(117, 247, 255, 0.58);
  background: rgba(117, 247, 255, 0.14);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow:
    0 0 22px rgba(117, 247, 255, 0.12),
    inset 0 0 16px rgba(117, 247, 255, 0.08);
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.projects-cta-button:hover,
.projects-cta-button:focus-visible {
  transform: translateY(-2px);
  background: rgba(117, 247, 255, 0.22);
  box-shadow:
    0 0 32px rgba(117, 247, 255, 0.20),
    inset 0 0 18px rgba(117, 247, 255, 0.10);
  outline: none;
}

/* Blur the page behind the project slideshow modal. */
body.project-modal-open .modulus-subpage-hero,
body.project-modal-open .modulus-subpage-header,
body.project-modal-open .modulus-subpage-footer,
body.project-modal-open .modulus-subpage-header-hitbox,
body.project-modal-open .modulus-subpage-footer-hitbox {
  filter: blur(12px);
  transform: translateZ(0);
  pointer-events: none;
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.project-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.project-modal-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 45%, rgba(117, 247, 255, 0.08), transparent 34%),
    rgba(0, 0, 0, 0.58);
}

.project-modal-window {
  position: relative;
  z-index: 2;
  width: min(1040px, calc(100vw - 44px));
  height: min(760px, calc(100vh - 80px));
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  border-radius: 30px;
  border: 1px solid rgba(117, 247, 255, 0.28);
  background:
    linear-gradient(145deg, rgba(0, 0, 0, 0.82), rgba(14, 24, 32, 0.72)),
    radial-gradient(circle at 18% 0%, rgba(117, 247, 255, 0.18), transparent 38%),
    radial-gradient(circle at 86% 100%, rgba(155, 53, 255, 0.16), transparent 42%);
  box-shadow:
    0 28px 90px rgba(0, 0, 0, 0.58),
    0 0 42px rgba(117, 247, 255, 0.10),
    inset 0 0 34px rgba(117, 247, 255, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform: translateY(18px) scale(0.985);
  transition: transform 0.22s ease;
}

.project-modal.is-open .project-modal-window {
  transform: translateY(0) scale(1);
}

.project-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 5;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(117, 247, 255, 0.34);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.58);
  color: #ffffff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 0 22px rgba(0, 0, 0, 0.24);
  transition: background 0.18s ease, transform 0.18s ease;
}

.project-modal-close:hover,
.project-modal-close:focus-visible {
  background: rgba(117, 247, 255, 0.18);
  transform: scale(1.04);
  outline: none;
}

.project-modal-media-wrap {
  position: relative;
  min-height: 0;
  display: grid;
  place-items: center;
  padding: 58px 72px 24px;
}

.project-modal-image {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 18px;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.45),
    0 0 24px rgba(117, 247, 255, 0.08);
}

.project-modal.is-loading .project-modal-image {
  display: none;
}

.project-modal-arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: 48px;
  height: 64px;
  transform: translateY(-50%);
  border-radius: 999px;
  border: 1px solid rgba(117, 247, 255, 0.28);
  background: rgba(0, 0, 0, 0.48);
  color: #ffffff;
  font-size: 3rem;
  line-height: 0.7;
  cursor: pointer;
  transition: background 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}

.project-modal-arrow:hover,
.project-modal-arrow:focus-visible {
  background: rgba(117, 247, 255, 0.16);
  border-color: rgba(117, 247, 255, 0.62);
  transform: translateY(-50%) scale(1.04);
  outline: none;
}

.project-modal-arrow--prev {
  left: 18px;
}

.project-modal-arrow--next {
  right: 18px;
}

.project-modal-caption {
  padding: 18px 26px 24px;
  border-top: 1px solid rgba(117, 247, 255, 0.13);
  background: rgba(0, 0, 0, 0.24);
  text-align: center;
}

.project-modal-title {
  margin: 0 0 5px;
  color: #ffffff;
  font-size: clamp(1.25rem, 2.1vw, 2rem);
  line-height: 1.1;
}

.project-modal-counter {
  margin: 0;
  color: rgba(117, 247, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (max-width: 860px) {
  .modulus-subpage--projects .modulus-subpage-content {
    max-width: min(92vw, 680px);
    margin-top: 22vh;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card-trigger img {
    height: 210px;
  }

  .project-modal-window {
    width: calc(100vw - 22px);
    height: calc(100vh - 42px);
    border-radius: 22px;
  }

  .project-modal-media-wrap {
    padding: 58px 48px 18px;
  }

  .project-modal-arrow {
    width: 38px;
    height: 54px;
    font-size: 2.4rem;
  }

  .project-modal-arrow--prev {
    left: 8px;
  }

  .project-modal-arrow--next {
    right: 8px;
  }
}

@media (max-width: 560px) {
  .modulus-projects-page {
    gap: 22px;
  }

  .projects-feature-image img {
    height: 220px;
  }

  .project-card-trigger img {
    height: 180px;
  }

  .project-title-trigger h2 {
    margin: 15px 15px 7px;
  }

  .project-card p {
    margin: 0 15px 17px;
    font-size: 0.88rem;
  }

  .project-modal-media-wrap {
    padding: 56px 18px 14px;
  }

  .project-modal-arrow {
    top: auto;
    bottom: 88px;
    transform: none;
  }

  .project-modal-arrow:hover,
  .project-modal-arrow:focus-visible {
    transform: scale(1.04);
  }

  .project-modal-arrow--prev {
    left: 18px;
  }

  .project-modal-arrow--next {
    right: 18px;
  }

  .project-modal-caption {
    padding: 15px 18px 20px;
  }
}

/* ============================================================
   PROJECTS MODAL - TRUE ORIGINAL ASPECT RATIO IMAGE FIT
   Paste this at the very bottom of style.css.
   This overrides the previous width:100% / height:100% rule.
============================================================ */

/* Make the slideshow area a centered frame */
.project-modal-media-wrap {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  overflow: hidden !important;
}

/* Show each image at its real aspect ratio, scaled down only as needed */
.project-modal-image {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  display: block !important;
}

/* Optional: remove any forced image stretching from browser/theme defaults */
.project-modal-media-wrap img.project-modal-image {
  aspect-ratio: auto !important;
}


/* ============================================================
   PROJECTS PAGE - CENTER "VIEW SLIDESHOW" LABEL
   Paste this at the very bottom of style.css.
   This overrides the previous bottom-left label placement.
============================================================ */

.project-card-trigger::after {
  left: 50%;
  right: auto;
  bottom: -2px;
  transform: translateX(-50%) translateY(6px);
  text-align: center;
  white-space: nowrap;
}

.project-card:hover .project-card-trigger::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ============================================================
   REQUEST A QUOTE FORM PAGE
   Paste this at the bottom of style.css.
============================================================ */

.modulus-subpage--request-a-quote .modulus-subpage-hero {
  justify-content: center;
  align-items: flex-start;
}

.modulus-subpage--request-a-quote .modulus-subpage-content {
  margin-left: auto;
  margin-right: auto;
  margin-top: 45vh;
  max-width: 980px;
}

.modulus-quote-form-page {
  display: grid;
  gap: 24px;
}

.modulus-quote-form-page p {
  color: rgba(232, 246, 255, 0.84);
  line-height: 1.62;
}

.quote-form-intro,
.quote-form-section,
.quote-form-success,
.quote-form-errors {
  border-radius: 24px;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid rgba(117, 247, 255, 0.22);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    rgba(0, 0, 0, 0.30);
  box-shadow:
    0 16px 44px rgba(0, 0, 0, 0.24),
    inset 0 0 28px rgba(117, 247, 255, 0.045);
}

.quote-form-kicker {
  margin: 0 0 10px;
  color: rgba(117, 247, 255, 0.88) !important;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.quote-form-intro p:last-child,
.quote-form-success p {
  margin-bottom: 0;
  font-size: clamp(1rem, 1.3vw, 1.18rem);
}

.quote-form {
  display: grid;
  gap: 20px;
}

.quote-form-grid {
  display: grid;
  gap: 16px;
}

.quote-form-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.quote-form label {
  display: grid;
  gap: 8px;
}

.quote-form label > span {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.quote-form label em {
  color: rgba(117, 247, 255, 0.92);
  font-style: normal;
}

.quote-form input[type="text"],
.quote-form input[type="email"],
.quote-form input[type="file"],
.quote-form textarea {
  width: 100%;
  box-sizing: border-box;
  border-radius: 16px;
  border: 1px solid rgba(117, 247, 255, 0.22);
  background: rgba(0, 0, 0, 0.42);
  color: #ffffff;
  padding: 14px 15px;
  font-size: 1rem;
  outline: none;
  box-shadow: inset 0 0 18px rgba(117, 247, 255, 0.035);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.quote-form input[type="file"] {
  cursor: pointer;
  color: rgba(232, 246, 255, 0.82);
}

.quote-form textarea {
  resize: vertical;
  min-height: 180px;
}

.quote-form input[type="text"]:focus,
.quote-form input[type="email"]:focus,
.quote-form input[type="file"]:focus,
.quote-form textarea:focus {
  border-color: rgba(117, 247, 255, 0.64);
  background: rgba(0, 0, 0, 0.55);
  box-shadow:
    0 0 24px rgba(117, 247, 255, 0.10),
    inset 0 0 22px rgba(117, 247, 255, 0.055);
}

.quote-checkbox-grid,
.quote-filetype-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.quote-filetype-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.quote-check-card {
  position: relative;
  display: flex !important;
  align-items: center;
  gap: 10px !important;
  min-height: 46px;
  padding: 11px 13px;
  border-radius: 16px;
  border: 1px solid rgba(117, 247, 255, 0.16);
  background: rgba(255, 255, 255, 0.045);
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.quote-check-card:hover {
  transform: translateY(-1px);
  border-color: rgba(117, 247, 255, 0.38);
  background: rgba(117, 247, 255, 0.07);
  box-shadow: 0 0 18px rgba(117, 247, 255, 0.06);
}

.quote-check-card input {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  accent-color: #75f7ff;
}

.quote-check-card span {
  color: rgba(232, 246, 255, 0.90) !important;
  font-size: 0.86rem !important;
  font-weight: 750 !important;
  letter-spacing: 0.03em !important;
  line-height: 1.25;
  text-transform: none !important;
}

.quote-check-card--small {
  min-height: 38px;
  padding: 9px 10px;
}

.quote-check-card--small span {
  font-size: 0.78rem !important;
}

.quote-form-helper,
.quote-form-note,
.quote-form-submit-row p {
  margin: 0 0 14px;
  color: rgba(232, 246, 255, 0.72) !important;
  font-size: 0.88rem;
}

.quote-upload-field {
  margin-top: 18px;
}

.quote-form-submit-row {
  border-radius: 24px;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(117, 247, 255, 0.24);
  background:
    radial-gradient(circle at 18% 0%, rgba(117, 247, 255, 0.16), transparent 38%),
    radial-gradient(circle at 84% 100%, rgba(155, 53, 255, 0.14), transparent 42%),
    rgba(0, 0, 0, 0.30);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.24),
    inset 0 0 30px rgba(117, 247, 255, 0.05);
}

.quote-form-submit,
.quote-form-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  border: 1px solid rgba(117, 247, 255, 0.58);
  background: rgba(117, 247, 255, 0.14);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow:
    0 0 22px rgba(117, 247, 255, 0.12),
    inset 0 0 16px rgba(117, 247, 255, 0.08);
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.quote-form-submit:hover,
.quote-form-submit:focus-visible,
.quote-form-button:hover,
.quote-form-button:focus-visible {
  transform: translateY(-2px);
  background: rgba(117, 247, 255, 0.22);
  box-shadow:
    0 0 32px rgba(117, 247, 255, 0.20),
    inset 0 0 18px rgba(117, 247, 255, 0.10);
  outline: none;
}

.quote-form-errors {
  border-color: rgba(255, 125, 125, 0.42);
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 80, 80, 0.10), transparent 38%),
    rgba(0, 0, 0, 0.34);
}

.quote-form-errors h2,
.quote-form-success h2 {
  margin: 0 0 12px;
  color: #ffffff;
  font-size: clamp(1.3rem, 2vw, 1.9rem);
}

.quote-form-errors ul {
  margin: 0;
  padding-left: 22px;
  color: rgba(255, 220, 220, 0.92);
}

.quote-form-honeypot {
  position: absolute !important;
  left: -99999px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media (max-width: 860px) {
  .modulus-subpage--request-a-quote .modulus-subpage-content {
    max-width: min(92vw, 680px);
    margin-top: 22vh;
  }

  .quote-form-grid--two,
  .quote-checkbox-grid,
  .quote-filetype-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .modulus-quote-form-page {
    gap: 20px;
  }

  .quote-form-intro,
  .quote-form-section,
  .quote-form-success,
  .quote-form-errors,
  .quote-form-submit-row {
    padding: 20px;
  }

  .quote-form-submit,
  .quote-form-button {
    width: 100%;
  }
}

/* ============================================================
   CONTACT PAGE CONTENT
   Paste this at the bottom of style.css.
============================================================ */

.modulus-subpage--contact .modulus-subpage-hero {
  justify-content: center;
  align-items: flex-start;
}

.modulus-subpage--contact .modulus-subpage-content {
  margin-left: auto;
  margin-right: auto;
  margin-top: 45vh;
  max-width: 920px;
}

.modulus-contact-page {
  display: grid;
  gap: 24px;
}

.modulus-contact-page p {
  color: rgba(232, 246, 255, 0.84);
  line-height: 1.62;
}

.contact-kicker {
  margin: 0 0 10px;
  color: rgba(117, 247, 255, 0.88) !important;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.contact-intro,
.contact-main-card,
.contact-note-card {
  border-radius: 24px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid rgba(117, 247, 255, 0.22);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    rgba(0, 0, 0, 0.30);
  box-shadow:
    0 16px 44px rgba(0, 0, 0, 0.24),
    inset 0 0 28px rgba(117, 247, 255, 0.045);
}

.contact-intro p:last-child {
  margin-bottom: 0;
  font-size: clamp(1rem, 1.3vw, 1.18rem);
}

.contact-main-card {
  display: grid;
  gap: 24px;
  background:
    radial-gradient(circle at 18% 0%, rgba(117, 247, 255, 0.16), transparent 38%),
    radial-gradient(circle at 84% 100%, rgba(155, 53, 255, 0.14), transparent 42%),
    rgba(0, 0, 0, 0.32);
}

.contact-identity h2,
.contact-note-card h2 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: clamp(1.65rem, 3vw, 3.05rem);
  line-height: 1.02;
}

.contact-role {
  margin: 0 !important;
  color: rgba(232, 246, 255, 0.76) !important;
  font-size: clamp(1rem, 1.3vw, 1.18rem);
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-info-card {
  border-radius: 20px;
  padding: 18px;
  border: 1px solid rgba(117, 247, 255, 0.18);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    rgba(0, 0, 0, 0.24);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.20),
    inset 0 0 20px rgba(117, 247, 255, 0.035);
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.contact-info-card:hover {
  transform: translateY(-2px);
  border-color: rgba(117, 247, 255, 0.44);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.28),
    0 0 20px rgba(117, 247, 255, 0.08),
    inset 0 0 24px rgba(117, 247, 255, 0.055);
}

.contact-info-card--wide {
  grid-column: 1 / -1;
}

.contact-info-card span {
  display: block;
  margin-bottom: 8px;
  color: rgba(117, 247, 255, 0.82);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-info-card a,
.contact-info-card p {
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.05rem, 1.7vw, 1.42rem);
  font-weight: 750;
  line-height: 1.35;
  text-decoration: none;
}

.contact-info-card a:hover,
.contact-info-card a:focus-visible {
  color: rgba(117, 247, 255, 0.96);
  text-shadow: 0 0 18px rgba(117, 247, 255, 0.14);
  outline: none;
}

.contact-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.contact-primary-button,
.contact-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.contact-primary-button {
  border: 1px solid rgba(117, 247, 255, 0.58);
  background: rgba(117, 247, 255, 0.14);
  color: #ffffff;
  box-shadow:
    0 0 22px rgba(117, 247, 255, 0.12),
    inset 0 0 16px rgba(117, 247, 255, 0.08);
}

.contact-secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.88);
}

.contact-primary-button:hover,
.contact-primary-button:focus-visible,
.contact-secondary-button:hover,
.contact-secondary-button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.contact-primary-button:hover,
.contact-primary-button:focus-visible {
  background: rgba(117, 247, 255, 0.22);
  box-shadow:
    0 0 32px rgba(117, 247, 255, 0.20),
    inset 0 0 18px rgba(117, 247, 255, 0.10);
}

.contact-secondary-button:hover,
.contact-secondary-button:focus-visible {
  border-color: rgba(117, 247, 255, 0.36);
  background: rgba(255, 255, 255, 0.085);
}

.contact-note-card h2 {
  max-width: 760px;
  font-size: clamp(1.35rem, 2.2vw, 2.1rem);
}

.contact-note-card p {
  max-width: 760px;
  margin: 0 0 22px;
}

@media (max-width: 860px) {
  .modulus-subpage--contact .modulus-subpage-content {
    max-width: min(92vw, 680px);
    margin-top: 22vh;
  }

  .contact-info-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .modulus-contact-page {
    gap: 20px;
  }

  .contact-intro,
  .contact-main-card,
  .contact-note-card {
    padding: 20px;
  }

  .contact-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .contact-primary-button,
  .contact-secondary-button {
    width: 100%;
  }
}

/* ============================================================
   ABOUT PAGE IMAGE ADDITIONS
   Paste this at the bottom of style.css.
============================================================ */

.about-feature-image {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(117, 247, 255, 0.22);
  background: rgba(255, 255, 255, 0.04);
  box-shadow:
    0 18px 52px rgba(0, 0, 0, 0.28),
    inset 0 0 28px rgba(117, 247, 255, 0.05);
}

.about-feature-image::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.42), transparent 55%),
    radial-gradient(circle at 22% 12%, rgba(117, 247, 255, 0.14), transparent 42%);
}

.about-feature-image img {
  display: block;
  width: 100%;
  height: clamp(220px, 34vw, 420px);
  object-fit: cover;
}

.about-image-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.about-image-card {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(117, 247, 255, 0.18);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025)),
    rgba(0, 0, 0, 0.28);
  box-shadow:
    0 14px 38px rgba(0, 0, 0, 0.22),
    inset 0 0 22px rgba(117, 247, 255, 0.035);
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease;
}

.about-image-card:hover {
  transform: translateY(-3px);
  border-color: rgba(117, 247, 255, 0.48);
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.32),
    0 0 22px rgba(117, 247, 255, 0.08),
    inset 0 0 28px rgba(117, 247, 255, 0.055);
}

.about-image-card img {
  display: block;
  width: 100%;
  height: 185px;
  object-fit: cover;
  opacity: 0.92;
  transition:
    transform 0.22s ease,
    opacity 0.22s ease;
}

.about-image-card:hover img {
  transform: scale(1.035);
  opacity: 1;
}

.about-image-card div {
  padding: 18px;
}

.about-image-card h2 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: clamp(1.05rem, 1.35vw, 1.32rem);
  line-height: 1.16;
}

.about-image-card p:last-child {
  margin: 0;
  font-size: 0.90rem;
}

@media (max-width: 860px) {
  .about-image-grid {
    grid-template-columns: 1fr;
  }

  .about-image-card img {
    height: 220px;
  }
}

@media (max-width: 560px) {
  .about-feature-image img {
    height: 220px;
  }

  .about-image-card img {
    height: 180px;
  }

  .about-image-card div {
    padding: 16px;
  }
}


/* ============================================================
   ABOUT PAGE - CENTERED SCROLL BOX / MATCH OTHER SUBPAGES
   Paste this at the very bottom of style.css.
============================================================ */

/* Force the About page scroll panel to match Services / Projects / Contact */
.modulus-subpage--about .modulus-subpage-hero {
  justify-content: center !important;
  align-items: flex-start !important;
  padding-left: 7vw !important;
  padding-right: 7vw !important;
}

/* This is the main scroll box position */
.modulus-subpage--about .modulus-subpage-content {
  width: min(980px, 92vw) !important;
  max-width: 980px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-top: 45vh !important;
  box-sizing: border-box !important;
}

/* Keep all About page sections aligned inside the same centered panel */
.modulus-about-page,
.modulus-about-page section,
.about-intro,
.about-feature-image,
.about-feature-card,
.about-image-grid,
.about-grid,
.about-philosophy,
.about-cta {
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Match the previous pages better: use a two-column card layout on desktop */
.about-image-grid,
.about-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 18px !important;
}

/* Make the hero image behave like the Services / Projects hero image */
.about-feature-image img {
  display: block !important;
  width: 100% !important;
  height: clamp(220px, 34vw, 420px) !important;
  object-fit: cover !important;
}

/* Prevent the three philosophy cards from making the About page feel wider */
.about-philosophy-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

/* Tablet / mobile layout */
@media (max-width: 860px) {
  .modulus-subpage--about .modulus-subpage-content {
    width: min(92vw, 680px) !important;
    max-width: min(92vw, 680px) !important;
    margin-top: 22vh !important;
  }

  .about-image-grid,
  .about-grid,
  .about-philosophy-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Small mobile layout */
@media (max-width: 560px) {
  .modulus-subpage--about .modulus-subpage-content {
    width: 92vw !important;
    margin-top: 18vh !important;
  }

  .about-feature-image img,
  .about-image-card img {
    height: 200px !important;
  }
}

/* ============================================================
   ABOUT PAGE - CENTER INSTALLATION IMAGE CARD
   Paste this at the very bottom of style.css.
   This keeps Process + Fabrication in the top row and centers Installation below.
============================================================ */

/* Center only the 3rd About image card: Installation */
.about-image-grid .about-image-card:nth-child(3) {
  grid-column: 1 / -1 !important;
  justify-self: center !important;
  width: calc((100% - 18px) / 2) !important;
  max-width: 100% !important;
}

/* On tablet/mobile, let Installation return to full width */
@media (max-width: 860px) {
  .about-image-grid .about-image-card:nth-child(3) {
    grid-column: auto !important;
    justify-self: stretch !important;
    width: 100% !important;
  }
}

/* ============================================================
   ABOUT PAGE - HERO IMAGE FILL WINDOW
   Paste this at the very bottom of style.css.
   This removes the visible interior margin/padding around about-hero.jpg.
============================================================ */

/* Make the About hero image container clip tightly around the image */
.about-feature-image {
  padding: 0 !important;
  line-height: 0 !important;
}

/* Force the image to fill the full hero window */
.about-feature-image img {
  display: block !important;
  width: 100% !important;
  height: clamp(260px, 34vw, 460px) !important;
  object-fit: cover !important;
  object-position: center center !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

/* Keep the rounded glass border on the outside container only */
.about-feature-image {
  border-radius: 24px !important;
  overflow: hidden !important;
}

/* Mobile sizing */
@media (max-width: 560px) {
  .about-feature-image img {
    height: 230px !important;
  }
}

.about-feature-image img {
  object-position: center 40% !important;
}

/* ============================================================
   GLOBAL SUBPAGE TEXT COLOR FIX
   Paste this at the very bottom of style.css.
   This forces dark/default WordPress text inside the custom glass panels
   to become readable on the black background.
============================================================ */

/* Main readable text inside all 3D subpage content panels */
.modulus-subpage-content,
.modulus-subpage-content p,
.modulus-subpage-content li,
.modulus-subpage-content span,
.modulus-subpage-content div {
  color: rgba(253, 154, 0, 0.86);
}

/* Headings inside all 3D subpage panels */
.modulus-subpage-content h1,
.modulus-subpage-content h2,
.modulus-subpage-content h3,
.modulus-subpage-content h4,
.modulus-subpage-content h5,
.modulus-subpage-content h6 {
  color: #ffffff;
}

/* Links inside all 3D subpage panels */
.modulus-subpage-content a {
  color: rgba(117, 247, 255, 0.95);
}

.modulus-subpage-content a:hover,
.modulus-subpage-content a:focus-visible {
  color: #ffffff;
}

/* Form labels and helper text */
.modulus-subpage-content label,
.modulus-subpage-content legend {
  color: rgba(255, 255, 255, 0.90);
}

/* Keep special cyan kicker labels cyan */
.services-kicker,
.projects-kicker,
.quote-kicker,
.quote-form-kicker,
.contact-kicker,
.about-kicker {
  color: rgba(117, 247, 255, 0.88) !important;
}

/* Strong/bold text */
.modulus-subpage-content strong,
.modulus-subpage-content b {
  color: #ffffff;
}

/* Optional: placeholder text in forms */
.modulus-subpage-content input::placeholder,
.modulus-subpage-content textarea::placeholder {
  color: rgba(232, 246, 255, 0.48);
}

/* ============================================================
   HOME PAGE HEADER / FOOTER CHROME + MOBILE HEADER SIZE FIX
   Paste this at the very bottom of style.css.
============================================================ */

/* Make injected home header/footer use the same visible/hidden behavior as subpages */
.modulus-home-header,
.modulus-home-footer {
  z-index: 9990;
}

.modulus-home-header-hitbox,
.modulus-home-footer-hitbox {
  z-index: 9980;
}

/* On the homepage, keep header/footer above the 3D canvas and page effects */
body.modulus-subpage-header-visible .modulus-home-header,
body.modulus-subpage-footer-visible .modulus-home-footer {
  pointer-events: auto;
}

/* Make mobile navigation buttons smaller across home + subpages */
@media (max-width: 760px) {
  .modulus-subpage-header {
    top: 8px !important;
    width: calc(100vw - 14px) !important;
    padding: 6px !important;
    border-radius: 18px !important;
  }

  .modulus-subpage-nav {
    gap: 4px !important;
  }

  .modulus-subpage-nav-link {
    min-height: 28px !important;
    padding: 0 7px !important;
    font-size: 0.48rem !important;
    letter-spacing: 0.065em !important;
    line-height: 1 !important;
  }
}

/* Extra-small phones */
@media (max-width: 420px) {
  .modulus-subpage-nav-link {
    min-height: 26px !important;
    padding: 0 6px !important;
    font-size: 0.43rem !important;
    letter-spacing: 0.045em !important;
  }

  .modulus-subpage-nav {
    gap: 3px !important;
  }
}

/* ============================================================
   FOOTER - REPLACE "INSTAGRAM" WORD WITH IMAGE ICON
   Paste this at the very bottom of style.css.

   Upload your icon here:
   wp-content/themes/modulus-child/assets/images/footer/instagram-icon.png

   If your file name is different, change the URL below.
============================================================ */

.modulus-footer-instagram-label {
  width: 54px !important;
  height: 54px !important;
  min-width: 54px !important;
  padding: 8px !important;
  margin: 14px !important;
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 999px !important;
  border: 1px solid rgba(117, 247, 255, 0.34) !important;
  background: rgba(0, 0, 0, 0.52) !important;
}

.modulus-footer-instagram-label::before {
  content: '' !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  background-image: url('/staging/7759/wp-content/themes/modulus-child/assets/images/footer/instagram-icon.png') !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: contain !important;
}

/* Slightly smaller footer icon on phones */
@media (max-width: 560px) {
  .modulus-footer-instagram-label {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    padding: 7px !important;
  }
}

/* ============================================================
   FOOTER - CLEAN LARGE INSTAGRAM ICON LINK
   Paste this at the very bottom of style.css.

   Upload your icon here:
   wp-content/themes/modulus-child/assets/images/footer/instagram-icon.png

   The icon remains clickable because it sits inside the existing
   Instagram <a> link to:
   https://www.instagram.com/modulusmakers/
============================================================ */

/* Remove the old rectangular Instagram card styling */
.modulus-footer-instagram-card {
  width: 116px !important;
  min-width: 116px !important;
  max-width: 116px !important;
  min-height: 116px !important;
  height: 116px !important;
  padding: 0 !important;
  margin: 0 auto !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  place-items: center !important;
}

/* Remove the dark gradient overlay from the old image card */
.modulus-footer-instagram-card::after {
  display: none !important;
  content: none !important;
}

/* Hide the old background/card image if one exists */
.modulus-footer-instagram-image {
  display: none !important;
}

/* Turn the old text label into a clean icon holder */
.modulus-footer-instagram-label {
  width: 108px !important;
  height: 108px !important;
  min-width: 108px !important;
  min-height: 108px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  display: block !important;
  position: relative !important;
}

/* Use your uploaded Instagram icon image */
.modulus-footer-instagram-label::before {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  background-image: url('/staging/7759/wp-content/themes/modulus-child/assets/images/footer/instagram-icon.png') !important;
  background-repeat: no-repeat !important;
  background-position: center center !important;
  background-size: contain !important;
}

/* Make the icon feel interactive */
.modulus-footer-instagram-card:hover .modulus-footer-instagram-label,
.modulus-footer-instagram-card:focus-visible .modulus-footer-instagram-label {
  transform: scale(1.06);
  filter:
    drop-shadow(0 0 14px rgba(117, 247, 255, 0.35))
    drop-shadow(0 0 22px rgba(255, 72, 180, 0.20));
}

.modulus-footer-instagram-label {
  transition:
    transform 0.18s ease,
    filter 0.18s ease;
}

/* Mobile sizing */
@media (max-width: 560px) {
  .modulus-footer-instagram-card {
    width: 82px !important;
    min-width: 82px !important;
    max-width: 82px !important;
    height: 82px !important;
    min-height: 82px !important;
  }

  .modulus-footer-instagram-label {
    width: 76px !important;
    height: 76px !important;
    min-width: 76px !important;
    min-height: 76px !important;
  }
}

.modulus-footer-small {
  color: rgba(255, 165, 0, 0.92) !important;
}

/* ============================================================
   MOBILE HOME - LARGER / HIGHER ENABLE MOTION BUTTON
   Paste this at the very bottom of style.css.

   Controls the iOS/mobile landing page button:
   Enable Motion
============================================================ */

@media (max-width: 1024px), (pointer: coarse) {
  #modulus-mobile-motion-button {
    bottom: 350px !important; /* larger number raises the button */
    padding: 16px 24px !important;
    font-size: 25px !important;
    font-weight: 900 !important;
    letter-spacing: 0.11em !important;
    border-width: 2px !important;
    border-radius: 999px !important;
    background: rgba(0, 18, 22, 0.86) !important;
    color: #ffffff !important;
    box-shadow:
      0 0 28px rgba(0, 220, 255, 0.36),
      0 0 46px rgba(117, 247, 255, 0.12),
      inset 0 0 18px rgba(117, 247, 255, 0.08) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
  }
}

/* Smaller phones */
@media (max-width: 420px) {
  #modulus-mobile-motion-button {
    bottom: 86px !important;
    padding: 14px 20px !important;
    font-size: 14px !important;
  }
}


/* ============================================================
   CONTACT PAGE - MOBILE ONLY CENTER CONTACT BUTTONS
   Paste this at the very bottom of style.css.

   This only affects the Contact page on phones.
   Desktop/tablet layout stays unchanged.
============================================================ */

@media (max-width: 560px) {
  .modulus-subpage--contact .contact-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
  }

  .modulus-subpage--contact .contact-actions a,
  .modulus-subpage--contact .contact-primary-button,
  .modulus-subpage--contact .contact-secondary-button {
    width: min(100%, 230px) !important;
    max-width: 230px !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    justify-content: center !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }
}

/* ============================================================
   HOME PAGE ONLY - ALWAYS SHOW HEADER NAV
   Paste this at the very bottom of style.css.

   This keeps the homepage navigation visible at all times.
   Subpage headers remain hover/tap reveal.
============================================================ */

.modulus-home-header {
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateX(-50%) translateY(0) !important;
}

