  *, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

  :root {
    --white: #ffffff;
    --black: #000000;
    --gray-100: #f5f5f5;
    --gray-200: #e0e0e0;
    --gray-400: #999;
    --gray-600: #555;
    --gray-800: #1a1a1a;
    --accent: #4a9eff;
    --accent-glow: rgba(74,158,255,0.15);
  }

  html { scroll-behavior: smooth; }

  body {
    font-family: 'Space Grotesk', sans-serif;
    background: #000;
    color: #fff;
    overflow-x: hidden;
  }

  /* ── PRELOADER ── */
  #preloader {
    position: fixed;
    inset: 0;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
  }
  #preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }

  .pre-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    animation: fadeUp 0.6s ease both;
  }

  .pre-icon {
    width: 48px;
    height: 48px;
    position: relative;
  }
  .pre-icon svg { width: 100%; height: 100%; }

  .pre-wordmark {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 300;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: #fff;
  }
  .pre-wordmark span { font-weight: 600; }
  .pre-logo-img { height: 60px; width: auto; display: block; }

  .pre-tagline {
    margin-top: 16px;
    font-size: 11px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    animation: fadeUp 0.6s 0.15s ease both;
  }

  .pre-bar-wrap {
    position: absolute;
    bottom: 48px;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    animation: fadeUpCentered 0.6s 0.3s ease both;
  }
  .pre-bar-track {
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,0.1);
    overflow: hidden;
  }
  .pre-bar-fill {
    height: 100%;
    background: #fff;
    width: 0%;
    transition: width 0.05s linear;
  }
  .pre-count {
    margin-top: 8px;
    font-size: 10px;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.3);
    text-align: center;
  }

  /* ── MAIN SITE ── */
  #site { opacity: 0; transition: opacity 0.8s ease; }
  #site.visible { opacity: 1; }

  /* ── NAVBAR ── */
  nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, transparent 100%);
  }

  .nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
  }
  .nav-logo-icon { width: 28px; height: 28px; }
  .nav-logo-text {
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #fff;
  }
  .nav-logo-img { height: 44px; width: auto; display: block; }

  .nav-menu-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    padding: 8px 20px;
    cursor: pointer;
    backdrop-filter: blur(10px);
    border-radius: 2px;
    transition: background 0.2s;
  }
  .nav-menu-btn:hover { background: rgba(255,255,255,0.18); }

  /* ── SERVICES HERO BANNER (pinned) ── */
  #services-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000;
  }
  .services-hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 0;
  }
  .services-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg,
      rgba(0,0,0,0.55) 0%,
      rgba(0,0,0,0.15) 30%,
      rgba(0,0,0,0.15) 60%,
      rgba(0,0,0,0.85) 100%);
  }
  .services-hero-headline {
    position: absolute;
    left: 40px;
    right: 40px;
    bottom: 48px;
    z-index: 5;
    margin: 0;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: clamp(64px, 12vw, 180px);
    line-height: 0.9;
    letter-spacing: -0.02em;
    color: #fff;
  }
  @media (max-width: 700px) {
    .services-hero-headline { left: 20px; right: 20px; bottom: 28px; }
  }

  /* ── FLOATING PHONE-STAND CARD (reveals on scroll) ── */
  .services-hero-float-card {
    position: absolute;
    right: 40px;
    bottom: 40px;
    width: 220px;
    aspect-ratio: 4 / 3;
    border-radius: 12px;
    overflow: hidden;
    z-index: 6;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
  }
  .services-hero-float-card.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
  .services-hero-float-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  @media (max-width: 700px) {
    .services-hero-float-card { width: 140px; right: 20px; bottom: 20px; }
  }

  /* ── SERVICES FEATURE SECTION (text left / video right) ── */
  .services-feature {
    position: relative;
    display: flex;
    align-items: center;
    gap: 60px;
    min-height: 100vh;
    padding: 80px 60px;
    background: #0a0a0a;
    overflow: hidden;
  }
  .services-feature-text {
    flex: 0 0 40%;
    max-width: 480px;
  }
  .services-feature-text h2 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    font-size: clamp(28px, 3vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.01em;
    color: #fff;
    margin: 0 0 20px;
  }
  .services-feature-text p {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255,255,255,0.55);
    margin: 0;
  }
  .services-feature-video-wrap {
    flex: 1 1 auto;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 16 / 10;
  }
  .services-feature-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }
  @media (max-width: 900px) {
    .services-feature { flex-direction: column; padding: 60px 20px; }
    .services-feature-text { max-width: none; }
  }

  /* ── SERVICES STATEMENT (brand promise, black full-bleed) ── */
  #services-statement {
    position: relative;
    background: #000;
    padding: 100px 40px;
  }
  .services-statement-heading {
    font-size: clamp(26px, 3.6vw, 48px);
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -0.02em;
    color: #fff;
    max-width: 900px;
  }
  .services-statement-heading .dim {
    color: rgba(255,255,255,0.4);
    font-weight: 700;
    transition: color 0.9s ease;
  }
  /* Turns fully white once the section is scrolled into view */
  #services-statement.is-lit .services-statement-heading .dim {
    color: #fff;
  }
  .services-statement-scroll {
    margin-top: 40px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounce 2s ease-in-out infinite;
  }
  .services-statement-scroll svg { width: 16px; height: 16px; }

  @media (max-width: 768px) {
    #services-statement { padding: 100px 20px; }
  }

  /* ── INDUSTRIES SHOWCASE (draggable / click-to-advance carousel) ── */
  #services-industries {
    position: relative;
    background: #fff;
    padding: 90px 40px 100px;
    overflow: hidden;
  }
  .ind-heading-wrap { margin-bottom: 56px; }
  .ind-heading {
    font-size: clamp(24px, 3.2vw, 42px);
    font-weight: 700;
    line-height: 1.28;
    letter-spacing: -0.02em;
    color: #111;
    max-width: 980px;
  }
  .ind-heading .dim { color: rgba(17,17,17,0.45); font-weight: 700; }
  .ind-scroll-icon {
    margin-top: 24px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounce 2s ease-in-out infinite;
  }
  .ind-scroll-icon svg { width: 16px; height: 16px; }

  .ind-viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
    cursor: grab;
  }
  .ind-viewport.is-dragging { cursor: grabbing; }
  .ind-track {
    display: flex;
    gap: 24px;
    width: max-content;
    will-change: transform;
  }
  .ind-slide {
    flex: 0 0 auto;
    width: min(38vw, 630px);
    height: min(38vw, 630px);
    border-radius: 8px;
    overflow: hidden;
    user-select: none;
  }
  .ind-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    -webkit-user-drag: none;
  }

  @media (max-width: 768px) {
    #services-industries { padding: 60px 20px 70px; }
    .ind-heading-wrap { margin-bottom: 36px; }
    .ind-slide { width: 78vw; height: 78vw; }
  }

  /* ── HERO ── */
  #hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
  }

  /* Video fills entire hero */
  .hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    z-index: 0;
  }

  /* Deep purple-to-dark gradient overlay */
  .hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
      radial-gradient(ellipse 90% 70% at 50% 30%,
        rgba(80, 20, 160, 0.55) 0%,
        rgba(40, 10, 100, 0.72) 40%,
        rgba(10, 5, 40, 0.88) 75%,
        rgba(0, 0, 0, 0.96) 100%),
      linear-gradient(180deg,
        rgba(0,0,0,0.5) 0%,
        transparent 25%,
        transparent 70%,
        rgba(0,0,0,0.8) 100%);
  }

  /* Top bar: pinned to top of hero */
  .hero-topbar {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 40px;
  }

  .hero-logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
  }
  .hero-logo-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
  }
  .hero-logo-icon { width: 24px; height: 24px; flex-shrink: 0; }
  .hero-logo-text {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #fff;
  }
  .hero-logo-img { height: 38px; width: auto; display: block; }

  .hero-menu-btn {
    background: #1c1c1c;
    border: none;
    color: #fff;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    padding: 11px 26px;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s;
  }
  .hero-menu-btn:hover { background: #2c2c2c; }

  /* Card cluster in center — the three floating UI cards */
  .hero-cards {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
  }

  .hero-card {
    position: absolute;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0,0,0,0.55);
  }
  .hero-card img, .hero-card video { width: 100%; height: 100%; object-fit: cover; display: block; }

  /* Center (purple) card — largest, in front */
  .hero-card-center {
    width: clamp(340px, 38vw, 560px);
    height: clamp(280px, 32vw, 460px);
    z-index: 4;
    transform: translateY(-20px);
    animation: cardFloat 5s ease-in-out infinite;
  }
  /* Left (blue) card */
  .hero-card-left {
    width: clamp(250px, 27vw, 400px);
    height: clamp(210px, 24vw, 370px);
    z-index: 3;
    transform: translateX(-38%) translateY(5%);
    animation: cardFloat 6s ease-in-out infinite reverse;
  }
  /* Right (yellow) card */
  .hero-card-right {
    width: clamp(220px, 26vw, 380px);
    height: clamp(180px, 21vw, 340px);
    z-index: 3;
    transform: translateX(42%) translateY(8%);
    animation: cardFloat 7s ease-in-out infinite;
  }

  @keyframes cardFloat {
    0%, 100% { transform: var(--card-base-transform, translateY(0)) translateY(0px); }
    50%       { transform: var(--card-base-transform, translateY(0)) translateY(-10px); }
  }

  /* Override individual transform + float via CSS vars */
  .hero-card-center { --card-base-transform: translateY(-20px); animation: cardFloatCenter 5s ease-in-out infinite; }
  .hero-card-left   { --card-base-transform: translateX(-38%) translateY(5%); animation: cardFloatLeft 6s ease-in-out infinite; }
  .hero-card-right  { --card-base-transform: translateX(42%) translateY(8%); animation: cardFloatRight 7s ease-in-out infinite; }

  @keyframes cardFloatCenter {
    0%, 100% { transform: translateX(0) translateY(-20px); }
    50%       { transform: translateX(0) translateY(-30px); }
  }
  @keyframes cardFloatLeft {
    0%, 100% { transform: translateX(-38%) translateY(5%); }
    50%       { transform: translateX(-38%) translateY(-2%); }
  }
  @keyframes cardFloatRight {
    0%, 100% { transform: translateX(42%) translateY(8%); }
    50%       { transform: translateX(42%) translateY(1%); }
  }

  /* Card inner content — purple card face */
  .hcard-purple {
    width: 100%; height: 100%;
    background: linear-gradient(145deg, #6b21c8 0%, #4c0fa0 40%, #3a0880 100%);
    display: flex; flex-direction: column;
    align-items: center; justify-content: flex-start;
    padding: 28px 24px 20px;
    position: relative;
    border-radius: 20px;
  }
  .hcard-blue {
    width: 100%; height: 100%;
    background: linear-gradient(145deg, #1a4db3 0%, #1038a0 45%, #0a257a 100%);
    display: flex; flex-direction: column;
    align-items: center; justify-content: flex-start;
    padding: 22px 20px 16px;
    position: relative;
    border-radius: 20px;
  }
  .hcard-yellow {
    width: 100%; height: 100%;
    background: linear-gradient(145deg, #d4920a 0%, #b87808 50%, #8a5c06 100%);
    display: flex; flex-direction: column;
    align-items: center; justify-content: flex-start;
    padding: 22px 20px 16px;
    position: relative;
    border-radius: 20px;
  }

  .hcard-title {
    font-size: clamp(13px, 1.4vw, 18px);
    font-weight: 600;
    color: #fff;
    margin-bottom: 16px;
    text-align: center;
    letter-spacing: -0.01em;
  }

  /* Eyes (two dots) */
  .hcard-eyes {
    display: flex; gap: 40px;
    margin-bottom: 10px;
  }
  .hcard-eye {
    width: clamp(10px, 1.1vw, 16px);
    height: clamp(10px, 1.1vw, 16px);
    border-radius: 50%;
    background: #0a0a2a;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
  }

  /* Smile / teeth row */
  .hcard-mouth {
    width: 100%;
    flex: 1;
    background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.15) 100%);
    border-radius: 0 0 16px 16px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 12px 8px 8px;
    gap: 4px;
    margin-top: 6px;
    position: relative;
    overflow: hidden;
  }
  .hcard-tooth {
    background: #fff;
    border-radius: 0 0 8px 8px;
    flex: 1;
    height: clamp(36px, 4.5vw, 68px);
    max-width: 44px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
  }
  /* Center tooth is taller + highlighted */
  .hcard-tooth.big {
    height: clamp(50px, 6vw, 90px);
    background: #fff;
    position: relative;
    top: -8px;
    flex: 1.25;
  }
  .hcard-tooth.big .tooth-num {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: clamp(22px, 2.5vw, 38px);
    font-weight: 700;
    color: #1a1a6e;
  }

  /* Scroll picker numbers (purple card) */
  .hcard-picker {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: -2px;
  }
  .picker-num {
    width: clamp(30px, 3.5vw, 52px);
    height: clamp(46px, 5.5vw, 80px);
    border-radius: 0 0 8px 8px;
    background: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: clamp(14px, 1.8vw, 24px);
    font-weight: 600;
    color: #999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  }
  .picker-num.active {
    color: #1a1a6e;
    font-size: clamp(22px, 2.6vw, 38px);
    height: clamp(58px, 7vw, 100px);
    margin-top: -12px;
    z-index: 2;
    border-radius: 0 0 10px 10px;
    width: clamp(38px, 4.5vw, 66px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  }

  /* "Years old" label below */
  .hcard-sublabel {
    font-size: clamp(10px, 1vw, 13px);
    color: rgba(255,255,255,0.55);
    margin-top: 10px;
    letter-spacing: 0.04em;
  }

  /* Back arrow on purple card */
  .hcard-back {
    position: absolute;
    bottom: 16px; left: 20px;
    color: rgba(255,255,255,0.55);
    font-size: 18px;
  }

  /* Keyboard on blue card */
  .hcard-keyboard {
    display: flex; flex-direction: column; gap: 6px;
    margin-top: 8px; width: 100%;
  }
  .kb-row {
    display: flex; justify-content: center; gap: 5px;
  }
  .kb-key {
    width: clamp(22px, 2.6vw, 38px);
    height: clamp(22px, 2.6vw, 38px);
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex; align-items: center; justify-content: center;
    font-size: clamp(7px, 0.8vw, 11px);
    font-weight: 500;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0;
  }

  /* Bottom bar: pinned to bottom of hero */
  .hero-bottom {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px 32px;
  }

  .hero-tagline {
    font-size: clamp(13px, 1.3vw, 16px);
    font-weight: 600;
    letter-spacing: 0.02em;
    color: #fff;
  }

  /* Statement text living inside the hero, above the tagline row */
  .hero-statement {
    position: absolute;
    left: 40px;
    bottom: 150px;
    z-index: 20;
    max-width: 640px;
  }
  .hero-statement-heading {
    font-size: clamp(26px, 3.6vw, 48px);
    font-weight: 700;
    line-height: 1.22;
    letter-spacing: -0.02em;
  }

  /* Floating glass card */
  .hero-glass-card {
    position: absolute;
    top: 26%;
    right: 80px;
    z-index: 15;
    width: 250px;
    padding: 18px 20px;
    border-radius: 14px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
    animation: heroCardFloat 6s ease-in-out infinite;
  }
  .hero-glass-card-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #1ed760;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .hero-glass-card-icon svg { width: 20px; height: 20px; fill: #fff; }
  .hero-glass-card-text {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.01em;
  }
  @keyframes heroCardFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
  }

  .hero-scroll-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: bounce 2s ease-in-out infinite;
    cursor: pointer;
  }
  .hero-scroll-icon svg { width: 16px; height: 16px; }

  @keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
  }

  @media (max-width: 768px) {
    .hero-statement { left: 20px; right: 20px; bottom: 130px; max-width: none; }
    .hero-glass-card { display: none; }
  }

  /* ── SECTIONS SHARED ── */
  section { padding: 120px 40px; }

  .section-eyebrow {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin-bottom: 24px;
  }

  .section-title {
    font-size: clamp(32px, 5vw, 64px);
    font-weight: 300;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #fff;
    max-width: 900px;
  }
  .section-title strong { font-weight: 600; }

  .section-body {
    font-size: clamp(14px, 1.4vw, 16px);
    font-weight: 300;
    line-height: 1.8;
    color: rgba(255,255,255,0.55);
    max-width: 520px;
    margin-top: 24px;
  }

  .divider {
    height: 1px;
    background: rgba(255,255,255,0.07);
    margin: 0 40px;
  }

  /* ── ABOUT ── */
  #about {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
  }

  .about-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
    margin-top: 48px;
  }
  .stat-box {
    padding: 32px 28px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
  }
  .stat-number {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #fff;
    line-height: 1;
  }
  .stat-label {
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.35);
    margin-top: 8px;
  }

  .about-visual {
    position: relative;
    height: 500px;
  }
  .about-orb {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #2a7fff, #001080, #000);
    box-shadow: 0 0 80px rgba(42,127,255,0.2);
    animation: orbPulse 5s ease-in-out infinite;
  }

  @keyframes orbPulse {
    0%, 100% { box-shadow: 0 0 80px rgba(42,127,255,0.2); }
    50% { box-shadow: 0 0 120px rgba(42,127,255,0.35); }
  }

  .about-ring {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.07);
  }
  .ring-1 { width: 380px; height: 380px; animation: spin 20s linear infinite; }
  .ring-2 { width: 460px; height: 460px; animation: spin 30s linear infinite reverse; }

  .ring-dot {
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%) translateY(-4px);
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--accent);
  }

  @keyframes spin { from { transform: translate(-50%,-50%) rotate(0); } to { transform: translate(-50%,-50%) rotate(360deg); } }

  /* ── SERVICES ── */
  #services { background: #000; }

  .services-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 64px;
  }

  .service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(255,255,255,0.07);
  }

  .service-card {
    background: #000;
    padding: 48px 36px;
    transition: background 0.3s ease;
    cursor: default;
  }
  .service-card:hover { background: rgba(255,255,255,0.03); }

  .service-num {
    font-size: 10px;
    letter-spacing: 0.2em;
    color: rgba(255,255,255,0.25);
    margin-bottom: 32px;
    font-variant-numeric: tabular-nums;
  }

  .service-icon {
    width: 40px;
    height: 40px;
    margin-bottom: 24px;
    color: rgba(255,255,255,0.6);
  }

  .service-title {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
  }
  .service-desc {
    font-size: 13px;
    line-height: 1.8;
    color: rgba(255,255,255,0.4);
    font-weight: 300;
  }

  /* ── WORK ── */
  #work { padding: 120px 0; }
  #work .section-header { padding: 0 40px; margin-bottom: 64px; }

  .work-scroll {
    display: flex;
    gap: 2px;
    overflow-x: auto;
    padding: 0 40px;
    scrollbar-width: none;
  }
  .work-scroll::-webkit-scrollbar { display: none; }

  .work-card {
    flex: 0 0 clamp(300px, 40vw, 560px);
    height: clamp(280px, 35vw, 460px);
    position: relative;
    overflow: hidden;
    cursor: pointer;
  }
  .work-card-bg {
    position: absolute;
    inset: 0;
    transition: transform 0.6s ease;
  }
  .work-card:hover .work-card-bg { transform: scale(1.04); }

  .wc1 { background: linear-gradient(135deg, #0d2b8a 0%, #1a6bff 60%, #0a1f6a 100%); }
  .wc2 { background: linear-gradient(135deg, #1a0a2e 0%, #6b2fff 60%, #0d0520 100%); }
  .wc3 { background: linear-gradient(135deg, #0a2e1a 0%, #00c853 60%, #051a0d 100%); }
  .wc4 { background: linear-gradient(135deg, #2e1a0a 0%, #ff6b00 60%, #1a0d05 100%); }

  .work-card-inner {
    position: absolute;
    inset: 0;
    padding: 32px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 60%);
  }

  .work-tag {
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-bottom: 8px;
  }
  .work-name {
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 500;
    letter-spacing: -0.01em;
  }

  /* ── PROCESS ── */
  #process {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: start;
  }

  .process-steps { margin-top: 48px; }

  .process-step {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 24px;
    padding: 32px 0;
    border-top: 1px solid rgba(255,255,255,0.07);
    transition: border-color 0.3s;
    cursor: default;
  }
  .process-step:hover { border-color: rgba(255,255,255,0.2); }

  .step-num {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.2);
    padding-top: 3px;
  }
  .step-title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 8px;
  }
  .step-desc {
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255,255,255,0.4);
    font-weight: 300;
  }

  .process-visual {
    position: sticky;
    top: 120px;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hex-grid {
    display: grid;
    grid-template-columns: repeat(5, 60px);
    gap: 4px;
  }

  .hex {
    width: 60px;
    height: 60px;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background: rgba(255,255,255,0.04);
    transition: background 0.3s;
    animation: hexPulse var(--d, 3s) ease-in-out infinite var(--del, 0s);
  }

  @keyframes hexPulse {
    0%, 100% { background: rgba(255,255,255,0.04); }
    50% { background: rgba(74,158,255,0.2); }
  }

  /* ── CTA ── */
  #cta {
    text-align: center;
    padding: 160px 40px;
    position: relative;
    overflow: hidden;
  }
  .cta-glow {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 600px; height: 400px;
    background: radial-gradient(ellipse, rgba(42,127,255,0.12) 0%, transparent 70%);
    pointer-events: none;
  }

  #cta .section-title {
    max-width: 700px;
    margin: 0 auto 40px;
    font-size: clamp(36px, 5.5vw, 72px);
  }

  .cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    color: #000;
    font-family: 'Space Grotesk', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    padding: 16px 36px;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    transition: background 0.2s, transform 0.2s;
  }
  .cta-btn:hover { background: rgba(255,255,255,0.88); transform: translateY(-2px); }
  .cta-btn svg { width: 16px; height: 16px; }

  .cta-sub {
    margin-top: 20px;
    font-size: 12px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.25);
  }

  /* ── FOOTER ── */
  footer {
    position: relative;
    background: #0d0d0d;
    overflow: hidden;
    padding: 72px 72px 44px;
    border-top: 1px solid rgba(255,255,255,0.06);
  }

  /* decorative blobs */
  .f-blob {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.03);
    pointer-events: none;
  }
  .f-blob-1 {
    width: 560px; height: 560px;
    top: -180px; left: -80px;
    border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
    opacity: 0.6;
  }
  .f-blob-2 {
    width: 420px; height: 420px;
    top: 30px; left: 200px;
    border-radius: 45% 55% 60% 40% / 55% 45% 55% 45%;
    opacity: 0.35;
  }

  .footer-main {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    margin-bottom: 64px;
  }

  .footer-left { padding-top: 8px; }
  .footer-left h2 {
    font-size: clamp(40px, 5.5vw, 68px);
    font-weight: 700;
    color: #fff;
    line-height: 1.05;
    margin-bottom: 28px;
    letter-spacing: -0.03em;
  }
  .footer-left a {
    display: block;
    font-size: 17px;
    font-weight: 400;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    margin-bottom: 8px;
    transition: color 0.15s;
    letter-spacing: 0.01em;
  }
  .footer-left a:hover { color: #fff; }

  .footer-right {
    display: flex;
    flex-direction: column;
    gap: 52px;
    padding-top: 8px;
  }

  .footer-nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 64px;
    row-gap: 0;
  }
  .footer-nav-grid a {
    display: block;
    font-size: 19px;
    font-weight: 400;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    padding: 11px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    transition: color 0.15s;
    letter-spacing: -0.01em;
  }
  .footer-nav-grid a:hover { color: #fff; }
  .footer-nav-grid a:nth-child(4),
  .footer-nav-grid a:nth-child(6) { border-bottom: none; }

  .footer-offices {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px 24px;
  }
  .footer-office h4 {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 6px;
    letter-spacing: 0.01em;
  }
  .footer-office a {
    font-size: 12px;
    font-weight: 400;
    color: rgba(255,255,255,0.35);
    text-decoration: none;
    line-height: 1.6;
    display: block;
    transition: color 0.15s;
  }
  .footer-office a:hover { color: rgba(255,255,255,0.65); }

  .footer-bottom {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255,255,255,0.07);
    padding-top: 24px;
  }

  .footer-socials {
    display: flex;
    align-items: center;
    gap: 20px;
  }
  .footer-socials a {
    color: rgba(255,255,255,0.35);
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: color 0.15s;
  }
  .footer-socials a:hover { color: #fff; }
  .footer-socials svg { width: 17px; height: 17px; fill: currentColor; }

  .footer-legal {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 12px;
    color: rgba(255,255,255,0.25);
  }
  .footer-legal a {
    color: rgba(255,255,255,0.35);
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding-bottom: 1px;
    transition: color 0.15s;
  }
  .footer-legal a:hover { color: #fff; }

  @media (max-width: 768px) {
    footer { padding: 48px 20px 32px; }
    .footer-main { grid-template-columns: 1fr; gap: 48px; }
    .footer-offices { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; gap: 20px; align-items: flex-start; }
  }

  /* ── ANIMATIONS ── */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
  }

  /* Same fade-up motion, but preserves horizontal centering (translateX(-50%))
     for elements positioned with left:50%. Using plain fadeUp on those
     elements overwrites the centering transform once the animation plays. */
  @keyframes fadeUpCentered {
    from { opacity: 0; transform: translate(-50%, 20px); }
    to { opacity: 1; transform: translate(-50%, 0); }
  }

  .reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s ease, transform 0.8s ease;
  }
  .reveal.in { opacity: 1; transform: none; }

  /* ── FULLSCREEN MENU OVERLAY ── */
  #menu-overlay {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 500;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s cubic-bezier(0.16,1,0.3,1), visibility 0.5s;
    overflow: hidden;
  }
  #menu-overlay.open {
    opacity: 1;
    visibility: visible;
  }

  /* override global nav styles inside overlay */
  #menu-topbar {
    position: absolute;
    top: 0; left: 0; right: 0;
    background: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    z-index: 10;
  }

  .menu-nav-items {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    text-align: center;
  }

  .menu-nav-item {
    font-size: clamp(56px, 10vw, 130px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 0.95;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    display: block;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.5s ease, transform 0.5s ease, color 0.2s;
  }
  #menu-overlay.open .menu-nav-item:nth-child(1) { opacity:1; transform:none; transition-delay:0.08s; }
  #menu-overlay.open .menu-nav-item:nth-child(2) { opacity:1; transform:none; transition-delay:0.14s; }
  #menu-overlay.open .menu-nav-item:nth-child(3) { opacity:1; transform:none; transition-delay:0.20s; }
  .menu-nav-item:hover { color: rgba(255,255,255,0.45); }

  .menu-secondary-links {
    display: flex;
    gap: 48px;
    margin-top: 48px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s 0.28s ease, transform 0.5s 0.28s ease;
  }
  #menu-overlay.open .menu-secondary-links {
    opacity: 1;
    transform: none;
  }
  .menu-secondary-links a {
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.02em;
    color: rgba(255,255,255,0.55);
    text-decoration: none;
    transition: color 0.2s;
  }
  .menu-secondary-links a:hover { color: #fff; }

  .menu-bottom {
    position: absolute;
    bottom: 40px;
    left: 40px;
    right: 40px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s 0.32s ease, transform 0.5s 0.32s ease;
  }
  #menu-overlay.open .menu-bottom {
    opacity: 1;
    transform: none;
  }

  .menu-cta-text {
    font-size: clamp(13px, 1.4vw, 15px);
    font-weight: 400;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
  }
  .menu-cta-text a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
  }
  .menu-cta-text a:hover { text-decoration-color: rgba(255,255,255,0.4); }

  .menu-news-card {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    overflow: hidden;
    max-width: 380px;
    cursor: pointer;
    transition: background 0.2s;
  }
  .menu-news-card:hover { background: rgba(255,255,255,0.13); }
  .menu-news-text {
    padding: 16px 20px;
    flex: 1;
  }
  .menu-news-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.5;
  }
  .menu-news-thumb {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    background: linear-gradient(135deg, #2a5298, #1a3a6b, #0d1f42);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  .menu-news-thumb svg {
    width: 36px;
    height: 36px;
    opacity: 0.5;
  }

  /* nav btn transitions */
  .nav-menu-btn { transition: background 0.2s, opacity 0.2s; }

  /* scroll-driven word reveal — blur to sharp */
  .sw {
    display: inline;
    transition: filter 0.4s ease, opacity 0.4s ease;
  }
  .sw-white { color: #fff; filter: blur(0); opacity: 1; }
  .sw-gray  { color: #6b6b76; filter: blur(6px); opacity: 0.6; transition: color 0.4s ease, filter 0.4s ease, opacity 0.4s ease; }
  .sw.lit.sw-gray  { color: #fff; filter: blur(0); opacity: 1; }

  /* ── REEL SECTION ── */
  #reel {
    background: #ffffff;
    padding: 0px 0 0 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    overflow: hidden;
  }

  /* White stage that holds the video */
  .reel-stage {
    width: 100%;
    background: #ffffff;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 64px 40px;
    position: relative;
    overflow: hidden;
  }


  .reel-device {
    width: 100%;
    max-width: 1600px;
    position: relative;
    z-index: 2;
  }

  /* Screen inside device */
  .reel-screen {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: #000;
    aspect-ratio: 16/9;
    position: relative;
    box-shadow: 0 40px 100px rgba(0,0,0,0.5);
  }

  .reel-screen video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* Play overlay */
  .reel-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    transition: background 0.2s;
    cursor: pointer;
    z-index: 3;
  }
  .reel-play-btn:hover { background: rgba(0,0,0,0.12); }
  .reel-play-btn.hidden { display: none; }

  .reel-play-circle {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    background: rgba(255,255,255,0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 40px rgba(0,0,0,0.35);
    transition: transform 0.2s, box-shadow 0.2s;
  }
  .reel-play-circle:hover { transform: scale(1.08); box-shadow: 0 12px 50px rgba(0,0,0,0.45); }
  .reel-play-circle svg { width: 28px; height: 28px; margin-left: 5px; fill: #111; }

  /* Mute toggle */
  .reel-controls {
    position: absolute;
    bottom: 18px;
    right: 18px;
    z-index: 4;
  }
  .reel-mute-btn {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(0,0,0,0.55);
    border: none; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(8px);
    transition: background 0.2s;
  }
  .reel-mute-btn:hover { background: rgba(0,0,0,0.8); }
  .reel-mute-btn svg { width: 16px; height: 16px; fill: #fff; }

  @media (max-width: 768px) {
    #reel { padding: 56px 0 0; }
    .reel-stage { padding: 40px 16px; }
    .reel-device { border-radius: 12px; }
    .reel-screen { border-radius: 12px; }
  }

  /* ── MOBILE ── */
  @media (max-width: 768px) {
    nav { padding: 16px 20px; }
    section { padding: 80px 20px; }
    #about { grid-template-columns: 1fr; gap: 48px; }
    .service-grid { grid-template-columns: 1fr; }
    #process { grid-template-columns: 1fr; }
    .process-visual { display: none; }
    footer { flex-direction: column; gap: 24px; text-align: center; }
    .footer-links { flex-wrap: wrap; justify-content: center; }
    .services-header { flex-direction: column; align-items: flex-start; gap: 16px; }
    #hero .hero-bottom { padding: 0 20px 28px; }
    #work .section-header { padding: 0 20px; }
    .work-scroll { padding: 0 20px; }
    #cta { padding: 100px 20px; }
  }

  /* ═══════════════════════════════
     MASTERY DIAGRAM SECTION
  ═══════════════════════════════ */
  #mastery {
    background: #FFFFFF;
    padding: 0;
    overflow: hidden;
    position: relative;
    min-height: 100vh;
  }

  #mst-screen-venn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    z-index: 10;
    opacity: 1;
    transition: opacity 0.9s ease;
  }
  #mst-screen-venn svg {
    width: min(520px, 90vw);
    height: auto;
  }
  #mst-screen-venn.mst-hidden { opacity: 0; pointer-events: none; }

  #mst-screen-full {
    opacity: 0;
    transition: opacity 0.9s ease;
    pointer-events: none;
    background: #FFFFFF;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
  }
  #mst-screen-full.mst-visible {
    opacity: 1;
    pointer-events: auto;
  }

  #mst-page {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 100px 40px !important;
    position: relative;
    font-family: 'Space Grotesk', sans-serif;
  }

  #mst-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 40px;
  }
  #mst-heading {
    font-size: clamp(32px, 5.2vw, 60px);
    font-weight: 700;
    color: #111;
    line-height: 1.15;
    max-width: 430px;
    flex-shrink: 0;
    font-family: 'Space Grotesk', sans-serif;
  }
  #mst-para {
    font-size: clamp(14px, 1.6vw, 17px);
    color: #4a4a4a;
    line-height: 1.65;
    max-width: 460px;
    padding-top: 8px;
    text-align: left;
    font-family: 'Space Grotesk', sans-serif;
  }
  #mst-para b { color: #c0823e; font-weight: 600; }

  #mst-diagram-container {
    width: 100%;
    overflow: visible;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }
  #mst-diagram {
    position: relative;
    width: 1080px;
    height: 520px;
    margin-top: 10px;
    flex-shrink: 0;
    transform-origin: top center;
  }

  #mst-bg-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
  }

  #mst-mastery-label {
    position: absolute;
    top: 28px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    font-weight: 500;
    color: #222;
    text-align: center;
    line-height: 1.45;
    pointer-events: none;
    font-family: 'Space Grotesk', sans-serif;
  }

  .mst-side-label {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: 'Space Grotesk', sans-serif;
  }
  .mst-side-label .mst-dot { width: 6px; height: 6px; border-radius: 50%; background: #333; }
  #mst-label-brand   { left: 20px; }
  #mst-label-product { right: 20px; flex-direction: row-reverse; }

  .mst-tag {
    position: absolute;
    white-space: nowrap;
    border-radius: 999px;
    font-size: 13.5px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
    transition: transform 0.15s, box-shadow 0.15s;
    transform: translate(-50%, -50%);
    font-family: 'Space Grotesk', sans-serif;
  }
  .mst-tag.mst-dark {
    background: #1a1a1a;
    color: #fff;
  }
  .mst-tag.mst-dark:hover,
  #mst-diagram .mst-tag.mst-dark:hover {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  }
  .mst-tag.mst-light {
    background: transparent;
    color: #666;
    border: 1.5px solid #ccc;
  }
  .mst-tag.mst-light:hover { border-color: #888; color: #222; }

  .mst-tag-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
  .mst-tag-arrow { font-size: 12px; opacity: 0; transition: opacity 0.15s; margin-left: 2px; }
  .mst-tag.mst-dark:hover .mst-tag-arrow { opacity: 1; }

  /* ── ENTRANCE ANIMATION: circles → labels → tags (dot-to-pill pop) ── */
  #mst-bg-svg {
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.8s ease, transform 0.9s cubic-bezier(.22,.9,.32,1.15);
  }
  #mst-mastery-label {
    opacity: 0;
    transform: translateX(-50%) translateY(8px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: 0.15s;
  }
  #mst-label-brand {
    opacity: 0;
    transform: translateY(-50%) translateX(-10px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: 0.25s;
  }
  #mst-label-product {
    opacity: 0;
    transform: translateY(-50%) translateX(10px);
    transition: opacity 0.6s ease, transform 0.6s ease;
    transition-delay: 0.25s;
  }
  #mst-diagram .mst-tag {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.15);
    transition: opacity 0.45s ease, transform 0.55s cubic-bezier(.34,1.56,.64,1);
  }

  #mst-diagram.mst-anim #mst-bg-svg { opacity: 1; transform: scale(1); }
  #mst-diagram.mst-anim #mst-mastery-label { opacity: 1; transform: translateX(-50%) translateY(0); }
  #mst-diagram.mst-anim #mst-label-brand,
  #mst-diagram.mst-anim #mst-label-product { opacity: 1; transform: translateY(-50%) translateX(0); }
  #mst-diagram.mst-anim .mst-tag { opacity: 1; transform: translate(-50%, -50%) scale(1); }

  @media (prefers-reduced-motion: reduce) {
    #mst-bg-svg { transition: none !important; opacity: 1 !important; transform: scale(1) !important; }
    #mst-mastery-label { transition: none !important; opacity: 1 !important; transform: translateX(-50%) translateY(0) !important; }
    #mst-label-brand,
    #mst-label-product { transition: none !important; opacity: 1 !important; transform: translateY(-50%) translateX(0) !important; }
    #mst-diagram .mst-tag { transition: none !important; opacity: 1 !important; transform: translate(-50%, -50%) scale(1) !important; }
  }

  /* ── PREVIEW CARDS (shown on tag hover) ── */
  #mst-preview {
    position: absolute;
    width: 280px;
    height: 190px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 300;
  }
  #mst-preview.mst-show { opacity: 1; pointer-events: auto; }

  .mst-pc {
    position: absolute;
    width: 158px;
    height: 132px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0,0,0,0.22), 0 2px 8px rgba(0,0,0,0.08);
    background: #fff;
    transition: transform 0.25s ease, z-index 0s;
    cursor: pointer;
  }
  /* Back card — UI screenshot mock */
  .mst-pc-shot {
    left: 0; top: 40px;
    transform: rotate(-8deg);
    z-index: 1;
  }
  #mst-preview.mst-show .mst-pc-shot { transform: rotate(-10deg) translateY(-2px); }
  .mst-pc-shot.mst-front { z-index: 3; transform: rotate(-4deg) translateY(-8px) scale(1.04); }

  /* Front card — video mock, dark, default on top */
  .mst-pc-video {
    left: 118px; top: 12px;
    transform: rotate(6deg);
    z-index: 2;
    background: #0d0d0d;
  }
  #mst-preview.mst-show .mst-pc-video { transform: rotate(8deg) translateY(2px); }
  .mst-pc-video.mst-front { z-index: 3; transform: rotate(4deg) translateY(-6px) scale(1.04); }

  /* Pause indicator: muted video in back card */
  .mst-pc video.mst-paused { opacity: 0.55; filter: grayscale(0.3); transition: opacity 0.2s, filter 0.2s; }

  /* Real video elements fill each card */
  .mst-pc video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #0d0d0d;
  }

  @media (max-width: 768px) {
    #mst-page { padding: 80px 20px 80px !important; }
    #mst-top { flex-direction: column; gap: 16px; }
    #mst-heading { max-width: 100%; }
    #mst-para { max-width: 100%; text-align: left; padding-top: 0; }
    #mst-diagram { height: auto; }
  }

  /* ═══════════════════════════════
     INTERACTIVE PORTFOLIO WHEEL SECTION
     (Stunning 3D scroll-driven carousel)
     ═══════════════════════════════ */
  #portfolio-wheel-section {
    position: relative;
    width: 100%;
    height: 220vh; /* Scrollable track (shortened so the whole wheel
                       advances in a handful of scroll notches instead
                       of ten-plus) */
    background: #000000;
    margin: 0;
    padding: 0;
    z-index: 9;
  }

  #portfolio-wheel-section .sticky-wrapper {
    position: sticky;
    top: 0;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  #portfolioCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
  }

  .pSec-stage {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: auto;
  }
  /* Left / right arrow navigation for the card wheel */
  .pSec-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.25);
    background: rgba(255,255,255,.06);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    transition: background .25s ease, border-color .25s ease, transform .25s ease, opacity .25s ease;
    opacity: .55;
  }
  .pSec-arrow svg {
    width: 20px;
    height: 20px;
    stroke: #fff;
    fill: none;
    stroke-width: 1.8;
  }
  .pSec-arrow:hover {
    opacity: 1;
    background: rgba(255,255,255,.14);
    border-color: rgba(255,255,255,.5);
  }
  .pSec-arrow:active {
    transform: translateY(-50%) scale(.92);
  }
  .pSec-arrow.-prev { left: 24px; }
  .pSec-arrow.-next { right: 24px; }
  .pSec-arrow.is-disabled {
    opacity: .18;
    cursor: default;
    pointer-events: none;
  }
  @media (max-width: 767px) {
    .pSec-arrow { width: 42px; height: 42px; }
    .pSec-arrow.-prev { left: 10px; }
    .pSec-arrow.-next { right: 10px; }
  }

  /* CURSOR localized to this section */
  #pSec-cur {
    position: fixed;
    width: 9px;
    height: 9px;
    background: #ffffff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    display: none;
    box-shadow: 0 0 0 1.5px rgba(255,255,255,.6);
  }
  #pSec-curR {
    position: fixed;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255,255,255,.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    transform: translate(-50%, -50%);
    display: none;
  }

  /* Hide default cursor inside section if custom cursor is active */
  #portfolio-wheel-section {
    cursor: none;
  }
  #portfolio-wheel-section * {
    cursor: none;
  }

  /* 3D CARDS */
  .pSec-cw {
    position: absolute;
    cursor: none;
  }
  .pSec-cd {
    border-radius: 18px;
    overflow: hidden;
    background: #0a0d1a;
    border: 1px solid rgba(255,255,255,.07);
    position: relative;
    transition: border-color .5s, box-shadow .5s, transform .55s cubic-bezier(.23,1,.32,1);
    transform-origin: center center;
  }
  .pSec-cd video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .55s cubic-bezier(.23,1,.32,1), filter .55s;
    transform-origin: center center;
  }

  /* hover: card scales up, video zooms slightly */
  .pSec-cw:hover .pSec-cd {
    transform: scale(1.06);
    border-color: rgba(255,255,255,.55) !important;
    box-shadow:
      0 0 0 1px rgba(255,255,255,.2),
      0 0 40px rgba(0,0,0,.6),
      0 0 80px rgba(0,0,0,.3),
      0 30px 60px rgba(0,0,0,.5);
  }
  .pSec-cw:hover .pSec-cd video {
    transform: scale(1.04);
    filter: brightness(1.08) saturate(1.15);
  }

  /* shimmer sweep overlay */
  .pSec-cd::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.07) 50%, transparent 70%);
    background-size: 200% 100%;
    background-position: 200% 0;
    opacity: 0;
    transition: opacity .3s;
    pointer-events: none;
    border-radius: 18px;
    z-index: 3;
  }
  .pSec-cw:hover .pSec-cd::after {
    opacity: 1;
    animation: pSec-shimmer .9s cubic-bezier(.23,1,.32,1) forwards;
  }
  @keyframes pSec-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
  }

  /* corner accent lines on hover */
  .pSec-cd::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 18px;
    background:
      linear-gradient(rgba(255,255,255,.7), rgba(255,255,255,.7)) top left/28px 1.5px no-repeat,
      linear-gradient(rgba(255,255,255,.7), rgba(255,255,255,.7)) top left/1.5px 28px no-repeat,
      linear-gradient(rgba(255,255,255,.7), rgba(255,255,255,.7)) bottom right/28px 1.5px no-repeat,
      linear-gradient(rgba(255,255,255,.7), rgba(255,255,255,.7)) bottom right/1.5px 28px no-repeat,
      linear-gradient(rgba(255,255,255,.7), rgba(255,255,255,.7)) top right/28px 1.5px no-repeat,
      linear-gradient(rgba(255,255,255,.7), rgba(255,255,255,.7)) top right/1.5px 28px no-repeat,
      linear-gradient(rgba(255,255,255,.7), rgba(255,255,255,.7)) bottom left/28px 1.5px no-repeat,
      linear-gradient(rgba(255,255,255,.7), rgba(255,255,255,.7)) bottom left/1.5px 28px no-repeat;
    opacity: 0;
    transition: opacity .4s;
    pointer-events: none;
    z-index: 4;
  }
  .pSec-cw:hover .pSec-cd::before { opacity: 1; }

  /* view label that appears center on hover */
  .pSec-cd .view-tag {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%) scale(.85);
    background: rgba(0,0,0,.82);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 50px;
    padding: 10px 22px;
    font-size: 10px;
    letter-spacing: .2em;
    color: #ffffff;
    text-transform: uppercase;
    white-space: nowrap;
    opacity: 0;
    transition: opacity .35s, transform .35s cubic-bezier(.23,1,.32,1);
    pointer-events: none;
    z-index: 5;
  }
  .pSec-cw:hover .pSec-cd .view-tag {
    opacity: 1;
    transform: translate(-50%,-50%) scale(1);
  }

  /* label */
  .pSec-cd .lbl {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: clamp(30px, 10vw, 60px) clamp(12px, 4vw, 24px) clamp(12px, 4vw, 22px);
    background: linear-gradient(transparent, rgba(0,0,0,.92) 65%);
    opacity: 0;
    transition: opacity .3s;
    z-index: 2;
  }
  .pSec-cw:hover .pSec-cd .lbl { opacity: 1; }
  .pSec-cw.is-main .pSec-cd .lbl { opacity: 1; }
  
  .pSec-cd .lbl .cl {
    font-weight: 300;
    font-size: clamp(8px, 2.2vw, 10px);
    letter-spacing: .18em;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    margin-bottom: 4px;
  }
  .pSec-cd .lbl .ti {
    font-weight: 700;
    font-size: clamp(14px, 4vw, 22px);
    letter-spacing: .05em;
    color: #fff;
    text-transform: uppercase;
    line-height: 1.1;
  }

  /* main card — green/light tinted border */
  .pSec-cw.is-main .pSec-cd {
    border-color: rgba(74,158,255,0.28);
    box-shadow: 0 0 40px rgba(74,158,255,0.08);
  }
  .pSec-cw.is-main:hover .pSec-cd {
    transform: scale(1.04);
    border-color: rgba(255,255,255,.55) !important;
    box-shadow:
      0 0 0 1px rgba(255,255,255,.2),
      0 0 60px rgba(0,0,0,.7),
      0 0 120px rgba(0,0,0,.4),
      0 40px 80px rgba(0,0,0,.6);
  }

  /* bubble hover effect — small glassy bubbles rise up through the card
     while the pointer hovers, then pop (fade) near the top */
  .pSec-bubble {
    position: absolute;
    bottom: -12%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 28%,
      rgba(255,255,255,.95),
      rgba(255,255,255,.18) 55%,
      rgba(255,255,255,0) 72%);
    box-shadow:
      inset 0 0 6px rgba(255,255,255,.45),
      0 0 5px rgba(255,255,255,.15);
    opacity: 0;
    pointer-events: none;
    z-index: 6;
    animation: pSec-bubble-rise linear forwards;
    will-change: transform, opacity;
  }
  @keyframes pSec-bubble-rise {
    0%   { transform: translate(0, 0) scale(.4);   opacity: 0; }
    12%  { opacity: .9; }
    70%  { opacity: .55; }
    100% { transform: translate(var(--drift, 0px), -128%) scale(1.05); opacity: 0; }
  }

  /* scroll indicator right edge */
  .pSec-scroll-track {
    position: absolute;
    right: 40px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    height: 120px;
  }
  .pSec-scroll-track-bar {
    width: 2px;
    height: 100%;
    background: rgba(255,255,255,.06);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
  }
  .pSec-scroll-thumb {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: rgba(255,255,255,.4);
    border-radius: 2px;
    transition: top .3s;
  }

  /* ═══════════════════════════════
     FANTASY SERVICES SECTION
  ═══════════════════════════════ */
  .reveal-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 8vw;
    overflow: hidden;
    isolation: isolate;
  }

  .bg-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    background: #1a2230;
  }

  #fantasy-services-wrapper [data-video-section]:nth-child(1) .bg-video { background: linear-gradient(160deg, #5b7bb0, #2e3f63); }
  #fantasy-services-wrapper [data-video-section]:nth-child(2) .bg-video { background: linear-gradient(160deg, #2a3550, #11141c); }
  #fantasy-services-wrapper [data-video-section]:nth-child(3) .bg-video { background: linear-gradient(160deg, #1c2030, #05070a); }

  .bg-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
      100deg,
      rgba(0,0,0,0.62) 0%,
      rgba(0,0,0,0.32) 45%,
      rgba(0,0,0,0.12) 100%
    );
    pointer-events: none;
  }

  .section-grid {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    pointer-events: none;
  }

  .copy-col {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 560px;
    pointer-events: auto;
  }

  .eyebrow {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.65);
  }

  .headline {
    font-size: clamp(38px, 6vw, 72px);
    line-height: 1.04;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 6px 0 18px;
  }

  .subcopy {
    font-size: 16px;
    line-height: 1.55;
    color: rgba(255,255,255,0.75);
    max-width: 380px;
    margin-bottom: 22px;
  }

  .explore-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    padding: 12px 22px;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    font-size: 14px;
    font-weight: 600;
    color: #FFFFFF;
    text-decoration: none;
    transition: background 0.25s ease, transform 0.25s ease;
  }

  .explore-link:hover {
    background: rgba(255,255,255,0.24);
    transform: translateX(2px);
  }

  .arrow { display: inline-block; transition: transform 0.25s ease; }
  .explore-link:hover .arrow { transform: translateX(3px); }

  .blur-text {
    --blur: 16px;
    --rise: 22px;
    filter: blur(var(--blur));
    opacity: 0.0001;
    transform: translateY(var(--rise));
    transition: filter 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .eyebrow.blur-text      { transition-delay: 0s; }
  .headline.blur-text     { transition-delay: 0.06s; }
  .subcopy.blur-text      { transition-delay: 0.16s; }
  .explore-link.blur-text { transition-delay: 0.24s; }

  .reveal-section.is-revealed .blur-text {
    --blur: 0px;
    --rise: 0px;
    opacity: 1;
  }

  .view-more {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 3;
    padding: 10px 22px;
    border: none;
    border-radius: 999px;
    background: rgba(20, 22, 28, 0.55);
    backdrop-filter: blur(6px);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #fff;
    pointer-events: none;
    opacity: 0;
    transform: translate3d(-50%, -50%, 0) scale(0.85);
    transition: opacity 0.25s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background 0.25s ease;
    will-change: transform, opacity;
  }

  .reveal-section:hover .view-more,
  .reveal-section.is-hovering .view-more {
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(-50%, -50%, 0) scale(1);
  }

  @media (prefers-reduced-motion: reduce) {
    .blur-text {
      filter: none !important;
      opacity: 1 !important;
      transform: none !important;
    }
    .view-more { display: none; }
  }

  @media (max-width: 860px) {
    .reveal-section { padding: 80px 7vw; min-height: 100vh; }
    .headline { font-size: clamp(32px, 9vw, 52px); }
    .view-more { display: none; }
  }



      .clay-casestudies {
        background: #fff;
        color: #111;
        padding: clamp(40px, 8vw, 80px) 0 100px;
        overflow-x: hidden;
      }
      .clay-casestudies a { text-decoration: none; color: inherit; }
      .clay-casestudies .card-meta, .clay-casestudies .card-meta * { color: inherit; }
      .clay-casestudies .card .card-title { color: #111 !important; }
      .clay-casestudies .card .card-desc  { color: #444 !important; }
      .clay-casestudies .card .card-tag   { color: #999 !important; }
      .clay-casestudies .card .card-tag + .card-tag::before { content: " · "; color: #999 !important; }
      
      .clay-casestudies .industry-wrap {
        padding: 0 clamp(20px, 6vw, 80px);
        margin-bottom: clamp(48px, 8vw, 96px);
      }
      .clay-casestudies .industry-banner {
        position: relative;
        width: 100%;
        min-height: 460px;
        background: #0f1117;
        border-radius: 20px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        padding: clamp(28px, 5vw, 44px) clamp(24px, 6vw, 56px) clamp(32px, 6vw, 52px);
        cursor: pointer;
      }
      .clay-casestudies .banner-media {
        position: absolute;
        inset: 0;
        z-index: 1;
      }
      .clay-casestudies .banner-media img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: 62% 28%;
        transform: scale(1.08);
        animation: banner-drift 10s ease-in-out infinite alternate;
      }
      @keyframes banner-drift {
        0%   { object-position: 66% 24%; transform: scale(1.08) translateX(0); }
        100% { object-position: 56% 32%; transform: scale(1.08) translateX(-1.5%); }
      }
      .clay-casestudies .banner-media::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, #0f1117 0%, #0f1117 20%, rgba(15,17,23,0.5) 40%, rgba(15,17,23,0.05) 58%, transparent 72%);
      }
      .clay-casestudies .banner-content {
        position: relative;
        z-index: 2;
      }
      .clay-casestudies .banner-eyebrow {
        font-size: 12.5px;
        font-weight: 400;
        color: rgba(255,255,255,0.6);
        letter-spacing: 0.01em;
        margin-bottom: 20px;
      }
      .clay-casestudies .banner-title {
        font-size: clamp(32px, 7vw, 68px);
        font-weight: 700;
        color: #fff;
        line-height: 1.04;
        letter-spacing: -0.038em;
        max-width: min(600px, 90%);
      }
      .clay-casestudies .banner-footer {
        position: relative;
        z-index: 2;
        margin-top: clamp(32px, 6vw, 56px);
      }
      .clay-casestudies .banner-link {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        font-size: 14px;
        font-weight: 400;
        color: #fff;
        letter-spacing: -0.01em;
        border-bottom: 1px solid transparent;
        padding-bottom: 3px;
        transition: gap 0.2s ease, border-color 0.3s ease;
      }
      .clay-casestudies .banner-link:hover { gap: 12px; border-color: rgba(255,255,255,0.9); }
      
      .clay-casestudies .work-grid {
        padding: 0 clamp(20px, 6vw, 80px);
      }
      .clay-casestudies .row {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
        gap: clamp(20px, 3vw, 32px);
        margin-bottom: clamp(48px, 8vw, 100px);
      }
      .clay-casestudies .row.center  { justify-content: center; }
      .clay-casestudies .row.r-left  { justify-content: flex-start; padding-left: 18%; }
      .clay-casestudies .row.r-right { justify-content: flex-start; }
      
      .clay-casestudies .card {
        display: block;
        flex-shrink: 0;
        cursor: pointer;
        position: relative;
      }
      .clay-casestudies .card-media {
        position: relative;
        overflow: hidden;
        border-radius: 8px;
        background: #eee;
      }
      .clay-casestudies .card-media img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.55s cubic-bezier(.25,.46,.45,.94), opacity 0.3s ease;
        will-change: transform;
      }
      .clay-casestudies .card-media video {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: 0;
        transition: opacity 0.4s ease;
        pointer-events: none;
      }
      .clay-casestudies .card:hover .card-media img { transform: scale(1.04); }
      .clay-casestudies .card-media.playing img  { opacity: 0; }
      .clay-casestudies .card-media.playing video { opacity: 1; }
      
      .clay-casestudies .card-meta {
        margin-top: 18px;
        padding: 0 2px;
      }
      .clay-casestudies .card-title {
        font-size: 22px;
        font-weight: 700;
        color: #111 !important;
        letter-spacing: -0.03em;
        margin-bottom: 7px;
        line-height: 1.2;
      }
      .clay-casestudies .card-desc {
        font-size: 15px;
        color: #444 !important;
        letter-spacing: -0.01em;
        line-height: 1.55;
        font-weight: 400;
      }
      .clay-casestudies .card-tags {
        margin-top: 8px;
        display: flex;
        flex-wrap: wrap;
        opacity: 0;
        max-height: 0;
        overflow: hidden;
        transition: opacity 0.25s ease, max-height 0.25s ease;
      }
      .clay-casestudies .card:hover .card-tags {
        opacity: 1;
        max-height: 40px;
      }
      .clay-casestudies .card-tag {
        font-size: 13px;
        color: #999 !important;
        font-weight: 400;
      }
      .clay-casestudies .card-tag + .card-tag::before { content: " · "; }
      
      .clay-casestudies .card-media-pan img {
        transform: scale(1.12);
        animation: ambient-pan 9s ease-in-out infinite alternate;
      }
      .clay-casestudies .card:hover .card-media-pan img {
        animation-play-state: paused;
        transform: scale(1.16);
      }
      
      .clay-casestudies .view-btn {
        position: absolute;
        right: 20px;
        background: rgba(15,15,15,0.88);
        color: #fff;
        font-size: 13.5px;
        font-weight: 500;
        letter-spacing: -0.01em;
        padding: 10px 20px;
        border-radius: 6px;
        opacity: 0;
        transform: translateY(6px);
        transition: opacity 0.25s ease, transform 0.25s ease;
        pointer-events: none;
        white-space: nowrap;
        z-index: 10;
      }
      .clay-casestudies .card:hover .view-btn {
        opacity: 1;
        transform: translateY(0);
      }
      
      .clay-casestudies .c-wide { width: 58%; }
      .clay-casestudies .c-tall { width: 38%; }
      .clay-casestudies .c-solo { width: 46%; }
      
      .clay-casestudies .drop    { margin-top: 120px; }
      .clay-casestudies .drop-sm { margin-top: 60px; }
      
      @media (max-width: 900px) {
        .clay-casestudies .row.r-left { padding-left: 0; }
        .clay-casestudies .c-wide, .clay-casestudies .c-tall, .clay-casestudies .c-solo { width: 100%; }
        .clay-casestudies .drop, .clay-casestudies .drop-sm { margin-top: 0; }
        .clay-casestudies .card-media { height: auto !important; aspect-ratio: 4 / 3; }
        .clay-casestudies .c-tall .card-media { aspect-ratio: 3 / 4; }
      }
      @media (max-width: 560px) {
        .clay-casestudies .card-title { font-size: 19px; }
        .clay-casestudies .card-desc  { font-size: 14px; }
        .clay-casestudies .banner-eyebrow { margin-bottom: 14px; }
        .clay-casestudies .view-btn { font-size: 12.5px; padding: 8px 16px; }
      }
      
      .clay-casestudies .explore {
        display: flex;
        justify-content: center;
        margin-top: 60px;
        margin-bottom: 20px;
      }
      .clay-casestudies .explore a {
        font-size: 16px;
        font-weight: 400;
        color: #111;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        border-bottom: 1px solid rgba(0,0,0,0.3);
        padding-bottom: 4px;
        letter-spacing: -0.01em;
        transition: gap 0.2s;
      }
      .clay-casestudies .explore a:hover { gap: 14px; }
    


      .featured-news {
        background: #fff;
        padding: 0;
      }
      .featured-news a { text-decoration: none; color: inherit; }
      .featured-news img { display: block; }
      
      .featured-news .news-section {
        background: #14161d;
        padding: clamp(64px, 10vw, 120px) clamp(20px, 6vw, 80px);
      }
      .featured-news .news-heading {
        font-size: 64px;
        line-height: 120px;
        font-weight: 700;
        color: #fff;
        letter-spacing: -0.03em;
        margin-bottom: clamp(40px, 6vw, 64px);
        max-width: 1600px;
        margin-left: auto;
        margin-right: auto;
      }
      .featured-news .news-list {
        max-width: 1600px;
        margin: 0 auto;
      }
      .featured-news .news-item {
        display: flex;
        align-items: center;
        gap: clamp(24px, 4vw, 56px);
        padding: clamp(28px, 4vw, 44px) 0;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        position: relative;
        cursor: pointer;
      }
      .featured-news .news-item:first-child { padding-top: 0; }
      .featured-news .news-item:last-child { border-bottom: none; }
      .featured-news .news-thumb {
        position: relative;
        flex: 0 0 clamp(280px, 34vw, 480px);
        aspect-ratio: 4 / 3;
        border-radius: 10px;
        overflow: hidden;
        background: #1a1d26;
      }
      .featured-news .news-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.5s cubic-bezier(.25,.46,.45,.94);
      }
      .featured-news .news-item:hover .news-thumb img { transform: scale(1.05); }
      .featured-news .news-body { flex: 1 1 auto; min-width: 0; }
      .featured-news .news-tag {
        font-size: 13px;
        color: rgba(255,255,255,0.5);
        margin-bottom: 10px;
      }
      .featured-news .news-title {
        font-size: 18px;
        font-weight: 700;
        color: #fff;
        letter-spacing: -0.025em;
        line-height: 1.28;
        margin-bottom: 14px;
        max-width: 720px;
      }
      .featured-news .news-meta { font-size: 16px; color: rgba(255,255,255,0.5); }
      
      .featured-news .news-read-btn {
        position: absolute;
        top: 50%;
        left: 0;
        background: rgba(255,255,255,0.96);
        color: #111;
        font-size: 13.5px;
        font-weight: 500;
        letter-spacing: -0.01em;
        padding: 11px 22px;
        border-radius: 100px;
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.85);
        transition: opacity 0.2s ease, transform 0.12s ease-out;
        pointer-events: none;
        white-space: nowrap;
        z-index: 5;
      }
      .featured-news .news-item:hover .news-read-btn {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
      }
      
      .featured-news .visit-blog {
        display: flex;
        justify-content: center;
        margin-top: clamp(48px, 8vw, 80px);
      }
      .featured-news .visit-blog a {
        font-size: 16px;
        font-weight: 400;
        color: #fff;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        border-bottom: 1px solid rgba(255,255,255,0.3);
        padding-bottom: 4px;
        letter-spacing: -0.01em;
        transition: gap 0.2s ease, border-color 0.3s ease;
      }
      .featured-news .visit-blog a:hover { gap: 14px; border-color: #fff; }
      
      .featured-news .faq-section {
        background: #fff;
        padding: clamp(64px, 10vw, 120px) clamp(20px, 6vw, 80px);
      }
      .featured-news .faq-heading {
        font-size: clamp(36px, 5vw, 52px);
        font-weight: 700;
        color: #111;
        letter-spacing: -0.03em;
        margin-bottom: clamp(40px, 6vw, 64px);
        max-width: 1600px;
        margin-left: auto;
        margin-right: auto;
      }
      .featured-news .faq-list { max-width: 1600px; margin: 0 auto; }
      .featured-news .faq-item { border-bottom: 1px solid rgba(0,0,0,0.12); }
      .featured-news .faq-item:first-child { border-top: 1px solid rgba(0,0,0,0.12); }
      .featured-news .faq-question {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
        background: none;
        border: none;
        padding: clamp(24px, 3vw, 32px) 0;
        font-family: inherit;
        font-size: clamp(17px, 2vw, 21px);
        font-weight: 400;
        color: #111;
        letter-spacing: -0.01em;
        text-align: left;
        cursor: pointer;
      }
      .featured-news .faq-chevron {
        flex-shrink: 0;
        width: 22px;
        height: 22px;
        color: #111;
        transition: transform 0.3s ease;
      }
      .featured-news .faq-item.open .faq-chevron { transform: rotate(180deg); }
      .featured-news .faq-answer {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s ease;
      }
      .featured-news .faq-answer p {
        padding: 0 0 clamp(24px, 3vw, 32px);
        margin: 0;
        font-size: 15.5px;
        line-height: 1.65;
        color: #444;
        max-width: 760px;
      }
      
      @media (max-width: 560px) {
        .featured-news .news-heading { font-size: 36px; line-height: 1.15; }
        .featured-news .news-item { flex-direction: column; align-items: stretch; }
        .featured-news .news-thumb { flex: none; width: 100%; }
        .featured-news .news-read-btn {
          position: static;
          transform: none;
          opacity: 1;
          display: inline-flex;
          margin-top: 16px;
          pointer-events: auto;
        }
        .featured-news .news-item:hover .news-read-btn { transform: none; }
        .featured-news .faq-question { font-size: 16px; }
      }
    



*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}
html{font-size:16px;}
body{
  font-family:'Inter',-apple-system,BlinkMacSystemFont,sans-serif;
  background:#fff;
  -webkit-font-smoothing:antialiased;
}
a{text-decoration:none;color:inherit;}
img{display:block;}

/*──────────────────────────────
  FOOTER
──────────────────────────────*/
.site-footer {
  position: relative;
  background: #f1f1f3;
  overflow: hidden;
  padding: clamp(56px, 8vw, 96px) clamp(24px, 6vw, 80px) clamp(32px, 5vw, 48px);
}

/* Ambient background image, anchored left, with a slow drift */
.footer-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.footer-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 15% 50%;
  transform: scale(1.08);
  animation: footer-drift 14s ease-in-out infinite alternate;
}
@keyframes footer-drift {
  0%   { object-position: 10% 45%; transform: scale(1.08) translateX(0); }
  100% { object-position: 22% 55%; transform: scale(1.08) translateX(1.5%); }
}

.footer-inner {
  position: relative;
  z-index: 1;
  max-width: 1700px;
  margin: 0 auto;
}

/* Top row: Let's Talk + nav columns + location grid */
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: clamp(64px, 8vw, 110px);
}

.footer-talk h2 {
  font-size: clamp(40px, 6vw, 64px);
  font-weight: 700;
  color: #111;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 28px;
}
.footer-contact a {
  display: block;
  font-size: 18px;
  color: #111;
  letter-spacing: -0.01em;
  width: fit-content;
  border-bottom: 1px solid rgba(17,17,17,0.0);
  padding-bottom: 2px;
  margin-bottom: 10px;
  transition: border-color 0.25s ease;
}
.footer-contact a:hover {
  border-color: rgba(17,17,17,0.6);
}

.footer-nav {
  display: flex;
  gap: clamp(40px, 6vw, 80px);
}
.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-nav-col a {
  font-size: 19px;
  color: #111;
  letter-spacing: -0.01em;
  width: fit-content;
  border-bottom: 1px solid rgba(17,17,17,0.18);
  padding-bottom: 2px;
  transition: border-color 0.25s ease;
}
.footer-nav-col a:hover {
  border-color: rgba(17,17,17,0.7);
}

/* Locations grid */
.footer-locations {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr));
  gap: 36px clamp(40px, 6vw, 90px);
}
.footer-location h4 {
  font-size: 16px;
  font-weight: 700;
  color: #111;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.footer-location a {
  display: block;
  font-size: 14.5px;
  line-height: 1.5;
  color: rgba(17,17,17,0.65);
  width: fit-content;
  border-bottom: 1px solid rgba(17,17,17,0.18);
  transition: border-color 0.25s ease, color 0.25s ease;
}
.footer-location a:hover {
  border-color: rgba(17,17,17,0.7);
  color: #111;
}

/* Bottom row: socials + copyright + legal */
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid rgba(17,17,17,0.12);
}
.footer-social {
  display: flex;
  gap: 20px;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.footer-social a:hover {
  opacity: 1;
  transform: translateY(-2px);
}
.footer-social svg { width: 20px; height: 20px; }

.footer-legal {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 14px;
  color: rgba(17,17,17,0.65);
}
.footer-legal a {
  color: rgba(17,17,17,0.65);
  border-bottom: 1px solid rgba(17,17,17,0.0);
  transition: border-color 0.25s ease, color 0.25s ease;
}
.footer-legal a:hover {
  color: #111;
  border-color: rgba(17,17,17,0.5);
}

/*──────────────────────────────
  RESPONSIVE
──────────────────────────────*/
@media (max-width: 900px) {
  .footer-top {
    flex-direction: column;
    gap: 56px;
  }
  .footer-nav {
    gap: 48px;
  }
  .footer-locations {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .footer-nav {
    gap: 32px;
  }
  .footer-locations {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .footer-legal {
    flex-wrap: wrap;
  }
}

  

/* BLOG SECTION */
.blog-section {
  padding: 100px 24px;
  background: #12141c;
  color: #fff;
}

.blog-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.blog-inner h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 42px;
  font-weight: 600;
  margin-bottom: 48px;
  letter-spacing: -0.02em;
}

.blog-list {
  display: flex;
  flex-direction: column;
}

.blog-article {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 40px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  text-decoration: none;
  color: #fff;
  gap: 64px;
}

.blog-article:first-child {
  border-top: 1px solid rgba(255,255,255,0.1);
}

.blog-thumb {
  width: 440px;
  flex-shrink: 0;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.blog-article:hover .blog-thumb img {
  transform: scale(1.05);
}

.blog-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
}

.blog-meta-top {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.blog-title {
  font-family: 'Inter', sans-serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: auto; /* pushes bottom meta down */
  letter-spacing: -0.02em;
  transition: color 0.2s ease;
}

.blog-meta-bottom {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-top: 40px;
}

@media (max-width: 900px) {
  .blog-article {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    padding: 32px 0;
  }
  .blog-thumb {
    width: 100%;
  }
}

  /* ── FEATURED PROJECTS SECTION (white background) ── */
  #featured-project-section {
    background: #fff;
    color: #111;
    position: relative;
    overflow: hidden;
  }
  #featured-project-section a { text-decoration: none; color: inherit; }
  #featured-project-section .fp-content {
    position: relative;
    padding: 100px 0;
  }
  #featured-project-section .fp-container {
    padding: 0 20px;
  }
  @media (min-width: 768px) {
    #featured-project-section .fp-container {
      max-width: 1600px;
      margin: 0 auto;
      padding: 0 80px;
    }
  }
  #featured-project-section .fp-header {
    margin: 0 0 40px 0;
  }
  #featured-project-section .fp-header h2 {
    font-weight: 500;
    font-size: 45px;
    line-height: 100%;
    letter-spacing: -0.02em;
  }
  @media (min-width: 768px) {
    #featured-project-section .fp-header {
      margin: 0 0 80px 0;
    }
    #featured-project-section .fp-header h2 {
      font-size: 72px;
    }
  }
  #featured-project-section .fp-cards {
    display: grid;
    align-items: start;
    gap: 60px;
  }
  @media (min-width: 768px) {
    #featured-project-section .fp-cards {
      grid-template-columns: repeat(2, 1fr);
      gap: 80px;
      justify-content: space-between;
    }
  }
  #featured-project-section .fp-col {
    display: grid;
    grid-auto-rows: min-content;
    gap: 60px;
  }
  @media (min-width: 768px) {
    #featured-project-section .fp-col {
      gap: 90px;
    }
    #featured-project-section .fp-col:last-child {
      margin-top: 220px;
    }
  }
  #featured-project-section .fp-card {
    display: block;
  }
  #featured-project-section .fp-card-preview {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 365/420;
    border-radius: 20px;
    transform: translateZ(0);
  }
  @media (min-width: 768px) {
    #featured-project-section .fp-card-preview {
      aspect-ratio: 500/675;
    }
  }
  #featured-project-section .fp-card-preview.-sm {
    aspect-ratio: 1/1;
  }
  @media (pointer: fine) {
    #featured-project-section .fp-card-preview {
      transition: transform 1.2s cubic-bezier(.16,1,.3,1);
    }
    #featured-project-section .fp-card:hover .fp-card-preview {
      transform: scale(0.98);
    }
  }
  #featured-project-section .fp-card-preview-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }
  #featured-project-section .fp-card-preview-media.-image {
    opacity: 1;
    z-index: 1;
  }
  #featured-project-section .fp-card-preview-media img,
  #featured-project-section .fp-card-preview-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  @media (pointer: fine) {
    #featured-project-section .fp-card-preview-media img,
    #featured-project-section .fp-card-preview-media video {
      transition: transform 1.2s cubic-bezier(.16,1,.3,1);
    }
    #featured-project-section .fp-card:hover .fp-card-preview-media img,
    #featured-project-section .fp-card:hover .fp-card-preview-media video {
      transform: scale(1.05);
    }
    #featured-project-section .fp-card-preview-media.-image {
      transition: opacity .4s, transform .6s;
    }
    #featured-project-section .fp-card:hover .fp-card-preview-media.-image {
      opacity: 0;
      transform: scale(1.05);
      transition-delay: .2s, 0s;
    }
  }
  #featured-project-section .fp-card-preview-media.-video {
    display: none;
    z-index: 0;
  }
  @media (pointer: fine) {
    #featured-project-section .fp-card-preview-media.-video {
      display: block;
      opacity: 0;
      transition: opacity .4s, transform .6s;
    }
    #featured-project-section .fp-card:hover .fp-card-preview-media.-video {
      opacity: 1;
      transform: scale(1) translateZ(0);
    }
  }
  #featured-project-section .fp-card-hint {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: #fff;
    color: #111;
    font-size: 14px;
    letter-spacing: .02em;
    opacity: 0;
    transform: translate3d(-50%, -50%, 0) scale(0.8);
    transition: opacity .4s ease, transform .4s ease;
    pointer-events: none;
    will-change: transform, opacity;
  }
  @media (pointer: fine) {
    #featured-project-section .fp-card-preview:hover .fp-card-hint {
      opacity: 1;
    }
  }
  #featured-project-section .fp-card-caption {
    max-width: 94%;
    margin: 20px 0 0 0;
    font-size: 17px;
    line-height: 120%;
    color: #111;
  }
  @media (min-width: 768px) {
    #featured-project-section .fp-card-caption {
      max-width: 85%;
      margin: 24px 0 0 0;
      font-size: 19px;
    }
  }
  #featured-project-section .fp-more {
    margin: 60px 0 0 0;
    text-align: center;
  }
  @media (min-width: 768px) {
    #featured-project-section .fp-more {
      margin: 60px 0 0 0;
    }
  }
  #featured-project-section .fp-btn {
    position: relative;
    display: inline-block;
    overflow: hidden;
    padding: 20px 40px;
    color: #111;
    border-radius: 1000px;
    font-size: 15px;
    letter-spacing: .04em;
    transform: translateZ(0);
    transition: transform .3s;
  }
  @media (pointer: fine) {
    #featured-project-section .fp-btn:hover {
      transform: scaleX(1.02);
      transition: transform .6s cubic-bezier(.34,5.56,.64,1);
    }
  }
  #featured-project-section .fp-btn-border {
    content: "";
    display: block;
    position: absolute;
    inset: 0;
    z-index: 3;
    border: 1px solid currentColor;
    border-radius: 1000px;
  }
  #featured-project-section .fp-btn-ripple {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 1;
    overflow: hidden;
    border-radius: inherit;
  }
  #featured-project-section .fp-btn-ripple span {
    display: block;
    width: 100%;
    height: 100%;
    transform: translateY(101%);
    background: currentColor;
    border-radius: 50% 50% 0 0;
    transition: transform .5s cubic-bezier(.4,0,0,1), border-radius .5s cubic-bezier(.4,0,0,1);
  }
  @media (pointer: fine) {
    #featured-project-section .fp-btn:hover .fp-btn-ripple span {
      border-radius: 0;
      transform: translateY(0);
      transition-duration: .5s, .9s;
    }
  }
  #featured-project-section .fp-btn-title {
    position: relative;
    display: block;
    overflow: hidden;
    z-index: 2;
  }
  #featured-project-section .fp-btn-title span {
    display: block;
    transition: transform .8s cubic-bezier(.16,1,.3,1);
  }
  #featured-project-section .fp-btn-title span:after {
    content: attr(data-text);
    display: block;
    position: absolute;
    top: 110%;
    left: 0;
    color: #fff;
  }
  @media (pointer: fine) {
    #featured-project-section .fp-btn:hover .fp-btn-title span {
      transform: translateY(-110%);
    }
  }

/* ============================================================
   FLOATING "ESTIMATE YOUR APP PROJECT'S COST NOW" BADGE
   Fixed to the right edge of the viewport on every page,
   spinning circular text with a center CTA arrow.
   ============================================================ */
.estimate-badge {
  position: fixed;
  right: 26px;
  bottom: 24px;
  width: 130px;
  height: 130px;
  z-index: 950;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(24px) scale(.88);
  transition: opacity .55s ease, transform .55s cubic-bezier(.2,.8,.2,1), visibility .55s;
}
.estimate-badge.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.estimate-badge-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0,0,0,.16), 0 2px 8px rgba(0,0,0,.08);
  transition: box-shadow .4s ease, transform .4s ease;
}
.estimate-badge:hover .estimate-badge-inner {
  box-shadow: 0 14px 38px rgba(0,0,0,.2), 0 3px 10px rgba(0,0,0,.1);
}

/* soft idle halo that pulses to draw the eye — neutral, no color tint */
.estimate-badge-inner::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,0,0,.06) 0%, rgba(0,0,0,0) 70%);
  opacity: .8;
  animation: estimateHalo 3.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes estimateHalo {
  0%, 100% { transform: scale(.92); opacity: .55; }
  50%      { transform: scale(1.12); opacity: .95; }
}

.estimate-badge-ring {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  animation: estimateSpin 16s linear infinite;
  transition: animation-duration .5s ease;
}
.estimate-badge:hover .estimate-badge-ring {
  animation-duration: 6s;
}
@keyframes estimateSpin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

.estimate-badge-ring text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 12.2px;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  fill: rgba(20,20,22,.55);
  paint-order: stroke fill;
  stroke: rgba(255,255,255,.9);
  stroke-width: 2px;
  stroke-linejoin: round;
  transition: fill .3s ease, stroke .3s ease;
}
.estimate-badge:hover .estimate-badge-ring text {
  fill: rgba(10,10,12,.95);
}

/* The badge now always sits on its own white backdrop, so the circular
   text stays legible no matter what's behind it on the page — the
   on-light variant simply matches the default styling. */
.estimate-badge.on-light .estimate-badge-ring text {
  fill: rgba(20,20,22,.55);
  stroke: rgba(255,255,255,.9);
}
.estimate-badge.on-light:hover .estimate-badge-ring text {
  fill: rgba(10,10,12,.95);
}

.estimate-badge-center {
  position: absolute;
  inset: 19%;
  border-radius: 50%;
  overflow: hidden;
  background: #f2f2f2;
  border: 1px solid rgba(0,0,0,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 rgba(0,0,0,0);
  transition: border-color .4s ease, transform .45s cubic-bezier(.2,.8,.2,1.2), box-shadow .4s ease;
}
.estimate-badge:hover .estimate-badge-center {
  border-color: rgba(0,0,0,.18);
  transform: scale(1.08);
  box-shadow: 0 0 20px rgba(0,0,0,.14), 0 0 40px rgba(0,0,0,.08);
}

.estimate-badge-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .92;
  transform: scale(1.08) scaleX(1);
  transition: opacity .5s ease, transform .8s cubic-bezier(.2,.8,.2,1);
}
/* Mirror animation on hover — the face flips horizontally into full view,
   like turning to face the visitor head-on. */
.estimate-badge:hover .estimate-badge-video {
  opacity: 1;
  transform: scale(1.18) scaleX(-1);
}

.estimate-badge-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,.18));
  transition: background .45s ease;
}
.estimate-badge:hover .estimate-badge-video-overlay {
  background: rgba(0,0,0,.06);
}

/* bubbles, released on hover, rise and pop inside the circle */
.estimate-badge-bubbles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.eb-bubble {
  position: absolute;
  bottom: -14%;
  border-radius: 50%;
  background: rgba(255,255,255,.6);
  border: 1px solid rgba(255,255,255,.85);
  box-shadow: inset -1px -1px 2px rgba(0,0,0,.12), inset 1px 1px 2px rgba(255,255,255,.7);
  opacity: 0;
  animation: none;
}
.estimate-badge:hover .eb-bubble {
  animation-name: ebRise;
  animation-timing-function: ease-in;
  animation-iteration-count: infinite;
}
@keyframes ebRise {
  0%   { transform: translateY(0) translateX(0) scale(.4); opacity: 0; }
  12%  { opacity: .9; }
  55%  { transform: translateY(-60%) translateX(3px) scale(.85); }
  82%  { opacity: .5; }
  100% { transform: translateY(-118%) translateX(-2px) scale(1); opacity: 0; }
}
.eb-bubble:nth-child(1) { left: 12%; width: 7px;  height: 7px;  animation-duration: 2.1s; animation-delay: 0s; }
.eb-bubble:nth-child(2) { left: 24%; width: 5px;  height: 5px;  animation-duration: 2.6s; animation-delay: .3s; }
.eb-bubble:nth-child(3) { left: 37%; width: 9px;  height: 9px;  animation-duration: 2s;   animation-delay: .55s; }
.eb-bubble:nth-child(4) { left: 49%; width: 4px;  height: 4px;  animation-duration: 2.8s; animation-delay: .1s; }
.eb-bubble:nth-child(5) { left: 60%; width: 8px;  height: 8px;  animation-duration: 2.3s; animation-delay: .7s; }
.eb-bubble:nth-child(6) { left: 71%; width: 6px;  height: 6px;  animation-duration: 2.5s; animation-delay: .4s; }
.eb-bubble:nth-child(7) { left: 82%; width: 5px;  height: 5px;  animation-duration: 2.2s; animation-delay: .85s; }
.eb-bubble:nth-child(8) { left: 91%; width: 7px;  height: 7px;  animation-duration: 2.7s; animation-delay: .15s; }

/* microscope inspection effect, revealed while hovering the face */
.estimate-badge-microscope {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  overflow: hidden;
  border-radius: 50%;
}

.estimate-badge-microscope-sweep {
  position: absolute;
  left: 0;
  right: 0;
  height: 26%;
  top: -30%;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.55) 50%, rgba(255,255,255,0) 100%);
  opacity: 0;
}
.estimate-badge:hover .estimate-badge-microscope-sweep {
  animation: microscopeSweep 2.4s ease-in-out infinite;
}
@keyframes microscopeSweep {
  0%   { top: -30%; opacity: 0; }
  10%  { opacity: .9; }
  50%  { top: 42%; opacity: .9; }
  90%  { opacity: .9; }
  100% { top: 110%; opacity: 0; }
}

.estimate-badge-microscope-lens {
  position: absolute;
  width: 46%;
  height: 46%;
  left: 50%;
  top: 50%;
  border: 2px solid rgba(255,255,255,.9);
  border-radius: 50%;
  box-shadow: 0 0 0 2000px rgba(0,0,0,0), inset 0 0 10px rgba(0,0,0,.15);
  opacity: 0;
  transform: translate(-50%, -50%) scale(.5);
}
.estimate-badge-microscope-lens::before,
.estimate-badge-microscope-lens::after {
  content: "";
  position: absolute;
  background: rgba(255,255,255,.85);
}
.estimate-badge-microscope-lens::before {
  left: 50%;
  top: 12%;
  bottom: 12%;
  width: 1px;
  transform: translateX(-50%);
}
.estimate-badge-microscope-lens::after {
  top: 50%;
  left: 12%;
  right: 12%;
  height: 1px;
  transform: translateY(-50%);
}
.estimate-badge:hover .estimate-badge-microscope-lens {
  animation: microscopeInspect 2.4s cubic-bezier(.4,0,.2,1) infinite;
}
@keyframes microscopeInspect {
  0%   { transform: translate(-72%, -72%) scale(.4); opacity: 0; }
  15%  { opacity: 1; }
  50%  { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  85%  { opacity: 1; }
  100% { transform: translate(-28%, -28%) scale(.4); opacity: 0; }
}

.estimate-badge:active .estimate-badge-center {
  transform: scale(.96);
}

@media (max-width: 900px) {
  .estimate-badge { width: 108px; height: 108px; right: 16px; bottom: 20px; }
  .estimate-badge-ring text { font-size: 10.6px; letter-spacing: 2.1px; }
}
@media (max-width: 560px) {
  .estimate-badge { width: 88px; height: 88px; right: 12px; bottom: 16px; }
  .estimate-badge-ring text { font-size: 9px; letter-spacing: 1.6px; }
}