:root {
      --d5-bg: #070707;
      --d5-bg-soft: #111111;
      --d5-panel: rgba(24, 24, 24, .78);
      --d5-panel-strong: rgba(32, 32, 32, .94);
      --d5-border: rgba(255,183,27,.16);
      --d5-text: #f7f9fc;
      --d5-muted: #aaa7a2;

      /* D5 brand colors matched to the supplied logo: gold, red, graphite. */
      --d5-primary: #ffb71b;
      --d5-accent: #d40000;
      --d5-cyan: #ffb71b;

      --d5-gradient: linear-gradient(135deg, #ffbd2e 0%, #ff9f00 42%, #d40000 100%);
      --d5-radius: 1.4rem;
      --d5-shadow: 0 28px 80px rgba(0,0,0,.38);
    }

    html { scroll-behavior: smooth; scroll-padding-top: 86px; }

    body {
      background:
        radial-gradient(circle at 15% 10%, rgba(255,183,27,.13), transparent 28rem),
        radial-gradient(circle at 85% 18%, rgba(212,0,0,.11), transparent 30rem),
        var(--d5-bg);
      color: var(--d5-text);
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      overflow-x: hidden;
    }

    body::before {
      content: "";
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: -1;
      opacity: .24;
      background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
      background-size: 42px 42px;
      mask-image: linear-gradient(to bottom, #000, transparent 78%);
    }

    a { color: inherit; }

    .text-muted-d5 { color: var(--d5-muted) !important; }

    .navbar {
      background: rgba(5,7,11,.72);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
      border-bottom: 1px solid rgba(255,255,255,.07);
      transition: background .25s ease, box-shadow .25s ease;
    }

    .navbar.scrolled {
      background: rgba(5,7,11,.93);
      box-shadow: 0 12px 35px rgba(0,0,0,.28);
    }

    .navbar-brand { letter-spacing: -.03em; }

    .brand-logo {
      width: 52px;
      height: 52px;
      object-fit: contain;
      border-radius: 13px;
      filter: drop-shadow(0 0 14px rgba(255,183,27,.20)) drop-shadow(0 0 18px rgba(212,0,0,.12));
    }

    .navbar .nav-link {
      color: #c4ccd8;
      font-weight: 600;
      font-size: .94rem;
    }

    .navbar .nav-link:hover,
    .navbar .nav-link:focus { color: #fff; }

    .btn-d5 {
      --bs-btn-color: #fff;
      --bs-btn-hover-color: #fff;
      border: 1px solid rgba(255,255,255,.18);
      background: var(--d5-gradient);
      box-shadow: 0 12px 35px rgba(255,183,27,.2), inset 0 1px rgba(255,255,255,.25);
    }

    .btn-d5:hover {
      transform: translateY(-2px);
      box-shadow: 0 16px 42px rgba(255,183,27,.3), inset 0 1px rgba(255,255,255,.28);
    }

    .btn-glass {
      color: #fff;
      background: rgba(255,255,255,.055);
      border: 1px solid var(--d5-border);
      backdrop-filter: blur(12px);
    }

    .btn-glass:hover {
      color: #fff;
      background: rgba(255,255,255,.1);
      border-color: rgba(255,255,255,.2);
    }

    .btn { transition: all .22s ease; }

    .hero {
      min-height: 100vh;
      display: flex;
      align-items: center;
      position: relative;
      padding: 9rem 0 6rem;
    }

    .hero::after {
      content: "";
      position: absolute;
      width: 30rem;
      height: 30rem;
      right: -10rem;
      top: 8rem;
      border-radius: 50%;
      background: var(--d5-gradient);
      filter: blur(110px);
      opacity: .14;
      pointer-events: none;
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: .6rem;
      padding: .48rem .8rem;
      border: 1px solid var(--d5-border);
      border-radius: 999px;
      background: rgba(255,255,255,.045);
      color: #cbd5e1;
      font-size: .8rem;
      font-weight: 700;
      letter-spacing: .08em;
      text-transform: uppercase;
    }

    .eyebrow-dot {
      width: .5rem;
      height: .5rem;
      border-radius: 50%;
      background: var(--d5-cyan);
      box-shadow: 0 0 14px var(--d5-cyan);
    }

    .hero h1 {
      max-width: 900px;
      margin-top: 1.4rem;
      font-size: clamp(3.2rem, 8vw, 7.5rem);
      line-height: .91;
      letter-spacing: -.065em;
      font-weight: 800;
    }

    .gradient-text {
      background: linear-gradient(90deg, #fff 2%, #ffbd2e 42%, #d40000 82%, #fff 100%);
      -webkit-background-clip: text;
      background-clip: text;
      color: transparent;
    }

    .hero-copy {
      max-width: 720px;
      font-size: clamp(1.08rem, 2vw, 1.3rem);
      line-height: 1.75;
      color: var(--d5-muted);
    }

    .hero-panel, .glass-card {
      position: relative;
      overflow: hidden;
      border: 1px solid var(--d5-border);
      border-radius: var(--d5-radius);
      background:
        linear-gradient(145deg, rgba(255,255,255,.085), rgba(255,255,255,.025)),
        var(--d5-panel);
      box-shadow: var(--d5-shadow);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
    }

    .hero-panel::before, .glass-card::before {
      content: "";
      position: absolute;
      inset: 0;
      pointer-events: none;
      background: linear-gradient(120deg, rgba(255,255,255,.12), transparent 24%, transparent 72%, rgba(255,183,27,.06));
      opacity: .65;
    }

    .mini-stat {
      padding: 1.15rem;
      border: 1px solid rgba(255,255,255,.08);
      border-radius: 1rem;
      background: rgba(0,0,0,.18);
    }

    .mini-stat strong {
      display: block;
      font-size: 1.45rem;
      letter-spacing: -.04em;
    }

    .section-pad { padding: 7rem 0; }

    .section-title {
      font-size: clamp(2.2rem, 5vw, 4.5rem);
      line-height: 1;
      letter-spacing: -.055em;
      font-weight: 800;
    }

    .section-copy {
      max-width: 650px;
      color: var(--d5-muted);
      line-height: 1.8;
    }

    .portfolio-card {
      height: 100%;
      transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
    }

    .portfolio-card:hover {
      transform: translateY(-7px);
      border-color: rgba(255,183,27,.35);
      box-shadow: 0 30px 80px rgba(0,0,0,.48), 0 0 40px rgba(255,183,27,.08);
    }

    .project-number {
      color: rgba(255,255,255,.28);
      font-size: .8rem;
      letter-spacing: .12em;
      font-weight: 700;
    }

    .project-icon {
      width: 20rem;
      height: 10rem;
      display: grid;
      place-items: center;
      border-radius: .95rem;
      background: color red;
      box-shadow: inset 0 1px rgba(255,255,255,.3), 0 10px 30px rgba(255,183,27,.2);
      font-weight: 800;
    }

    .tag {
      display: inline-block;
      padding: .36rem .62rem;
      border-radius: 999px;
      border: 1px solid rgba(255,255,255,.09);
      background: rgba(255,255,255,.04);
      color: #aeb9c8;
      font-size: .75rem;
    }

    .review-card blockquote {
      color: #e9edf4;
      line-height: 1.8;
      margin-bottom: 1.5rem;
    }

    .avatar {
      width: 44px;
      height: 44px;
      display: grid;
      place-items: center;
      border-radius: 50%;
      background: rgba(255,255,255,.08);
      border: 1px solid rgba(255,255,255,.1);
      font-weight: 700;
    }

    .stars { letter-spacing: .12em; color: #ffd166; }

    .accordion {
      --bs-accordion-bg: transparent;
      --bs-accordion-border-color: rgba(255,255,255,.09);
      --bs-accordion-color: #fff;
      --bs-accordion-btn-color: #fff;
      --bs-accordion-btn-bg: rgba(255,255,255,.025);
      --bs-accordion-active-color: #fff;
      --bs-accordion-active-bg: rgba(255,183,27,.08);
      --bs-accordion-btn-focus-box-shadow: none;
    }

    .accordion-item {
      overflow: hidden;
      margin-bottom: .75rem;
      border: 1px solid var(--d5-border) !important;
      border-radius: 1rem !important;
      background: rgba(255,255,255,.025);
    }

    .accordion-button { font-weight: 650; }
    .accordion-button::after { filter: invert(1) grayscale(1); }
    .accordion-body { color: var(--d5-muted); line-height: 1.75; }

    .form-control, .form-select {
      min-height: 3.25rem;
      color: #fff;
      background: rgba(255,255,255,.045);
      border: 1px solid rgba(255,255,255,.1);
    }

    textarea.form-control { min-height: 150px; }

    .form-control:focus, .form-select:focus {
      color: #fff;
      background: rgba(255,255,255,.065);
      border-color: rgba(255,183,27,.65);
      box-shadow: 0 0 0 .25rem rgba(255,183,27,.12);
    }

    .form-control::placeholder { color: #6f7b8b; }

    .form-label {
      color: #cbd3df;
      font-size: .88rem;
      font-weight: 600;
    }

    .contact-glow {
      position: absolute;
      inset: auto auto -10rem -10rem;
      width: 24rem;
      height: 24rem;
      border-radius: 50%;
      background: var(--d5-gradient);
      filter: blur(110px);
      opacity: .13;
    }

    .footer {
      border-top: 1px solid rgba(255,255,255,.07);
      background: rgba(0,0,0,.15);
    }

    .footer a {
      color: var(--d5-muted);
      text-decoration: none;
    }

    .footer a:hover { color: #fff; }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .reveal.visible {
        opacity: 1;
        transform: none;
    }

    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      *, *::before, *::after { transition: none !important; }
      .reveal { opacity: 1; transform: none; }
    }

    @media (max-width: 991.98px) {
      .navbar-collapse {
        margin-top: .9rem;
        padding: 1rem;
        border: 1px solid var(--d5-border);
        border-radius: 1rem;
        background: rgba(7,10,16,.97);
      }
      .hero { min-height: auto; padding-top: 8.5rem; }
    }

    /* ==========================================
      D5 MOBILE
      ========================================== */

    @media (max-width: 767.98px) {

        html,
        body {
            width: 100%;
            max-width: 100%;
            overflow-x: hidden;
        }

        .container {
            width: 100%;
            padding-left: 20px;
            padding-right: 20px;
        }

        /* NAVBAR */

        .navbar {
            padding-top: 10px;
            padding-bottom: 10px;
        }

        .brand-logo {
            width: 42px;
            height: 42px;
        }

        .navbar-brand {
            font-size: 1rem;
        }

        /* HERO */

        .hero {
            min-height: auto;
            padding-top: 120px;
            padding-bottom: 70px;
        }

        .hero h1 {
            font-size: clamp(3rem, 16vw, 4.8rem);
            line-height: .92;
            letter-spacing: -.055em;
            overflow-wrap: break-word;
        }

        .hero-copy {
            font-size: 1rem;
            line-height: 1.7;
        }

        .hero .btn {
            width: 100%;
        }

        .hero-panel {
            margin-top: 20px;
        }

        /* SECTIONS */

        .section-pad {
            padding-top: 75px;
            padding-bottom: 75px;
        }

        .section-title {
            font-size: clamp(2.4rem, 12vw, 3.5rem);
            line-height: 1;
        }

        .section-copy {
            font-size: 1rem !important;
        }

        /* CARDS */

        .glass-card,
        .portfolio-card {
            width: 100%;
        }

        /* CONTACT */

        #contact .glass-card {
            padding: 24px !important;
        }

        .form-control,
        .form-select {
            width: 100%;
        }

        /* FOOTER */

        .footer {
            text-align: center;
        }

        .footer .d-flex {
            justify-content: center;
        }
    }