    :root {
      --ink: #172033;
      --navy: #101a32;
      --muted: #667389;
      --line: #e2e7f0;
      --surface: #ffffff;
      --page: #f6f8fb;
      --blue: #2e63ff;
      --blue-dark: #214fd6;
      --blue-soft: #edf3ff;
      --green: #24a67a;
      --orange-soft: #fff1e3;
      --green-soft: #eaf9f3;
      --shadow-sm: 0 12px 30px rgba(22, 36, 72, .06);
      --shadow-md: 0 24px 60px rgba(22, 36, 72, .12);
      --radius-sm: 14px;
      --radius-md: 22px;
      --radius-lg: 28px;
      --header-height: 94px;
      --container: 1180px;
    }

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

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

    body {
      margin: 0;
      min-width: 320px;
      background: var(--page);
      color: var(--ink);
      font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
      font-size: 16px;
      line-height: 1.6;
      text-rendering: optimizeLegibility;
      -webkit-font-smoothing: antialiased;
    }

    body.menu-open { overflow: hidden; }

    img, svg { display: block; max-width: 100%; }
    button, input, textarea, select { font: inherit; }
    button, a { -webkit-tap-highlight-color: transparent; }
    button { color: inherit; }
    a { color: inherit; }

    :focus-visible {
      outline: 3px solid rgba(46, 99, 255, .35);
      outline-offset: 3px;
    }

    .skip-link {
      position: fixed;
      z-index: 9999;
      left: 16px;
      top: 12px;
      transform: translateY(-150%);
      padding: 10px 14px;
      border-radius: 10px;
      background: var(--navy);
      color: #fff;
      text-decoration: none;
      font-weight: 800;
      transition: transform .2s ease;
    }
    .skip-link:focus { transform: translateY(0); }

    .container {
      width: min(var(--container), calc(100% - 40px));
      margin-inline: auto;
    }

    .site-header {
      position: sticky;
      z-index: 1000;
      top: 0;
      background: rgba(246, 248, 251, .88);
      border-bottom: 1px solid rgba(226, 231, 240, .82);
      backdrop-filter: blur(16px);
      -webkit-backdrop-filter: blur(16px);
    }

    .nav {
      min-height: var(--header-height);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
    }

    .brand {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      flex: 0 0 auto;
      color: var(--ink);
      text-decoration: none;
      font-weight: 800;
      letter-spacing: -.35px;
    }

    .brand picture,
    .brand img {
      width: 100px;
      height: 80px;
      max-width: none;
      object-fit: contain;
      object-position: center;
      border-radius: 0;
      flex: 0 0 100px;
    }

    .brand span {
      white-space: nowrap;
      font-size: 24px;
      line-height: 1.1;
    }

    .nav-links {
      display: flex;
      align-items: center;
      gap: clamp(17px, 2.1vw, 30px);
    }

    .nav-links a {
      position: relative;
      color: #46536a;
      text-decoration: none;
      font-size: 15px;
      font-weight: 650;
      transition: color .2s ease;
    }

    .nav-links a::after {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      bottom: -9px;
      height: 2px;
      border-radius: 999px;
      background: var(--blue);
      transform: scaleX(0);
      transform-origin: center;
      transition: transform .2s ease;
    }

    .nav-links a:hover,
    .nav-links a.is-active { color: var(--blue); }
    .nav-links a.is-active::after { transform: scaleX(1); }

    .nav-cta,
    .button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      min-height: 48px;
      padding: 0 20px;
      border: 0;
      border-radius: 13px;
      cursor: pointer;
      text-decoration: none;
      font-weight: 800;
      transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
    }

    .nav-cta {
      min-height: 44px;
      padding-inline: 18px;
      background: var(--navy);
      color: #fff;
      font-size: 14px;
    }

    .nav-cta:hover,
    .button:hover { transform: translateY(-2px); }

    .nav-toggle {
      display: none;
      width: 44px;
      height: 44px;
      padding: 0;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: #fff;
      cursor: pointer;
      place-items: center;
    }

    .nav-toggle span,
    .nav-toggle span::before,
    .nav-toggle span::after {
      width: 20px;
      height: 2px;
      display: block;
      border-radius: 99px;
      background: var(--ink);
      transition: transform .2s ease, opacity .2s ease;
    }
    .nav-toggle span { position: relative; }
    .nav-toggle span::before,
    .nav-toggle span::after { content: ""; position: absolute; left: 0; }
    .nav-toggle span::before { top: -6px; }
    .nav-toggle span::after { top: 6px; }
    .nav-toggle[aria-expanded="true"] span { background: transparent; }
    .nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

    main {
      overflow: clip;
      background:
        radial-gradient(circle at 88% 4%, rgba(46, 99, 255, .10), transparent 22%),
        radial-gradient(circle at 10% 16%, rgba(72, 195, 255, .07), transparent 17%),
        var(--page);
    }

    .hero {
      display: grid;
      grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr);
      gap: clamp(48px, 6vw, 80px);
      align-items: center;
      min-height: 690px;
      padding: clamp(54px, 6vw, 76px) 0 clamp(82px, 8vw, 110px);
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      margin-bottom: 22px;
      padding: 8px 13px;
      border: 1px solid #dbe4ff;
      border-radius: 999px;
      background: rgba(247, 249, 255, .9);
      color: #3459b9;
      font-size: 13px;
      font-weight: 800;
    }

    .eyebrow-dot {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: var(--green);
      box-shadow: 0 0 0 4px rgba(36, 166, 122, .11);
    }

    h1, h2, h3, p { overflow-wrap: break-word; }

    h1 {
      max-width: 720px;
      margin: 0 0 22px;
      font-size: clamp(46px, 5.4vw, 76px);
      line-height: 1.01;
      letter-spacing: clamp(-3.5px, -.055em, -2px);
    }

    h1 .accent { color: var(--blue); }

    .lead {
      max-width: 660px;
      margin: 0 0 30px;
      color: var(--muted);
      font-size: clamp(18px, 1.55vw, 21px);
      line-height: 1.7;
    }

    .hero-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 13px;
      margin-bottom: 36px;
    }

    .button-primary {
      background: var(--blue);
      color: #fff;
      box-shadow: 0 14px 30px rgba(46, 99, 255, .24);
    }
    .button-primary:hover { background: var(--blue-dark); }

    .button-secondary {
      border: 1px solid var(--line);
      background: #fff;
      color: var(--ink);
    }

    .hero-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 14px 23px;
      color: #59667b;
      font-size: 14px;
    }

    .meta-item {
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }

    .meta-icon {
      width: 28px;
      height: 28px;
      display: inline-grid;
      place-items: center;
      border: 1px solid var(--line);
      border-radius: 9px;
      background: #fff;
      color: var(--blue);
      font-size: 13px;
      font-weight: 900;
    }

    .browser-wrap {
      position: relative;
      min-height: 495px;
    }

    .browser-glow {
      position: absolute;
      inset: 5% 4% auto auto;
      width: min(88%, 470px);
      aspect-ratio: 1;
      border-radius: 50%;
      background: rgba(46, 99, 255, .13);
      filter: blur(9px);
    }

    .browser {
      position: absolute;
      right: 0;
      top: 45px;
      width: min(100%, 570px);
      height: 430px;
      overflow: hidden;
      border: 1px solid #e5eaf2;
      border-radius: 24px;
      background: #fff;
      box-shadow: 0 30px 70px rgba(22, 36, 72, .15);
    }

    .browser-bar {
      height: 52px;
      display: flex;
      align-items: center;
      gap: 7px;
      padding: 0 17px;
      border-bottom: 1px solid #edf0f5;
    }

    .browser-dot { width: 10px; height: 10px; border-radius: 50%; background: #d7ddea; }
    .browser-url { height: 27px; flex: 1; margin-left: 10px; border-radius: 8px; background: #f5f7fa; }

    .mock { padding: 26px; }
    .mock-nav { height: 18px; display: flex; justify-content: space-between; margin-bottom: 36px; }
    .mock-logo { width: 90px; height: 12px; border-radius: 6px; background: #1c2a46; }
    .mock-links { display: flex; gap: 10px; }
    .mock-links i { width: 34px; height: 7px; display: block; border-radius: 4px; background: #dfe5ef; }
    .mock-hero { display: grid; grid-template-columns: 1.03fr .97fr; gap: 24px; }
    .mock-copy { padding-top: 10px; }
    .mock-line { height: 11px; margin-bottom: 10px; border-radius: 6px; background: #e6ebf4; }
    .mock-line.dark { background: #1d2a45; }
    .mock-button { width: 94px; height: 30px; margin-top: 20px; border-radius: 8px; background: var(--blue); }
    .w95 { width: 95%; } .w86 { width: 86%; } .w76 { width: 76%; } .w65 { width: 65%; }

    .mock-art {
      position: relative;
      height: 225px;
      overflow: hidden;
      padding: 20px;
      border-radius: 18px;
      background: linear-gradient(145deg, #eef3ff, #dae5ff);
    }

    .mock-card {
      position: absolute;
      border-radius: 12px;
      background: #fff;
      box-shadow: 0 10px 25px rgba(31, 50, 93, .12);
    }
    .mock-card.one { width: 140px; height: 95px; top: 28px; left: 22px; }
    .mock-card.two { width: 110px; height: 72px; right: 18px; top: 82px; }
    .mock-card.three { width: 180px; height: 60px; left: 52px; bottom: 18px; }
    .mock-stripe { height: 7px; margin: 10px 12px 0; border-radius: 5px; background: #e6ebf4; }
    .mock-stripe.blue { width: 55%; background: #81a0ff; }

    .float-card {
      position: absolute;
      z-index: 3;
      padding: 15px 17px;
      border: 1px solid #e7ebf3;
      border-radius: 16px;
      background: #fff;
      box-shadow: 0 18px 36px rgba(29, 47, 82, .11);
    }
    .float-card strong { display: block; margin-bottom: 3px; font-size: 15px; }
    .float-card small { color: #758198; font-size: 12px; }
    .float-card.one { left: -10px; top: 8px; width: 180px; }
    .float-card.two { right: 26px; bottom: 2px; width: 205px; }
    .float-icon {
      width: 34px;
      height: 34px;
      display: grid;
      place-items: center;
      margin-bottom: 10px;
      border-radius: 10px;
      background: var(--blue-soft);
      color: var(--blue);
      font-weight: 900;
    }

    .section { padding: clamp(76px, 8vw, 112px) 0; }
    .section-white { background: #fff; }

    .section-head {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(280px, 480px);
      gap: 48px;
      align-items: end;
      margin-bottom: 50px;
    }

    .kicker {
      margin-bottom: 12px;
      color: var(--blue);
      font-size: 13px;
      font-weight: 900;
      letter-spacing: .12em;
      text-transform: uppercase;
    }

    .section h2 {
      max-width: 760px;
      margin: 0;
      font-size: clamp(36px, 4vw, 50px);
      line-height: 1.12;
      letter-spacing: -.045em;
    }

    .section-desc {
      margin: 0;
      color: var(--muted);
      font-size: 17px;
      line-height: 1.7;
    }

    .services {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 20px;
    }

    .service-card {
      min-height: 300px;
      padding: 30px;
      border: 1px solid var(--line);
      border-radius: var(--radius-md);
      background: #fff;
      box-shadow: var(--shadow-sm);
    }

    .service-icon {
      width: 52px;
      height: 52px;
      display: grid;
      place-items: center;
      margin-bottom: 26px;
      border-radius: 15px;
      background: var(--blue-soft);
      color: var(--blue);
      font-size: 20px;
      font-weight: 900;
    }

    .service-card h3 { margin: 0 0 12px; font-size: 22px; letter-spacing: -.02em; }
    .service-card p { margin: 0 0 18px; color: var(--muted); }

    .chips { display: flex; flex-wrap: wrap; gap: 8px; }

    .chip {
      display: inline-flex;
      align-items: center;
      min-height: 36px;
      padding: 7px 12px;
      border: 0;
      border-radius: 999px;
      background: #f2f5fa;
      color: #52617a;
      font-size: 13px;
      font-weight: 500;
      line-height: 1.2;
      text-decoration: none;
    }

    .chip-button {
      appearance: none;
      cursor: default;
    }

    .info-popover-wrap {
      position: relative;
      display: inline-flex;
      align-items: center;
    }

    .info-popover {
      position: absolute;
      z-index: 30;
      left: 50%;
      bottom: calc(100% + 12px);
      width: min(320px, calc(100vw - 36px));
      padding: 14px 16px;
      border: 1px solid rgba(221, 228, 240, .95);
      border-radius: 14px;
      background: #fff;
      color: var(--ink);
      box-shadow: 0 18px 44px rgba(22, 36, 72, .16);
      font-size: 14px;
      font-weight: 400;
      line-height: 1.55;
      opacity: 0;
      visibility: hidden;
      transform: translate(-50%, 8px);
      pointer-events: none;
      transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
    }

    .info-popover a {
      color: var(--blue);
      text-decoration: underline;
      text-underline-offset: 2px;
    }

    .info-popover-wrap:hover > .info-popover,
    .info-popover-wrap:focus-within > .info-popover,
    .info-popover-wrap.is-popover-open > .info-popover {
      opacity: 1;
      visibility: visible;
      transform: translate(-50%, 0);
      pointer-events: auto;
    }

    .reference-help {
      justify-self: end;
      align-self: end;
    }

    .reference-help-trigger {
      width: 44px;
      height: 44px;
      display: grid;
      place-items: center;
      border: 1px solid #dce4f2;
      border-radius: 50%;
      background: #fff;
      color: var(--blue);
      font-weight: 800;
      cursor: pointer;
      box-shadow: var(--shadow-sm);
    }

    .reference-help-popover {
      left: auto;
      right: 0;
      transform: translateY(8px);
    }

    .reference-help:hover > .reference-help-popover,
    .reference-help:focus-within > .reference-help-popover,
    .reference-help.is-popover-open > .reference-help-popover {
      transform: translateY(0);
    }

    .process-grid {
      display: grid;
      grid-template-columns: minmax(300px, .82fr) minmax(0, 1.18fr);
      gap: clamp(42px, 6vw, 70px);
      align-items: center;
    }

    .process-note {
      position: relative;
      min-height: 430px;
      overflow: hidden;
      padding: 32px;
      border-radius: 25px;
      background: linear-gradient(145deg, #17233f, #0f1830);
      color: #fff;
    }

    .process-note::after {
      content: "";
      position: absolute;
      right: -55px;
      bottom: -60px;
      width: 230px;
      height: 230px;
      border-radius: 50%;
      background: rgba(97, 134, 255, .18);
    }

    .process-note > * { position: relative; z-index: 1; }
    .process-note .big { margin: 0 0 24px; font-size: clamp(29px, 2.7vw, 36px); line-height: 1.28; letter-spacing: -.035em; font-weight: 850; }
    .process-note p:not(.big) { color: #bfc8dc; }
    .process-tag { display: inline-flex; margin-top: 13px; padding: 8px 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; color: #dce4f6; font-size: 12px; font-weight: 800; }

    .steps { display: grid; gap: 16px; }
    .step {
      display: grid;
      grid-template-columns: 52px minmax(0, 1fr);
      gap: 18px;
      padding: 21px 23px;
      border: 1px solid var(--line);
      border-radius: 18px;
      background: #fff;
    }
    .step-number { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--blue-soft); color: var(--blue); font-weight: 900; }
    .step h3 { margin: 1px 0 6px; font-size: 19px; }
    .step p { margin: 0; color: var(--muted); font-size: 15px; }

    .projects {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 22px;
    }

    .project-card {
      overflow: hidden;
      border: 1px solid var(--line);
      border-radius: 24px;
      background: #fff;
      box-shadow: 0 16px 34px rgba(22, 36, 72, .06);
    }

    .project-preview {
      position: relative;
      height: 270px;
      overflow: hidden;
      padding: 22px;
    }
    .project-preview.blue { background: linear-gradient(145deg, #edf3ff, #dbe7ff); }
    .project-preview.orange { background: linear-gradient(145deg, #fff3e7, #ffe2bf); }
    .project-preview.green { background: linear-gradient(145deg, #eafaf4, #d4f2e7); }

    .project-browser {
      height: 100%;
      display: flex;
      align-items: flex-start;
      justify-content: center;
      overflow: hidden;
      padding: 15px;
      border-radius: 15px;
      background: #fff;
      box-shadow: 0 14px 28px rgba(26, 39, 70, .12);
      transition: transform .3s ease, filter .3s ease;
    }

    .project-screenshot {
      width: 100%;
      height: 100%;
      max-width: 100%;
      object-fit: contain;
      object-position: top center;
    }

    .project-mini-logo { width: 45%; height: 8px; margin-bottom: 23px; border-radius: 5px; background: #283753; }
    .project-mini-hero { position: relative; height: 70px; margin-bottom: 12px; border-radius: 10px; background: #f3f5f8; }
    .project-mini-hero::before, .project-mini-hero::after { content: ""; position: absolute; left: 12px; border-radius: 4px; }
    .project-mini-hero::before { top: 14px; width: 48%; height: 8px; background: #283753; }
    .project-mini-hero::after { top: 31px; width: 64%; height: 6px; background: #cfd7e4; }
    .project-mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
    .project-mini-grid i { height: 62px; border-radius: 8px; background: #f0f3f7; }

    .project-overlay {
      position: absolute;
      z-index: 3;
      inset: 18px;
      display: flex;
      flex-direction: column;
      justify-content: flex-start;
      gap: 12px;
      overflow: auto;
      padding: 20px 22px;
      border-radius: 16px;
      background: rgba(13, 24, 48, .96);
      color: #fff;
      opacity: 0;
      transform: translateY(10px);
      pointer-events: none;
      transition: opacity .26s ease, transform .26s ease;
    }

    .project-card:hover .project-overlay,
    .project-card:focus-within .project-overlay,
    .project-card.is-info-open .project-overlay {
      opacity: 1;
      transform: translateY(0);
      pointer-events: auto;
    }

    .project-card:hover .project-browser,
    .project-card:focus-within .project-browser,
    .project-card.is-info-open .project-browser {
      transform: scale(1.015);
      filter: blur(1px);
    }

    .project-overlay-label {
      position: static;
      flex: 0 0 auto;
      color: #9db6ff;
      font-size: 11px;
      font-weight: 850;
      line-height: 1.2;
      letter-spacing: .09em;
      text-transform: uppercase;
    }

    .project-meta {
      display: grid;
      gap: 8px;
      min-height: 0;
    }

    .project-meta-row {
      padding-bottom: 8px;
      border-bottom: 1px solid rgba(255,255,255,.12);
    }

    .project-meta-row:last-child {
      padding-bottom: 0;
      border-bottom: 0;
    }

    .project-meta-row span {
      display: block;
      margin-bottom: 2px;
      color: #aab6cb;
      font-size: 10px;
      line-height: 1.25;
      text-transform: uppercase;
      letter-spacing: .06em;
    }

    .project-meta-row strong {
      display: block;
      font-size: 12px;
      line-height: 1.35;
      overflow-wrap: anywhere;
    }

    .project-info-toggle {
      position: absolute;
      z-index: 4;
      right: 30px;
      top: 30px;
      width: 38px;
      height: 38px;
      display: none;
      place-items: center;
      border: 0;
      border-radius: 50%;
      background: rgba(16, 26, 50, .92);
      color: #fff;
      cursor: pointer;
      font-weight: 900;
    }

    .project-body { padding: 24px 25px 28px; }
    .project-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
    .project-heading h3 { margin: 0; font-size: 22px; }
    .badge { flex: 0 0 auto; padding: 6px 9px; border-radius: 999px; background: #f2f5fa; color: #5f6e86; font-size: 11px; font-weight: 900; }
    .project-body p { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
    .project-link { color: var(--blue); text-decoration: none; font-size: 14px; font-weight: 900; }
    .project-link:hover { text-decoration: underline; }

    .about-grid {
      display: grid;
      grid-template-columns: minmax(320px, .84fr) minmax(0, 1.16fr);
      gap: clamp(50px, 7vw, 84px);
      align-items: start;
    }

    .portrait {
      position: relative;
      margin: 0;
      padding: 18px;
      overflow: visible;
      border: 1px solid #dce4f1;
      border-radius: 28px;
      background: linear-gradient(145deg, #f6f9ff, #e8effc);
      box-shadow: 0 20px 50px rgba(22, 36, 72, .10);
    }

    .portrait::before { content: none; }

    .portrait-frame {
      position: relative;
      width: 100%;
    }

    .portrait-trigger {
      display: block;
      width: 100%;
      margin: 0;
      padding: 0;
      overflow: hidden;
      border: 0;
      border-radius: 20px;
      background: transparent;
      box-shadow: 0 14px 34px rgba(22, 36, 72, .11);
      cursor: pointer;
      line-height: 0;
    }

    .portrait-picture {
      display: block;
      width: 100%;
    }

    .portrait-picture img {
      display: block;
      width: 100%;
      height: auto;
      max-width: 100%;
      aspect-ratio: auto;
      object-fit: initial;
    }

    .portrait-info-popover {
      left: 20px;
      right: 20px;
      bottom: 20px;
      width: auto;
      transform: translateY(8px);
    }

    .portrait-popover:hover > .portrait-info-popover,
    .portrait-popover:focus-within > .portrait-info-popover,
    .portrait-popover.is-popover-open > .portrait-info-popover {
      transform: translateY(0);
    }

    .portrait-card {
      position: static;
      margin-top: 16px;
      padding: 16px 18px;
      border: 1px solid rgba(255,255,255,.9);
      border-radius: 16px;
      background: rgba(255,255,255,.88);
      box-shadow: 0 10px 26px rgba(22,36,72,.07);
    }

    .portrait-card strong { display: block; margin-bottom: 3px; font-size: 18px; }
    .portrait-card div { color: var(--muted); font-size: 13px; }

    .about-copy h2 { margin-bottom: 22px; }
    .about-copy > p { margin: 0 0 16px; color: var(--muted); font-size: 17px; }

    .about-list {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px 20px;
      margin: 28px 0;
    }

    .about-item { display: flex; align-items: center; gap: 10px; font-weight: 750; }
    .check { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 8px; background: #eaf8f3; color: var(--green); font-size: 13px; font-weight: 900; }

    .stack { display: flex; flex-wrap: wrap; gap: 8px; }
    .stack span { padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: #52617a; font-size: 12px; font-weight: 800; }

    .contact-section { padding-bottom: 70px; }

    .contact-box {
      position: relative;
      overflow: hidden;
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 50px;
      align-items: center;
      padding: clamp(34px, 5vw, 56px);
      border-radius: 28px;
      background: linear-gradient(145deg, #17233f, #0d1730);
      color: #fff;
    }

    .contact-box::after {
      content: "";
      position: absolute;
      width: 340px;
      height: 340px;
      right: -120px;
      top: -160px;
      border-radius: 50%;
      background: rgba(76, 112, 255, .2);
    }

    .contact-box > * { position: relative; z-index: 1; }
    .contact-box .kicker { color: #90adff; }
    .contact-box h2 { max-width: 760px; margin-bottom: 14px; }
    .contact-box p { max-width: 720px; margin: 0; color: #c0c9dc; font-size: 17px; }

    .contact-button {
      min-width: 250px;
      min-height: 60px;
      flex-direction: column;
      align-items: flex-start;
      padding: 12px 18px;
      background: #fff;
      color: var(--navy);
      box-shadow: 0 16px 40px rgba(0,0,0,.18);
    }
    .contact-button small { color: #76839a; font-size: 11px; font-weight: 650; }

    footer {
      padding: 38px 0 30px;
      border-top: 1px solid rgba(226, 231, 240, .9);
      background: #fff;
    }

    .footer-grid {
      display: grid;
      grid-template-columns: 1.05fr .85fr 1.1fr;
      gap: 38px;
      align-items: start;
    }

    .footer-brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 11px; text-decoration: none; }
    .footer-brand img { width: 85px; height: 65px; }
    .footer-brand strong { font-size: 18px; }
    .footer-copy { max-width: 390px; color: var(--muted); font-size: 14px; }

    .footer-nav { display: grid; grid-template-columns: repeat(2, max-content); gap: 8px 24px; }
    .footer-nav a { color: #4d5a70; text-decoration: none; font-size: 14px; }
    .footer-nav a:hover { color: var(--blue); }

    .footer-data { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
    .footer-data span { display: block; margin-bottom: 2px; color: #8691a3; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; }
    .footer-data strong, .footer-data a { color: var(--ink); text-decoration: none; font-size: 13px; }
    .footer-data a:hover { color: var(--blue); }
    .placeholder { color: #8b96a7 !important; font-weight: 700 !important; }

    .footer-bottom {
      display: flex;
      justify-content: space-between;
      gap: 20px;
      margin-top: 30px;
      padding-top: 20px;
      border-top: 1px solid var(--line);
      color: #7b879a;
      font-size: 12px;
    }
    .footer-bottom-links { display: flex; gap: 18px; flex-wrap: wrap; }
    .footer-bottom a { color: inherit; text-decoration: none; }
    .footer-bottom a:hover { color: var(--blue); }

    dialog {
      width: min(680px, calc(100% - 30px));
      max-height: calc(100vh - 30px);
      margin: auto;
      padding: 0;
      overflow: auto;
      border: 0;
      border-radius: 24px;
      background: #fff;
      color: var(--ink);
      box-shadow: 0 28px 90px rgba(9, 18, 39, .28);
    }

    dialog::backdrop { background: rgba(9, 18, 39, .66); backdrop-filter: blur(6px); }

    .modal-content { position: relative; padding: clamp(28px, 5vw, 44px); }
    .modal-close {
      position: absolute;
      right: 18px;
      top: 18px;
      width: 42px;
      height: 42px;
      display: grid;
      place-items: center;
      border: 1px solid var(--line);
      border-radius: 12px;
      background: #fff;
      cursor: pointer;
      font-size: 24px;
      line-height: 1;
    }
    .modal-content h2 { margin: 0 52px 8px 0; font-size: clamp(30px, 4vw, 40px); line-height: 1.1; letter-spacing: -.04em; }
    .modal-intro { margin: 0 0 26px; color: var(--muted); }

    .contact-form { display: grid; gap: 16px; }
    .form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
    .field { display: grid; gap: 7px; }
    .field.full { grid-column: 1 / -1; }
    .field label { font-size: 13px; font-weight: 800; }
    .field input,
    .field select,
    .field textarea {
      width: 100%;
      border: 1px solid #dbe1eb;
      border-radius: 12px;
      background: #fff;
      color: var(--ink);
      padding: 12px 13px;
      outline: 0;
      transition: border-color .2s ease, box-shadow .2s ease;
    }
    .field textarea { min-height: 135px; resize: vertical; }
    .field input:focus,
    .field select:focus,
    .field textarea:focus { border-color: #9bb2ff; box-shadow: 0 0 0 4px rgba(46,99,255,.09); }

    .privacy-check { display: grid; grid-template-columns: auto 1fr; gap: 9px; align-items: start; color: var(--muted); font-size: 12px; }
    .privacy-check input { margin-top: 4px; }
    .privacy-check a { color: var(--blue); }

    .submit-row { display: flex; justify-content: space-between; gap: 15px; align-items: center; flex-wrap: wrap; }
    .submit-note { max-width: 320px; color: #8a95a6; font-size: 11px; }
    .form-status {
      padding: 12px 14px;
      border: 1px solid transparent;
      border-radius: 12px;
      font-size: 13px;
      line-height: 1.5;
      font-weight: 700;
    }
    .form-status.is-success { color: #0b6b47; background: #edf9f4; border-color: #cbeede; }
    .form-status.is-error { color: #9a2935; background: #fff3f4; border-color: #f1cbd0; }
    .contact-form.is-submitting { opacity: .78; }
    .contact-form.is-submitting button[type="submit"] { cursor: wait; }
    .honeypot { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }

    @media (max-width: 1020px) {
      .nav-toggle { display: grid; }
      .nav-links {
        position: fixed;
        inset: var(--header-height) 0 auto 0;
        display: grid;
        gap: 0;
        padding: 12px 20px 22px;
        border-bottom: 1px solid var(--line);
        background: rgba(255,255,255,.98);
        box-shadow: 0 20px 50px rgba(22,36,72,.12);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
      }
      .nav-links.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
      .nav-links a { padding: 14px 4px; border-bottom: 1px solid #edf0f5; }
      .nav-links a::after { display: none; }
      .nav-cta { margin-top: 12px; width: 100%; }

      .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 52px; }
      .hero-copy { max-width: 800px; }
      .browser-wrap { width: min(660px, 100%); margin: 0 auto; }

      .services, .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .service-card:last-child, .project-card:last-child { grid-column: 1 / -1; width: min(570px, 100%); justify-self: center; }

      .section-head { grid-template-columns: 1fr; gap: 18px; }
      .section-desc { max-width: 720px; }

      .process-grid, .about-grid { grid-template-columns: 1fr; }
      .process-note { min-height: auto; }

      .contact-box { grid-template-columns: 1fr; gap: 28px; }
      .contact-button { justify-self: start; }

      .footer-grid { grid-template-columns: 1fr 1fr; }
      .footer-data { grid-column: 1 / -1; }
    }

    @media (hover: none), (pointer: coarse) {
      .project-info-toggle { display: grid; }
      .project-card:hover .project-overlay { opacity: 0; transform: translateY(10px); pointer-events: none; }
      .project-card:hover .project-browser { transform: none; filter: none; }
      .project-card.is-info-open .project-overlay { opacity: 1; transform: translateY(0); pointer-events: auto; }
      .project-card.is-info-open .project-browser { transform: scale(1.025); filter: blur(1.5px); }
    }

    @media (max-width: 720px) {
      :root { --header-height: 68px; }
      .container { width: min(100% - 28px, var(--container)); }
      .brand span { display: none; }
      .brand picture, .brand img { width: 72px; height: 58px; max-width: none; flex-basis: 72px; }

      .hero { gap: 38px; padding: 42px 0 76px; }
      h1 { font-size: clamp(42px, 12vw, 58px); }
      .lead { font-size: 18px; }
      .button { width: 100%; }
      .hero-meta { display: grid; gap: 10px; }

      .browser-wrap { min-height: 380px; }
      .browser { top: 35px; height: 330px; border-radius: 20px; }
      .browser-bar { height: 44px; }
      .mock { padding: 18px; }
      .mock-nav { margin-bottom: 25px; }
      .mock-hero { gap: 14px; }
      .mock-art { height: 180px; padding: 12px; }
      .mock-card.one { width: 105px; height: 72px; left: 14px; top: 20px; }
      .mock-card.two { width: 80px; height: 55px; right: 12px; top: 65px; }
      .mock-card.three { width: 130px; height: 45px; left: 35px; bottom: 12px; }
      .float-card.one { left: 0; top: 0; transform: scale(.86); transform-origin: left top; }
      .float-card.two { display: none; }

      .services, .projects { grid-template-columns: 1fr; }
      .service-card:last-child, .project-card:last-child { grid-column: auto; width: 100%; }
      .service-card { min-height: auto; }

      .step { grid-template-columns: 46px 1fr; padding: 18px; }
      .step-number { width: 42px; height: 42px; }

      .project-preview { height: 250px; }
      .project-overlay { inset: 14px; padding: 20px; }

      .about-list { grid-template-columns: 1fr; }

      .contact-box { padding: 30px 24px; }
      .contact-button { width: 100%; min-width: 0; align-items: center; }

      .footer-grid { grid-template-columns: 1fr; gap: 28px; }
      .footer-data { grid-column: auto; grid-template-columns: 1fr; }
      .footer-bottom { flex-direction: column; }

      .form-grid { grid-template-columns: 1fr; }
      .field.full { grid-column: auto; }
      .submit-row { align-items: stretch; }
      .submit-row .button { width: 100%; }
    }

    @media (max-width: 470px) {
      .mock-hero { grid-template-columns: 1fr; }
      .mock-art { display: none; }
      .browser { height: 280px; }
      .browser-wrap { min-height: 325px; }
      .project-preview { height: 230px; }
      .project-overlay { padding: 18px; }
      .project-meta-row strong { font-size: 12px; }
    }

    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      *, *::before, *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
      }
    }

.mock-spacer { height: 16px; }

/* v13 hero background only */
.hero-background {
  position: relative;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(9, 15, 25, .82) 0%, rgba(9, 15, 25, .68) 32%, rgba(9, 15, 25, .42) 56%, rgba(9, 15, 25, .22) 100%),
    url("../img/hero-bg-programming-2.png") center center / cover no-repeat;
}

.hero-inner {
  display: flex;
  align-items: center;
  min-height: 620px;
  padding-top: clamp(56px, 5vw, 70px);
  padding-bottom: clamp(64px, 6vw, 88px);
}

.hero-background .hero-copy {
  max-width: 680px;
}

.hero-background .eyebrow {
  border-color: rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  backdrop-filter: blur(6px);
}

.hero-background h1,
.hero-background .hero-meta,
.hero-background .meta-item {
  color: #fff;
}

.hero-background .lead {
  color: rgba(255, 255, 255, .88);
}

.hero-background .button-secondary {
  border-color: rgba(255, 255, 255, .24);
  background: rgba(255, 255, 255, .08);
  color: #fff;
  backdrop-filter: blur(4px);
}

.hero-background .button-secondary:hover {
  background: rgba(255, 255, 255, .14);
}

.hero-background .meta-icon {
  border-color: rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .08);
  color: #fff;
}

@media (max-width: 1020px) {
  .hero-background {
    background-position: center center;
  }
  .hero-inner {
    min-height: 560px;
    padding-top: 52px;
    padding-bottom: 70px;
  }
}

@media (max-width: 720px) {
  .hero-background {
    background:
      linear-gradient(180deg, rgba(9, 15, 25, .8) 0%, rgba(9, 15, 25, .6) 38%, rgba(9, 15, 25, .35) 100%),
      url("../img/hero-bg-programming-2.png") center center / cover no-repeat;
  }
  .hero-inner {
    min-height: 500px;
    padding-top: 42px;
    padding-bottom: 58px;
  }
}


/* v14 hero alignment and size tweak */
.hero-inner {
  min-height: 650px;
  padding-top: clamp(46px, 4.4vw, 60px);
  padding-bottom: clamp(52px, 5vw, 72px);
  padding-left: clamp(18px, 2vw, 34px);
}

.hero-background .hero-copy {
  max-width: 620px;
}

.hero-background h1 {
  font-size: 55px;
  line-height: 1.04;
  letter-spacing: -2.5px;
}

@media (max-width: 1020px) {
  .hero-inner {
    min-height: 570px;
    padding-left: 0;
  }

  .hero-background h1 {
    font-size: clamp(42px, 7vw, 52px);
  }
}

@media (max-width: 720px) {
  .hero-inner {
    min-height: 500px;
    padding-top: 38px;
    padding-bottom: 52px;
  }

  .hero-background h1 {
    font-size: clamp(38px, 11vw, 46px);
    letter-spacing: -1.5px;
  }
}


/* v15 — fix hero container alignment */
.hero.hero-background {
  display: block;
  grid-template-columns: none;
  gap: 0;
}

.hero-background .hero-inner {
  width: min(var(--container), calc(100% - 40px));
  margin-inline: auto;
  padding-left: 0;
  padding-right: 0;
  min-height: 650px;
}

@media (max-width: 720px) {
  .hero-background .hero-inner {
    width: min(100% - 28px, var(--container));
  }
}


/* v16 hero compact spacing */
.hero-background .hero-inner {
  min-height: 590px;
  padding-top: clamp(28px, 3vw, 38px);
  padding-bottom: clamp(34px, 3.5vw, 46px);
}

.hero-background .eyebrow {
  margin-bottom: 16px;
}

.hero-background h1 {
  margin-bottom: 16px;
}

.hero-background .lead {
  margin-bottom: 24px;
}

.hero-background .hero-actions {
  margin-bottom: 24px;
}

@media (max-width: 1020px) {
  .hero-background .hero-inner {
    min-height: 520px;
    padding-top: 28px;
    padding-bottom: 36px;
  }
}

@media (max-width: 720px) {
  .hero-background .hero-inner {
    min-height: 440px;
    padding-top: 24px;
    padding-bottom: 30px;
  }

  .hero-background .eyebrow {
    margin-bottom: 14px;
  }

  .hero-background h1 {
    margin-bottom: 14px;
  }

  .hero-background .lead,
  .hero-background .hero-actions {
    margin-bottom: 18px;
  }
}

/* v13 — mobile popovers, scroll-to-top and legal dialogs */
.footer-legal-link {
  appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}
.footer-legal-link:hover { color: var(--blue); }

.scroll-top {
  position: fixed;
  z-index: 900;
  right: 24px;
  bottom: 24px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 14px;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 14px 34px rgba(9,18,39,.22);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease, background .2s ease;
}
.scroll-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.scroll-top:hover { background: var(--blue); }

.legal-dialog { width: min(760px, calc(100% - 30px)); }
.legal-modal-content { padding-bottom: clamp(30px, 5vw, 48px); }
.legal-copy { color: var(--muted); font-size: 14px; line-height: 1.7; }
.legal-copy h3 {
  margin: 24px 0 7px;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.3;
}
.legal-copy p { margin: 0 0 12px; }
.legal-copy a { color: var(--blue); text-underline-offset: 2px; }
.legal-updated { margin-top: 26px !important; color: #8a95a6; font-size: 12px; }

@media (hover: none), (pointer: coarse) {
  /* Na dotykovém zařízení se bublina otevírá pouze kliknutím, ne focus/hover stavem. */
  .info-popover-wrap:hover > .info-popover,
  .info-popover-wrap:focus-within > .info-popover,
  .reference-help:hover > .reference-help-popover,
  .reference-help:focus-within > .reference-help-popover,
  .portrait-popover:hover > .portrait-info-popover,
  .portrait-popover:focus-within > .portrait-info-popover {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }

  .info-popover,
  .reference-help-popover,
  .portrait-info-popover {
    position: fixed;
    z-index: 1400;
    left: 16px;
    right: 16px;
    bottom: 18px;
    top: auto;
    width: auto;
    max-width: none;
    max-height: min(56vh, 420px);
    overflow-y: auto;
    padding: 18px 19px;
    border-radius: 18px;
    transform: translateY(18px);
    box-shadow: 0 22px 70px rgba(9, 18, 39, .28);
    -webkit-overflow-scrolling: touch;
  }

  .info-popover-wrap.is-popover-open > .info-popover,
  .reference-help.is-popover-open > .reference-help-popover,
  .portrait-popover.is-popover-open > .portrait-info-popover {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }
}

@media (max-width: 720px) {
  .scroll-top {
    right: 16px;
    bottom: 16px;
    width: 46px;
    height: 46px;
    border-radius: 13px;
  }

  .legal-dialog {
    width: min(100% - 20px, 760px);
    max-height: calc(100dvh - 20px);
    border-radius: 20px;
  }

  .legal-modal-content { padding: 28px 20px 30px; }
  .legal-modal-content h2 { font-size: 30px; }
  .legal-copy { font-size: 14px; }
}
