:root {
      --bg: #181828;
      --bg-deep: #181828;
      --paper: #efe2d2;
      --paper-soft: rgba(239, 226, 210, 0.08);
      --panel: rgba(19, 16, 14, 0.78);
      --panel-strong: rgba(28, 22, 18, 0.92);
      --line: rgba(239, 226, 210, 0.12);
      --line-strong: rgba(239, 226, 210, 0.24);
      --text: #fff8ef;
      --muted: #c9b9a8;
      --muted-2: #9e8e7d;
      --accent: #ff8f3d;
      --accent-2: #ffd09f;
      --green: #25d366;
      --shadow: 0 26px 80px rgba(0, 0, 0, 0.42);
      --shadow-soft: 0 14px 50px rgba(0, 0, 0, 0.24);
      --radius-xl: 42px;
      --radius-lg: 28px;
      --radius-md: 18px;
      --nav-height: 82px;
      --transition: 0.28s ease;
    }

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

    html {
      scroll-behavior: smooth;
      scroll-padding-top: calc(var(--nav-height) + 24px);
    }

    body {
      min-height: 100vh;
      overflow-x: hidden;
      color: var(--text);
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      line-height: 1.6;
      background: #181828;
    }

    body::before {
      content: none;
    }

    body::after {
      content: none;
    }

    img {
      display: block;
      max-width: 100%;
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    section {
      position: relative;
      padding: 120px 0;
    }

    .container {
      max-width: 1240px;
    }

    .text-white-50 {
      color: rgba(255, 248, 239, 0.58) !important;
    }

    .section-tag {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      width: fit-content;
      padding: 8px 13px;
      border: 1px solid var(--line-strong);
      border-radius: 999px;
      color: var(--accent-2);
      background: rgba(255, 255, 255, 0.055);
      font-size: 0.76rem;
      font-weight: 800;
      letter-spacing: 0.12em;
      text-transform: uppercase;
    }

    .section-tag i {
      color: var(--accent);
      font-size: 1rem;
    }

    .section-title {
      max-width: 920px;
      margin: 18px auto 14px;
      color: var(--text);
      font-size: clamp(2.1rem, 4.1vw, 4.7rem);
      font-weight: 950;
      line-height: 0.93;
      letter-spacing: -0.065em;
    }

    .section-subtitle {
      max-width: 820px;
      margin: 0 auto;
      color: var(--muted);
      font-size: 1.04rem;
    }

    .image-section-title {
      max-width: none;
      white-space: nowrap;
      font-size: clamp(1.7rem, 3.6vw, 4.7rem);
    }

    .image-section-title-accent {
      color: #DE7559 !important;
    }

    .text-gradient {
      color: var(--accent-2);
      background: linear-gradient(135deg, var(--accent-2), var(--accent));
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      text-shadow: 0 0 40px rgba(255, 143, 61, 0.18);
    }

    .glass-card {
      position: relative;
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: var(--radius-xl);
      background:
        linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.025)),
        rgba(12, 10, 9, 0.74);
      box-shadow: var(--shadow);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
    }

    .glass-card::before {
      content: "";
      position: absolute;
      inset: -1px;
      pointer-events: none;
      background:
        linear-gradient(135deg, rgba(255,143,61,0.2), transparent 26%, transparent 70%, rgba(255,208,159,0.1)),
        radial-gradient(circle at 92% 8%, rgba(255,143,61,0.18), transparent 15rem);
      opacity: 0.72;
    }

    .glass-card > * {
      position: relative;
      z-index: 1;
    }

    .btn-custom,
    .btn-main {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      min-height: 56px;
      padding: 0 24px;
      border-radius: 999px;
      font-weight: 850;
      line-height: 1;
      border: 1px solid transparent;
      transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), background var(--transition), color var(--transition);
    }

    .btn-primary-custom,
    .btn-main {
      color: #160d08;
      background: linear-gradient(135deg, var(--accent-2), var(--accent));
      box-shadow: 0 16px 42px rgba(255, 143, 61, 0.28);
    }

    .btn-outline-custom {
      color: var(--text);
      border-color: var(--line-strong);
      background: rgba(255, 255, 255, 0.055);
    }

    .btn-primary-custom:hover,
    .btn-main:hover,
    .btn-outline-custom:hover,
    .pagination-number:hover {
      transform: translateY(-3px);
    }

    .btn-primary-custom:hover,
    .btn-main:hover {
      color: #130c07;
      box-shadow: 0 22px 54px rgba(255, 143, 61, 0.38);
    }

    .btn-outline-custom:hover {
      color: var(--text);
      border-color: rgba(255, 143, 61, 0.48);
      background: rgba(255, 143, 61, 0.12);
    }

    .navbar {
      min-height: var(--nav-height);
      padding: 18px 0;
      background: transparent;
      border-bottom: 1px solid transparent;
      transition: padding var(--transition), background var(--transition), border-color var(--transition), backdrop-filter var(--transition);
    }

    .navbar.scrolled {
      padding: 12px 0;
      border-bottom-color: var(--line);
      background: rgba(8, 7, 6, 0.76);
      backdrop-filter: blur(20px);
      -webkit-backdrop-filter: blur(20px);
    }

    .navbar .container {
      display: flex;
      align-items: center;
      width: min(100% - 36px, 1240px);
      min-height: 52px;
      margin-inline: auto;
      padding-inline: 0;
    }

    .navbar-brand {
      position: relative;
      z-index: 2;
      display: inline-flex;
      align-items: center;
      padding: 0;
    }

    .navbar-brand img,
    footer img {
      width: 138px !important;
      height: auto !important;
      object-fit: contain;
      filter: drop-shadow(0 12px 24px rgba(0,0,0,0.4));
    }

    .navbar-toggler {
      border: 1px solid var(--line-strong);
      border-radius: 16px;
      background: rgba(255, 255, 255, 0.08);
      padding: 10px 12px;
      box-shadow: none !important;
    }

    .navbar-toggler-icon {
      position: relative;
      display: block;
      width: 26px;
      height: 18px;
      background-image: none !important;
      filter: none;
    }

    .navbar-toggler-icon::before,
    .navbar-toggler-icon::after,
    .navbar-toggler-icon span {
      content: "";
      position: absolute;
      left: 0;
      width: 100%;
      height: 2px;
      border-radius: 999px;
      background: #ffffff;
      box-shadow: 0 0 10px rgba(255, 255, 255, 0.35);
    }

    .navbar-toggler-icon::before {
      top: 0;
    }

    .navbar-toggler-icon span {
      top: 8px;
    }

    .navbar-toggler-icon::after {
      bottom: 0;
    }

    .navbar-nav {
      gap: 8px;
      padding: 8px;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: rgba(255,255,255,0.045);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
    }

    .nav-link {
      border-radius: 999px;
      padding: 10px 16px !important;
      color: var(--muted) !important;
      font-size: 0.9rem;
      font-weight: 800;
      transition: color var(--transition), background var(--transition);
    }

    .nav-link:hover,
    .nav-link.active {
      color: var(--text) !important;
      background: rgba(255, 143, 61, 0.14);
    }

    .navbar .btn-custom {
      min-height: 42px;
      padding: 0 16px;
      font-size: 0.86rem;
    }

    .hero {
      min-height: 100vh;
      padding-top: calc(var(--nav-height) + 72px);
      padding-bottom: 92px;
      display: flex;
      align-items: center;
      overflow: hidden;
    }

    .hero-bg,
    .blur-orb {
      position: absolute;
      pointer-events: none;
    }

    .hero-bg {
      inset: 112px 18px 30px;
      border: 1px solid var(--line);
      border-radius: 48px;
      background:
        linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.015)),
        rgba(12, 10, 9, 0.42);
      box-shadow: var(--shadow-soft);
    }

    .hero-bg::after {
      content: "PORTIFOLIO";
      position: absolute;
      right: -0.04em;
      bottom: -0.22em;
      color: transparent;
      -webkit-text-stroke: 1px rgba(255,255,255,0.07);
      font-size: clamp(4.6rem, 15vw, 13rem);
      font-weight: 950;
      letter-spacing: -0.08em;
    }

    .blur-orb {
      width: min(44vw, 560px);
      aspect-ratio: 1;
      border-radius: 50%;
      filter: blur(8px);
    }

    .orb-purple {
      left: -14vw;
      top: 4%;
      background: radial-gradient(circle, rgba(255,143,61,0.22), transparent 68%);
    }

    .orb-blue {
      right: -12vw;
      bottom: 0;
      background: radial-gradient(circle, rgba(255,208,159,0.12), transparent 68%);
    }

    .fade-in {
      position: relative;
      z-index: 1;
      max-width: 1060px;
      margin: 0 auto;
      padding: clamp(28px, 5vw, 68px) 0;
      animation: fadeUp 0.9s ease both;
    }

    .hero h1 {
      max-width: 1040px;
      margin: 24px auto 22px;
      color: var(--text);
      font-size: clamp(3rem, 7vw, 7rem);
      font-weight: 950;
      line-height: 0.84;
      letter-spacing: -0.085em;
      text-transform: uppercase;
    }

    .hero p {
      max-width: 820px;
      color: var(--muted);
      font-size: clamp(1rem, 1.35vw, 1.18rem);
    }

    .hero-actions {
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 14px;
      margin-top: 32px;
    }

    #videos {
      background: linear-gradient(180deg, transparent, rgba(255,255,255,0.025), transparent);
    }

    .video-player-card,
    .video-list-card,
    .image-card,
    .cta-box {
      padding: clamp(18px, 3vw, 28px);
    }

    .video-frame-wrap {
      position: relative;
      overflow: hidden;
      aspect-ratio: 16 / 9;
      border: 1px solid var(--line);
      border-radius: 30px;
      background:
        radial-gradient(circle at 50% 40%, rgba(255,143,61,0.16), transparent 26rem),
        rgba(0,0,0,0.38);
    }

    .video-frame-wrap iframe,
    .video-cover {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      border: 0;
    }

    .video-cover {
      z-index: 2;
      cursor: pointer;
      background: #060504;
      transition: opacity var(--transition), visibility var(--transition);
    }

    .video-cover.hidden {
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
    }

    .video-cover img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      opacity: 0.76;
      filter: saturate(0.95) contrast(1.08);
    }

    .video-cover::after {
      content: "";
      position: absolute;
      inset: 0;
      background:
        linear-gradient(180deg, rgba(0,0,0,0.06), rgba(0,0,0,0.58)),
        radial-gradient(circle at center, rgba(255,143,61,0.16), transparent 45%);
    }

    .video-cover-play {
      position: absolute;
      z-index: 3;
      left: 50%;
      top: 50%;
      display: grid;
      place-items: center;
      width: 92px;
      height: 92px;
      border: 1px solid rgba(255,255,255,0.24);
      border-radius: 50%;
      color: #140d08;
      background: linear-gradient(135deg, var(--accent-2), var(--accent));
      box-shadow: 0 20px 60px rgba(255,143,61,0.32);
      transform: translate(-50%, -50%);
      font-size: 2.4rem;
    }

    .player-meta {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 18px;
      padding-top: 22px;
    }

    .player-meta h3,
    .video-list-card h3,
    .video-item h3 {
      color: var(--text);
      font-weight: 920;
      letter-spacing: -0.04em;
    }

    .player-meta p {
      margin: 0;
      color: var(--muted);
    }

    .video-list-card {
      position: sticky;
      top: calc(var(--nav-height) + 24px);
    }

    .video-list {
      display: grid;
      gap: 12px;
      max-height: 680px;
      overflow: auto;
      padding-right: 4px;
    }

    .video-list::-webkit-scrollbar {
      width: 8px;
    }

    .video-list::-webkit-scrollbar-thumb {
      border-radius: 999px;
      background: rgba(255,143,61,0.34);
    }

    .video-item {
      display: grid;
      grid-template-columns: 112px 1fr;
      gap: 14px;
      align-items: center;
      padding: 12px;
      border: 1px solid var(--line);
      border-radius: 22px;
      background: rgba(255,255,255,0.045);
      cursor: pointer;
      transition: transform var(--transition), border-color var(--transition), background var(--transition);
    }

    .video-item:hover,
    .video-item.active {
      transform: translateY(-3px);
      border-color: rgba(255,143,61,0.46);
      background: rgba(255,143,61,0.1);
    }

    .video-thumb {
      overflow: hidden;
      aspect-ratio: 16 / 10;
      border-radius: 16px;
      background: rgba(0,0,0,0.3);
    }

    .video-thumb img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }

    .video-item h3 {
      margin: 0 0 4px;
      font-size: 1rem;
    }

    .video-item p {
      margin: 0;
      color: var(--muted-2);
      font-size: 0.88rem;
      line-height: 1.35;
    }

    .image-gallery {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 14px;
    }

    .gallery-item {
      position: relative;
      overflow: hidden;
      min-height: 220px;
      border: 1px solid var(--line);
      border-radius: 26px;
      background: rgba(255,255,255,0.045);
      cursor: pointer;
      transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
    }

    .gallery-item.hidden-by-pagination {
      display: none;
    }

    .gallery-item:hover {
      transform: translateY(-6px);
      border-color: rgba(255,143,61,0.46);
      box-shadow: 0 20px 60px rgba(0,0,0,0.28);
    }

    .gallery-item img {
      width: 100%;
      height: 100%;
      min-height: 220px;
      object-fit: cover;
      transition: transform 0.45s ease, opacity var(--transition);
    }

    .gallery-item:hover img {
      transform: scale(1.06);
      opacity: 0.82;
    }

    .gallery-overlay {
      position: absolute;
      inset: auto 12px 12px 12px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding: 12px 14px;
      border: 1px solid var(--line);
      border-radius: 18px;
      color: var(--text);
      background: rgba(6,5,4,0.72);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      font-weight: 850;
    }

    .gallery-overlay i {
      color: var(--accent);
    }

    .gallery-pagination-wrap {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 12px;
      flex-wrap: wrap;
      margin-top: 28px;
    }

    .pagination-numbers {
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      justify-content: center;
    }

    .pagination-number {
      display: grid;
      place-items: center;
      width: 44px;
      height: 44px;
      border: 1px solid var(--line);
      border-radius: 50%;
      color: var(--text);
      background: rgba(255,255,255,0.055);
      font-weight: 850;
      transition: transform var(--transition), border-color var(--transition), background var(--transition), color var(--transition);
    }

    .pagination-number.active {
      color: #140d08;
      border-color: transparent;
      background: linear-gradient(135deg, var(--accent-2), var(--accent));
    }

    .pagination-btn:disabled,
    .pagination-number:disabled {
      opacity: 0.45;
      pointer-events: none;
    }

    .cta-box {
      max-width: 1040px;
      margin: 0 auto;
      padding: clamp(28px, 5vw, 58px);
    }

    .cta-box p {
      max-width: 820px;
      margin: 0 auto 30px;
      color: var(--muted);
    }

    .contact-layout {
      display: grid;
      grid-template-columns: 0.72fr 1fr;
      gap: 22px;
      align-items: stretch;
    }

    .contact-info,
    .contact-card {
      border: 1px solid var(--line);
      border-radius: var(--radius-xl);
      background: rgba(255,255,255,0.045);
      box-shadow: var(--shadow-soft);
    }

    .contact-info {
      padding: 34px;
      background:
        radial-gradient(circle at top right, rgba(255,143,61,0.14), transparent 18rem),
        rgba(255,255,255,0.045);
    }

    .contact-info h3,
    .contact-card h3 {
      margin: 0;
      color: var(--text);
      font-size: clamp(1.7rem, 3vw, 3rem);
      font-weight: 920;
      line-height: 0.95;
      letter-spacing: -0.04em;
    }

    .contact-info > p,
    .contact-card > p {
      margin-top: 16px;
      color: var(--muted);
    }

    .contact-block {
      display: grid;
      grid-template-columns: 52px 1fr;
      gap: 16px;
      align-items: start;
      margin-top: 16px;
      padding: 18px;
      border: 1px solid var(--line);
      border-radius: 22px;
      background: rgba(255, 255, 255, 0.045);
    }

    .contact-block:first-of-type {
      margin-top: 30px;
    }

    .contact-icon {
      display: grid;
      place-items: center;
      width: 52px;
      height: 52px;
      border-radius: 18px;
      color: #140d08;
      background: linear-gradient(135deg, var(--accent-2), var(--accent));
      font-size: 1.35rem;
    }

    .contact-block strong {
      display: block;
      color: var(--text);
      font-size: 1rem;
    }

    .contact-block p {
      margin: 4px 0 0;
      color: var(--muted);
      font-size: 0.95rem;
    }

    .contact-block a:hover {
      color: var(--accent-2);
    }

    .contact-card {
      padding: clamp(24px, 4vw, 42px);
      background:
        linear-gradient(145deg, rgba(255,255,255,0.075), rgba(255,255,255,0.025)),
        rgba(11, 9, 8, 0.72);
    }

    .form-label {
      color: var(--accent-2);
      font-size: 0.82rem;
      font-weight: 850;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    .form-control-custom,
    .form-select-custom {
      min-height: 54px;
      border: 1px solid var(--line);
      border-radius: 18px;
      color: var(--text);
      background-color: rgba(0,0,0,0.22);
      box-shadow: none !important;
    }

    .form-control-custom::placeholder {
      color: rgba(255, 248, 239, 0.42);
    }

    .form-control-custom:focus,
    .form-select-custom:focus {
      color: var(--text);
      border-color: rgba(255,143,61,0.66);
      background-color: rgba(0,0,0,0.3);
    }

    .form-select-custom {
      color: rgba(255, 248, 239, 0.72);
    }

    .form-select-custom option {
      color: #15100c;
    }

    textarea.form-control-custom {
      padding-top: 16px;
      resize: vertical;
    }

    .contact-card .btn-primary-custom,
    .contact-card .btn-main {
      width: 100%;
      margin-top: 6px;
    }

    .form-message {
      min-height: 24px;
      margin-top: 12px;
      font-size: 0.92rem;
      font-weight: 750;
    }

    .form-message.error {
      color: #ff9d8f;
    }

    .form-message.success {
      color: #86efac;
    }

    footer {
      padding: 42px 0 48px;
      border-top: 1px solid var(--line);
      background: rgba(0,0,0,0.22);
    }

    .social-links {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
    }

    .social-link,
    .back-to-top {
      display: grid;
      place-items: center;
      border: 1px solid var(--line);
      color: var(--text);
      background: rgba(255,255,255,0.06);
      transition: transform var(--transition), background var(--transition), border-color var(--transition), opacity var(--transition), visibility var(--transition);
    }

    .social-link {
      width: 44px;
      height: 44px;
      border-radius: 50%;
    }

    .social-link:hover,
    .back-to-top:hover {
      transform: translateY(-3px);
      border-color: rgba(255,143,61,0.42);
      color: var(--text);
      background: rgba(255,143,61,0.12);
    }

    .back-to-top {
      position: fixed;
      right: 22px;
      bottom: 22px;
      z-index: 20;
      width: 46px;
      height: 46px;
      border-radius: 16px;
      opacity: 0;
      visibility: hidden;
      transform: translateY(10px);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
    }

    .back-to-top.show {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
    }

    .modal-content {
      border: 1px solid var(--line);
      border-radius: 30px;
      color: var(--text);
      background: rgba(12, 10, 9, 0.96);
      box-shadow: var(--shadow);
    }

    .modal-header,
    .modal-footer {
      border-color: var(--line);
    }

    .modal-title {
      font-weight: 900;
      letter-spacing: -0.03em;
    }

    .btn-close {
      filter: invert(1) grayscale(1) brightness(2);
      opacity: 0.9;
    }

    .modal-image-wrap {
      display: grid;
      place-items: center;
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 24px;
      background: rgba(0,0,0,0.25);
    }

    .modal-image-wrap img {
      max-height: 78vh;
      width: auto;
      object-fit: contain;
    }

    .reveal {
      opacity: 0;
      transform: translateY(34px);
      transition: opacity 0.85s ease, transform 0.85s cubic-bezier(0.2, 0.7, 0.2, 1);
    }

    .reveal.visible {
      opacity: 1;
      transform: translateY(0);
    }

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

    @media (max-width: 1199.98px) {
      .image-gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }
    }

    @media (max-width: 991.98px) {
      section {
        padding: 88px 0;
      }

      .navbar .container {
        flex-wrap: wrap;
        justify-content: space-between;
      }

      .navbar-toggler {
        margin-left: auto;
      }

      .navbar-collapse {
        flex-basis: 100%;
        width: 100%;
        margin-top: 14px;
      }

      .navbar-nav {
        align-items: stretch !important;
        gap: 4px !important;
        padding: 12px;
        border-radius: 24px;
        background: rgba(8,7,6,0.94);
      }

      .nav-link {
        text-align: center;
      }

      .navbar .btn-custom {
        width: 100%;
      }

      .hero {
        min-height: auto;
        padding-top: calc(var(--nav-height) + 44px);
      }

      .hero-bg {
        inset: 100px 12px 28px;
        border-radius: 34px;
      }

      .video-list-card {
        position: relative;
        top: auto;
      }

      .video-list {
        max-height: none;
      }

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

    @media (max-width: 767.98px) {
      .hero h1 {
        font-size: clamp(2.6rem, 16vw, 4.8rem);
      }

      .hero-actions,
      .player-meta,
      .cta-box .d-flex {
        flex-direction: column;
      }

      .btn-custom,
      .btn-main,
      .player-meta .btn-custom,
      .pagination-btn {
        width: 100%;
      }

      .video-frame-wrap {
        border-radius: 24px;
      }

      .video-cover-play {
        width: 76px;
        height: 76px;
        font-size: 2rem;
      }

      .video-item {
        grid-template-columns: 96px 1fr;
      }

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

      .gallery-item,
      .gallery-item img {
        min-height: 190px;
      }

      .gallery-pagination-wrap {
        align-items: stretch;
      }
    }

    @media (max-width: 479.98px) {
      section {
        padding: 72px 0;
      }

      .navbar-brand img,
      footer img {
        width: 122px !important;
      }

      .image-gallery {
        grid-template-columns: 1fr;
      }

      .video-player-card,
      .video-list-card,
      .image-card,
      .cta-box,
      .contact-info,
      .contact-card {
        padding: 18px;
        border-radius: 30px;
      }

      .video-item {
        grid-template-columns: 1fr;
      }

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

      .back-to-top {
        right: 16px;
        bottom: 16px;
      }
    }


    /* Fundo global liso: sem gradiente, textura, imagem ou brilho decorativo. */
    html,
    body,
    section {
      background: #181828 !important;
      background-image: none !important;
    }

    body::before,
    body::after,
    section::before,
    section::after,
    .hero::before,
    .hero::after,
    .hero-bg,
    .blur-orb,
    .orb-purple,
    .orb-blue,
    .service-page-hero::before,
    .service-page-hero::after {
      content: none !important;
      display: none !important;
      background: none !important;
      background-image: none !important;
      box-shadow: none !important;
      filter: none !important;
    }



    /* Remove qualquer imagem/gradiente de fundo restante. */
    *,
    *::before,
    *::after {
      background-image: none !important;
    }

    html,
    body,
    section {
      background-color: #181828 !important;
    }

    .btn-main,
    .btn-mini,
    .btn-primary-custom,
    .contact-icon,
    .stage-badge,
    .service-feature-top i,
    .video-cover-play,
    .pagination-number.active {
      background: var(--accent) !important;
      background-image: none !important;
    }



    /* Paleta final do site */
    :root {
      --bg: #181828;
      --bg-deep: #181828;
      --text: #ffffff;
      --muted: rgba(255, 255, 255, 0.78);
      --muted-2: rgba(255, 255, 255, 0.62);
      --accent: #7191DB;
      --accent-2: #7191DB;
      --title-1: #53A2EA;
      --title-2: #FF624D;
      --button-bg: #7191DB;
      --button-text: #181828;
    }

    html,
    body,
    section {
      background: #181828 !important;
      background-color: #181828 !important;
      background-image: none !important;
    }

    body,
    p,
    li,
    .section-subtitle,
    .hero-text,
    .hero-point p,
    .stage-card p,
    .strip-card strong,
    .services-command p,
    .service-feature-card p,
    .service-card p,
    .contact-info p,
    .contact-card p,
    .portfolio-copy p,
    .player-meta p,
    .video-item p,
    .footer-copy {
      color: #ffffff !important;
    }

    .hero-title,
    .section-title,
    .section-title.medium,
    .service-page-hero h1,
    .hero h1,
    .services-command h3,
    .service-feature-card h3,
    .service-card h3,
    .stage-card h3,
    .contact-info h3,
    .contact-card h3,
    .portfolio-copy h3,
    .player-meta h3,
    .video-list-card h3,
    .video-item h3,
    .cta-box h2 {
      color: #53A2EA !important;
    }

    .hero-title span,
    .service-page-hero h1 span,
    .hero h1 span,
    .text-gradient,
    .eyebrow,
    .section-tag,
    .service-number,
    .service-highlight,
    .service-command-kicker,
    .services-command-box strong,
    .strip-card span,
    .portfolio-visual-card span,
    .form-label,
    .nav-link:hover,
    .nav-link.active {
      color: #FF624D !important;
      -webkit-text-fill-color: currentColor !important;
    }

    .btn-main,
    .btn-secondary,
    .btn-mini,
    .btn-custom,
    .btn-primary-custom,
    .btn-outline-custom,
    .pagination-btn,
    .pagination-number.active,
    button[type="submit"],
    .contact-icon,
    .stage-badge,
    .service-feature-top i,
    .video-cover-play,
    .back-to-top.show {
      color: #181828 !important;
      background: #7191DB !important;
      background-color: #7191DB !important;
      background-image: none !important;
      border-color: #7191DB !important;
      box-shadow: none !important;
    }

    .btn-main:hover,
    .btn-secondary:hover,
    .btn-mini:hover,
    .btn-custom:hover,
    .btn-primary-custom:hover,
    .btn-outline-custom:hover,
    button[type="submit"]:hover,
    .back-to-top:hover {
      color: #181828 !important;
      background: #7191DB !important;
      background-color: #7191DB !important;
      border-color: #7191DB !important;
      filter: brightness(1.08);
    }

    .nav-link,
    .navbar-brand,
    a,
    strong,
    .contact-block strong,
    .gallery-overlay,
    .modal-title {
      color: #ffffff !important;
    }

    .nav-link:hover,
    .nav-link.active {
      background: rgba(113, 145, 219, 0.16) !important;
      border-color: rgba(113, 145, 219, 0.32) !important;
    }



    .portfolio-impact-title .portfolio-coral {
      color: #DE7559 !important;
      -webkit-text-fill-color: #DE7559 !important;
    }

    .portfolio-impact-title .portfolio-white {
      color: #ffffff !important;
      -webkit-text-fill-color: #ffffff !important;
    }



    /* Lista lateral limitada a 4 vídeos visíveis com rolagem interna */
    .video-list-card .video-list {
      max-height: 430px !important;
      overflow-y: auto !important;
      padding-right: 6px;
      scrollbar-width: thin;
      scrollbar-color: #7191DB rgba(255, 255, 255, 0.08);
    }

    .video-list-card .video-list::-webkit-scrollbar {
      width: 8px;
    }

    .video-list-card .video-list::-webkit-scrollbar-track {
      background: rgba(255, 255, 255, 0.08);
      border-radius: 999px;
    }

    .video-list-card .video-list::-webkit-scrollbar-thumb {
      background: #7191DB;
      border-radius: 999px;
    }



    /* Estado hover/selecionado da lista lateral de vídeos */
    .video-list .video-item:hover,
    .video-list .video-item.active {
      background: #FF624D !important;
      background-color: #FF624D !important;
      border-color: #FF624D !important;
    }

    .video-list .video-item:hover h3,
    .video-list .video-item:hover p,
    .video-list .video-item.active h3,
    .video-list .video-item.active p {
      color: #181828 !important;
      -webkit-text-fill-color: #181828 !important;
    }



    /* Galeria ajustada para a nova quantidade/estado visual */
    .image-gallery {
      grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)) !important;
    }

    .gallery-item:hover .gallery-overlay,
    .gallery-item:focus-within .gallery-overlay,
    .gallery-item.active .gallery-overlay {
      background: #FF624D !important;
      border-color: #FF624D !important;
    }

    .gallery-item:hover .gallery-overlay span,
    .gallery-item:hover .gallery-overlay i,
    .gallery-item:focus-within .gallery-overlay span,
    .gallery-item:focus-within .gallery-overlay i,
    .gallery-item.active .gallery-overlay span,
    .gallery-item.active .gallery-overlay i {
      color: #181828 !important;
      -webkit-text-fill-color: #181828 !important;
    }



    /* Galeria em uma ?nica caixa: imagens sem caixas individuais. */
    .image-card {
      padding: clamp(18px, 3vw, 28px) !important;
      border: 1px solid var(--line) !important;
      border-radius: var(--radius-xl) !important;
      background: rgba(255, 255, 255, 0.045) !important;
    }

    .image-card .gallery-item {
      border: 0 !important;
      background: transparent !important;
      box-shadow: none !important;
      border-radius: 18px !important;
    }

    .image-card .gallery-item:hover {
      border: 0 !important;
      box-shadow: none !important;
      background: transparent !important;
    }

    .image-card .gallery-overlay {
      inset: auto 10px 10px 10px;
      border: 0 !important;
      background: rgba(24, 24, 40, 0.86) !important;
    }

    .image-card .gallery-item:hover .gallery-overlay,
    .image-card .gallery-item:focus-within .gallery-overlay,
    .image-card .gallery-item.active .gallery-overlay {
      background: #FF624D !important;
    }

    .image-card .gallery-item:hover .gallery-overlay span,
    .image-card .gallery-item:hover .gallery-overlay i,
    .image-card .gallery-item:focus-within .gallery-overlay span,
    .image-card .gallery-item:focus-within .gallery-overlay i,
    .image-card .gallery-item.active .gallery-overlay span,
    .image-card .gallery-item.active .gallery-overlay i {
      color: #181828 !important;
      -webkit-text-fill-color: #181828 !important;
    }

    /* Remove o respiro vazio abaixo da galeria sem mexer na estrutura HTML. */
    #imagens {
      padding-bottom: 42px !important;
    }

    #imagens .image-card {
      margin-bottom: 0 !important;
    }

    /* Remove o respiro vazio abaixo da seção de vídeos sem alterar o HTML. */
    #videos {
      padding-bottom: 42px !important;
    }

    /* A caixa da galeria acompanha a quantidade de imagens visíveis. */
    .image-card {
      width: fit-content !important;
      max-width: 100% !important;
      margin-inline: auto !important;
    }

    .image-card .image-gallery {
      grid-template-columns: repeat(auto-fit, minmax(170px, 190px)) !important;
      justify-content: center !important;
      align-items: stretch !important;
    }

    .image-card .gallery-item,
    .image-card .gallery-item img {
      width: 190px !important;
      min-height: 0 !important;
      aspect-ratio: 16 / 9 !important;
    }

    .gallery-pagination-wrap.is-hidden {
      display: none !important;
    }

    @media (max-width: 767.98px) {
      .image-card {
        width: 100% !important;
      }

      .image-card .image-gallery {
        grid-template-columns: 1fr !important;
      }

      .image-card .gallery-item,
      .image-card .gallery-item img {
        width: 100% !important;
      }
    }

    /* Galeria horizontal: mostra 3 imagens e rola as demais. */
    .image-card {
      width: min(100%, 1320px) !important;
      margin-inline: auto !important;
    }

    .image-card .image-gallery {
      display: flex !important;
      grid-template-columns: none !important;
      flex-wrap: nowrap !important;
      justify-content: flex-start !important;
      gap: 14px !important;
      overflow-x: auto !important;
      overflow-y: hidden !important;
      padding-bottom: 18px !important;
      scroll-snap-type: x mandatory;
      scrollbar-color: #FF624D rgba(255, 255, 255, 0.12);
      scrollbar-width: auto;
    }

    .image-card .image-gallery::-webkit-scrollbar {
      height: 22px;
    }

    .image-card .image-gallery::-webkit-scrollbar-track {
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.12);
    }

    .image-card .image-gallery::-webkit-scrollbar-thumb {
      border-radius: 999px;
      background: #FF624D;
      border: 5px solid rgba(255, 255, 255, 0.12);
      background-clip: padding-box;
    }

    .image-card .image-gallery::-webkit-scrollbar-thumb:hover {
      background: #7191DB;
      background-clip: padding-box;
    }

    .image-card .image-gallery::-webkit-scrollbar-button:horizontal {
      width: 24px;
      height: 22px;
      border-radius: 999px;
      background: #FF624D;
    }

    .image-card .image-gallery::-webkit-scrollbar-button:horizontal:hover {
      background: #7191DB;
    }

    .image-card .gallery-item,
    .image-card .gallery-item img {
      flex: 0 0 410px !important;
      width: 410px !important;
      min-width: 410px !important;
      min-height: 0 !important;
      aspect-ratio: 16 / 9 !important;
      scroll-snap-align: start;
    }

    @media (max-width: 767.98px) {
      .image-card {
        width: 100% !important;
      }

      .image-card .gallery-item,
      .image-card .gallery-item img {
        flex-basis: 78vw !important;
        width: 78vw !important;
        min-width: 78vw !important;
      }
    }

    /* Ajuste visual da seção de contato no tema atual. */
    .portfolio-contact-section .section-head,
    .portfolio-contact-section .section-title {
      text-align: left !important;
    }

    .portfolio-contact-section .divider-line {
      margin-left: 0 !important;
      margin-right: auto !important;
    }

    .portfolio-contact-section .contact-layout {
      gap: 8px !important;
      grid-template-columns: minmax(260px, 360px) minmax(0, 1fr) !important;
      align-items: start !important;
      margin-bottom: 0 !important;
    }

    .portfolio-contact-section .contact-info,
    .portfolio-contact-section .contact-card {
      width: auto !important;
      min-width: 0 !important;
      height: auto !important;
      min-height: 0 !important;
      align-self: start !important;
      background: rgba(255, 255, 255, 0.045) !important;
      border: 1px solid rgba(113, 145, 219, 0.24) !important;
      box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22) !important;
    }

    .portfolio-contact-section .contact-info {
      width: fit-content !important;
      max-width: min(100%, 360px) !important;
      padding: 26px !important;
    }

    .portfolio-contact-section .contact-info > p {
      max-width: 360px !important;
    }

    .portfolio-contact-section .contact-mini-tag {
      width: fit-content;
      margin-bottom: 12px;
    }

    .portfolio-contact-section .contact-block {
      width: auto !important;
      height: auto !important;
      min-height: 0 !important;
      margin-top: 12px !important;
      padding: 14px;
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 22px;
      background: rgba(24, 24, 40, 0.72);
      transition: background var(--transition), border-color var(--transition), transform var(--transition);
    }

    .portfolio-contact-section .contact-block:first-of-type {
      margin-top: 20px !important;
    }

    .portfolio-contact-section .contact-info > p,
    .portfolio-contact-section .contact-card > p {
      margin-top: 10px !important;
      margin-bottom: 0 !important;
    }

    .portfolio-contact-section .contact-card form {
      margin-top: 16px !important;
    }

    @media (max-width: 991.98px) {
      .portfolio-contact-section .contact-layout {
        grid-template-columns: 1fr !important;
      }

      .portfolio-contact-section .contact-info {
        width: 100% !important;
        max-width: none !important;
      }

      .portfolio-contact-section .contact-info > p {
        max-width: none !important;
      }
    }

    .portfolio-contact-section .contact-block:hover {
      transform: translateY(-3px);
      border-color: #FF624D;
      background: rgba(255, 98, 77, 0.1);
    }

    .portfolio-contact-section .form-control-custom,
    .portfolio-contact-section .form-select-custom {
      background: rgba(24, 24, 40, 0.72) !important;
      border-color: rgba(113, 145, 219, 0.28) !important;
    }

    .portfolio-contact-section .form-control-custom:focus,
    .portfolio-contact-section .form-select-custom:focus {
      border-color: #7191DB !important;
      box-shadow: 0 0 0 0.25rem rgba(113, 145, 219, 0.18) !important;
    }

    .portfolio-contact-section .btn-main {
      background: #7191DB !important;
      border-color: #7191DB !important;
      color: #181828 !important;
      -webkit-text-fill-color: #181828 !important;
    }

    .portfolio-contact-section .btn-main:hover {
      background: #FF624D !important;
      border-color: #FF624D !important;
      color: #181828 !important;
    }

    .portfolio-contact-section button,
    .portfolio-contact-section .btn-main,
    .portfolio-contact-section .btn-custom,
    .portfolio-contact-section a.btn-custom,
    .portfolio-contact-section .contact-block {
      transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition) !important;
    }

    .portfolio-contact-section button:hover,
    .portfolio-contact-section button:focus,
    .portfolio-contact-section button:active,
    .portfolio-contact-section .btn-main:hover,
    .portfolio-contact-section .btn-main:focus,
    .portfolio-contact-section .btn-main:active,
    .portfolio-contact-section .btn-custom:hover,
    .portfolio-contact-section .btn-custom:focus,
    .portfolio-contact-section .btn-custom:active,
    .portfolio-contact-section a.btn-custom:hover,
    .portfolio-contact-section a.btn-custom:focus,
    .portfolio-contact-section a.btn-custom:active,
    .portfolio-contact-section .contact-block:hover,
    .portfolio-contact-section .contact-block:focus-within,
    .portfolio-contact-section .contact-block:active {
      background: #FF624D !important;
      background-color: #FF624D !important;
      border-color: #FF624D !important;
      color: #181828 !important;
      -webkit-text-fill-color: #181828 !important;
    }

    .portfolio-contact-section button:hover *,
    .portfolio-contact-section button:focus *,
    .portfolio-contact-section button:active *,
    .portfolio-contact-section .btn-main:hover *,
    .portfolio-contact-section .btn-main:focus *,
    .portfolio-contact-section .btn-main:active *,
    .portfolio-contact-section .btn-custom:hover *,
    .portfolio-contact-section .btn-custom:focus *,
    .portfolio-contact-section .btn-custom:active *,
    .portfolio-contact-section a.btn-custom:hover *,
    .portfolio-contact-section a.btn-custom:focus *,
    .portfolio-contact-section a.btn-custom:active *,
    .portfolio-contact-section .contact-block:hover *,
    .portfolio-contact-section .contact-block:focus-within *,
    .portfolio-contact-section .contact-block:active * {
      color: #181828 !important;
      -webkit-text-fill-color: #181828 !important;
    }

    /* Pequena explos&atilde;o decorativa ao interagir com as imagens da galeria. */
    .image-card {
      overflow: visible !important;
    }

    .image-card .image-gallery {
      position: relative;
      z-index: 1;
    }

    .image-card .gallery-item {
      overflow: visible !important;
      isolation: isolate;
    }

    .image-card .gallery-item > img {
      border-radius: 18px;
    }

    .gallery-burst {
      position: absolute;
      z-index: 4;
      left: 50%;
      top: 50%;
      width: 58px;
      height: 58px;
      pointer-events: none;
      opacity: 0;
      background-repeat: no-repeat;
      background-position: center;
      background-size: contain;
      transform: translate(-50%, -50%) scale(0);
      will-change: transform, opacity;
    }

    .gallery-burst.burst-1 {
      --burst-x: -214px;
      --burst-y: -72px;
      --burst-rotate: -24deg;
      background-image: url("../imagens/gallery-burst/burst-01.svg") !important;
    }

    .gallery-burst.burst-2 {
      --burst-x: 214px;
      --burst-y: -62px;
      --burst-rotate: 18deg;
      background-image: url("../imagens/gallery-burst/burst-02.svg") !important;
    }

    .gallery-burst.burst-3 {
      --burst-x: -192px;
      --burst-y: 72px;
      --burst-rotate: 28deg;
      background-image: url("../imagens/gallery-burst/burst-03.svg") !important;
    }

    .gallery-burst.burst-4 {
      --burst-x: 192px;
      --burst-y: 78px;
      --burst-rotate: -18deg;
      background-image: url("../imagens/gallery-burst/burst-04.svg") !important;
    }

    .gallery-absolute-preview {
      position: fixed;
      display: none;
      z-index: 1061;
      overflow: hidden;
      border: 1px solid rgba(255, 98, 77, 0.72);
      border-radius: 24px;
      background: #181828;
      box-shadow: 0 28px 90px rgba(0, 0, 0, 0.58);
      opacity: 0;
      pointer-events: none;
      transform: none;
      transform-origin: center;
      transition:
        left 0.34s cubic-bezier(0.2, 0.8, 0.2, 1),
        top 0.34s cubic-bezier(0.2, 0.8, 0.2, 1),
        width 0.34s cubic-bezier(0.2, 0.8, 0.2, 1),
        height 0.34s cubic-bezier(0.2, 0.8, 0.2, 1),
        opacity 0.24s ease;
    }

    .gallery-popup-backdrop {
      position: fixed;
      display: none;
      inset: 0;
      z-index: 1060;
      opacity: 0;
      pointer-events: none;
      background: rgba(24, 24, 40, 0.58);
      backdrop-filter: blur(5px);
      -webkit-backdrop-filter: blur(5px);
      transition: opacity 0.24s ease;
    }

    .gallery-absolute-preview.is-mounted,
    .gallery-popup-backdrop.is-mounted {
      display: block;
    }

    .gallery-popup-backdrop.is-active {
      opacity: 1;
      pointer-events: auto;
    }

    .gallery-absolute-preview.is-active {
      opacity: 1;
      pointer-events: auto;
      transform: none;
    }

    .gallery-absolute-preview img {
      width: 100%;
      height: 100%;
      border-radius: 22px;
      object-fit: contain;
      background: #181828;
    }

    .gallery-preview-close {
      position: absolute;
      top: -14px;
      right: -14px;
      display: grid;
      place-items: center;
      width: 34px;
      height: 34px;
      border: 1px solid #FF624D;
      border-radius: 999px;
      color: #181828;
      background: #FF624D;
      font-weight: 900;
      line-height: 1;
      box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
    }

    .image-card .gallery-item:hover .gallery-burst,
    .image-card .gallery-item.burst-click .gallery-burst {
      animation: galleryBurstPop 0.72s ease-out both;
    }

    .image-card .gallery-item:hover .burst-2,
    .image-card .gallery-item.burst-click .burst-2 {
      animation-delay: 0.04s;
    }

    .image-card .gallery-item:hover .burst-3,
    .image-card .gallery-item.burst-click .burst-3 {
      animation-delay: 0.08s;
    }

    .image-card .gallery-item:hover .burst-4,
    .image-card .gallery-item.burst-click .burst-4 {
      animation-delay: 0.12s;
    }

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

      45% {
        opacity: 1;
        transform: translate(calc(-50% + var(--burst-x)), calc(-50% + var(--burst-y))) scale(1) rotate(var(--burst-rotate));
      }

      100% {
        opacity: 0;
        transform: translate(calc(-50% + (var(--burst-x) * 1.14)), calc(-50% + (var(--burst-y) * 1.14))) scale(0) rotate(var(--burst-rotate));
      }
    }

    @media (max-width: 767.98px) {
      .gallery-burst {
        width: 44px;
        height: 44px;
      }

      .gallery-burst.burst-1 {
        --burst-x: -42vw;
        --burst-y: -52px;
      }

      .gallery-burst.burst-2 {
        --burst-x: 42vw;
        --burst-y: -48px;
      }

      .gallery-burst.burst-3 {
        --burst-x: -38vw;
        --burst-y: 54px;
      }

      .gallery-burst.burst-4 {
        --burst-x: 38vw;
        --burst-y: 58px;
      }

      .gallery-absolute-preview.is-active {
        transform: none;
      }
    }

    /* Pequena explos&atilde;o decorativa nos thumbnails da lista de v&iacute;deos. */
    .video-list-card,
    .video-list,
    .video-list .video-item {
      overflow-x: hidden !important;
    }

    .video-list .video-thumb {
      position: relative;
      overflow: hidden !important;
      isolation: isolate;
    }

    .video-list .video-thumb > img {
      position: relative;
      z-index: 1;
      border-radius: 16px;
    }

    .video-burst {
      position: absolute;
      z-index: 3;
      left: 50%;
      top: 50%;
      width: 32px;
      height: 32px;
      pointer-events: none;
      opacity: 0;
      background-repeat: no-repeat;
      background-position: center;
      background-size: contain;
      transform: translate(-50%, -50%) scale(0);
      will-change: transform, opacity;
    }

    .video-burst.burst-1 {
      --video-burst-x: -58px;
      --video-burst-y: -28px;
      --video-burst-rotate: -24deg;
      background-image: url("../imagens/gallery-burst/burst-01.svg") !important;
    }

    .video-burst.burst-2 {
      --video-burst-x: 58px;
      --video-burst-y: -24px;
      --video-burst-rotate: 18deg;
      background-image: url("../imagens/gallery-burst/burst-02.svg") !important;
    }

    .video-burst.burst-3 {
      --video-burst-x: -52px;
      --video-burst-y: 30px;
      --video-burst-rotate: 26deg;
      background-image: url("../imagens/gallery-burst/burst-03.svg") !important;
    }

    .video-burst.burst-4 {
      --video-burst-x: 52px;
      --video-burst-y: 32px;
      --video-burst-rotate: -18deg;
      background-image: url("../imagens/gallery-burst/burst-04.svg") !important;
    }

    .video-list .video-item:hover .video-burst,
    .video-list .video-item.video-burst-click .video-burst {
      animation: videoBurstPop 0.66s ease-out both;
    }

    .video-list .video-item:hover .video-burst.burst-2,
    .video-list .video-item.video-burst-click .video-burst.burst-2 {
      animation-delay: 0.04s;
    }

    .video-list .video-item:hover .video-burst.burst-3,
    .video-list .video-item.video-burst-click .video-burst.burst-3 {
      animation-delay: 0.08s;
    }

    .video-list .video-item:hover .video-burst.burst-4,
    .video-list .video-item.video-burst-click .video-burst.burst-4 {
      animation-delay: 0.12s;
    }

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

      45% {
        opacity: 1;
        transform: translate(calc(-50% + var(--video-burst-x)), calc(-50% + var(--video-burst-y))) scale(1) rotate(var(--video-burst-rotate));
      }

      100% {
        opacity: 0;
        transform: translate(calc(-50% + (var(--video-burst-x) * 1.12)), calc(-50% + (var(--video-burst-y) * 1.12))) scale(0) rotate(var(--video-burst-rotate));
      }
    }


    /* Explosao decorativa no player principal de video. */
    .video-player-card,
    .video-frame-wrap {
      overflow: visible !important;
    }

    .video-frame-wrap {
      isolation: isolate;
    }

    .video-frame-wrap iframe,
    .video-frame-wrap .video-cover,
    .video-frame-wrap .video-cover img {
      border-radius: 30px;
    }

    .player-burst {
      position: absolute;
      left: 50%;
      top: 50%;
      z-index: 12;
      width: 58px;
      height: 58px;
      pointer-events: none;
      opacity: 0;
      background-repeat: no-repeat !important;
      background-position: center !important;
      background-size: contain !important;
      transform: translate(-50%, -50%) scale(0);
      will-change: transform, opacity;
    }

    .player-burst.burst-1 {
      --video-burst-x: -45%;
      --video-burst-y: -24%;
      --video-burst-rotate: -24deg;
      background-image: url("../imagens/gallery-burst/burst-01.svg") !important;
    }

    .player-burst.burst-2 {
      --video-burst-x: 45%;
      --video-burst-y: -22%;
      --video-burst-rotate: 18deg;
      background-image: url("../imagens/gallery-burst/burst-02.svg") !important;
    }

    .player-burst.burst-3 {
      --video-burst-x: -42%;
      --video-burst-y: 26%;
      --video-burst-rotate: 26deg;
      background-image: url("../imagens/gallery-burst/burst-03.svg") !important;
    }

    .player-burst.burst-4 {
      --video-burst-x: 42%;
      --video-burst-y: 28%;
      --video-burst-rotate: -18deg;
      background-image: url("../imagens/gallery-burst/burst-04.svg") !important;
    }

    .video-frame-wrap:hover .player-burst,
    .video-frame-wrap.player-burst-click .player-burst {
      animation: videoBurstPop 0.72s ease-out both;
    }

    .video-frame-wrap:hover .player-burst.burst-2,
    .video-frame-wrap.player-burst-click .player-burst.burst-2 {
      animation-delay: 0.04s;
    }

    .video-frame-wrap:hover .player-burst.burst-3,
    .video-frame-wrap.player-burst-click .player-burst.burst-3 {
      animation-delay: 0.08s;
    }

    .video-frame-wrap:hover .player-burst.burst-4,
    .video-frame-wrap.player-burst-click .player-burst.burst-4 {
      animation-delay: 0.12s;
    }

    @media (max-width: 767.98px) {
      .player-burst {
        width: 42px;
        height: 42px;
      }
    }

    /* Fundo animado com o padr&atilde;o Xilique sobre a cor base. */
    body {
      position: relative;
      isolation: isolate;
    }

    section {
      background-color: transparent !important;
    }

    .xilique-bg-motion {
      position: fixed;
      inset: -12%;
      z-index: 0;
      pointer-events: none;
      opacity: 0.08;
      background-image: url("../imagens/bg-xilique-studio.svg") !important;
      background-repeat: repeat !important;
      background-size: 780px auto !important;
      transform: translate3d(0, 0, 0);
      animation: xiliqueBgFloat 28s linear infinite;
      will-change: transform;
    }

    body > :not(.xilique-bg-motion):not(.gallery-popup-backdrop):not(.gallery-absolute-preview):not(.navbar) {
      position: relative;
      z-index: 1;
    }

    body > .navbar.fixed-top {
      position: fixed !important;
      top: 0;
      right: 0;
      left: 0;
      z-index: 1030;
    }

    body > .gallery-popup-backdrop {
      position: fixed !important;
      z-index: 9998 !important;
    }

    body > .gallery-absolute-preview {
      position: fixed !important;
      z-index: 9999 !important;
      margin: 0 !important;
    }

    @keyframes xiliqueBgFloat {
      0% {
        transform: translate3d(0, 0, 0);
      }

      50% {
        transform: translate3d(-48px, -32px, 0);
      }

      100% {
        transform: translate3d(-96px, -64px, 0);
      }
    }

    /* Compacta as seções para remover sobras vazias sem alterar conteúdo. */
    section[id] {
      min-height: 0 !important;
      height: auto !important;
    }

    #videos {
      padding-top: 82px !important;
      padding-bottom: 24px !important;
    }

    #imagens {
      padding-top: 58px !important;
      padding-bottom: 22px !important;
    }

    #contato {
      padding-top: 42px !important;
      padding-bottom: 36px !important;
    }

    #contato .section-head {
      margin-bottom: 1.25rem !important;
    }

    #contato .section-title {
      margin-bottom: 8px !important;
    }

    #contato .divider-line {
      margin-top: 10px !important;
      margin-bottom: 0 !important;
    }

    #videos .text-center.mb-5,
    #imagens .text-center.mb-5 {
      margin-bottom: 1.75rem !important;
    }

    #imagens .section-title.image-section-title.image-section-title-accent {
      color: #DE7559 !important;
      -webkit-text-fill-color: #DE7559 !important;
    }

    #imagens .gallery-pagination-wrap.is-hidden {
      height: 0 !important;
      margin: 0 !important;
      overflow: hidden !important;
    }

    @media (max-width: 767.98px) {
      #videos,
      #imagens,
      #contato {
        padding-top: 48px !important;
      }

      #videos,
      #imagens {
        padding-bottom: 18px !important;
      }

      #contato {
        padding-bottom: 32px !important;
      }
    }



    /* Transicao visual entre paginas e links internos. */
    .page-transition {
      position: fixed !important;
      inset: 0 !important;
      z-index: 2147483000 !important;
      display: grid;
      place-items: center;
      overflow: hidden;
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
      background: rgba(24, 24, 40, 0.78) !important;
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      transition: opacity 0.24s ease, visibility 0.24s ease;
    }

    .page-transition.is-active {
      opacity: 1;
      visibility: visible;
      pointer-events: auto;
    }

    .page-transition-mark {
      position: relative;
      z-index: 2;
      color: #ffffff !important;
      font-size: clamp(1.6rem, 4vw, 4rem);
      font-weight: 950;
      letter-spacing: -0.05em;
      text-transform: uppercase;
      opacity: 0;
      transform: scale(0.86);
    }

    .page-transition.is-active .page-transition-mark {
      animation: pageTransitionMark 0.7s ease both;
    }

    .page-transition-burst {
      position: absolute;
      left: 50%;
      top: 50%;
      width: 72px;
      height: 72px;
      opacity: 0;
      pointer-events: none;
      background-repeat: no-repeat !important;
      background-position: center !important;
      background-size: contain !important;
      transform: translate(-50%, -50%) scale(0);
      will-change: transform, opacity;
    }

    .page-transition-burst.burst-1 {
      --page-burst-x: -42vw;
      --page-burst-y: -24vh;
      --page-burst-rotate: -24deg;
      background-image: url("../imagens/gallery-burst/burst-01.svg") !important;
    }

    .page-transition-burst.burst-2 {
      --page-burst-x: 42vw;
      --page-burst-y: -22vh;
      --page-burst-rotate: 18deg;
      background-image: url("../imagens/gallery-burst/burst-02.svg") !important;
    }

    .page-transition-burst.burst-3 {
      --page-burst-x: -38vw;
      --page-burst-y: 24vh;
      --page-burst-rotate: 28deg;
      background-image: url("../imagens/gallery-burst/burst-03.svg") !important;
    }

    .page-transition-burst.burst-4 {
      --page-burst-x: 38vw;
      --page-burst-y: 26vh;
      --page-burst-rotate: -18deg;
      background-image: url("../imagens/gallery-burst/burst-04.svg") !important;
    }

    .page-transition.is-active .page-transition-burst {
      animation: pageTransitionBurst 0.78s ease-out both;
    }

    .page-transition.is-active .page-transition-burst.burst-2 {
      animation-delay: 0.04s;
    }

    .page-transition.is-active .page-transition-burst.burst-3 {
      animation-delay: 0.08s;
    }

    .page-transition.is-active .page-transition-burst.burst-4 {
      animation-delay: 0.12s;
    }

    @keyframes pageTransitionMark {
      0% { opacity: 0; transform: scale(0.86); }
      45% { opacity: 1; transform: scale(1); }
      100% { opacity: 0; transform: scale(1.08); }
    }

    @keyframes pageTransitionBurst {
      0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0) rotate(0deg);
      }
      45% {
        opacity: 1;
        transform: translate(calc(-50% + var(--page-burst-x)), calc(-50% + var(--page-burst-y))) scale(1) rotate(var(--page-burst-rotate));
      }
      100% {
        opacity: 0;
        transform: translate(calc(-50% + (var(--page-burst-x) * 1.08)), calc(-50% + (var(--page-burst-y) * 1.08))) scale(0) rotate(var(--page-burst-rotate));
      }
    }

    @media (max-width: 767.98px) {
      .page-transition-burst {
        width: 52px;
        height: 52px;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      .page-transition {
        transition-duration: 0.24s, 0.24s !important;
      }

      .page-transition.is-active .page-transition-mark {
        animation-duration: 0.7s !important;
        animation-iteration-count: 1 !important;
      }

      .page-transition.is-active .page-transition-burst {
        animation-duration: 0.78s !important;
        animation-iteration-count: 1 !important;
      }
    }


    /* Mantem o X do pop-up da galeria visivel dentro da imagem expandida. */
    .gallery-absolute-preview .gallery-preview-close {
      top: 12px !important;
      right: 12px !important;
      z-index: 10002 !important;
      width: 42px !important;
      height: 42px !important;
      border: 2px solid #181828 !important;
      color: #181828 !important;
      -webkit-text-fill-color: #181828 !important;
      background: #FF624D !important;
      background-color: #FF624D !important;
      background-image: none !important;
      font-size: 1.55rem !important;
      line-height: 1 !important;
      opacity: 1 !important;
      cursor: pointer;
    }

    .gallery-absolute-preview .gallery-preview-close:hover,
    .gallery-absolute-preview .gallery-preview-close:focus {
      color: #181828 !important;
      -webkit-text-fill-color: #181828 !important;
      background: #7191DB !important;
      background-color: #7191DB !important;
      border-color: #181828 !important;
      transform: scale(1.06);
    }


    /* Fonte oficial Mathelo aplicada em todo o site. */
    @font-face {
      font-family: "Mathelo";
      src: url("../fonts/Mathelo Light.otf") format("opentype");
      font-weight: 300;
      font-style: normal;
      font-display: swap;
    }

    @font-face {
      font-family: "Mathelo";
      src: url("../fonts/Mathelo Regular.otf") format("opentype");
      font-weight: 400;
      font-style: normal;
      font-display: swap;
    }

    @font-face {
      font-family: "Mathelo";
      src: url("../fonts/Mathelo Bold.otf") format("opentype");
      font-weight: 700;
      font-style: normal;
      font-display: swap;
    }

    html,
    body,
    button,
    input,
    textarea,
    select,
    .navbar,
    .nav-link,
    .btn-custom,
    .btn-main,
    .section-title,
    .section-subtitle,
    .section-tag,
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    p,
    a,
    span,
    label,
    small,
    strong {
      font-family: "Mathelo", Arial, sans-serif !important;
    }

    .bi,
    [class^="bi-"],
    [class*=" bi-"] {
      font-family: "bootstrap-icons" !important;
    }


    .seo-sr-only {
      position: absolute !important;
      width: 1px !important;
      height: 1px !important;
      padding: 0 !important;
      margin: -1px !important;
      overflow: hidden !important;
      clip: rect(0, 0, 0, 0) !important;
      white-space: nowrap !important;
      border: 0 !important;
    }

    @media (max-width: 991.98px) {
      #videos {
        padding-top: calc(var(--nav-height) + 34px) !important;
        padding-bottom: 30px !important;
      }

      #videos .container {
        padding-inline: 16px !important;
      }

      #imagens .section-title.image-section-title {
        max-width: calc(100vw - 32px) !important;
        margin-inline: auto !important;
        font-size: clamp(1.18rem, 6.2vw, 2.05rem) !important;
        line-height: 1.06 !important;
        letter-spacing: 0 !important;
        white-space: nowrap !important;
      }

      #videos .text-center.mb-5 {
        margin-bottom: 1.35rem !important;
      }

      #videos .section-tag {
        margin-bottom: 12px !important;
      }

      #videos .portfolio-impact-title {
        max-width: 10ch;
        margin-inline: auto !important;
        font-size: clamp(2.35rem, 12vw, 4rem) !important;
        line-height: 0.98 !important;
        letter-spacing: 0 !important;
      }

      #videos .section-subtitle {
        max-width: 32rem;
        margin-top: 12px !important;
        margin-inline: auto !important;
        font-size: 0.98rem !important;
        line-height: 1.45 !important;
      }

      #videos .row {
        --bs-gutter-y: 18px;
      }

      .video-player-card,
      .video-list-card {
        padding: 14px !important;
        border-radius: 22px !important;
      }

      .video-frame-wrap {
        border-radius: 18px !important;
      }

      .video-cover-play {
        width: 64px !important;
        height: 64px !important;
        font-size: 1.75rem !important;
      }

      .player-meta {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) 46px !important;
        align-items: end !important;
        gap: 12px !important;
        padding-top: 14px !important;
      }

      .player-meta > div {
        min-width: 0 !important;
      }

      .player-meta h3 {
        margin-bottom: 2px !important;
        font-size: 1.15rem !important;
        letter-spacing: 0 !important;
      }

      .player-meta p {
        font-size: 0.86rem !important;
        line-height: 1.3 !important;
      }

      .player-meta .btn-custom {
        width: 46px !important;
        min-width: 46px !important;
        height: 46px !important;
        min-height: 46px !important;
        align-self: end !important;
        justify-content: center !important;
        gap: 0 !important;
        padding: 0 !important;
        border-radius: 50% !important;
        font-size: 0 !important;
        white-space: nowrap !important;
      }

      .player-meta .btn-custom i {
        margin: 0 !important;
        font-size: 1.15rem !important;
        line-height: 1 !important;
      }

      .video-list-card {
        top: auto !important;
        margin-top: 2px !important;
      }

      .video-list-card .d-flex {
        margin-bottom: 10px !important;
      }

      .video-list-card > .d-flex h3 {
        font-size: 1.05rem !important;
        letter-spacing: 0 !important;
      }

      .video-list-card .video-list {
        max-height: 266px !important;
        overflow-x: hidden !important;
        overflow-y: auto !important;
        gap: 10px !important;
        padding-right: 4px !important;
        scrollbar-width: thin;
      }

      .video-list .video-item {
        grid-template-columns: 86px minmax(0, 1fr) !important;
        gap: 10px !important;
        min-height: 82px !important;
        padding: 9px !important;
        border-radius: 18px !important;
        touch-action: manipulation;
      }

      .video-list .video-item:hover,
      .video-list .video-item.active {
        transform: none !important;
        box-shadow: 0 12px 30px rgba(255, 98, 77, 0.22) !important;
      }

      .video-list .video-thumb {
        aspect-ratio: 16 / 10 !important;
        overflow: hidden !important;
      }

      .video-list .video-thumb > img {
        border-radius: 12px !important;
      }

      .video-list .video-item h3 {
        margin-bottom: 2px !important;
        overflow: hidden !important;
        color: var(--text);
        font-size: 0.96rem !important;
        line-height: 1.12 !important;
        letter-spacing: 0 !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
      }

      .video-list .video-item p {
        display: -webkit-box !important;
        overflow: hidden !important;
        font-size: 0.76rem !important;
        line-height: 1.2 !important;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        line-clamp: 2;
      }
    }

    @media (max-width: 479.98px) {
      #imagens .section-title.image-section-title {
        font-size: clamp(1rem, 5.55vw, 1.55rem) !important;
      }

      #videos .container {
        padding-inline: 12px !important;
      }

      .video-player-card,
      .video-list-card {
        padding: 12px !important;
        border-radius: 20px !important;
      }

      .video-list .video-item {
        grid-template-columns: 78px minmax(0, 1fr) !important;
        gap: 9px !important;
        min-height: 76px !important;
        padding: 8px !important;
      }

      .video-list-card .video-list {
        max-height: 248px !important;
      }

      .video-list .video-item h3 {
        font-size: 0.9rem !important;
      }

      .video-list .video-item p {
        font-size: 0.7rem !important;
      }
    }

.navbar-logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.footer-logo {
  height: 50px;
  width: auto;
  margin-bottom: 16px;
}

/* Menu unificado com a paleta da marca, alinhado ao blog. */
.navbar.scrolled {
  border-bottom-color: rgba(113, 145, 219, 0.3) !important;
  background: rgba(24, 24, 40, 0.9) !important;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.28) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
}

.navbar-toggler {
  border-color: rgba(113, 145, 219, 0.38) !important;
  background: rgba(113, 145, 219, 0.14) !important;
}

.navbar-toggler-icon::before,
.navbar-toggler-icon::after,
.navbar-toggler-icon span {
  background: var(--text) !important;
  box-shadow: 0 0 10px rgba(83, 162, 234, 0.36) !important;
}

.navbar-nav {
  border-color: rgba(113, 145, 219, 0.28) !important;
  background: rgba(113, 145, 219, 0.08) !important;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text) !important;
  background: rgba(113, 145, 219, 0.2) !important;
  box-shadow: inset 0 0 0 1px rgba(83, 162, 234, 0.26) !important;
}

@media (max-width: 991.98px) {
  .navbar-nav {
    border-color: rgba(113, 145, 219, 0.3) !important;
    background: rgba(24, 24, 40, 0.96) !important;
  }
}
