/* =========================================================
   SCHEMA : Digital Engineering Studio
   Design system: "Blueprint" : schematic drafting aesthetic
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Color : IMAGINE HERO 4 brand palette (single source of truth) */
  --orange: #E88C2B;   /* Orange Grove : primary accent / CTA color */
  --maroon: #4E0401;   /* Dark Maroon : page background / dark surfaces */
  --white:  #FEFBF3;   /* Calming White : headlines, body copy on dark */
  --gray:   #E4D6C7;   /* warm neutral : muted text */
  --glow:   #F3A659;   /* lighter Orange Grove tint : highlights, glows, gradients */
  /* Legacy token names kept so every existing rule below repaints
     automatically : all now derived from the palette above.
     No blue remains anywhere in this system. */
  --blueprint: var(--maroon);        /* primary dark background */
  --ink: #3a0301;                    /* deepest background, footer : darker maroon */
  --paper: var(--white);             /* light text on dark bg */
  --paper-dim: var(--gray);          /* secondary text on dark bg */
  --muted: rgba(228, 214, 199, 0.65);/* tertiary / captions */
  --accent: var(--orange);           /* single hot accent */
  --accent-dim: #c2701f;
  --steel: var(--glow);              /* secondary accent (was cool blue, now warm glow) */
  --grid-line: rgba(254, 251, 243, 0.07);
  --grid-line-strong: rgba(254, 251, 243, 0.14);
  --card-bg: rgba(254, 251, 243, 0.035);
  --card-border: rgba(254, 251, 243, 0.1);
  --success: #4caf7d;
  --error: #e0654c;

  /* Type */
  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
  --font-head: var(--font-display);  /* Imagine Hero 4 alias */
  --font-anim: var(--font-body);     /* Imagine Hero 4 alias */

  /* Layout */
  --max-w: 1240px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --gutter: clamp(20px, 5vw, 64px);

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 300ms;
  --dur-med: 700ms;
  --dur-slow: 1400ms;
  --dur-slide: 7500ms;   /* Imagine Hero 4 slideshow interval */
  --dur-fade: 1600ms;    /* Imagine Hero 4 slide crossfade */
}

/* ---------- Reset ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--blueprint);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }

::selection { background: var(--accent); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.mono { font-family: var(--font-mono); }

section[id] { scroll-margin-top: 84px; }

.section-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.no-scrollbar { scrollbar-width: none; -ms-overflow-style: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* ---------- Blueprint grid background (repeats on dark sections) ---------- */
.hero, .service-hero, .why-us, .process, .stats, .technologies {
  position: relative;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 85%);
}

/* ---------- Required noise animation ---------- */
@keyframes noise-animation {
  0% { transform: translate(0,0); }
  10% { transform: translate(-2%,-3%); }
  20% { transform: translate(-4%,2%); }
  30% { transform: translate(2%,-4%); }
  40% { transform: translate(-2%,5%); }
  50% { transform: translate(-4%,2%); }
  60% { transform: translate(3%,0); }
  70% { transform: translate(0,3%); }
  80% { transform: translate(-3%,0); }
  90% { transform: translate(2%,2%); }
  100% { transform: translate(1%,0); }
}
.hero-glow { animation: noise-animation 12s steps(1) infinite; }

/* =====================================================
   PRELOADER
   ===================================================== */

    body.preloader-active {
      overflow: hidden;
    }


    /* =====================================================
       PRELOADER
    ===================================================== */

    #preloader {
      position: fixed;
      inset: 0;

      z-index: 99999;

      width: 100%;
      height: 100vh;
      height: 100dvh;

      overflow: hidden;

      background:
        radial-gradient(
          circle at 50% 64%,
          rgba(232, 140, 43, 0.09),
          transparent 34%
        ),
        linear-gradient(
          180deg,
          #220100,
          #3a0301 55%,
          #210100
        );

      opacity: 1;
      visibility: visible;

      transition:
        opacity .7s ease,
        visibility .7s ease;
    }

    #preloader.is-hidden {
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
    }


    /* =====================================================
       STAGE
    ===================================================== */

    .cradle-stage {
      position: relative;

      width: 100vw;
      height: 100vh;
      height: 100dvh;

      overflow: hidden;
    }


    /* =====================================================
       CRADLE VARIABLES
    ===================================================== */

    .cradle {
      position: absolute;
      inset: 0;

      --square-size: 40px;

      /*
       Very small gap between squares.
      */
      --square-step: 42px;

      /*
       Tight protected center zone.
      */
      --logo-zone: 108px;

      /*
       Strings begin at the top of screen
       and squares hang lower.
      */
      --string-height:
        clamp(
          360px,
          60vh,
          560px
        );
    }


    /* =====================================================
       FLOOR GLOW
    ===================================================== */

    .floor-glow {
      position: absolute;

      left: 50%;

      top:
        calc(
          var(--string-height) +
          45px
        );

      width:
        clamp(
          170px,
          34vw,
          330px
        );

      height:
        clamp(
          34px,
          6vw,
          60px
        );

      transform:
        translateX(-50%);

      border-radius: 50%;

      background:
        radial-gradient(
          ellipse,
          rgba(232,140,43,.18),
          rgba(232,140,43,.05) 45%,
          transparent 74%
        );

      filter: blur(9px);

      pointer-events: none;
    }


    /* =====================================================
       PENDULUMS
    ===================================================== */

    .pendulum {
      position: absolute;

      top: 0;

      width: 2px;
      height:
        var(--string-height);

      transform-origin:
        top center;

      will-change:
        transform;
    }

    .pendulum::before {
      content: "";

      position: absolute;

      top: 0;
      left: 0;

      width: 2px;
      height: 100%;

      background:
        linear-gradient(
          to bottom,
          rgba(255,245,230,.36),
          rgba(232,140,43,.5)
        );
    }


    /* =====================================================
       SQUARES
    ===================================================== */

    .square {
      position: absolute;

      left: 50%;

      bottom:
        calc(
          var(--square-size) / -2
        );

      width:
        var(--square-size);

      height:
        var(--square-size);

      transform:
        translateX(-50%);

      display: flex;
      align-items: center;
      justify-content: center;

      overflow: hidden;

      border-radius: 7px;

      color: #fff;

      background:
        linear-gradient(
          145deg,
          #f4aa5b,
          #e88c2b 52%,
          #c76b17
        );

      border:
        1px solid rgba(255,205,143,.72);

      box-shadow:
        inset 0 1px 1px rgba(255,255,255,.35),
        inset 0 -3px 4px rgba(87,35,0,.24),
        0 5px 10px rgba(0,0,0,.23);
    }


    /* =====================================================
       SIX BALANCED DISPLAY SQUARES

       T R U | LOGO | S T .
    ===================================================== */

    .display-1 {
      left:
        calc(
          50% -
          (var(--logo-zone) / 2) -
          (var(--square-step) * 3)
        );
    }

    .display-2 {
      left:
        calc(
          50% -
          (var(--logo-zone) / 2) -
          (var(--square-step) * 2)
        );
    }

    .display-3 {
      left:
        calc(
          50% -
          (var(--logo-zone) / 2) -
          var(--square-step)
        );
    }

    .display-4 {
      right:
        calc(
          50% -
          (var(--logo-zone) / 2) -
          var(--square-step)
        );
    }

    .display-5 {
      right:
        calc(
          50% -
          (var(--logo-zone) / 2) -
          (var(--square-step) * 2)
        );
    }

    .display-6 {
      right:
        calc(
          50% -
          (var(--logo-zone) / 2) -
          (var(--square-step) * 3)
        );
    }


    /* =====================================================
       OUTER MOVING SQUARES
    ===================================================== */

    .outer-left {
      left:
        calc(
          50% -
          (var(--logo-zone) / 2) -
          (var(--square-step) * 4)
        );

      animation:
        newton-left
        2.8s
        cubic-bezier(.38,.02,.22,1)
        infinite;
    }

    .outer-right {
      right:
        calc(
          50% -
          (var(--logo-zone) / 2) -
          (var(--square-step) * 4)
        );

      animation:
        newton-right
        2.8s
        cubic-bezier(.38,.02,.22,1)
        infinite;
    }


    /* =====================================================
       DESKTOP NEWTON MOTION
    ===================================================== */

    @keyframes newton-left {

      0% {
        transform:
          rotate(22deg);
      }

      6% {
        transform:
          rotate(21deg);
      }

      13% {
        transform:
          rotate(16deg);
      }

      19% {
        transform:
          rotate(8deg);
      }

      24% {
        transform:
          rotate(1.5deg);
      }

      25% {
        transform:
          rotate(0deg);
      }

      /*
       Wait after impact.
      */
      26%,
      40%,
      55%,
      68%,
      70% {
        transform:
          rotate(0deg);
      }

      /*
       Energy returns.
      */
      75% {
        transform:
          rotate(2deg);
      }

      81% {
        transform:
          rotate(8deg);
      }

      87% {
        transform:
          rotate(16deg);
      }

      94% {
        transform:
          rotate(21deg);
      }

      98%,
      100% {
        transform:
          rotate(22deg);
      }
    }


    @keyframes newton-right {

      0%,
      24% {
        transform:
          rotate(0deg);
      }

      28% {
        transform:
          rotate(-2deg);
      }

      34% {
        transform:
          rotate(-8deg);
      }

      40% {
        transform:
          rotate(-16deg);
      }

      47% {
        transform:
          rotate(-21deg);
      }

      50%,
      53% {
        transform:
          rotate(-22deg);
      }

      59% {
        transform:
          rotate(-17deg);
      }

      65% {
        transform:
          rotate(-10deg);
      }

      70% {
        transform:
          rotate(-3deg);
      }

      72% {
        transform:
          rotate(0deg);
      }

      73%,
      85%,
      100% {
        transform:
          rotate(0deg);
      }
    }


    /* =====================================================
       INNER ENERGY COMPRESSION
    ===================================================== */

    .display-1 .square,
    .display-2 .square,
    .display-3 .square,
    .display-4 .square,
    .display-5 .square,
    .display-6 .square {
      animation:
        inner-contact
        2.8s
        ease-out
        infinite;
    }

    @keyframes inner-contact {

      0%,
      23% {
        transform:
          translateX(-50%)
          scaleX(1);
      }

      25% {
        transform:
          translateX(-50%)
          scaleX(.97);
      }

      29% {
        transform:
          translateX(-50%)
          scaleX(1.008);
      }

      32%,
      70% {
        transform:
          translateX(-50%)
          scaleX(1);
      }

      72% {
        transform:
          translateX(-50%)
          scaleX(.97);
      }

      76% {
        transform:
          translateX(-50%)
          scaleX(1.008);
      }

      80%,
      100% {
        transform:
          translateX(-50%)
          scaleX(1);
      }
    }


    /* =====================================================
       LOGO : NO STRINGS
    ===================================================== */

    .logo-holder {
      position: absolute;

      left: 50%;

      top:
        calc(
          var(--string-height) -
          26px
        );

      width:
        calc(
          var(--logo-zone) - 6px
        );

      height: 90px;

      transform:
        translateX(-50%);

      display: flex;
      align-items: center;
      justify-content: center;

      z-index: 12;

      transform-origin:
        center center;

      animation:
        logo-reaction
        2.8s
        linear
        infinite;
    }

    .preloader-logo {
      width: 94px;

      max-width:
        calc(
          var(--logo-zone) - 10px
        );

      height: auto;

      display: block;

      filter:
        drop-shadow(
          0 7px 13px
          rgba(0,0,0,.3)
        );
    }


    /* =====================================================
       LOGO IMPACT RESPONSE
    ===================================================== */

    @keyframes logo-reaction {

      0%,
      24% {
        transform:
          translateX(-50%)
          translateX(0)
          rotate(0deg);
      }

      28% {
        transform:
          translateX(-50%)
          translateX(1px)
          rotate(.18deg);
      }

      31% {
        transform:
          translateX(-50%)
          translateX(2.5px)
          rotate(.45deg);
      }

      35% {
        transform:
          translateX(-50%)
          translateX(1.4px)
          rotate(.22deg);
      }

      39% {
        transform:
          translateX(-50%)
          translateX(-.6px)
          rotate(-.1deg);
      }

      44%,
      70% {
        transform:
          translateX(-50%)
          translateX(0)
          rotate(0deg);
      }

      74% {
        transform:
          translateX(-50%)
          translateX(-1px)
          rotate(-.18deg);
      }

      77% {
        transform:
          translateX(-50%)
          translateX(-2.5px)
          rotate(-.45deg);
      }

      81% {
        transform:
          translateX(-50%)
          translateX(-1.4px)
          rotate(-.22deg);
      }

      85% {
        transform:
          translateX(-50%)
          translateX(.6px)
          rotate(.1deg);
      }

      90%,
      100% {
        transform:
          translateX(-50%)
          translateX(0)
          rotate(0deg);
      }
    }


    /* =====================================================
       TRUST + SERVICE ICONS
    ===================================================== */

    .trust-letter,
    .service-icon {
      position: absolute;

      inset: 0;

      display: flex;
      align-items: center;
      justify-content: center;

      transition:
        opacity .18s ease,
        transform .18s ease;

      pointer-events: none;
    }

    .trust-letter {
      font-size:
        clamp(
          13px,
          2vw,
          18px
        );

      font-weight: 800;

      color: #fff;

      text-transform: uppercase;

      opacity: 1;

      transform:
        scale(1);
    }

    .trust-dot {
      align-items:
        flex-end;

      padding-bottom: 4px;

      font-size:
        clamp(
          18px,
          2.4vw,
          24px
        );

      line-height: 1;
    }

    .service-icon {
      opacity: 0;

      transform:
        scale(.72);
    }

    .service-icon svg {
      width: 58%;
      height: 58%;

      stroke: #fff;
      fill: none;

      stroke-width: 1.8;

      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .cradle.show-services .trust-letter {
      opacity: 0;

      transform:
        scale(.7);
    }

    .cradle.show-services .service-icon {
      opacity: 1;

      transform:
        scale(1);
    }


    /* =====================================================
       TABLET
    ===================================================== */

    @media (max-width: 800px) {

      .cradle {
        --square-size: 31px;
        --square-step: 33px;
        --logo-zone: 82px;

        --string-height:
          clamp(
            320px,
            57vh,
            500px
          );
      }

      .preloader-logo {
        width: 68px;
      }

      .logo-holder {
        height: 68px;
      }
    }


    /* =====================================================
       MOBILE
       Smaller swing so squares remain on-screen.
    ===================================================== */

    @media (max-width: 600px) {

      .cradle {
        --square-size: 23px;
        --square-step: 25px;

        --logo-zone: 62px;

        --string-height:
          clamp(
            300px,
            58vh,
            470px
          );
      }

      .preloader-logo {
        width: 48px;
      }

      .logo-holder {
        height: 52px;
      }

      .trust-letter {
        font-size: 9px;
      }

      .trust-dot {
        font-size: 14px;
        padding-bottom: 2px;
      }


      @keyframes newton-left {

        0%,
        5% {
          transform:
            rotate(12deg);
        }

        11% {
          transform:
            rotate(10deg);
        }

        17% {
          transform:
            rotate(6deg);
        }

        22% {
          transform:
            rotate(2deg);
        }

        25% {
          transform:
            rotate(0deg);
        }

        26%,
        40%,
        55%,
        69% {
          transform:
            rotate(0deg);
        }

        75% {
          transform:
            rotate(2deg);
        }

        81% {
          transform:
            rotate(6deg);
        }

        87% {
          transform:
            rotate(10deg);
        }

        94%,
        100% {
          transform:
            rotate(12deg);
        }
      }


      @keyframes newton-right {

        0%,
        24% {
          transform:
            rotate(0deg);
        }

        28% {
          transform:
            rotate(-2deg);
        }

        34% {
          transform:
            rotate(-6deg);
        }

        40% {
          transform:
            rotate(-10deg);
        }

        47%,
        53% {
          transform:
            rotate(-12deg);
        }

        59% {
          transform:
            rotate(-10deg);
        }

        65% {
          transform:
            rotate(-6deg);
        }

        70% {
          transform:
            rotate(-2deg);
        }

        72%,
        100% {
          transform:
            rotate(0deg);
        }
      }
    }


    /* =====================================================
       SMALL PHONES
       Even smaller 9-degree arc.
    ===================================================== */

    @media (max-width: 420px) {

      .cradle {
        --square-size: 18px;
        --square-step: 20px;

        --logo-zone: 49px;

        --string-height:
          clamp(
            280px,
            57vh,
            430px
          );
      }

      .preloader-logo {
        width: 37px;
      }

      .logo-holder {
        height: 42px;
      }

      .trust-letter {
        font-size: 7px;
      }

      .trust-dot {
        font-size: 11px;
      }


      @keyframes newton-left {

        0%,
        6% {
          transform:
            rotate(9deg);
        }

        14% {
          transform:
            rotate(6deg);
        }

        20% {
          transform:
            rotate(3deg);
        }

        25%,
        70% {
          transform:
            rotate(0deg);
        }

        80% {
          transform:
            rotate(3deg);
        }

        87% {
          transform:
            rotate(6deg);
        }

        94%,
        100% {
          transform:
            rotate(9deg);
        }
      }


      @keyframes newton-right {

        0%,
        24% {
          transform:
            rotate(0deg);
        }

        32% {
          transform:
            rotate(-3deg);
        }

        40% {
          transform:
            rotate(-6deg);
        }

        47%,
        53% {
          transform:
            rotate(-9deg);
        }

        62% {
          transform:
            rotate(-6deg);
        }

        68% {
          transform:
            rotate(-3deg);
        }

        72%,
        100% {
          transform:
            rotate(0deg);
        }
      }
    }


    /* =====================================================
       VERY SMALL PHONES
    ===================================================== */

    @media (max-width: 340px) {

      .cradle {
        --square-size: 15px;
        --square-step: 17px;
        --logo-zone: 42px;

        --string-height:
          clamp(
            260px,
            56vh,
            400px
          );
      }

      .preloader-logo {
        width: 31px;
      }

      .trust-letter {
        font-size: 6px;
      }
    }


    /* =====================================================
       LANDSCAPE PHONES
       Maximum swing = 8 degrees.
    ===================================================== */

    @media
      (max-height: 500px)
      and
      (orientation: landscape) {

      .cradle {
        --square-size: 20px;
        --square-step: 22px;
        --logo-zone: 56px;

        --string-height: 68vh;
      }

      .preloader-logo {
        width: 42px;
      }

      .logo-holder {
        height: 46px;
      }


      @keyframes newton-left {

        0%,
        6% {
          transform:
            rotate(8deg);
        }

        16% {
          transform:
            rotate(4deg);
        }

        25%,
        70% {
          transform:
            rotate(0deg);
        }

        84% {
          transform:
            rotate(4deg);
        }

        94%,
        100% {
          transform:
            rotate(8deg);
        }
      }


      @keyframes newton-right {

        0%,
        24% {
          transform:
            rotate(0deg);
        }

        38% {
          transform:
            rotate(-4deg);
        }

        47%,
        53% {
          transform:
            rotate(-8deg);
        }

        65% {
          transform:
            rotate(-4deg);
        }

        72%,
        100% {
          transform:
            rotate(0deg);
        }
      }
    }


    /* =====================================================
       REDUCED MOTION
    ===================================================== */

    @media (prefers-reduced-motion: reduce) {

      .outer-left,
      .outer-right,
      .logo-holder,
      .display-1 .square,
      .display-2 .square,
      .display-3 .square,
      .display-4 .square,
      .display-5 .square,
      .display-6 .square {
        animation: none !important;
      }
    }


    /* =====================================================
       DEMO WEBSITE
    ===================================================== */

    .website-demo {
      min-height: 100vh;

      display: flex;
      align-items: center;
      justify-content: center;

      background: #4e0401;
      color: #fff;
    }


/* ===================================
   IMAGINE HERO 4 : HEADER / NAV
   Glass pill nav + logo + mobile menu + breadcrumb.
   Replaces the old header entirely: Hero 4's fixed, translucent,
   scroll-aware header is inseparable from the hero it sits on top of.
=================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 18px 4vw;
  transition: padding .35s ease, background .35s ease;
}
.site-header.is-scrolled {
  padding: 12px 4vw;
  background: linear-gradient(to bottom, rgba(78,4,1,.55), rgba(78,4,1,0));
}

/* --- glass pill nav --- */
.nav-glass {
  position: relative;
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  padding: 6px;
  border-radius: 999px;
  background: rgba(78,4,1,.45);
  border: 1px solid rgba(254,251,243,.14);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 8px 30px rgba(0,0,0,.28), inset 0 1px 0 rgba(254,251,243,.06);
}

.nav-cursor {
  position: absolute;
  top: 6px; bottom: 6px; left: 0;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), var(--glow));
  box-shadow: 0 0 18px rgba(232,140,43,.45);
  opacity: 0;
  z-index: 0;
  transition: left .35s cubic-bezier(.22,1,.36,1), width .35s cubic-bezier(.22,1,.36,1), opacity .25s ease;
  pointer-events: none;
}

.nav-item { position: relative; z-index: 1; list-style: none; }

.nav-tab {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 18px;
  font-family: var(--font-anim);
  font-weight: 600;
  font-size: .83rem;
  letter-spacing: .01em;
  color: var(--white);
  text-decoration: none;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  background: none;
  border: none;
  mix-blend-mode: difference;
}

.nav-tab .chev { width: 9px; height: 9px; stroke: currentColor; transition: transform .3s ease; }
.nav-item.has-dropdown:hover .chev,
.nav-item.has-dropdown:focus-within .chev { transform: rotate(180deg); }

.nav-tab--cta { color: var(--glow); }

/* --- dropdown panels (kept for any future nested nav items) --- */
.dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 230px;
  background: rgba(78,4,1,.72);
  border: 1px solid rgba(254,251,243,.12);
  border-radius: 26px;
  padding: 10px;
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: 0 24px 55px rgba(0,0,0,.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
  z-index: 60;
}
.nav-item.has-dropdown:hover .dropdown,
.nav-item.has-dropdown:focus-within .dropdown,
.nav-item.has-dropdown.force-open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown a {
  display: block;
  padding: 10px 14px;
  border-radius: 16px;
  color: var(--gray);
  font-family: var(--font-anim);
  font-size: .82rem;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.dropdown a:hover { background: rgba(232,140,43,.16); color: var(--white); }

/* --- logo --- */
.logo-wrap { display: flex; align-items: center; flex-shrink: 0; text-decoration: none; }
.logo-img { height: 48px; width: auto; display: block; }
.logo-fallback {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: .02em;
  color: var(--white);
}
.logo-mark { color: var(--orange); margin-right: 2px; }

/* --- mobile hamburger + menu --- */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 999px;
  background: rgba(78,4,1,.5);
  border: 1px solid rgba(254,251,243,.16);
  backdrop-filter: blur(16px);
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  position: relative;
  display: block;
  width: 18px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform .3s ease, top .3s ease;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.is-open span::after { top: 0; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: 82px;
  left: 4vw; right: 4vw;
  z-index: 99;
  background: rgba(78,4,1,.82);
  border: 1px solid rgba(254,251,243,.12);
  border-radius: 28px;
  padding: 1.2rem;
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  box-shadow: 0 30px 60px rgba(0,0,0,.45);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity .35s ease, transform .35s ease, visibility .35s ease;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.mobile-group { margin-bottom: .9rem; }
.mobile-group:last-child { margin-bottom: 0; }
.mobile-group-label {
  font-family: var(--font-anim);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: .4rem;
  display: block;
}
.mobile-menu a {
  display: block;
  padding: .55rem .3rem;
  font-family: var(--font-anim);
  font-size: .95rem;
  color: var(--gray);
  text-decoration: none;
  border-radius: 12px;
}
.mobile-menu a:hover { color: var(--white); }
.mobile-menu a.mobile-link--single { font-weight: 600; color: var(--white); }

/* --- breadcrumb demo strip --- */
.breadcrumb-demo {
  position: fixed;
  top: 86px;
  left: 4vw;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  background: rgba(78,4,1,.4);
  border: 1px solid rgba(254,251,243,.1);
  border-radius: 999px;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  font-family: var(--font-anim);
  font-size: .72rem;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .3s ease, transform .3s ease, visibility .3s ease;
}
.breadcrumb-demo.is-hidden { opacity: 0; visibility: hidden; transform: translateY(-6px); pointer-events: none; }
.breadcrumb-demo a { color: var(--gray); text-decoration: none; transition: color .2s ease; }
.breadcrumb-demo a:hover { color: var(--white); }
.breadcrumb-demo .crumb-current { color: var(--white); font-weight: 600; }
.breadcrumb-demo .crumb-sep { color: rgba(228,214,199,.45); display: flex; }
.breadcrumb-demo .crumb-sep svg { width: 12px; height: 12px; }

@media (max-width: 860px) {
  .nav-glass { display: none; }
  .nav-toggle { display: flex; }
  .breadcrumb-demo { top: 78px; font-size: .68rem; padding: 6px 12px; }
}
@media (max-width: 480px) {
  .breadcrumb-demo .crumb-hide-xs { display: none; }
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); }
.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--glow));
  color: var(--white);
  box-shadow: 0 8px 24px rgba(232,140,43,.25);
}
.btn-primary:hover {
  box-shadow: 0 12px 34px rgba(243,166,89,.5), 0 0 30px rgba(245,169,78,.35);
}
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(254,251,243,.5); }
.btn-ghost:hover { background: rgba(254,251,243,.08); border-color: var(--white); color: var(--white); }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-lg { padding: 18px 36px; font-size: 15px; }
.btn-block { width: 100%; justify-content: center; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--paper);
  transition: gap var(--dur-fast), color var(--dur-fast);
}
.link-arrow:hover { gap: 12px; color: var(--accent); }

/* =====================================================
   REVEAL ANIMATION UTILITIES
   ===================================================== */
.reveal-wrap { overflow: hidden; }
.reveal {
  display: inline-block;
  opacity: 0;
  transform: translateY(110%);
  animation: reveal-up var(--dur-med) var(--ease-out) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes reveal-up {
  to { opacity: 1; transform: translateY(0); }
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out);
}
.reveal-on-scroll.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-on-scroll, .anime-card, .hero-glow { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
}

/* ===================================
   IMAGINE HERO 4
=================================== */

/* ---------- HERO SHELL ---------- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  isolation: isolate;
}

/* ---------- SLIDER ---------- */
.slides { position: absolute; inset: 0; z-index: 0; }

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1) translateX(0);
  transition: opacity var(--dur-fade) ease;
  will-change: opacity, transform;
}
.slide.is-active { opacity: 1; z-index: 1; animation: kenburns 14s ease-in-out forwards; }

@keyframes kenburns {
  0%   { transform: scale(1) translateX(0); }
  100% { transform: scale(1.08) translateX(-1.4%); }
}
.slide--2.is-active { animation-name: kenburns-right; }
@keyframes kenburns-right {
  0%   { transform: scale(1) translateX(0); }
  100% { transform: scale(1.08) translateX(2.2%); }
}

.slide--1 { background-image: url('https://images.pexels.com/photos/5380595/pexels-photo-5380595.jpeg?auto=compress&cs=tinysrgb&w=2000'); }
.slide--2 { background-image: url('https://images.pexels.com/photos/7643743/pexels-photo-7643743.jpeg?auto=compress&cs=tinysrgb&w=2000'); background-position: center 40%; }
.slide--3 { background-image: url('https://images.pexels.com/photos/10498787/pexels-photo-10498787.jpeg?auto=compress&cs=tinysrgb&w=2000'); }

/* ---------- OVERLAY ---------- */
.overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    to right,
    rgba(78,4,1,.82),
    rgba(78,4,1,.52) 45%,
    rgba(78,4,1,.4) 75%,
    rgba(78,4,1,.55)
  );
  pointer-events: none;
}


/* ---------- CONTENT ---------- */
.content { position: relative; z-index: 4; height: 100%; display: flex; align-items: center; padding: 0 6vw; }
.content-inner { max-width: 640px; }

/* Hero eyebrow entrance : scoped so it doesn't change the shared
   .eyebrow utility used elsewhere on the site. */
.hero .eyebrow {
  margin-bottom: 1.1rem;
  opacity: 0;
  animation: fadeUp .8s ease forwards;
  animation-delay: .1s;
}

h1.headline {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -.01em;
  margin-bottom: 1.4rem;
  color: var(--white);
}
h1.headline .line { display: block; overflow: hidden; }
h1.headline .line span { display: block; opacity: 0; transform: translateY(100%); }
h1.headline .line span.enter { animation: fadeUp .9s cubic-bezier(.22,1,.36,1) forwards; }
h1.headline .line span.accent { color: var(--orange); }

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

.rotator {
  position: relative;
  height: 2.6em;
  display: flex;
  align-items: center;
  margin-bottom: 1.6rem;
  opacity: 0;
  animation: fadeIn 1s ease forwards;
  animation-delay: .65s;
}
@keyframes fadeIn { to { opacity: 1; } }

.rotator-text {
  position: absolute;
  left: 0; right: 0;
  font-family: var(--font-anim);
  font-weight: 600;
  font-size: clamp(1.05rem, 1.9vw, 1.45rem);
  color: var(--gray);
  filter: blur(6px);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s ease, transform .7s ease, filter .7s ease;
}
.rotator-text.is-active { filter: blur(0); opacity: 1; transform: translateY(0); }
.rotator-text .cursor {
  display: inline-block;
  width: 2px; height: 1em;
  background: var(--orange);
  margin-left: 2px;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }

.hero .sub {
  font-size: clamp(.95rem, 1.2vw, 1.08rem);
  line-height: 1.7;
  color: var(--gray);
  max-width: 600px;
  margin-bottom: 2.2rem;
  opacity: 0;
  animation: fadeUp .9s ease forwards;
  animation-delay: .85s;
}

.cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp .9s cubic-bezier(.22,1,.36,1) forwards;
  animation-delay: 1.05s;
}

/* ---------- SCROLL INDICATOR ---------- */
.hero .scroll-indicator {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  opacity: 0;
  animation: fadeIn 1s ease forwards;
  animation-delay: 1.4s;
}
.mouse {
  width: 24px; height: 38px;
  border: 2px solid rgba(254,251,243,.6);
  border-radius: 14px;
  position: relative;
}
.mouse::before {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  width: 4px; height: 8px;
  background: var(--orange);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollDot 1.8s ease infinite;
}
@keyframes scrollDot {
  0% { opacity: 1; transform: translate(-50%,0); }
  60% { opacity: 0; transform: translate(-50%,10px); }
  100% { opacity: 0; transform: translate(-50%,10px); }
}
.hero .scroll-label {
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(254,251,243,.55);
  font-family: var(--font-anim);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 860px) {
  .content { padding: 0 6vw; justify-content: center; text-align: center; }
  .content-inner { max-width: 520px; }
  .hero .sub { margin-left: auto; margin-right: auto; }
  .cta-row { justify-content: center; }
  .rotator { justify-content: center; }
  .rotator-text { text-align: center; }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  .slide.is-active { animation: none; transform: none; }
  .particles { display: none; }
  .hero .eyebrow, h1.headline .line span, .rotator, .hero .sub, .cta-row, .hero .scroll-indicator {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .rotator-text { transition: opacity .3s ease; filter: none; transform: none; }
  .nav-cursor { transition: opacity .15s ease; }
  .dropdown, .mobile-menu { transition: opacity .15s ease; transform: none !important; }
}

/* =====================================================
   SERVICE HERO (scroll-pinned schematic → photo reveal)
   ===================================================== */
.service-hero {
  border-top: 1px solid var(--card-border);
  height: auto;
}
@media (min-width: 900px) {
  .service-hero { height: 220vh; }
  .service-sticky { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; }
}
.service-sticky { width: 100%; padding: 64px 0; }

.service-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .service-grid { grid-template-columns: 1fr 1fr; gap: 72px; }
  .service-grid.reversed .service-media { order: 2; }
  .service-grid.reversed .service-copy { order: 1; }
}

.reveal-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
}
.reveal-media img { width: 100%; height: 100%; object-fit: cover; }
.img-blueprint { filter: grayscale(1) brightness(0.7) sepia(0.55) hue-rotate(-15deg) saturate(2.6); }
.img-color-mask {
  position: absolute; inset: 0;
  clip-path: inset(0 0 100% 0);
  will-change: clip-path;
}
.img-color-mask.circle-mask {
  clip-path: circle(0% at 50% 50%);
  transition: clip-path 1.1s var(--ease-out);
}

.media-tick { position: absolute; width: 22px; height: 22px; opacity: 0; transition: opacity var(--dur-fast); }
.reveal-media:hover .media-tick, .reveal-media:focus-within .media-tick { opacity: 1; }
.media-tick-tl { top: 10px; left: 10px; border-top: 1px solid var(--accent); border-left: 1px solid var(--accent); }
.media-tick-tr { top: 10px; right: 10px; border-top: 1px solid var(--accent); border-right: 1px solid var(--accent); }
.media-tick-bl { bottom: 10px; left: 10px; border-bottom: 1px solid var(--accent); border-left: 1px solid var(--accent); }
.media-tick-br { bottom: 10px; right: 10px; border-bottom: 1px solid var(--accent); border-right: 1px solid var(--accent); }

.service-copy { max-width: 480px; }
.service-copy h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-bottom: 4px; }
.service-copy p { color: var(--paper-dim); margin-top: 16px; }
.service-step {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out);
}
.service-step.active { opacity: 1; transform: translateY(0); }

.service-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  padding: 7px 14px;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  color: var(--paper-dim);
}
.service-copy .btn { margin-top: 28px; }

/* =====================================================
   PORTFOLIO
   ===================================================== */
.portfolio { padding: 110px 0 90px; background: var(--ink); }
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--card-border);
  padding-bottom: 24px;
  margin-bottom: 40px;
}
.portfolio-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 12px;
}
.portfolio-card {
  scroll-snap-align: start;
  flex: 0 0 clamp(240px, 70vw, 340px);
  cursor: pointer;
}
.portfolio-card .reveal-media { aspect-ratio: 3 / 4; margin-bottom: 20px; }
.portfolio-info h4 { font-size: 1.05rem; margin: 8px 0 6px; }
.portfolio-info p { color: var(--paper-dim); font-size: 0.9rem; }
.tag-sm { font-size: 10px; letter-spacing: 0.16em; color: var(--accent); }

.anime-card {
  opacity: 0;
  transform: translateY(-40px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.anime-card.is-visible { opacity: 1; transform: translateY(0); }

.scroll-progress-track {
  width: 120px; height: 2px;
  background: var(--grid-line-strong);
  margin: 8px auto 0;
  border-radius: 2px;
  overflow: hidden;
}
.scroll-progress-fill {
  height: 100%; width: 30px;
  background: var(--accent);
  border-radius: 2px;
  transition: transform 0.1s linear;
}

/* =====================================================
   ABOUT
   ===================================================== */
.about { padding: 110px 0; }
.about-grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 0.85fr 1fr; gap: 72px; } }
.about-media img { border-radius: var(--radius-md); border: 1px solid var(--card-border); aspect-ratio: 4/5; object-fit: cover; }
.about-copy h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin-bottom: 18px; }
.about-copy p { color: var(--paper-dim); margin-bottom: 32px; }
.about-values { display: grid; gap: 22px; }
.value-item { border-top: 1px solid var(--card-border); padding-top: 16px; }
.value-num { color: var(--accent); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; display: block; margin-bottom: 8px; }
.value-item p { color: var(--paper-dim); margin: 0; }

/* =====================================================
   WHY US
   ===================================================== */
.why-us { padding: 110px 0; background: var(--ink); }
.why-us h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); max-width: 640px; margin-bottom: 48px; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--card-border); border: 1px solid var(--card-border); }
.why-card { background: var(--ink); padding: 32px; transition: background var(--dur-fast); }
.why-card:hover { background: var(--card-bg); }
.why-card i { font-size: 22px; color: var(--accent); margin-bottom: 18px; }
.why-card h3 { font-size: 1rem; margin-bottom: 10px; }
.why-card p { color: var(--paper-dim); font-size: 0.9rem; }

/* =====================================================
   PROCESS : pinned implementation-step board
   ===================================================== */
.process { padding: 110px 0; overflow: hidden; }
.process h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin-bottom: 14px; }
.process-intro { color: var(--paper-dim); max-width: 480px; margin-bottom: 56px; }

.pin-board-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px);
  background-size: 100% 32px;
  opacity: 0.6;
  mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}

.pin-board {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
@media (min-width: 900px) {
  .pin-board { display: block; height: var(--board-h); gap: 0; }
}

.pin-path {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: none;
  z-index: 0;
}
@media (min-width: 900px) { .pin-path { display: block; } }
.pin-path path {
  fill: none;
  stroke: var(--grid-line-strong);
  stroke-width: 2;
  stroke-dasharray: 8 6;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  animation: pin-dash-flow 3s linear infinite;
}
@keyframes pin-dash-flow { to { stroke-dashoffset: -140; } }

.pin-card {
  position: relative;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  z-index: 1;
  opacity: 0;
  transform: translateY(-24px) rotate(var(--rotate, 0deg));
  transition: opacity var(--dur-med) var(--ease-out), transform var(--dur-med) var(--ease-out);
}
.pin-card.is-visible { opacity: 1; transform: translateY(0) rotate(var(--rotate, 0deg)); }
.pin-card:hover { transform: translateY(0) rotate(0deg) scale(1.05); z-index: 5; }

@media (min-width: 900px) {
  .pin-card { position: absolute; width: 280px; max-width: none; margin: 0; }
  .pin-pos-1 { top: 0;     left: 15%;  --rotate: 6deg; }
  .pin-pos-2 { top: 120px; right: 15%; --rotate: -6deg; }
  .pin-pos-3 { top: 450px; left: 15%;  --rotate: 6deg; }
  .pin-pos-4 { top: 570px; right: 10%; --rotate: -6deg; }
  .pin-pos-5 { top: 850px; left: 15%;  --rotate: 6deg; }
}

.pin-card-outer {
  background: var(--paper);
  padding: 10px;
  border-radius: 22px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.45);
}
.pin-icon {
  width: 26px;
  height: 26px;
  display: block;
  margin: 0 auto 16px;
  color: var(--ink);
  opacity: 0.55;
}
.pin-card-body {
  border-radius: 14px;
  padding: 18px 16px;
  position: relative;
  overflow: hidden;
}
.pin-number {
  display: block;
  font-size: 1.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 14px;
}
.pin-card-body h3 { font-size: 1.2rem; color: var(--ink); line-height: 1.15; margin-bottom: 8px; }
.pin-card-body p { color: #5b6472; font-size: 0.84rem; line-height: 1.5; }

.theme-accent .pin-card-body { background: rgba(232, 140, 43, 0.09); border: 1px solid rgba(232, 140, 43, 0.28); }
.theme-accent .pin-number { color: var(--accent-dim); }
.theme-accent .pin-icon { color: var(--accent-dim); opacity: 0.85; }

.theme-steel .pin-card-body { background: rgba(228, 214, 199, 0.12); border: 1px solid rgba(228, 214, 199, 0.35); }
.theme-steel .pin-number { color: var(--gray); }
.theme-steel .pin-icon { color: var(--gray); opacity: 0.85; }

@media (prefers-reduced-motion: reduce) {
  .pin-path path { animation: none; }
}


/* =====================================================
   CTA BAND
   ===================================================== */
.cta { padding: 100px 0; text-align: center; }
.cta-inner { max-width: 620px; margin: 0 auto; }
.cta h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 18px; }
.cta p { color: var(--paper-dim); margin-bottom: 32px; }

/* =====================================================
   CONTACT
   ===================================================== */
.contact { padding: 0 0 120px; }
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 56px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.contact-copy h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); margin: 8px 0 16px; }
.contact-copy p { color: var(--paper-dim); margin-bottom: 28px; }
.contact-details { display: grid; gap: 14px; margin-bottom: 28px; }
.contact-details li { display: flex; align-items: center; gap: 12px; color: var(--paper-dim); font-size: 0.92rem; }
.contact-details i { color: var(--accent); width: 18px; }
.contact-map {
  border: 1px dashed var(--card-border);
  border-radius: var(--radius-md);
  padding: 40px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--muted); text-align: center; font-size: 0.85rem;
}
.contact-map i { font-size: 26px; color: var(--steel); }

.contact-form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 8px; }
.form-row label { font-size: 0.82rem; color: var(--paper-dim); }
.form-row input, .form-row select, .form-row textarea {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--paper);
  transition: border-color var(--dur-fast);
  resize: vertical;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  border-color: var(--accent);
  outline: none;
}
.form-row.has-error input, .form-row.has-error textarea { border-color: var(--error); }
.form-error { font-size: 0.78rem; color: var(--error); min-height: 14px; }
.form-status { font-size: 0.85rem; text-align: center; min-height: 18px; }
.form-status.success { color: var(--success); }
.form-status.error { color: var(--error); }

/* ===================================
   IMAGINE FOOTER
=================================== */
@keyframes footer-ping {
  0% { transform: scale(1); opacity: .75; }
  75%, 100% { transform: scale(2.4); opacity: 0; }
}

.site-footer {
  position: relative;
  margin-top: 0;
  background: var(--ink);
  border-top: 1px solid rgba(254,251,243,.1);
  border-radius: 28px 28px 0 0;
}

.footer-inner { max-width: 1280px; margin: 0 auto; padding: 64px 4vw 24px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 960px) { .footer-grid { grid-template-columns: 1fr 2fr; } }

/* --- brand column --- */
.footer-brand-row { display: flex; align-items: center; justify-content: center; gap: 10px; }
.footer-logo-img {
  height: 34px; width: 34px;
  border-radius: 999px;
  object-fit: cover;
  background: linear-gradient(135deg, var(--orange), var(--glow));
}
.footer-brand-name { font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; color: var(--white); }
.footer-desc {
  margin-top: 20px;
  max-width: 340px;
  margin-left: auto; margin-right: auto;
  color: var(--gray);
  opacity: .6;
  font-size: .9rem;
  line-height: 1.7;
  text-align: center;
}
.footer-social { list-style: none; display: flex; justify-content: center; gap: 22px; margin-top: 28px; padding: 0; }
.footer-social a { color: var(--gray); opacity: .75; display: flex; transition: color .2s ease, opacity .2s ease, transform .2s ease; }
.footer-social a:hover { color: var(--orange); opacity: 1; transform: translateY(-2px); }
.footer-social svg { width: 20px; height: 20px; }
.footer-social i { font-size: 20px; }

@media (min-width: 640px) {
  .footer-brand-row { justify-content: flex-start; }
  .footer-desc { text-align: left; margin-left: 0; }
  .footer-social { justify-content: flex-start; }
}

/* --- link columns --- */
.footer-links-grid { display: grid; grid-template-columns: 1fr; gap: 36px; text-align: center; }
@media (min-width: 640px) { .footer-links-grid { grid-template-columns: 1fr 1fr; text-align: left; } }
@media (min-width: 860px) { .footer-links-grid { grid-template-columns: repeat(4, 1fr); } }

.footer-col-title { font-family: var(--font-head); font-weight: 600; font-size: 1rem; color: var(--white); }
.footer-col-list { list-style: none; margin-top: 22px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.footer-col-list a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--gray);
  opacity: .65;
  text-decoration: none;
  font-family: var(--font-anim);
  font-size: .86rem;
  transition: color .2s ease, opacity .2s ease;
}
@media (min-width: 640px) { .footer-col-list a { justify-content: flex-start; } }
.footer-col-list a:hover { color: var(--white); opacity: 1; }
.footer-col-list address { font-style: normal; }

.footer-ping { position: relative; display: inline-flex; width: 8px; height: 8px; flex-shrink: 0; }
.footer-ping .ping-halo { position: absolute; inset: 0; border-radius: 999px; background: var(--orange); animation: footer-ping 1.6s cubic-bezier(0,0,.2,1) infinite; }
.footer-ping .ping-dot { position: relative; width: 8px; height: 8px; border-radius: 999px; background: var(--orange); }

.footer-contact-icon { color: var(--orange); width: 16px; height: 16px; font-size: 16px; flex-shrink: 0; }

/* --- bottom bar --- */
.footer-bottom {
  margin-top: 56px;
  padding: 22px 4vw 24px;
  border-top: 1px solid rgba(254,251,243,.1);
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
  gap: 8px;
  text-align: center;
  font-family: var(--font-anim);
  font-size: .8rem;
  color: var(--gray);
  opacity: .6;
}
@media (min-width: 640px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}


/* ================================================================
   ABOUT GATESPARK : FLOWART-STYLE SCROLL ENTRANCE
   The section preserves the original homepage layout, but its inner
   canvas rotates into place from the bottom-left as the user scrolls.
   ================================================================ */
.about-flow {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.about-flow .flow-art-container {
  min-height: 100svh;
  transform-origin: bottom left;
  will-change: transform;
}

.about-display-title {
  margin: 0 0 clamp(24px, 3vw, 38px);
  font-family: var(--font-display, "Space Grotesk", sans-serif);
  font-size: clamp(3.15rem, 7.8vw, 7.4rem);
  font-weight: 800;
  line-height: .84;
  letter-spacing: -.065em;
  color: var(--orange);
  text-wrap: balance;
}

@media (max-width: 760px) {
  .about-flow { min-height: auto; }
  .about-flow .flow-art-container { min-height: auto; }
  .about-display-title {
    font-size: clamp(2.7rem, 14vw, 5.4rem);
    line-height: .88;
    margin-bottom: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about-flow .flow-art-container {
    transform: none !important;
    will-change: auto;
  }
}


/* ================================================================
   WHY GATESPARK : SCROLLING FEATURE SHOWCASE
   Page-scroll driven adaptation of the supplied sticky feature pattern.
   ================================================================ */
.why-showcase {
  --why-panel-bg: var(--orange);
  --why-panel-ink: #2a0301;
  height: 400svh;
  padding: 0;
  background: var(--why-panel-bg);
  color: var(--why-panel-ink);
  overflow: visible;
  isolation: isolate;
}

.why-showcase-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  background: var(--why-panel-bg);
  color: var(--why-panel-ink);
  transition: background-color .7s ease, color .7s ease;
}

.why-showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: min(100%, 1440px);
  height: 100%;
  margin: 0 auto;
}

.why-showcase-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(88px, 9vw, 138px) clamp(28px, 6vw, 88px) clamp(90px, 8vw, 120px);
  border-right: 1px solid rgba(42, 3, 1, .14);
}

.why-pagination {
  position: absolute;
  top: clamp(92px, 10vw, 145px);
  left: clamp(28px, 6vw, 88px);
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 4;
}

.why-page {
  width: 24px;
  height: 4px;
  border: 0;
  border-radius: 99px;
  padding: 0;
  background: rgba(42, 3, 1, .22);
  cursor: pointer;
  transition: width .45s var(--ease-out), background-color .45s ease;
}

.why-page.is-active {
  width: 48px;
  background: rgba(42, 3, 1, .88);
}

.why-copy-stage {
  position: relative;
  min-height: clamp(330px, 42vh, 470px);
  display: flex;
  align-items: center;
}

.why-feature {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  opacity: 0;
  transform: translateY(42px);
  pointer-events: none;
  transition: opacity .58s ease, transform .7s var(--ease-out);
}

.why-feature.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.why-feature .eyebrow {
  color: rgba(42, 3, 1, .68);
  margin-bottom: 18px;
}

.why-showcase .why-feature h2 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(3rem, 5.8vw, 6.6rem);
  line-height: .92;
  letter-spacing: -.06em;
  font-weight: 800;
  color: var(--why-panel-ink);
  text-wrap: balance;
}

.why-feature p {
  max-width: 610px;
  margin-top: clamp(24px, 3vw, 34px);
  color: rgba(42, 3, 1, .78);
  font-size: clamp(1rem, 1.55vw, 1.25rem);
  line-height: 1.65;
}

.why-showcase-cta {
  position: absolute;
  left: clamp(28px, 6vw, 88px);
  bottom: clamp(34px, 6vw, 80px);
  display: inline-flex;
  width: max-content;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 34px;
  border-radius: 999px;
  background: var(--why-panel-ink);
  color: var(--white);
  font-family: var(--font-display);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: transform .25s var(--ease-out), opacity .25s ease;
}

.why-showcase-cta:hover { transform: translateY(-2px); }

.why-showcase-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  overflow: hidden;
}

.why-grid-pattern {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(42, 3, 1, .12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(42, 3, 1, .12) 1px, transparent 1px);
  background-size: 3.5rem 3.5rem;
}

.why-image-frame {
  position: relative;
  z-index: 2;
  width: min(54%, 420px);
  height: min(80vh, 720px);
  min-height: 480px;
  border: 4px solid rgba(42, 3, 1, .06);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(42, 3, 1, .28);
  background: var(--maroon);
}

.why-image-track {
  width: 100%;
  height: 100%;
  will-change: transform;
  transition: transform .7s var(--ease-out);
}

.why-image-track figure {
  width: 100%;
  height: 100%;
  margin: 0;
}

.why-image-track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The About section now animates in normal document flow. No pinning,
   no persistent stacking layer, and no overlap with Why Gatespark. */
.about-flow {
  z-index: 0;
  overflow: clip;
}
.about-flow .flow-art-container { position: relative; z-index: 0; }
.why-showcase { z-index: 1; }

@media (max-width: 900px) {
  .why-showcase-sticky { min-height: 600px; }
  .why-showcase-grid { grid-template-columns: 1fr; }
  .why-showcase-copy {
    border-right: 0;
    padding: 112px var(--gutter) 100px;
  }
  .why-showcase-visual { display: none; }
  .why-pagination { top: 78px; left: var(--gutter); }
  .why-showcase-cta { left: var(--gutter); bottom: 34px; }
  .why-copy-stage { min-height: min(58vh, 470px); }
  .why-showcase .why-feature h2 { font-size: clamp(2.65rem, 12vw, 5rem); }
}

@media (max-height: 720px) and (min-width: 901px) {
  .why-showcase-copy { padding-top: 76px; padding-bottom: 76px; }
  .why-pagination { top: 64px; }
  .why-showcase-cta { bottom: 28px; }
  .why-copy-stage { min-height: 330px; }
  .why-showcase .why-feature h2 { font-size: clamp(2.75rem, 5vw, 5rem); }
  .why-image-frame { height: 72vh; min-height: 390px; }
}

@media (prefers-reduced-motion: reduce) {
  .why-feature,
  .why-image-track,
  .why-page,
  .why-showcase-cta { transition: none !important; }
}
