/* KXS Bay - shared styles */
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/geist-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/geist-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/geist-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/geist-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Geist';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/geist-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

    /* ============ Reset & Tokens ============ */
    *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --navy-950: #04101B;
      --navy-900: #06121C;
      --navy-800: #0A2033;
      --navy-700: #0E2C46;
      --cyan: #29B5E8;
      --cyan-deep: #0E96C7;
      --sky: #BFE7F6;
      --paper: #F4F8FA;
      --white: #FFFFFF;
      --ink: #0A1622;
      --muted: #52697B;
      --line: rgba(10, 22, 34, 0.10);
      --line-light: rgba(255, 255, 255, 0.14);
      --radius: 20px;
      --nav-h: 84px;
      --font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }

    html { scroll-behavior: auto; }
    html.lenis, html.lenis body { height: auto; }
    .lenis.lenis-smooth { scroll-behavior: auto !important; }

    body {
      font-family: var(--font);
      font-weight: 400;
      color: var(--ink);
      background: var(--navy-950);
      line-height: 1.65;
      -webkit-font-smoothing: antialiased;
      overflow-x: hidden;
    }

    img { max-width: 100%; display: block; }
    a { color: inherit; text-decoration: none; }
    ul { list-style: none; }
    button { font-family: inherit; cursor: pointer; }

    ::selection { background: var(--cyan); color: var(--navy-950); }

    /* ============ Typography ============ */
    .label {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      font-size: 0.72rem;
      font-weight: 500;
      letter-spacing: 0.2em;
      text-transform: uppercase;
    }
    .label::before {
      content: "";
      width: 26px; height: 2px;
      background: var(--cyan);
    }

    .h1 {
      font-size: clamp(2.9rem, 7.6vw, 6.9rem);
      font-weight: 650;
      line-height: 0.99;
      letter-spacing: -0.032em;
    }
    .h2 {
      font-size: clamp(2.1rem, 4.4vw, 3.8rem);
      font-weight: 600;
      line-height: 1.05;
      letter-spacing: -0.025em;
    }
    .h3 {
      font-size: clamp(1.2rem, 1.9vw, 1.5rem);
      font-weight: 600;
      letter-spacing: -0.015em;
      line-height: 1.25;
    }
    .lead {
      font-size: clamp(1.02rem, 1.35vw, 1.22rem);
      font-weight: 400;
      line-height: 1.7;
      color: var(--muted);
    }
    .dark .lead { color: rgba(255,255,255,0.66); }

    /* ============ Layout ============ */
    .wrap { width: min(1240px, calc(100% - 48px)); margin-inline: auto; }
    section { position: relative; }

    /* ============ Buttons ============ */
    .btn {
      display: inline-flex;
      align-items: center;
      gap: 12px;
      padding: 17px 30px;
      border-radius: 999px;
      border: 1px solid transparent;
      font-size: 0.95rem;
      font-weight: 550;
      letter-spacing: 0.01em;
      transition: transform .45s cubic-bezier(.22,1,.36,1), box-shadow .45s, background .3s, color .3s, border-color .3s;
      will-change: transform;
    }
    .btn svg { width: 17px; height: 17px; transition: transform .45s cubic-bezier(.22,1,.36,1); }
    .btn:hover svg { transform: translateX(5px); }
    .btn:hover { transform: translateY(-3px); }
    .btn-primary { background: var(--cyan); color: var(--navy-950); }
    .btn-primary:hover { box-shadow: 0 18px 40px -12px rgba(41, 181, 232, 0.55); }
    .btn-ghost { background: rgba(255,255,255,0.92); color: var(--navy-950); }
    .btn-ghost:hover { box-shadow: 0 18px 40px -14px rgba(4, 16, 27, 0.35); }
    .btn-outline { border-color: var(--line); color: var(--ink); background: transparent; }
    .btn-outline:hover { border-color: var(--ink); }

    /* ============ Preloader ============ */
    #loader {
      position: fixed; inset: 0; z-index: 1000;
      display: flex; align-items: center; justify-content: center;
      pointer-events: all;
    }
    #loader .slat {
      position: absolute; top: 0; bottom: 0;
      width: calc(100% / 5 + 1px);
      background: var(--navy-950);
      transform-origin: top center;
    }
    #loader .slat:nth-child(1) { left: 0; }
    #loader .slat:nth-child(2) { left: 20%; }
    #loader .slat:nth-child(3) { left: 40%; }
    #loader .slat:nth-child(4) { left: 60%; }
    #loader .slat:nth-child(5) { left: 80%; }

    .loader-inner {
      position: relative; z-index: 2;
      display: flex; flex-direction: column; align-items: center; gap: 26px;
    }
    .loader-logo { height: 30px; width: auto; opacity: 0; }
    .loader-tag {
      color: rgba(255,255,255,0.5);
      font-size: 0.72rem; font-weight: 500;
      letter-spacing: 0.34em; text-transform: uppercase;
      opacity: 0;
    }
    .loader-bar {
      width: 210px; height: 1px;
      background: rgba(255,255,255,0.14);
      overflow: hidden;
    }
    .loader-bar i {
      display: block; height: 100%; width: 100%;
      background: var(--cyan);
      transform: scaleX(0); transform-origin: left center;
    }
    .loader-count {
      position: absolute; right: 5vw; bottom: 4.5vh; z-index: 2;
      font-size: clamp(4rem, 11vw, 9rem);
      font-weight: 650; letter-spacing: -0.04em; line-height: 1;
      color: var(--white);
      font-variant-numeric: tabular-nums;
    }
    .loader-count sup { font-size: 0.32em; font-weight: 500; color: var(--cyan); vertical-align: super; }

    /* ============ Page transition overlay ============ */
    #transition {
      position: fixed; inset: 0; z-index: 990;
      pointer-events: none; visibility: hidden;
    }
    #transition .slat {
      position: absolute; top: 0; bottom: 0;
      width: calc(100% / 5 + 1px);
      background: var(--navy-950);
      transform: scaleY(0);
      transform-origin: bottom center;
    }
    #transition .slat:nth-child(1) { left: 0; }
    #transition .slat:nth-child(2) { left: 20%; }
    #transition .slat:nth-child(3) { left: 40%; }
    #transition .slat:nth-child(4) { left: 60%; }
    #transition .slat:nth-child(5) { left: 80%; }

    /* ============ Navbar ============ */
    header {
      position: fixed; top: 0; left: 0; right: 0; z-index: 900;
      transition: background .45s ease, box-shadow .45s ease, backdrop-filter .45s ease;
    }
    .nav {
      height: var(--nav-h);
      display: flex; align-items: center; justify-content: space-between;
      gap: 24px;
    }
    .nav-logo img { height: 26px; width: auto; transition: opacity .3s; }
    .nav-logo .logo-dark { display: none; }

    .nav-links {
      display: flex; align-items: center; gap: 38px;
      font-size: 0.92rem; font-weight: 500;
      color: rgba(255,255,255,0.92);
    }
    .nav-links a { position: relative; padding: 6px 0; }
    .nav-links a::after {
      content: ""; position: absolute; left: 0; bottom: 0;
      width: 100%; height: 2px; background: var(--cyan);
      transform: scaleX(0); transform-origin: right center;
      transition: transform .4s cubic-bezier(.22,1,.36,1);
    }
    .nav-links a:hover::after, .nav-links a[aria-current]::after { transform: scaleX(1); transform-origin: left center; }

    .nav-cta { padding: 13px 24px; font-size: 0.88rem; }

    header.scrolled {
      background: rgba(255,255,255,0.86);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
      box-shadow: 0 1px 0 var(--line), 0 14px 40px -24px rgba(4,16,27,.25);
    }
    header.scrolled .nav-links { color: var(--ink); }
    header.scrolled .nav-logo .logo-light { display: none; }
    header.scrolled .nav-logo .logo-dark { display: block; }

    /* Keep header (burger + logo) above the open mobile menu */
    body.menu-open header {
      z-index: 970;
      background: transparent;
      box-shadow: none;
      backdrop-filter: none;
      -webkit-backdrop-filter: none;
    }
    body.menu-open header .nav-logo .logo-light { display: block; }
    body.menu-open header .nav-logo .logo-dark { display: none; }

    /* Burger */
    .burger {
      display: none;
      width: 46px; height: 46px;
      border-radius: 50%;
      border: 1px solid rgba(255,255,255,0.35);
      background: transparent;
      position: relative; z-index: 960;
    }
    .burger span {
      position: absolute; left: 50%; top: 50%;
      width: 20px; height: 2px; background: var(--white);
      transform: translate(-50%, -50%);
      transition: transform .4s, background .3s;
    }
    .burger span:nth-child(1) { transform: translate(-50%, calc(-50% - 4px)); }
    .burger span:nth-child(2) { transform: translate(-50%, calc(-50% + 4px)); }
    header.scrolled .burger { border-color: var(--line); }
    header.scrolled .burger span { background: var(--ink); }
    body.menu-open .burger { border-color: rgba(255,255,255,0.35); }
    body.menu-open .burger span { background: var(--white) !important; }
    body.menu-open .burger span:nth-child(1) { transform: translate(-50%, -50%) rotate(45deg); }
    body.menu-open .burger span:nth-child(2) { transform: translate(-50%, -50%) rotate(-45deg); }

    /* Mobile menu */
    #menu {
      position: fixed; inset: 0; z-index: 950;
      background: var(--navy-950);
      display: flex; flex-direction: column; justify-content: center;
      padding: 0 8vw;
      visibility: hidden;
    }
    #menu a.menu-link {
      display: block;
      font-size: clamp(2.2rem, 9vw, 3.6rem);
      font-weight: 600; letter-spacing: -0.02em;
      color: var(--white);
      padding: 10px 0;
      border-bottom: 1px solid var(--line-light);
    }
    #menu .menu-meta { margin-top: 34px; color: rgba(255,255,255,0.55); font-size: 0.9rem; }
    #menu .menu-meta a { color: var(--cyan); }

    /* ============ Hero ============ */
    .hero {
      position: relative;
      min-height: 100svh;
      display: flex; flex-direction: column; justify-content: center;
      overflow: clip;
      color: var(--white);
      padding: calc(var(--nav-h) + 40px) 0 60px;
    }
    .hero-bg {
      position: absolute; inset: -8% 0;
      z-index: 0;
      transform: scale(1.08);
      will-change: transform;
    }
    .hero-bg img {
      width: 100%; height: 100%;
      object-fit: cover;
      object-position: center;
      display: block;
    }
    .hero-shade {
      position: absolute; inset: 0; z-index: 1;
      background:
        linear-gradient(180deg, rgba(4,16,27,0.42) 0%, rgba(4,16,27,0.08) 32%, rgba(4,16,27,0.14) 62%, rgba(4,16,27,0.62) 100%);
    }
    .hero-content {
      position: relative; z-index: 3;
      text-align: center;
      display: flex; flex-direction: column; align-items: center;
    }
    .hero-badge {
      display: inline-flex; align-items: center; gap: 9px;
      padding: 9px 20px;
      border-radius: 999px;
      background: rgba(255,255,255,0.13);
      border: 1px solid rgba(255,255,255,0.25);
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
      font-size: 0.82rem; font-weight: 500; letter-spacing: 0.06em;
    }
    .hero-badge i {
      width: 7px; height: 7px; border-radius: 50%;
      background: var(--cyan);
      box-shadow: 0 0 12px var(--cyan);
    }
    .hero-title { margin-top: 26px; text-wrap: balance; }
    .hero-title .line { display: block; overflow: hidden; }
    .hero-title .line > span { display: inline-block; will-change: transform; }
    .hero-sub {
      margin-top: 22px;
      max-width: 560px;
      font-size: clamp(1rem, 1.4vw, 1.18rem);
      font-weight: 400;
      color: rgba(255,255,255,0.85);
    }
    .hero-ctas { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
    .hero-checks {
      margin-top: 40px;
      display: flex; gap: 30px; flex-wrap: wrap; justify-content: center;
      font-size: 0.94rem; font-weight: 500;
      color: rgba(255,255,255,0.92);
    }
    .hero-checks li { display: flex; align-items: center; gap: 9px; }
    .hero-checks svg { width: 15px; height: 15px; color: var(--cyan); }

    .hero-stats {
      position: relative; z-index: 3;
      margin-top: clamp(48px, 8vh, 96px);
      display: grid; grid-template-columns: repeat(3, 1fr);
      gap: 20px;
      text-align: center;
      color: var(--white);
    }
    .hero-stats .num {
      font-size: clamp(2.4rem, 5.4vw, 4.4rem);
      font-weight: 650; letter-spacing: -0.03em; line-height: 1;
      font-variant-numeric: tabular-nums;
    }
    .hero-stats .num em { font-style: normal; color: var(--cyan); }
    .hero-stats .cap {
      margin-top: 10px;
      font-size: 0.9rem; font-weight: 450;
      color: rgba(255,255,255,0.78);
    }

    .hero-scrollhint {
      position: absolute; left: 50%; bottom: 26px; z-index: 3;
      transform: translateX(-50%);
      width: 1px; height: 54px;
      background: rgba(255,255,255,0.25);
      overflow: hidden;
    }
    .hero-scrollhint::after {
      content: ""; position: absolute; left: 0; top: -50%;
      width: 100%; height: 50%;
      background: var(--cyan);
      animation: scrollhint 2.2s cubic-bezier(.65,0,.35,1) infinite;
    }
    @keyframes scrollhint { 0% { top: -50%; } 100% { top: 110%; } }

    /* ============ Marquee ============ */
    .marquee {
      background: var(--navy-950);
      color: var(--white);
      padding: 26px 0;
      overflow: hidden;
      border-block: 1px solid var(--line-light);
    }
    .marquee-track {
      display: flex; gap: 64px;
      width: max-content;
      white-space: nowrap;
      will-change: transform;
    }
    .marquee-track span {
      display: inline-flex; align-items: center; gap: 64px;
      font-size: 1rem; font-weight: 500; letter-spacing: 0.05em;
      text-transform: uppercase;
      color: rgba(255,255,255,0.85);
    }
    .marquee-track b { color: var(--cyan); font-weight: 500; }

    /* ============ Light sections base ============ */
    .section { padding: clamp(90px, 12vw, 150px) 0; }
    .light { background: var(--paper); color: var(--ink); }
    .white { background: var(--white); color: var(--ink); }
    .dark { background: var(--navy-950); color: var(--white); }

    .sec-head { max-width: 780px; }
    .sec-head .label { color: var(--cyan-deep); }
    .dark .sec-head .label { color: var(--cyan); }
    .sec-head .h2 { margin-top: 18px; }
    .sec-head .lead { margin-top: 20px; }

    /* ============ Intro / About preview ============ */
    .intro-grid {
      display: grid;
      grid-template-columns: 1.05fr 0.95fr;
      gap: clamp(40px, 6vw, 90px);
      align-items: center;
    }
    .intro-media {
      position: relative;
      border-radius: var(--radius);
      overflow: hidden;
      aspect-ratio: 4 / 4.6;
    }
    .intro-media img {
      width: 100%; height: 118%;
      object-fit: cover;
      will-change: transform;
    }
    .intro-media .media-tag {
      position: absolute; left: 18px; bottom: 18px;
      padding: 12px 20px;
      border-radius: 14px;
      background: rgba(4,16,27,0.55);
      backdrop-filter: blur(12px);
      -webkit-backdrop-filter: blur(12px);
      color: var(--white);
      font-size: 0.85rem; font-weight: 500;
      border: 1px solid rgba(255,255,255,0.16);
    }
    .intro-media .media-tag b { color: var(--cyan); font-weight: 600; }

    .intro-feats { margin-top: 40px; display: grid; gap: 0; }
    .intro-feats li {
      display: flex; gap: 18px; align-items: flex-start;
      padding: 22px 0;
      border-top: 1px solid var(--line);
    }
    .intro-feats .ico {
      flex: 0 0 auto;
      width: 44px; height: 44px;
      border-radius: 12px;
      background: rgba(41,181,232,0.12);
      color: var(--cyan-deep);
      display: grid; place-items: center;
    }
    .intro-feats .ico svg { width: 20px; height: 20px; }
    .intro-feats h3 { font-size: 1.05rem; font-weight: 600; }
    .intro-feats p { margin-top: 4px; font-size: 0.95rem; color: var(--muted); }

    /* ============ Services ============ */
    .svc-grid {
      margin-top: clamp(44px, 6vw, 70px);
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 18px;
    }
    .svc-card {
      position: relative;
      background: var(--white);
      border: 1px solid var(--line);
      border-radius: var(--radius);
      padding: 34px 28px 30px;
      display: flex; flex-direction: column;
      min-height: 320px;
      overflow: hidden;
      transition: transform .5s cubic-bezier(.22,1,.36,1), box-shadow .5s;
      will-change: transform;
    }
    .svc-card:hover { transform: translateY(-8px); box-shadow: 0 30px 60px -30px rgba(4,16,27,0.28); }
    .svc-card::after {
      content: ""; position: absolute; left: 0; right: 0; bottom: 0;
      height: 3px; background: var(--cyan);
      transform: scaleX(0); transform-origin: left center;
      transition: transform .5s cubic-bezier(.22,1,.36,1);
    }
    .svc-card:hover::after { transform: scaleX(1); }
    .svc-num {
      font-size: 0.8rem; font-weight: 550; letter-spacing: 0.14em;
      color: var(--cyan-deep);
    }
    .svc-card .ico {
      margin-top: 22px;
      width: 52px; height: 52px; border-radius: 14px;
      background: var(--navy-950); color: var(--cyan);
      display: grid; place-items: center;
    }
    .svc-card .ico svg { width: 24px; height: 24px; }
    .svc-card h3 { margin-top: 22px; }
    .svc-card p { margin-top: 10px; font-size: 0.93rem; color: var(--muted); flex: 1; }
    .svc-card .more {
      margin-top: 18px;
      font-size: 0.88rem; font-weight: 550;
      color: var(--ink);
      display: inline-flex; align-items: center; gap: 8px;
    }
    .svc-card .more svg { width: 15px; height: 15px; transition: transform .4s; }
    .svc-card:hover .more svg { transform: translateX(4px); }

    /* ============ Process ============ */
    .proc-line {
      margin-top: clamp(50px, 7vw, 80px);
      height: 2px; background: var(--line);
      position: relative;
    }
    .proc-line i {
      position: absolute; inset: 0;
      background: var(--cyan);
      transform: scaleX(0); transform-origin: left center;
    }
    .proc-grid {
      display: grid; grid-template-columns: repeat(4, 1fr);
      gap: 28px;
      margin-top: 40px;
    }
    .proc-step .num {
      font-size: clamp(2.6rem, 4.5vw, 3.6rem);
      font-weight: 300;
      line-height: 1;
      color: transparent;
      -webkit-text-stroke: 1.5px var(--cyan-deep);
    }
    .proc-step h3 { margin-top: 18px; font-size: 1.08rem; font-weight: 600; }
    .proc-step p { margin-top: 8px; font-size: 0.92rem; color: var(--muted); }

    /* ============ Impact (dark) ============ */
    .impact { overflow: clip; }
    .impact-grid {
      display: grid; grid-template-columns: 1fr 1fr;
      gap: clamp(40px, 6vw, 90px);
      align-items: end;
    }
    .impact-stats {
      margin-top: clamp(50px, 7vw, 80px);
      display: grid; grid-template-columns: repeat(4, 1fr);
      gap: 18px;
    }
    .impact-stat {
      border-top: 1px solid var(--line-light);
      padding-top: 26px;
    }
    .impact-stat .num {
      font-size: clamp(2.6rem, 4.8vw, 4rem);
      font-weight: 650; letter-spacing: -0.03em; line-height: 1;
      font-variant-numeric: tabular-nums;
    }
    .impact-stat .num em { font-style: normal; color: var(--cyan); }
    .impact-stat .cap { margin-top: 12px; font-size: 0.92rem; color: rgba(255,255,255,0.62); }
    .impact-bigword {
      position: absolute; left: 0; right: 0; bottom: -0.18em;
      font-size: clamp(6rem, 17vw, 16rem);
      font-weight: 700; letter-spacing: -0.045em; line-height: 1;
      color: rgba(255,255,255,0.04);
      white-space: nowrap;
      pointer-events: none;
      user-select: none;
    }

    /* ============ Projects ============ */
    .proj-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
    .proj-grid {
      margin-top: clamp(44px, 6vw, 70px);
      display: grid; grid-template-columns: repeat(3, 1fr);
      gap: 18px;
    }
    .proj-card {
      position: relative;
      border-radius: var(--radius);
      overflow: hidden;
      aspect-ratio: 3 / 3.8;
      display: flex; align-items: flex-end;
      color: var(--white);
      isolation: isolate;
    }
    .proj-card img {
      position: absolute; inset: 0; z-index: -2;
      width: 100%; height: 100%;
      object-fit: cover;
      transition: transform 1.1s cubic-bezier(.22,1,.36,1);
      will-change: transform;
    }
    .proj-card::after {
      content: ""; position: absolute; inset: 0; z-index: -1;
      background: linear-gradient(180deg, rgba(4,16,27,0) 35%, rgba(4,16,27,0.78) 100%);
      transition: opacity .5s;
    }
    .proj-card:hover img { transform: scale(1.07); }
    .proj-body { padding: 26px; width: 100%; }
    .proj-tag {
      display: inline-block;
      padding: 7px 14px;
      border-radius: 999px;
      background: rgba(255,255,255,0.14);
      border: 1px solid rgba(255,255,255,0.22);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      font-size: 0.75rem; font-weight: 500; letter-spacing: 0.08em;
      text-transform: uppercase;
    }
    .proj-body h3 { margin-top: 14px; font-size: 1.3rem; font-weight: 600; letter-spacing: -0.01em; }
    .proj-body p { margin-top: 6px; font-size: 0.9rem; color: rgba(255,255,255,0.75); }

    /* ============ FAQ ============ */
    .faq-wrap {
      display: grid; grid-template-columns: 0.9fr 1.1fr;
      gap: clamp(40px, 6vw, 90px);
      align-items: start;
    }
    .faq-list { border-top: 1px solid var(--line); }
    .faq-item { border-bottom: 1px solid var(--line); }
    .faq-q {
      width: 100%;
      display: flex; justify-content: space-between; align-items: center; gap: 20px;
      padding: 24px 0;
      background: none; border: 0;
      text-align: left;
      font-size: 1.08rem; font-weight: 600; letter-spacing: -0.01em;
      color: var(--ink);
    }
    .faq-q .x {
      flex: 0 0 auto;
      width: 34px; height: 34px; border-radius: 50%;
      border: 1px solid var(--line);
      display: grid; place-items: center;
      transition: transform .45s cubic-bezier(.22,1,.36,1), background .3s, color .3s;
    }
    .faq-q .x svg { width: 14px; height: 14px; }
    .faq-item.open .faq-q .x { transform: rotate(45deg); background: var(--navy-950); color: var(--cyan); border-color: var(--navy-950); }
    .faq-a { overflow: hidden; height: 0; }
    .faq-a p { padding: 0 0 24px; color: var(--muted); font-size: 0.98rem; max-width: 60ch; }

    /* ============ CTA ============ */
    .cta {
      text-align: center;
      overflow: clip;
    }
    .cta .h1 { text-wrap: balance; }
    .cta .h1 em { font-style: normal; color: var(--cyan); }
    .cta p { margin: 22px auto 0; max-width: 520px; color: rgba(255,255,255,0.66); }
    .cta .btn { margin-top: 40px; }
    .cta-mark {
      width: 74px; height: auto; margin: 0 auto 34px;
      opacity: 0.95;
    }

    /* ============ Footer ============ */
    footer {
      background: var(--navy-950);
      color: rgba(255,255,255,0.72);
      border-top: 1px solid var(--line-light);
      padding: 70px 0 34px;
      font-size: 0.93rem;
    }
    .foot-grid {
      display: grid;
      grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
      gap: 40px;
    }
    .foot-brand img { height: 26px; }
    .foot-brand p { margin-top: 18px; max-width: 34ch; color: rgba(255,255,255,0.55); }
    .foot-col h4 {
      font-size: 0.78rem; font-weight: 550;
      letter-spacing: 0.16em; text-transform: uppercase;
      color: rgba(255,255,255,0.45);
      margin-bottom: 18px;
    }
    .foot-col li { margin-bottom: 11px; }
    .foot-col a { transition: color .3s; }
    .foot-col a:hover { color: var(--cyan); }
    .foot-bottom {
      margin-top: 56px; padding-top: 26px;
      border-top: 1px solid var(--line-light);
      display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
      font-size: 0.84rem; color: rgba(255,255,255,0.42);
    }

    /* ============ Responsive ============ */
    @media (max-width: 1024px) {
      .svc-grid { grid-template-columns: repeat(2, 1fr); }
      .proc-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 28px; }
      .impact-stats { grid-template-columns: repeat(2, 1fr); gap: 34px 18px; }
      .foot-grid { grid-template-columns: 1fr 1fr; }
    }
    @media (max-width: 860px) {
      :root { --nav-h: 72px; }
      .nav-links, .nav-cta { display: none; }
      .burger { display: block; }
      .intro-grid, .faq-wrap, .impact-grid { grid-template-columns: 1fr; }
      .intro-media { order: -1; aspect-ratio: 4 / 3; }
      .proj-grid { grid-template-columns: 1fr; }
      .proj-card { aspect-ratio: 4 / 3.4; }
      .hero-checks { gap: 14px 22px; }
    }
    @media (max-width: 560px) {
      .svc-grid { grid-template-columns: 1fr; }
      .svc-card { min-height: 0; }
      .hero-stats { grid-template-columns: 1fr 1fr; }
      .hero-stats > div:last-child { grid-column: 1 / -1; }
      .proc-grid { grid-template-columns: 1fr; }
      .impact-stats { grid-template-columns: 1fr 1fr; }
      .foot-grid { grid-template-columns: 1fr; }
    }

    /* ============ Reduced motion ============ */
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
      .hero-scrollhint { display: none; }
    }

/* ============ Subpage hero ============ */
.page-hero {
  position: relative;
  background: var(--navy-950);
  color: var(--white);
  padding: calc(var(--nav-h) + clamp(80px, 11vw, 150px)) 0 clamp(64px, 9vw, 120px);
  overflow: clip;
}
.page-hero .h1 {
  font-size: clamp(2.7rem, 6.2vw, 5.4rem);
  max-width: 16ch;
  text-wrap: balance;
}
.page-hero .label { color: var(--cyan); }
.page-hero .h1 { margin-top: 20px; }
.page-hero .lead { margin-top: 24px; max-width: 62ch; color: rgba(255,255,255,0.68); }
.page-hero-img {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  opacity: 0.22;
}
.page-hero-fade {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(4,16,27,0.2) 0%, rgba(4,16,27,0.85) 100%);
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero-stats {
  margin-top: clamp(44px, 6vw, 70px);
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
}
.page-hero-stats .impact-stat { border-top: 1px solid var(--line-light); }

/* ============ About ============ */
.value-grid {
  margin-top: clamp(44px, 6vw, 70px);
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.quote-band {
  border-left: 3px solid var(--cyan);
  padding-left: clamp(24px, 4vw, 48px);
  max-width: 900px;
}
.quote-band p {
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  font-weight: 550; letter-spacing: -0.02em; line-height: 1.35;
}
.quote-band footer { margin-top: 22px; font-size: 0.95rem; color: var(--muted); }
.quote-band footer b { color: var(--ink); font-weight: 600; }
.dark .quote-band footer { color: rgba(255,255,255,0.6); }
.dark .quote-band footer b { color: var(--white); }

/* ============ Services detail rows ============ */
.svc-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5.5vw, 80px);
  align-items: center;
  padding: clamp(50px, 7vw, 90px) 0;
  border-top: 1px solid var(--line);
}
.svc-row:first-of-type { border-top: 0; }
.svc-row .svc-media {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}
.svc-row .svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s cubic-bezier(.22,1,.36,1); }
.svc-row:hover .svc-media img { transform: scale(1.05); }
.svc-row.flip .svc-media { order: 2; }
.svc-row .svc-num { font-size: 0.85rem; }
.svc-row h2 { margin-top: 14px; }
.svc-row .lead { margin-top: 16px; font-size: 1.02rem; }
.tick-list { margin-top: 26px; display: grid; gap: 12px; }
.tick-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 0.97rem; font-weight: 450;
}
.tick-list svg { flex: 0 0 auto; width: 20px; height: 20px; color: var(--cyan-deep); margin-top: 1px; }

/* ============ Contact ============ */
.contact-grid {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(36px, 5vw, 70px);
  align-items: start;
}
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 46px);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.85rem; font-weight: 550; letter-spacing: 0.02em; }
.field label span { color: var(--cyan-deep); }
.field input, .field select, .field textarea {
  font-family: var(--font);
  font-size: 0.97rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 15px 17px;
  outline: none;
  transition: border-color .3s, box-shadow .3s, background .3s;
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2352697B' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 44px;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--cyan);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(41, 181, 232, 0.16);
}
.form-foot { margin-top: 26px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.form-foot .hint { font-size: 0.85rem; color: var(--muted); }
.form-status { width: 100%; font-size: 0.95rem; font-weight: 500; display: none; }
.form-status.ok { display: block; color: #0E8A4C; }
.form-status.err { display: block; color: #C0392B; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.contact-aside {
  background: var(--navy-950);
  color: var(--white);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 42px);
  position: sticky; top: calc(var(--nav-h) + 24px);
}
.contact-aside h3 { font-size: 1.25rem; font-weight: 600; }
.contact-aside .sub { margin-top: 8px; font-size: 0.92rem; color: rgba(255,255,255,0.6); }
.contact-list { margin-top: 30px; display: grid; gap: 0; }
.contact-list li {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 18px 0;
  border-top: 1px solid var(--line-light);
}
.contact-list .ico {
  flex: 0 0 auto;
  width: 42px; height: 42px; border-radius: 12px;
  background: rgba(41,181,232,0.14); color: var(--cyan);
  display: grid; place-items: center;
}
.contact-list .ico svg { width: 19px; height: 19px; }
.contact-list h4 { font-size: 0.8rem; font-weight: 550; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255,255,255,0.45); }
.contact-list p, .contact-list a { margin-top: 3px; font-size: 0.98rem; font-weight: 500; display: block; }
.contact-list a:hover { color: var(--cyan); }

/* ============ Legal pages ============ */
.legal-wrap { max-width: 860px; margin-inline: auto; }
.legal-meta {
  display: inline-block;
  padding: 8px 18px;
  border-radius: 999px;
  background: rgba(41,181,232,0.12);
  color: var(--cyan-deep);
  font-size: 0.8rem; font-weight: 550; letter-spacing: 0.05em;
}
.legal-body { margin-top: 30px; }
.legal-body h2 {
  margin-top: 2.4em;
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 600; letter-spacing: -0.015em;
  line-height: 1.3;
}
.legal-body h3 { margin-top: 1.6em; font-size: 1.05rem; font-weight: 600; }
.legal-body p { margin-top: 0.9em; color: var(--muted); font-size: 0.97rem; }
.legal-body ul { margin-top: 0.9em; padding-left: 1.3em; }
.legal-body ul li { list-style: disc; color: var(--muted); font-size: 0.97rem; margin-top: 0.45em; }
.legal-body a { color: var(--cyan-deep); font-weight: 500; word-break: break-word; }
.legal-body a:hover { text-decoration: underline; }
.legal-body strong { color: var(--ink); font-weight: 600; }
.legal-block {
  margin-top: 1.2em;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px 26px;
  font-size: 0.97rem;
  line-height: 1.8;
}

/* ============ Subpage responsive ============ */
@media (max-width: 1024px) {
  .value-grid { grid-template-columns: 1fr; }
  .value-grid .svc-card { min-height: 0; }
}
@media (max-width: 860px) {
  .svc-row, .contact-grid { grid-template-columns: 1fr; }
  .svc-row.flip .svc-media { order: 0; }
  .contact-aside { position: static; }
  .page-hero-stats { grid-template-columns: 1fr 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}
