@font-face { font-family: 'Comfortaa'; src: url('../fonts/Comfortaa-Light.ttf') format('truetype'); font-weight: 300; font-display: swap; }
  @font-face { font-family: 'Comfortaa'; src: url('../fonts/Comfortaa-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
  @font-face { font-family: 'Comfortaa'; src: url('../fonts/Comfortaa-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
  @font-face { font-family: 'Comfortaa'; src: url('../fonts/Comfortaa-SemiBold.ttf') format('truetype'); font-weight: 600; font-display: swap; }
  @font-face { font-family: 'Comfortaa'; src: url('../fonts/Comfortaa-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
  html { scroll-behavior: smooth; }
  body { margin: 0; background: rgb(239,241,247); font-family: 'Comfortaa', sans-serif; }
  section[id] { scroll-margin-top: 84px; }
  @media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
  * { box-sizing: border-box; }
  a { color: rgb(10,10,10); text-decoration: none; }
  a:hover { color: rgb(232,67,10); }
  ::selection { background: rgba(232,67,10,0.25); }
  @keyframes revealUp { from { opacity: 0; transform: translateY(38px); } to { opacity: 1; transform: translateY(0); } }
  @keyframes revealLeft { from { opacity: 0; transform: translateX(-40px); } to { opacity: 1; transform: translateX(0); } }
  @keyframes revealRight { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: translateX(0); } }
  @keyframes lineGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
  @keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(9px); } }
  @keyframes blobDrift { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(-30px,26px) scale(1.07); } }
  @keyframes orbSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
  .rv, .rvL, .rvR, .pop, .wordrise, .stepdot, .rule {
    opacity: 0;
    transition: opacity .85s cubic-bezier(.2,.8,.2,1), transform .95s cubic-bezier(.16,.9,.24,1);
    transition-delay: var(--d, 0ms);
    will-change: opacity, transform;
  }
  .rv { transform: translateY(34px); }
  .rvL { transform: translateX(-40px); }
  .rvR { transform: translateX(40px); }
  .pop { transform: translateY(46px) scale(0.82) rotate(-5deg); }
  .wordrise { display: inline-block; transform: translateY(72px) scale(0.94); }
  .stepdot { transform: scale(0.2); }
  .rule { transform-origin: left center; transform: scaleX(0); }
  .rv.in, .rvL.in, .rvR.in, .pop.in, .wordrise.in, .stepdot.in, .rule.in { opacity: 1; transform: none; }
  .lift { transition: transform .4s cubic-bezier(.2,.7,.2,1), box-shadow .4s ease; }
  .lift:hover { transform: translateY(-8px); box-shadow: 0 30px 60px -30px rgba(0,0,0,0.28); }
  @keyframes popIn { from { opacity: 0; transform: translateY(46px) scale(0.82) rotate(-5deg); } to { opacity: 1; transform: translateY(0) scale(1) rotate(0deg); } }
  .pop { animation: popIn 0.85s cubic-bezier(.22,1.1,.32,1) both; animation-timeline: view(); animation-range: entry 6% cover 40%; }
  .pop-d1 { --d: 130ms; }
  .pop-d2 { --d: 260ms; }
  .pop-d3 { --d: 390ms; }
  /* showcase scales off one fluid unit so words and photos can never collide */
  .wordsec { height: clamp(420px, 62vw, 920px); }
  .wordsec .wordrise { font-size: clamp(58px, 13.6vw, 200px); line-height: 1.1; letter-spacing: -0.03em; }
  .pop { width: clamp(96px, 13vw, 186px); height: clamp(88px, 11.9vw, 170px); }
  .wordA { left: clamp(12px, 1.6vw, 16px); top: clamp(10px, 2.4vw, 22px); }
  .wordB { right: 0; bottom: clamp(28px, 8vw, 180px); }
  .pop-a { left: 34%; top: 26%; }
  .pop-b { right: 6%; top: 20%; }
  .pop-c { left: 57%; top: 46%; }
  .pop-d { left: 8%; top: 52%; }
  @media (max-width: 900px) {
    .pop-a { left: auto; right: 5%; top: 22%; }
    .pop-d { left: 6%; top: 50%; }
    .pop-extra { display: none; }
  }
  @media (max-width: 560px) {
    .wordsec { height: clamp(360px, 78vw, 460px); }
    .pop-a { right: 4%; top: 20%; }
    .pop-d { left: 5%; top: 52%; }
  }

  /* ---------- spline: never a scroll trap ---------- */
  spline-viewer, spline-viewer canvas { pointer-events: none !important; touch-action: pan-y !important; }
  .heroart { touch-action: pan-y; }
/* mobile: no 3D scene at all — the hero is text only */
@media (max-width: 860px) { .heroart { display: none !important; } }


  /* ---------- partner marquee ---------- */
  @keyframes ptmove { from { transform: translate3d(0,0,0); } to { transform: translate3d(-50%,0,0); } }
  .pttrack { animation: ptmove 42s linear infinite; }
  .ptviewport:hover .pttrack { animation-play-state: paused; }
  /* Fixed box per logo: the two passes must measure identically or Safari's
     translate3d(-50%) lands mid-gap and leaves a hole. Intrinsic image widths
     cannot be trusted for that (they differ, and arrive asynchronously). */
  .ptlogo { width: clamp(120px, 13vw, 190px); height: clamp(38px, 4.4vw, 58px); }
  .ptlogo img {
    max-height: 100%; max-width: 100%; width: auto; height: auto; object-fit: contain;
    filter: grayscale(1); opacity: 0.55;
    transition: filter .45s ease, opacity .45s ease, transform .45s cubic-bezier(.2,.8,.2,1);
  }
  .pttrack { will-change: transform; backface-visibility: hidden; }
  .ptlogo:hover img { filter: grayscale(0); opacity: 1; transform: scale(1.06); }
  @media (prefers-reduced-motion: reduce) { .pttrack { animation: none; } }
  @media (max-width: 640px) { .pttrack { animation-duration: 28s; } }

  /* ---------- form validation ---------- */
  .field.invalid input, .field.invalid textarea, .field.invalid select { border-bottom-color: #d93025 !important; }
  .field.invalid .phonewrap { border-bottom-color: #d93025; }
  .fielderr { font-family: 'Comfortaa', sans-serif; font-size: 12.5px; font-weight: 500; color: #d93025; letter-spacing: 0; text-transform: none; min-height: 0; }
  .formerr { font-family: 'Comfortaa', sans-serif; font-size: 14px; font-weight: 600; color: #d93025; background: rgba(217,48,37,0.07); border-radius: 10px; padding: 12px 16px; margin-bottom: 20px; }
  .submitbtn[disabled] { opacity: 0.55; cursor: progress; }
  @keyframes wordRise { from { opacity: 0; transform: translateY(72px) scale(0.94); } to { opacity: 1; transform: translateY(0) scale(1); } }
  .wordrise-b { --d: 160ms; }
  .popmove { transition: transform .5s cubic-bezier(.2,.8,.2,1); will-change: transform; }
  .valrow { transition: padding-left .35s ease; }
  .valrow:hover { padding-left: 40px; }
  .projrow { transition: padding-left .45s cubic-bezier(.2,.8,.2,1), background .45s ease; }
  .projrow:hover { padding-left: 28px; background: rgba(255,255,255,0.09); }
  .projrow:hover .projnum { color: rgb(255,255,255); }
  .projrow:hover .projlogo { transform: scale(1.06); }
  .projlogo { transition: transform .5s cubic-bezier(.2,.8,.2,1); }
  .projnum { transition: color .4s ease; }
  @media (max-width: 820px) { .projrow { grid-template-columns: 1fr !important; gap: 16px !important; } }
  .ldrow { transition: background .5s ease; }
  .ldrow:hover { background: rgba(232,67,10,0.05); }
  .ldrow:hover .ldphoto { filter: grayscale(0); transform: scale(1.06); }
  .ldrow:hover .ldindex { color: rgb(232,67,10); }
  .ldphoto { filter: grayscale(1); transition: filter .55s ease, transform .55s cubic-bezier(.2,.8,.2,1); }
  .ldindex { transition: color .45s ease; }
  @keyframes pxDown { from { transform: translateY(-70px); } to { transform: translateY(70px); } }
  @keyframes pxUp { from { transform: translateY(40px); } to { transform: translateY(-40px); } }
  @keyframes pxRight { from { transform: translateX(0); } to { transform: translateX(90px); } }
  @keyframes pxLeft { from { transform: translateX(-90px); } to { transform: translateX(0); } }
  @keyframes pxBg { from { transform: translateY(-80px) scale(1.08); } to { transform: translateY(80px) scale(1.08); } }
  .px { will-change: transform; }
  @media (max-width: 800px) { .ldgrid { grid-template-columns: 1fr !important; gap: 18px !important; } }
  .navlinks { display: flex; align-items: center; gap: 30px; }
  .navlinks a { white-space: nowrap; }
  @media (max-width: 1080px) { .navlinks, .navcontact { display: none; } }
  @media (max-width: 1000px) { .split { grid-template-columns: 1fr !important; } .lead { flex-direction: column !important; text-align: left !important; } }
  @media (max-width: 1240px) { .herogrid { grid-template-columns: 1fr !important; } .heroart { height: 620px !important; } }
  @keyframes assemble { from { opacity: 0; transform: translateY(64px) scale(0.965); } to { opacity: 1; transform: translateY(0) scale(1); } }
  .valrow:nth-of-type(2), .projrow:nth-of-type(2), .ldrow:nth-of-type(2), .stepitem:nth-of-type(2), .ctacell:nth-of-type(2) { --d: 110ms; }
  .valrow:nth-of-type(3), .projrow:nth-of-type(3), .ldrow:nth-of-type(3), .stepitem:nth-of-type(3), .ctacell:nth-of-type(3) { --d: 220ms; }
  .projrow:nth-of-type(4), .ldrow:nth-of-type(4), .stepitem:nth-of-type(4), .ctacell:nth-of-type(4) { --d: 330ms; }
  .stepitem:nth-of-type(5) { --d: 440ms; }
  .stepitem:nth-of-type(6) { --d: 550ms; }
  @media (prefers-reduced-motion: reduce) {
    .rv, .rvL, .rvR, .pop, .wordrise, .stepdot, .rule, .px { transition: none !important; opacity: 1 !important; transform: none !important; }
  }
  .projlogo { width: 100%; height: 100%; max-width: 150px; }
  .projplate { transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s ease; }
  .projrow:hover .projplate { transform: translateY(-4px) scale(1.03); box-shadow: 0 20px 44px -18px rgba(60,12,0,0.55); }
  .ctacell { transition: background .45s ease, padding-left .45s ease; }
  a.ctacell:hover { background: rgba(255,255,255,0.045); }
  a.ctacell:hover .ctaval { color: rgb(234,111,47); }
  .ctaval { transition: color .4s ease; }
  .ctabtn { transition: background .35s ease, transform .35s cubic-bezier(.2,.8,.2,1); }
  .ctabtn:hover { background: rgb(255,255,255); color: rgb(20,20,24); transform: translateY(-3px); }
  .ctabtn:hover .ctaarrow { transform: translateX(5px); }
  .ctaarrow { transition: transform .35s ease; }
  @media (max-width: 860px) { .ctagrid { grid-template-columns: 1fr !important; } .ctacell { border-right: none !important; padding-left: 0 !important; padding-right: 0 !important; } }
  @media (max-width: 1240px) { nav { padding-left: 32px !important; padding-right: 32px !important; } .herogrid { padding-left: 32px !important; padding-right: 32px !important; } .heroart { margin-right: 0 !important; } .herotext { padding-left: 0 !important; } }
  .herotext a, .herotext button { pointer-events: auto; }
  @media (max-width: 1240px) { .herotext h1 { max-width: 100% !important; width: auto !important; letter-spacing: -1.6px !important; } }
  .navsentinel { position: absolute; top: 0; left: 0; width: 1px; height: 100px; pointer-events: none; opacity: 0; }
  .nav { background: rgba(247,248,252,0); border-bottom: 1px solid rgba(17,17,17,0); box-shadow: 0 1px 24px -12px rgba(17,17,17,0); backdrop-filter: blur(0px) saturate(100%); -webkit-backdrop-filter: blur(0px) saturate(100%); transition: background .4s ease, backdrop-filter .4s ease, -webkit-backdrop-filter .4s ease, border-bottom-color .4s ease, box-shadow .4s ease; }
  .nav.is-stuck { background: rgba(247,248,252,0.62); border-bottom-color: rgba(17,17,17,0.07); box-shadow: 0 2px 30px -14px rgba(17,17,17,0.2); backdrop-filter: blur(22px) saturate(180%); -webkit-backdrop-filter: blur(22px) saturate(180%); }
  @media (hover: none) { .projbg { background-attachment: scroll !important; } }
  spline-viewer { width: 100%; height: 100%; display: block; }
  .splineholder { background: transparent; }
  .loader { position: fixed; inset: 0; z-index: 999; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; background: rgb(239,241,247); transition: opacity .6s ease, visibility .6s ease; }
  .loader.done { opacity: 0; visibility: hidden; }
  .loaderbar { width: 168px; height: 2px; border-radius: 2px; background: rgba(17,17,17,0.1); overflow: hidden; }
  .loaderbar span { display: block; height: 100%; width: 40%; border-radius: 2px; background: rgb(232,67,10); animation: loadSlide 1.15s cubic-bezier(.5,0,.5,1) infinite; }
  @keyframes loadSlide { 0% { transform: translateX(-105%); } 100% { transform: translateX(320%); } }

  /* ---------- mobile drawer ---------- */
  .burger span { display: block; width: 22px; height: 2px; border-radius: 2px; background: rgb(17,17,17); transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .25s ease; }
  .burger span + span { margin-top: 5px; }
  .drawer { position: fixed; inset: 0; z-index: 210; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: rgba(247,248,252,0.97); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility .4s ease; }
  .drawer.open { opacity: 1; visibility: visible; }
  .drawer a { font-family: 'Comfortaa', sans-serif; font-weight: 700; font-size: clamp(26px,6vw,40px); letter-spacing: -1px; color: rgb(17,17,17); padding: 12px 20px; opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s cubic-bezier(.2,.8,.2,1), color .25s ease; }
  .drawer.open a { opacity: 1; transform: none; }
  .drawer.open a:nth-child(1) { transition-delay: 60ms; }
  .drawer.open a:nth-child(2) { transition-delay: 120ms; }
  .drawer.open a:nth-child(3) { transition-delay: 180ms; }
  .drawer.open a:nth-child(4) { transition-delay: 240ms; }
  .drawer.open a:nth-child(5) { transition-delay: 300ms; color: rgb(232,67,10); }
  @media (max-width: 1080px) { .burger { display: block !important; } }

  /* ---------- consultation modal ---------- */
  .modal { position: fixed; inset: 0; z-index: 400; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(12,12,16,0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity .35s ease, visibility .35s ease; overflow-y: auto; }
  .modal.open { opacity: 1; visibility: visible; }
  .modalpanel { position: relative; width: 100%; max-width: 860px; max-height: calc(100vh - 48px); overflow-y: auto; background: rgb(255,255,255); border-radius: 32px; padding: clamp(32px,4.4vw,64px); transform: translateY(28px) scale(0.985); transition: transform .45s cubic-bezier(.2,.9,.25,1); box-shadow: 0 50px 110px -40px rgba(12,12,16,0.6); }
  .modal.open .modalpanel { transform: none; }
  .modalx { position: absolute; top: 22px; right: 24px; width: 40px; height: 40px; border-radius: 50%; border: none; cursor: pointer; background: rgba(17,17,17,0.05); color: rgb(90,90,95); font-size: 22px; line-height: 1; transition: background .3s ease, color .3s ease; }
  .modalx:hover { background: rgb(232,67,10); color: #fff; }
  .fieldgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }
  .field { display: flex; flex-direction: column; gap: 9px; position: relative; min-width: 0; }
  .field.full { grid-column: 1 / -1; }
  .field > span { font-family: 'Comfortaa', sans-serif; font-weight: 700; font-size: 12px; letter-spacing: 1.1px; text-transform: uppercase; color: rgb(120,120,126); }
  .field input, .field select, .field textarea, .countrybtn {
    width: 100%; font-family: 'Comfortaa', sans-serif; font-weight: 500; font-size: 15.5px; color: rgb(17,17,17);
    background: transparent; border: none; border-bottom: 1.5px solid rgb(224,224,230); border-radius: 0;
    padding: 12px 2px; transition: border-color .3s ease; outline: none; -webkit-appearance: none; appearance: none;
  }
  .field textarea { resize: vertical; line-height: 1.6; }
  .field input::placeholder, .field textarea::placeholder { color: rgb(178,178,186); font-weight: 400; }
  .field input:focus, .field select:focus, .field textarea:focus, .countrybtn:focus { border-bottom-color: rgb(232,67,10); }
  .field select { cursor: pointer; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round'/></svg>") right 4px center no-repeat; }
  .phonewrap { display: flex; align-items: center; gap: 10px; border-bottom: 1.5px solid rgb(224,224,230); transition: border-color .3s ease; }
  .phonewrap:focus-within { border-bottom-color: rgb(232,67,10); }
  .phonewrap .dial { font-family: 'Comfortaa', sans-serif; font-weight: 700; font-size: 15.5px; color: rgb(100,100,105); white-space: nowrap; padding-bottom: 1px; }
  .phonewrap input { border-bottom: none !important; padding-left: 0; }
  .countrybtn { display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; text-align: left; }
  .countrypop { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 20; background: #fff; border-radius: 16px; box-shadow: 0 26px 60px -22px rgba(12,12,16,0.35); border: 1px solid rgba(17,17,17,0.07); overflow: hidden; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .25s ease, transform .25s ease, visibility .25s ease; }
  .countrypop.open { opacity: 1; visibility: visible; transform: none; }
  .countrysearch { width: 100%; border: none !important; border-bottom: 1px solid rgb(235,235,240) !important; padding: 14px 18px !important; font-family: 'Comfortaa', sans-serif; font-size: 14.5px; outline: none; }
  .countrylist { max-height: 232px; overflow-y: auto; }
  .countryopt { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; border: none; background: transparent; cursor: pointer; padding: 11px 18px; font-family: 'Comfortaa', sans-serif; font-weight: 500; font-size: 14.5px; color: rgb(17,17,17); text-align: left; transition: background .2s ease; }
  .countryopt:hover { background: rgba(232,67,10,0.07); }
  .modalfoot { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 38px; padding-top: 30px; border-top: 1px solid rgb(235,235,240); }
  .submitbtn { display: inline-flex; align-items: center; gap: 12px; border: none; cursor: pointer; border-radius: 100px; background: rgb(17,17,17); color: #fff; padding: 19px 38px; font-family: 'Comfortaa', sans-serif; font-weight: 700; font-size: 15.5px; transition: background .3s ease, transform .3s cubic-bezier(.2,.8,.2,1); }
  .submitbtn:hover { background: rgb(232,67,10); transform: translateY(-2px); }
  .submitbtn span { transition: transform .3s ease; }
  .submitbtn:hover span { transform: translateX(5px); }
  @media (max-width: 680px) { .fieldgrid { grid-template-columns: 1fr; } .modalpanel { border-radius: 24px; } }

  /* ---------- responsive polish ---------- */
  @media (max-width: 1240px) {
    .herogrid { padding-top: 120px !important; gap: 40px !important; }
    .heroart { height: 560px !important; min-height: 0 !important; margin-left: 0 !important; }
    .herotext { margin-top: 0 !important; }
  }
  @media (max-width: 900px) {
    section[id] { scroll-margin-top: 72px; }
    .nav { height: 64px !important; padding-left: 22px !important; padding-right: 22px !important; }
    .herogrid { padding: 104px 22px 0 !important; }
    .heroart { height: 420px !important; }
    #who { padding: 72px 22px 50px !important; }
    #leadership { padding: 68px 22px !important; }
    #trust { padding: 84px 22px 90px !important; }
    #projects > div { border-radius: 34px !important; padding: 76px 22px 84px !important; }
    #contact > div { border-radius: 34px !important; }
    .valrow { grid-template-columns: 54px 1fr !important; gap: 18px !important; padding: 26px 0 !important; }
    .valrow > div:last-child { display: none !important; }
    .valrow:hover { padding-left: 0 !important; }
    .ldgrid { grid-template-columns: 96px 1fr !important; gap: 20px !important; padding: 26px 0 !important; }
    .ldgrid > div:first-child { display: none !important; }
    .ldphoto { width: 96px !important; height: 96px !important; }
    .projrow { grid-template-columns: 1fr !important; gap: 18px !important; padding: 28px 0 !important; }
    .projrow > div:first-child { display: none !important; }
    .projplate { max-width: 190px; }
    .footerword { font-size: clamp(30px,10vw,64px) !important; }
    footer { padding-left: 22px !important; padding-right: 22px !important; }
  }
  @media (max-width: 560px) {
    .heroart { height: 320px !important; }
    .modal { padding: 12px; }
    .modalpanel { padding: 30px 22px 34px; max-height: calc(100vh - 24px); }
    .modalx { top: 14px; right: 14px; }
    .submitbtn { width: 100%; justify-content: center; }
    .modalfoot { gap: 14px; }
  }
