
    :root {
      --bg: #080808;
      --panel: rgba(255, 255, 255, 0.04);
      --panel-2: rgba(255, 255, 255, 0.07);
      --line: rgba(255, 255, 255, 0.1);
      --text: #f0f0f0;
      --muted: #a0a0a0;
      --soft: #787878;
      --glow: rgba(255, 255, 255, 0.1);
      --shadow: 0 16px 48px rgba(0, 0, 0, .4);
      --section-pad: clamp(32px, 5vw, 72px);
      --title: clamp(2rem, 4vw, 3.8rem);
      --subtitle: clamp(.88rem, 1.2vw, 1.05rem);
      --h2: clamp(1.5rem, 2.4vw, 2.6rem);
      --preloader-title: clamp(1.6rem, 3vw, 2.8rem);
      --navH: 64px;
    }

    [data-theme="light"] {
      --bg: #f8f8f8;
      --panel: rgba(0, 0, 0, 0.03);
      --panel-2: rgba(0, 0, 0, 0.05);
      --line: rgba(0, 0, 0, 0.1);
      --text: #111;
      --muted: #555;
      --soft: #777;
      --glow: rgba(0, 0, 0, 0.06);
      --shadow: 0 16px 48px rgba(0, 0, 0, .08);
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html {
      scroll-behavior: smooth;
    }

    html,
    body {
      height: 100%;
      background: var(--bg);
      color: var(--text);
      font-family: 'Poppins', sans-serif;
      overflow: hidden;
    }

    /* PERSPECTIVE GRID BACKGROUND */
    #networkCanvas {
      position: fixed;
      inset: 0;
      width: 100%;
      height: 100%;
      z-index: 0;
      pointer-events: none;
    }

    /* PRELOADER */
    .preloader {
      position: fixed;
      inset: 0;
      z-index: 9999;
      display: grid;
      place-items: center;
      background: #080808;
      transition: opacity .8s cubic-bezier(.4, 0, .2, 1), visibility .8s;
    }

    [data-theme="light"] .preloader {
      background: #f8f8f8;
    }

    .preloader.hidden {
      opacity: 0;
      visibility: hidden;
      pointer-events: none;
    }

    #preloaderCanvas {
      position: absolute;
      inset: 0;
      width: 100%;
      height: 100%;
      z-index: 1;
      pointer-events: none;
    }

    .preloader-wrap {
      width: 100vw;
      height: 100vh;
      display: grid;
      grid-template-columns: 1.15fr 1fr;
      padding: 0;
      max-width: none;
      gap: 0;
      align-items: center;
      position: relative;
      z-index: 2;
    }

    .boot {
      padding: 40px;
      margin-left: 6vw;
      z-index: 2;
      position: relative;
      border: 1px solid var(--line);
      border-radius: 24px;
      background: var(--panel-2);
      box-shadow: var(--shadow);
      backdrop-filter: blur(12px);
    }

    .preloader .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      color: var(--muted);
      font-size: .76rem;
      letter-spacing: .2em;
      text-transform: uppercase;
      margin-bottom: 14px;
      opacity: 0;
      animation: fadeInUp .6s .3s forwards;
    }

    .preloader .eyebrow::before {
      content: "";
      width: 28px;
      height: 1px;
      background: var(--soft);
    }

    .preloader h1 {
      font-size: var(--preloader-title);
      font-weight: 700;
      line-height: 1.3;
      margin: 0 0 14px;
      letter-spacing: -.03em;
      opacity: 0;
      animation: fadeInUp .8s .6s forwards;
    }

    .preloader p {
      color: var(--muted);
      font-size: var(--subtitle);
      font-weight: 400;
      line-height: 1.7;
      max-width: 48ch;
      margin: 0 0 20px;
      opacity: 0;
      animation: fadeInUp .8s .9s forwards;
    }

    .progress-wrap {
      margin-top: 18px;
      opacity: 0;
      animation: fadeInUp .6s 1.2s forwards;
    }

    .progress-label {
      display: flex;
      justify-content: space-between;
      font-size: .74rem;
      color: var(--soft);
      margin-bottom: 8px;
      letter-spacing: .1em;
      text-transform: uppercase;
    }

    .progress-bar {
      height: 4px;
      border-radius: 99px;
      background: var(--panel);
      overflow: hidden;
    }

    .progress-fill {
      height: 100%;
      border-radius: 99px;
      width: 0%;
      background: #fff;
      animation: progressAnim 5s .5s cubic-bezier(.4, 0, .2, 1) forwards;
    }

    [data-theme="light"] .progress-fill {
      background: #111;
    }

    @keyframes progressAnim {
      to {
        width: 100%
      }
    }

    /* Preloader Portrait - NO border, clean transparent image */
    .portrait-box {
      height: 100vh;
      display: flex;
      align-items: flex-end;
      justify-content: flex-end;
      position: relative;
    }

    .portrait {
      width: 100%;
      height: 90vh;
      display: flex;
      align-items: flex-end;
      justify-content: flex-end;
      position: relative;
      opacity: 0;
      animation: scaleIn 1s .8s forwards;
    }

    .portrait img {
      width: auto;
      height: 100%;
      max-width: none;
      object-fit: contain;
      object-position: bottom right;
      display: block;
      transform-origin: bottom right;
    }

    .portrait::after {
      display: none;
    }

    .terminal {
      width: clamp(280px, 60vw, 360px);
      position: absolute;
      bottom: 40px;
      left: 50%;
      transform: translateX(-50%);
      padding: 12px 14px;
      border-radius: 14px;
      background: rgba(0, 0, 0, .6);
      border: 1px solid rgba(255, 255, 255, .08);
      backdrop-filter: blur(10px);
      font-family: 'Poppins', monospace;
      font-size: .74rem;
      color: #ccc;
      line-height: 1.7;
      opacity: 0;
      animation: fadeInUp .6s 1.4s forwards;
      z-index: 10;
    }

    .hero-terminal {
      width: clamp(260px, 80vw, 380px);
      position: absolute;
      right: 20%;
      bottom: 15%;
      padding: 14px 18px;
      border-radius: 14px;
      background: rgba(0, 0, 0, .3);
      border: 1px solid rgba(255, 255, 255, .05);
      backdrop-filter: blur(6px);
      font-family: 'Courier New', monospace;
      font-size: .75rem;
      color: rgba(50, 255, 50, .4);
      line-height: 1.6;
      opacity: 0;
      animation: fadeInUp 1.2s .5s forwards;
      z-index: -1;
    }

    [data-theme="light"] .terminal {
      background: rgba(255, 255, 255, .85);
      border: 1px solid rgba(0, 0, 0, .08);
      color: #444;
    }

    [data-theme="light"] .hero-terminal {
      background: rgba(255, 255, 255, .2);
      border: 1px solid rgba(0, 0, 0, .05);
      color: rgba(0, 100, 0, .5);
    }

    .shell-dot {
      display: inline-block;
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--soft);
      margin-right: 4px;
    }

    /* NAV */
    .app {
      position: relative;
      z-index: 1;
      height: 100%;
      opacity: 0;
      transform: translateY(10px);
      transition: opacity .9s ease, transform .9s ease;
    }

    .app.ready {
      opacity: 1;
      transform: none;
    }

    .topbar {
      position: fixed;
      inset: 0 0 auto 0;
      height: var(--navH);
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0 24px;
      z-index: 1000;
      backdrop-filter: blur(16px);
      background: rgba(8, 8, 8, .85);
      border-bottom: 1px solid var(--line);
    }

    [data-theme="light"] .topbar {
      background: rgba(248, 248, 248, .85);
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 10px;
      font-weight: 700;
      letter-spacing: -.02em;
      font-size: .9rem;
    }

    .brand-badge {
      width: 34px;
      height: 34px;
      border-radius: 10px;
      background: #fff;
      display: grid;
      place-items: center;
    }

    .brand-badge i {
      color: #111;
      font-size: .85rem;
    }

    [data-theme="light"] .brand-badge {
      background: #111;
    }

    [data-theme="light"] .brand-badge i {
      color: #fff;
    }

    .nav {
      display: flex;
      gap: 4px;
      flex-wrap: wrap;
      justify-content: center;
    }

    .nav a,
    .lang button {
      text-decoration: none;
      color: var(--muted);
      font-size: .78rem;
      background: transparent;
      border: 1px solid transparent;
      padding: 7px 11px;
      border-radius: 10px;
      cursor: pointer;
      transition: .25s ease;
      font-family: inherit;
      white-space: nowrap;
    }

    .nav a:hover,
    .lang button:hover,
    .nav a.active,
    .lang button.active {
      color: var(--text);
      border-color: var(--line);
      background: var(--panel);
    }

    .lang {
      display: flex;
      gap: 4px;
    }

    .theme-toggle {
      background: transparent;
      border: 1px solid var(--line);
      padding: 7px 11px;
      border-radius: 10px;
      cursor: pointer;
      transition: .25s;
      font-family: inherit;
      color: var(--muted);
      font-size: .85rem;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .theme-toggle:hover {
      color: var(--text);
      background: var(--panel);
    }

    /* VIEWPORT & SLIDES */
    .viewport {
      position: absolute;
      inset: var(--navH) 0 0 0;
      overflow-x: hidden;
      overflow-y: auto;
      scroll-snap-type: y mandatory;
      scroll-behavior: smooth;
      scrollbar-width: none;
    }

    .viewport::-webkit-scrollbar {
      display: none;
    }

    .slide {
      position: relative;
      width: 100vw;
      min-height: calc(100vh - var(--navH));
      padding: var(--section-pad);
      scroll-snap-align: start;
      display: grid;
      align-items: center;
      overflow: hidden;
    }

    .slide::before {
      content: "";
      position: absolute;
      inset: 5% 3%;
      border-radius: 24px;
      background: var(--panel);
      border: 1px solid rgba(255, 255, 255, .04);
      z-index: -1;
    }

    [data-theme="light"] .slide::before {
      border: 1px solid rgba(0, 0, 0, .06);
    }

    .slide-inner {
      max-width: min(1280px, 92vw);
      margin: 0 auto;
      width: 100%;
    }

    .two-col {
      display: grid;
      grid-template-columns: 1.1fr .9fr;
      gap: clamp(24px, 4vw, 48px);
      align-items: center;
    }

    /* TYPOGRAPHY */
    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: var(--soft);
      font-size: .72rem;
      letter-spacing: .2em;
      text-transform: uppercase;
      margin-bottom: 12px;
    }

    .eyebrow::before {
      content: "";
      width: 24px;
      height: 1px;
      background: var(--soft);
    }

    .hero h1,
    .copy h2 {
      margin: 0;
      letter-spacing: -.04em;
    }

    .hero h1 {
      font-size: var(--title);
      font-weight: 700;
      line-height: 1.4;
      max-width: 15ch;
    }

    .copy h2 {
      font-size: var(--h2);
      font-weight: 700;
      line-height: 1.4;
      max-width: 16ch;
    }

    .sub {
      margin-top: 12px;
      color: var(--muted);
      font-size: var(--subtitle);
      font-weight: 400;
      line-height: 1.75;
      max-width: 56ch;
    }

    .actions {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 20px;
    }

    /* BUTTONS - high contrast B&W */
    .btn {
      padding: 11px 20px;
      border-radius: 12px;
      border: 1px solid var(--line);
      background: var(--panel-2);
      color: var(--text);
      text-decoration: none;
      font-weight: 600;
      font-size: .84rem;
      transition: .3s ease;
      cursor: pointer;
      font-family: inherit;
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }

    .btn:hover {
      transform: translateY(-2px);
      background: rgba(255, 255, 255, .12);
      box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    }

    .btn.primary {
      background: #fff;
      color: #111;
      border-color: #fff;
    }

    .btn.primary:hover {
      background: #e0e0e0;
      box-shadow: 0 10px 30px rgba(255, 255, 255, .15);
    }

    .btn.whatsapp {
      background: #fff;
      color: #111;
      border-color: #fff;
    }

    .btn.whatsapp:hover {
      background: #e0e0e0;
    }

    [data-theme="light"] .btn {
      background: rgba(0, 0, 0, .06);
      border-color: rgba(0, 0, 0, .12);
    }

    [data-theme="light"] .btn:hover {
      background: rgba(0, 0, 0, .1);
    }

    [data-theme="light"] .btn.primary {
      background: #111;
      color: #fff;
      border-color: #111;
    }

    [data-theme="light"] .btn.primary:hover {
      background: #333;
    }

    [data-theme="light"] .btn.whatsapp {
      background: #111;
      color: #fff;
      border-color: #111;
    }

    [data-theme="light"] .btn.whatsapp:hover {
      background: #333;
    }

    /* TAG ROW */
    .tag-row {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
      margin-top: 20px;
    }

    .chip {
      border: 1px solid var(--line);
      background: var(--panel);
      border-radius: 14px;
      padding: 12px 14px;
      color: var(--muted);
      font-size: .82rem;
      font-weight: 500;
    }

    /* VISUAL BOX - images in their grid column, not overlapping content */
    .visual {
      position: relative;
      display: flex;
      align-items: flex-end;
      justify-content: center;
      min-height: 400px;
      overflow: visible;
    }

    .visual .portrait-main,
    .visual .workspace,
    .visual .presentation,
    .visual .friendly {
      position: relative;
      width: auto;
      height: 75vh;
      max-height: 600px;
      border: none;
      background: transparent;
    }

    .visual .portrait-main img,
    .visual .workspace img,
    .visual .presentation img,
    .visual .friendly img {
      width: auto;
      height: 100%;
      object-fit: contain;
      object-position: bottom center;
    }

    /* Full-bleed image variant for slides that want absolute bottom-right */
    .slide-with-image {
      position: relative;
    }

    .slide-with-image .visual {
      position: absolute;
      right: 0;
      bottom: 0;
      top: 0;
      width: 45%;
      min-height: unset;
      z-index: 0;
      pointer-events: none;
      align-items: flex-end;
      justify-content: flex-end;
    }

    .slide-with-image .visual .portrait-main,
    .slide-with-image .visual .workspace,
    .slide-with-image .visual .presentation,
    .slide-with-image .visual .friendly {
      height: 95%; /* uniform large height relative to container without clipping */
      max-height: none;
      transform: none; /* remove scaling to prevent cutoff */
    }

    .slide-with-image .visual .presentation img {
      transform: scale(1.45); /* Force image actual pixels to be larger to overcome transparent cropping */
      transform-origin: bottom center;
    }

    .slide-with-image .visual .friendly img {
      transform: scale(1.25); /* Smaller scale for Slide 8 to prevent desktop cropping */
      transform-origin: bottom center;
    }

    .slide-with-image .slide-inner {
      position: relative;
      z-index: 1;
    }

    .hud,
    .floating {
      position: absolute;
      border-radius: 16px;
      border: 1px solid var(--line);
      background: rgba(8, 8, 8, .5);
      backdrop-filter: blur(12px);
    }

    [data-theme="light"] .hud,
    [data-theme="light"] .floating {
      background: rgba(255, 255, 255, .7);
    }

    .hud {
      width: 40%;
      left: 5%;
      top: 10%;
      padding: 14px;
    }

    .floating {
      width: 30%;
      left: 8%;
      bottom: 12%;
      padding: 14px;
    }

    .panel-title {
      font-size: .68rem;
      letter-spacing: .18em;
      text-transform: uppercase;
      color: var(--soft);
      margin-bottom: 10px;
    }

    .code-line {
      height: 6px;
      border-radius: 999px;
      background: rgba(255, 255, 255, .15);
      margin-bottom: 8px;
    }

    [data-theme="light"] .code-line {
      background: rgba(0, 0, 0, .1);
    }

    .code-line:nth-child(2) {
      width: 74%
    }

    .code-line:nth-child(3) {
      width: 92%
    }

    .code-line:nth-child(4) {
      width: 61%
    }

    .code-line:nth-child(5) {
      width: 80%
    }

    /* STATS & CARDS */
    .stats {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
      margin-top: 20px;
    }

    .card {
      border: 1px solid var(--line);
      background: var(--panel);
      border-radius: 16px;
      padding: 18px;
      transition: .3s ease;
    }

    .card:hover {
      transform: translateY(-2px);
      border-color: rgba(255, 255, 255, .18);
    }

    [data-theme="light"] .card:hover {
      border-color: rgba(0, 0, 0, .15);
    }

    .metric {
      font-size: clamp(1.2rem, 1.8vw, 1.8rem);
      font-weight: 800;
      letter-spacing: -.03em;
      margin-bottom: 4px;
      color: var(--text);
    }

    .muted {
      color: var(--muted);
      line-height: 1.7;
      font-size: .84rem;
    }

    /* SERVICES */
    .service-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
      margin-top: 20px;
    }

    .service-card {
      min-height: 180px;
      padding: 20px;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }

    .icon {
      width: 46px;
      height: 46px;
      border-radius: 14px;
      border: 1px solid var(--line);
      background: var(--panel-2);
      display: grid;
      place-items: center;
    }

    .icon i {
      color: var(--text);
      font-size: 1rem;
    }

    .card h3 {
      margin: 0;
      font-size: 1rem;
      letter-spacing: -.02em;
    }

    /* PROJECTS */
    .filter-tabs {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin: 16px 0;
    }

    .filter-btn {
      padding: 7px 16px;
      border-radius: 99px;
      border: 1px solid var(--line);
      background: var(--panel);
      color: var(--muted);
      font-size: .78rem;
      font-weight: 500;
      cursor: pointer;
      transition: .3s;
      font-family: inherit;
    }

    .filter-btn.active,
    .filter-btn:hover {
      background: #fff;
      color: #111;
      border-color: #fff;
    }

    [data-theme="light"] .filter-btn.active,
    [data-theme="light"] .filter-btn:hover {
      background: #111;
      color: #fff;
      border-color: #111;
    }

    .project-gallery {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 12px;
      margin-top: 12px;
    }

    .project-item {
      border-radius: 16px;
      overflow: hidden;
      border: 1px solid var(--line);
      position: relative;
      cursor: pointer;
      transition: .4s cubic-bezier(.4, 0, .2, 1);
      aspect-ratio: 16/10;
      background: var(--panel);
    }

    .project-item:hover {
      transform: translateY(-4px);
      box-shadow: 0 16px 40px rgba(0, 0, 0, .3);
    }

    .project-item img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: top;
      transition: .4s;
    }

    .project-item:hover img {
      transform: scale(1.04);
    }

    .project-item .proj-label {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      padding: 10px 14px;
      background: linear-gradient(transparent, rgba(0, 0, 0, .8));
      color: #fff;
      font-size: .74rem;
      font-weight: 500;
    }

    .project-item.hide {
      display: none;
    }

    /* LIGHTBOX - Enhanced Modal */
    .lightbox {
      position: fixed;
      inset: 0;
      z-index: 9999;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 24px;
    }

    .lightbox.active {
      display: flex;
    }

    .lightbox-overlay {
      position: absolute;
      inset: 0;
      background: rgba(0, 0, 0, .92);
      backdrop-filter: blur(12px);
      cursor: pointer;
    }

    .lightbox-content {
      position: relative;
      z-index: 1;
      max-width: 800px;
      width: 92vw;
      max-height: 90vh;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 20px;
      padding: 32px 28px;
      background: var(--bg);
      border: 1px solid var(--line);
      border-radius: 20px;
      box-shadow: 0 40px 100px rgba(0, 0, 0, .6);
      scrollbar-width: none;
    }

    .lightbox-content::-webkit-scrollbar {
      display: none;
    }

    .lightbox-content img {
      max-width: 100%;
      max-height: 55vh;
      border-radius: 14px;
      object-fit: contain;
      border: 1px solid var(--line);
    }

    .lightbox-info {
      text-align: center;
      padding: 0 16px;
    }

    .lightbox-info p {
      color: var(--muted);
      font-size: .95rem;
      line-height: 1.7;
      margin: 0 0 16px;
    }

    .lightbox-close {
      position: absolute;
      top: 14px;
      right: 14px;
      color: var(--muted);
      font-size: 1.3rem;
      cursor: pointer;
      width: 36px;
      height: 36px;
      border-radius: 50%;
      background: var(--panel);
      border: 1px solid var(--line);
      display: grid;
      place-items: center;
      transition: .3s;
      z-index: 2;
    }

    .lightbox-close:hover {
      color: var(--text);
      background: var(--panel-2);
    }

    /* PROCESS */
    .process-grid {
      display: grid;
      grid-template-columns: repeat(5, minmax(0, 1fr));
      gap: 12px;
      margin-top: 20px;
    }

    .process-card {
      min-height: 200px;
      transition: .3s;
      position: relative;
    }

    .step {
      font-size: .72rem;
      letter-spacing: .2em;
      color: var(--soft);
      text-transform: uppercase;
      margin-bottom: 10px;
      font-weight: 600;
    }

    .proof-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
      margin-top: 20px;
    }

    /* CONTACT */
    .contact-layout {
      display: grid;
      grid-template-columns: 1.1fr .9fr;
      gap: 20px;
      align-items: center;
      margin-top: 20px;
    }

    .contact-box {
      min-height: 360px;
      display: grid;
      place-items: center;
      overflow: hidden;
    }

    .footer-mini {
      margin-top: 16px;
      color: var(--soft);
      font-size: .78rem;
    }

    /* EMAIL MODAL */
    .modal-overlay {
      position: fixed;
      inset: 0;
      z-index: 9998;
      background: rgba(0, 0, 0, .75);
      display: none;
      place-items: center;
      backdrop-filter: blur(6px);
    }

    .modal-overlay.active {
      display: grid;
    }

    .modal {
      background: var(--bg);
      border: 1px solid var(--line);
      border-radius: 20px;
      padding: 28px;
      width: min(460px, 90vw);
      box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
      position: relative;
    }

    .modal h3 {
      font-size: 1.2rem;
      margin-bottom: 18px;
    }

    .modal .form-group {
      margin-bottom: 12px;
    }

    .modal label {
      display: block;
      font-size: .74rem;
      color: var(--soft);
      margin-bottom: 5px;
      text-transform: uppercase;
      letter-spacing: .1em;
    }

    .modal input,
    .modal textarea {
      width: 100%;
      padding: 10px 14px;
      border-radius: 12px;
      border: 1px solid var(--line);
      background: var(--panel);
      color: var(--text);
      font-family: inherit;
      font-size: .88rem;
      transition: .3s;
      outline: none;
    }

    .modal input:focus,
    .modal textarea:focus {
      border-color: var(--text);
      box-shadow: 0 0 0 2px rgba(255, 255, 255, .08);
    }

    [data-theme="light"] .modal input:focus,
    [data-theme="light"] .modal textarea:focus {
      border-color: #111;
      box-shadow: 0 0 0 2px rgba(0, 0, 0, .06);
    }

    .modal textarea {
      resize: vertical;
      min-height: 70px;
    }

    .modal-close {
      position: absolute;
      top: 14px;
      right: 14px;
      background: none;
      border: none;
      color: var(--muted);
      font-size: 1.3rem;
      cursor: pointer;
      transition: .3s;
    }

    .modal-close:hover {
      color: var(--text);
    }

    .toast {
      position: fixed;
      bottom: 28px;
      right: 28px;
      padding: 14px 22px;
      border-radius: 14px;
      z-index: 10000;
      font-size: .84rem;
      font-weight: 500;
      opacity: 0;
      transform: translateY(20px);
      transition: .4s;
    }

    .toast.show {
      opacity: 1;
      transform: translateY(0);
    }

    .toast.success {
      background: #fff;
      color: #111;
      box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
    }

    .toast.error {
      background: #111;
      color: #fff;
      box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
    }

    [data-theme="light"] .toast.success {
      background: #111;
      color: #fff;
    }

    /* MOBILE STICKY ACTION BUTTONS */
    .mobile-sticky-actions {
      display: none;
    }

    /* FORM VALIDATION */
    .input-error {
      border-color: #ff4444 !important;
      box-shadow: 0 0 0 2px rgba(255, 68, 68, .15) !important;
    }

    .form-error {
      color: #ff6b6b;
      font-size: .72rem;
      margin-top: 4px;
      letter-spacing: .02em;
    }

    /* SIDE DOTS */
    .side-dots {
      position: fixed;
      right: 14px;
      top: 50%;
      transform: translateY(-50%);
      display: grid;
      gap: 8px;
      z-index: 40;
    }

    .dot {
      width: 8px;
      height: 8px;
      border-radius: 999px;
      background: rgba(255, 255, 255, .15);
      border: 1px solid rgba(255, 255, 255, .1);
      cursor: pointer;
      transition: .3s;
    }

    .dot.active {
      background: #fff;
      transform: scale(1.3);
      border-color: #fff;
    }

    [data-theme="light"] .dot {
      background: rgba(0, 0, 0, .12);
      border: 1px solid rgba(0, 0, 0, .08);
    }

    [data-theme="light"] .dot.active {
      background: #111;
      border-color: #111;
    }

    /* ANIMATIONS */
    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(24px)
      }

      to {
        opacity: 1;
        transform: translateY(0)
      }
    }

    @keyframes fadeInLeft {
      from {
        opacity: 0;
        transform: translateX(-24px)
      }

      to {
        opacity: 1;
        transform: translateX(0)
      }
    }

    @keyframes fadeInRight {
      from {
        opacity: 0;
        transform: translateX(24px)
      }

      to {
        opacity: 1;
        transform: translateX(0)
      }
    }

    @keyframes scaleIn {
      from {
        opacity: 0;
        transform: scale(.88)
      }

      to {
        opacity: 1;
        transform: scale(1)
      }
    }

    @keyframes float {

      0%,
      100% {
        transform: translateY(0)
      }

      50% {
        transform: translateY(-8px)
      }
    }

    .reveal {
      opacity: 0;
      transform: translateY(20px);
      transition: .8s cubic-bezier(.4, 0, .2, 1);
    }

    .reveal.show {
      opacity: 1;
      transform: translateY(0);
    }

    .reveal.show .anim-left {
      animation: fadeInLeft .7s ease forwards;
    }

    .reveal.show .anim-right {
      animation: fadeInRight .7s .15s ease forwards;
      opacity: 0;
    }

    .reveal.show .anim-up {
      animation: fadeInUp .7s ease forwards;
    }

    .reveal.show .anim-scale {
      animation: scaleIn .8s .2s ease forwards;
      opacity: 0;
    }

    .reveal.show .stagger-1 {
      animation-delay: .1s
    }

    .reveal.show .stagger-2 {
      animation-delay: .2s
    }

    .reveal.show .stagger-3 {
      animation-delay: .3s
    }

    .reveal.show .stagger-4 {
      animation-delay: .4s
    }

    .reveal.show .stagger-5 {
      animation-delay: .5s
    }

    .reveal.show .stagger-6 {
      animation-delay: .6s
    }

    .visual-float {
      animation: float 4s ease-in-out infinite;
    }

    /* RESPONSIVE */
    @media (max-width:1080px) {

      html,
      body {
        overflow: auto;
      }

      .preloader-wrap {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 30px;
        height: 100dvh;
        padding-top: 5vh;
      }
      
      .boot {
        margin: 0 20px;
        flex-shrink: 0;
        align-self: center;
      }

      .portrait-box {
        flex: 1 1 0;
        min-height: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-end;
      }

      .portrait {
        width: 100%;
        height: 100%;
        max-height: none;
        display: flex;
        justify-content: center;
        align-items: flex-end;
      }

      .portrait img {
        max-height: 100%;
        height: auto;
        margin: 0 auto;
        object-position: bottom center;
      }

      .terminal {
        position: relative;
        display: block;
        margin: -10px auto 20px;
        left: auto;
        bottom: auto;
        transform: none;
        font-size: .65rem;
        padding: 8px 12px;
        text-align: center;
        width: max-content;
        max-width: 90vw;
        z-index: 10;
      }

      .slide-with-image .visual {
        justify-content: center;
        position: relative;
        width: 100%;
        min-height: 260px;
        height: 42vh;
        margin-top: 30px; /* Push image container down to prevent top overlap */
      }

      .slide-with-image .visual .portrait-main,
      .slide-with-image .visual .workspace,
      .slide-with-image .visual .presentation,
      .slide-with-image .visual .friendly {
        height: 100%;
        max-height: 380px;
      }

      .slide-with-image .visual .presentation img,
      .slide-with-image .visual .friendly img {
        transform: scale(1.15); /* smaller scale to prevent overlap on mobile */
      }

      .slide-with-image .visual .portrait-main img,
      .slide-with-image .visual .workspace img,
      .slide-with-image .visual .presentation img,
      .slide-with-image .visual .friendly img {
        margin: 0 auto;
        object-position: bottom center;
      }

      .two-col,
      .contact-layout,
      .proof-grid,
      .service-grid,
      .process-grid,
      .stats,
      .tag-row {
        grid-template-columns: 1fr;
      }

      .project-gallery {
        grid-template-columns: repeat(2, 1fr);
      }

      /* Mobile Header: Logo left, Lang right, Nav below */
      .topbar {
        height: auto;
        padding: 10px 16px 6px;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 4px;
        align-items: center;
        position: fixed;
        z-index: 1000;
      }

      .brand {
        flex: 1;
        justify-content: flex-start;
        order: 1;
      }

      .topbar-actions {
        flex: 0 0 auto;
        order: 2;
      }

      .nav {
        width: 100%;
        order: 3;
        justify-content: center;
        gap: 2px;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 4px 0 6px;
        scrollbar-width: none;
      }

      .nav::-webkit-scrollbar {
        display: none;
      }

      .nav a {
        font-size: .7rem;
        padding: 5px 7px;
        white-space: nowrap;
      }

      .viewport {
        position: relative;
        inset: auto;
        display: block;
        overflow: visible;
        scroll-snap-type: none;
        padding-top: 110px;
        padding-bottom: 70px;
      }

      .slide {
        display: block; /* Switch from grid to naturally align items from the top */
        min-width: auto;
        height: auto;
        min-height: auto;
        padding: 60px 24px 50px;
      }

      .slide-with-image {
        padding: 8%;
      }

      .slide::before {
        inset: 2% 2%;
        border-radius: 18px;
      }

      #home.slide {
        padding-top: 30px;
      }

      .side-dots {
        display: none;
      }

      .visual {
        position: relative;
        min-height: 250px;
      }

      .visual .portrait-main,
      .visual .workspace,
      .visual .presentation,
      .visual .friendly {
        height: 50vh;
        max-height: 400px;
      }

      .hero h1,
      .copy h2 {
        max-width: none;
        font-size: clamp(1.6rem, 5vw, 2.4rem);
      }

      .sub {
        font-size: .88rem;
      }

      .process-grid {
        grid-template-columns: repeat(2, 1fr);
      }

      .contact-layout {
        gap: 16px;
      }

      /* Mobile Sticky Action Buttons */
      .mobile-sticky-actions {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1000;
        padding: 12px 16px;
        gap: 10px;
        background: rgba(8, 8, 8, .95);
        border-top: 1px solid var(--line);
        backdrop-filter: blur(16px);
      }

      [data-theme="light"] .mobile-sticky-actions {
        background: rgba(248, 248, 248, .95);
      }

      .mobile-sticky-actions .btn {
        flex: 1;
        justify-content: center;
        padding: 12px 14px;
        font-size: .82rem;
      }
    }

    @media (max-width:640px) {
      .project-gallery {
        grid-template-columns: 1fr;
      }

      .tag-row,
      .stats,
      .proof-grid {
        grid-template-columns: 1fr;
      }

      .preloader-wrap {
        grid-template-columns: 1fr;
      }

      .portrait-box {
        min-height: 280px;
      }

      .portrait {
        width: min(70%, 300px);
      }

      .process-grid {
        grid-template-columns: 1fr;
      }

      .slide {
        padding: 60px 24px 50px;
      }

      #home.slide {
        padding-top: 30px;
      }

      .hero h1,
      .copy h2 {
        font-size: clamp(1.4rem, 6vw, 2rem);
      }

      .visual {
        min-height: 250px;
      }

      .visual .portrait-main,
      .visual .workspace,
      .visual .presentation,
      .visual .friendly {
        height: 40vh;
        max-height: 320px;
      }

      .btn {
        padding: 10px 16px;
        font-size: .8rem;
      }

      .chip {
        padding: 10px 12px;
        font-size: .78rem;
      }

      .service-grid {
        gap: 10px;
      }

      .service-card {
        min-height: auto;
        padding: 16px;
      }
	  .process-card {
    min-height: 130px;
}
    }
  