  :root {
    --bg: #FAFBFC;
    --bg-alt: #F1F4F7;
    --panel: #FFFFFF;
    --ink: #0F2540;
    --ink-soft: #45566C;
    --line: #E1E7EC;
    --line-strong: #C7D0D8;
    --primary: #1A4E8A;
    --primary-dark: #123863;
    --primary-tint: #EAF1F8;
    --accent: #00A896;
    --accent-bright: #00BFAE;
    --accent-tint: #E4F8F5;
    --silver: #C0C0C0;
    --radius-s: 6px;
    --radius-m: 10px;
    --font-display: "Space Grotesk", "Segoe UI", sans-serif;
    --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
    --font-mono: "IBM Plex Mono", "SFMono-Regular", monospace;
    --maxw: 1160px;
  }

  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg: #0B1622;
      --bg-alt: #0F1E2E;
      --panel: #101F30;
      --ink: #E9EFF5;
      --ink-soft: #A9B9C9;
      --line: #1E2F42;
      --line-strong: #2A3E54;
      --primary: #5B93CE;
      --primary-dark: #8AB4E0;
      --primary-tint: #142A40;
      --accent: #3FD4C1;
      --accent-bright: #3FD4C1;
      --accent-tint: #103430;
      --silver: #7C8994;
    }
  }
  :root[data-theme="dark"] {
    --bg: #0B1622;
    --bg-alt: #0F1E2E;
    --panel: #101F30;
    --ink: #E9EFF5;
    --ink-soft: #A9B9C9;
    --line: #1E2F42;
    --line-strong: #2A3E54;
    --primary: #5B93CE;
    --primary-dark: #8AB4E0;
    --primary-tint: #142A40;
    --accent: #3FD4C1;
    --accent-bright: #3FD4C1;
    --accent-tint: #103430;
    --silver: #7C8994;
  }

  * { box-sizing: border-box; }
  html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(76px + env(safe-area-inset-top, 0px));
  }
  @media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  img, svg { max-width: 100%; display: block; }
  a { color: inherit; }
  .wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
  h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -0.01em; }
  p { margin: 0; }
  .lede { color: var(--ink-soft); }

  /* ---------- Header ---------- */
  header.site {
    position: sticky;
    top: 0;
    z-index: 50;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    padding-top: env(safe-area-inset-top, 0px);
  }
  .nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 76px;
  }
  .brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; text-decoration: none; color: var(--ink); }
  .brand svg { width: 30px; height: 22px; }
  nav.links { display: flex; align-items: center; gap: 30px; }
  nav.links a {
    text-decoration: none;
    color: var(--ink-soft);
    font-size: 0.94rem;
    font-weight: 500;
    padding: 6px 2px;
    border-bottom: 2px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
  }
  nav.links a:hover { color: var(--ink); border-bottom-color: var(--accent-bright); }
  /* The page you are on keeps the underline, even when the mouse moves away */
  nav.links a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent-bright); }
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.94rem;
    padding: 12px 22px;
    border-radius: var(--radius-s);
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  }
  .btn:active { transform: translateY(1px); }
  .btn-primary { background: var(--primary); color: #fff; }
  .btn-primary:hover { background: var(--primary-dark); }
  .btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
  .btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
  .btn-accent { background: var(--accent-bright); color: #06322D; }
  .btn-accent:hover { filter: brightness(0.95); }
  .nav-cta { display: none; }
  @media (min-width: 900px) { .nav-cta { display: inline-flex; } }

  .menu-toggle {
    display: inline-flex;
    background: none;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-s);
    width: 42px; height: 42px;
    align-items: center; justify-content: center;
    cursor: pointer;
  }
  .menu-toggle span { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; }
  .menu-toggle span::before, .menu-toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); transition: transform 0.2s ease; }
  .menu-toggle span::before { top: -6px; }
  .menu-toggle span::after { top: 6px; }
  @media (min-width: 900px) { .menu-toggle { display: none; } nav.links { display: flex; } }
  @media (max-width: 899px) {
    nav.links {
      position: fixed; inset: 76px 0 auto 0; z-index: 49;
      background: var(--bg); border-bottom: 1px solid var(--line);
      flex-direction: column; align-items: flex-start; gap: 0;
      padding: 8px 28px 20px; transform: translateY(-8px); opacity: 0; pointer-events: none;
      transition: opacity 0.18s ease, transform 0.18s ease;
    }
    nav.links.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
    nav.links a { width: 100%; padding: 13px 0; border-bottom: 1px solid var(--line); }
    nav.links .nav-cta-mobile { margin-top: 10px; width: 100%; }
  }

  /* ---------- Section scaffolding ---------- */
  section { padding: 88px 0; }
  section.alt { background: var(--bg-alt); }
  @media (max-width: 640px) { section { padding: 60px 0; } .wrap { padding: 0 20px; } }
  .section-head { max-width: 640px; margin-bottom: 44px; }
  .section-head h2 { font-size: clamp(1.7rem, 3.2vw, 2.35rem); }
  .section-head p { margin-top: 14px; font-size: 1.05rem; }
  .kicker { color: var(--primary); font-weight: 600; font-size: 0.85rem; margin-bottom: 10px; }

  /* ---------- Hero ---------- */
  .hero { padding: 64px 0 90px; overflow: hidden; }
  .hero-grid { display: grid; grid-template-columns: 1fr; gap: 52px; align-items: center; }
  @media (min-width: 980px) { .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 40px; } }
  .hero h1 { font-size: clamp(2.3rem, 5vw, 3.5rem); max-width: 15ch; }
  .hero .lede { font-size: 1.15rem; max-width: 46ch; margin-top: 20px; }
  .hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
  .hero-visual { position: relative; }
  .hero-visual svg { width: 100%; height: auto; }
  .bridge-name { text-align: center; font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4vw, 2.8rem); color: var(--primary); letter-spacing: -0.01em; margin-top: 6px; line-height: 1.1; }
  .bridge-tag { text-align: center; font-family: var(--font-display); font-weight: 500; font-size: 1.05rem; color: var(--ink-soft); margin-top: 4px; }

  .node-label { font-family: var(--font-mono); font-size: 11.5px; fill: var(--ink-soft); letter-spacing: 0.02em; }
  .node-dot { fill: var(--panel); stroke: var(--primary); stroke-width: 2.5; }
  .node-dot.accent { stroke: var(--accent-bright); }
  .stay-line { stroke: var(--line-strong); stroke-width: 1.4; fill: none; }
  .cable-path { stroke: var(--primary); stroke-width: 2; fill: none; stroke-linecap: round; }
  .deck-line { stroke: var(--ink-soft); stroke-width: 1.6; fill: none; opacity: 0.55; }

  #bridgeDraw .draw {
    stroke-dasharray: 900;
    stroke-dashoffset: 900;
    animation: drawline 1.5s ease forwards;
  }
  #bridgeDraw .fadeIn { opacity: 0; animation: fadein 0.6s ease forwards; }
  #bridgeDraw .d1 { animation-delay: 0.05s; }
  #bridgeDraw .d2 { animation-delay: 0.5s; }
  #bridgeDraw .d3 { animation-delay: 0.9s; }
  #bridgeDraw .d4 { animation-delay: 1.25s; }
  @keyframes drawline { to { stroke-dashoffset: 0; } }
  @keyframes fadein { to { opacity: 1; } }
  @media (prefers-reduced-motion: reduce) {
    #bridgeDraw .draw { stroke-dashoffset: 0; animation: none; }
    #bridgeDraw .fadeIn { opacity: 1; animation: none; }
  }

  /* ---------- Intro ---------- */
  .intro { text-align: center; }
  .intro .inner { max-width: 700px; margin: 0 auto; }
  .intro h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
  .intro p { margin-top: 18px; font-size: 1.1rem; color: var(--ink-soft); }

  /* ---------- Services ---------- */
  .services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
  .service-card {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-m);
    padding: 30px 26px; display: flex; flex-direction: column; gap: 16px;
    transition: border-color 0.18s ease, transform 0.18s ease;
  }
  .service-card:hover { border-color: var(--primary); transform: translateY(-3px); }
  .service-icon { width: 46px; height: 46px; }
  .service-card h3 { font-size: 1.12rem; }
  .service-card p.desc { color: var(--ink-soft); font-size: 0.96rem; flex-grow: 1; }
  .service-link { font-size: 0.92rem; font-weight: 600; color: var(--primary); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
  .service-link svg { width: 14px; height: 14px; transition: transform 0.15s ease; }
  .service-link:hover svg { transform: translateX(3px); }

  /* ---------- Why ---------- */
  .principles-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
  @media (min-width: 720px) { .principles-grid { grid-template-columns: 1fr 1fr; } }
  .principle { background: var(--panel); padding: 30px 28px; }
  .principle h3 { font-size: 1.08rem; margin-bottom: 8px; }
  .principle p { color: var(--ink-soft); font-size: 0.96rem; }

  /* ---------- Process ---------- */
  .process-rail { position: relative; }
  .process-list { display: grid; grid-template-columns: 1fr; gap: 0; }
  @media (min-width: 900px) { .process-list { grid-template-columns: repeat(5, 1fr); gap: 18px; } }
  .process-step { position: relative; padding: 24px 0 24px 44px; border-left: 2px solid var(--line-strong); }
  @media (min-width: 900px) { .process-step { padding: 0 0 0 0; border-left: none; border-top: 2px solid var(--line-strong); padding-top: 22px; } }
  .process-step .num { font-family: var(--font-mono); color: var(--accent); font-size: 0.85rem; font-weight: 500; position: absolute; left: -9px; top: 24px; background: var(--bg); width: 18px; text-align:center; }
  @media (min-width: 900px) { .process-step .num { left: 0; top: -11px; background: var(--bg); width: auto; padding-right: 8px; } .process-step.alt-bg .num { background: var(--bg-alt); } }
  .process-step h3 { font-size: 1.03rem; margin-top: 6px; margin-bottom: 8px; }
  .process-step p { color: var(--ink-soft); font-size: 0.92rem; }

  /* ---------- Solutions ---------- */
  .tag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
  .tag-card {
    border: 1px solid var(--line); border-radius: var(--radius-s); padding: 18px 18px;
    background: var(--panel); font-size: 0.96rem; font-weight: 500;
    display: flex; align-items: center; gap: 12px;
  }
  .tag-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent-bright); flex-shrink: 0; }
  .solutions-note { margin-top: 20px; font-size: 0.88rem; color: var(--ink-soft); }

  /* ---------- Industries ---------- */
  .industries-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
  .industry-item { background: var(--panel); padding: 22px 22px; font-weight: 500; font-size: 0.98rem; display: flex; align-items: center; gap: 12px; }
  .industry-item svg { width: 20px; height: 20px; color: var(--primary); flex-shrink: 0; }

  /* ---------- About / brand story ---------- */
  .about-grid { display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
  @media (min-width: 940px) { .about-grid { grid-template-columns: 1.1fr 0.8fr; } }
  .about-copy h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 18px; }
  .about-copy p { color: var(--ink-soft); font-size: 1.02rem; margin-bottom: 14px; }
  .about-copy p strong { color: var(--ink); }
  .vbridge { justify-self: center; }
  .vbridge svg { width: 220px; }

  /* ---------- Capabilities ---------- */
  .cap-split { display: grid; grid-template-columns: 1fr; gap: 28px; }
  @media (min-width: 860px) { .cap-split { grid-template-columns: 1fr auto 1fr; align-items: start; } }
  .cap-col h3 { font-size: 1.05rem; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
  .cap-col.digital h3 { color: var(--primary); }
  .cap-col.eng h3 { color: var(--accent); }
  .cap-swatch { width: 10px; height: 10px; border-radius: 2px; }
  .cap-col.digital .cap-swatch { background: var(--primary); }
  .cap-col.eng .cap-swatch { background: var(--accent-bright); }
  .cap-pills { display: flex; flex-wrap: wrap; gap: 10px; }
  .pill { border: 1px solid var(--line-strong); border-radius: 999px; padding: 8px 16px; font-size: 0.88rem; font-weight: 500; background: var(--panel); }
  .cap-divider { display: none; }
  @media (min-width: 860px) { .cap-divider { display: block; width: 1px; background: var(--line-strong); align-self: stretch; margin: 4px 0; } }

  /* ---------- CTA ---------- */
  .cta-band { background: var(--primary-dark); color: #fff; text-align: center; padding: 78px 0; position: relative; overflow: hidden; }
  .cta-band::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(600px 300px at 50% 0%, color-mix(in srgb, var(--accent-bright) 22%, transparent), transparent 70%);
    pointer-events: none;
  }
  .cta-band .inner { position: relative; max-width: 620px; margin: 0 auto; }
  .cta-band h2 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); color: #fff; }
  .cta-band p { margin-top: 14px; color: #C9DAEC; font-size: 1.08rem; }
  .cta-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 30px; }
  .cta-band .btn-ghost { border-color: rgba(255,255,255,0.35); color: #fff; }
  .cta-band .btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,0.08); }

  /* ---------- Footer ---------- */
  /* Footer uses fixed dark colours so it stays readable in light and dark modes */
  footer.site { background: #0F2540; color: #DCE6F0; padding: 64px 0 34px; }
  .footer-grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
  @media (min-width: 780px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
  .footer-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 1.1rem; color: #fff; margin-bottom: 10px; }
  .footer-brand svg { width: 26px; height: 19px; }
  .footer-tag { color: #DCE6F0; font-size: 1rem; max-width: 28ch; }
  .footer-col h4 { color: #7FE0D6; font-size: 0.95rem; letter-spacing: 0.03em; margin-bottom: 16px; font-family: var(--font-body); font-weight: 600; }
  .footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
  .footer-col a { color: #FFFFFF; text-decoration: none; font-size: 1rem; }
  .footer-col a:hover { color: #7FE0D6; text-decoration: underline; }
  .footer-col address { font-style: normal; color: #FFFFFF; font-size: 1rem; line-height: 1.8; }
  .footer-bottom { border-top: 1px solid #3A5573; margin-top: 48px; padding-top: 22px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; color: #C7D3DE; font-size: 0.92rem; }

  a:focus-visible, button:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent-bright); outline-offset: 2px; }

  /* Page-to-page slide: moving between pages slides the old page out and the new one in,
     similar to the smooth scrolling between sections on the home page.
     Supported in current Chrome, Edge and Safari; other browsers switch pages instantly. */
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: 320ms ease both pageSlideOut; }
  ::view-transition-new(root) { animation: 320ms ease both pageSlideIn; }
  @keyframes pageSlideOut { to { opacity: 0; transform: translateX(-28px); } }
  @keyframes pageSlideIn { from { opacity: 0; transform: translateX(28px); } }
  @media (prefers-reduced-motion: reduce) {
    ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
  }

  /* WhatsApp floating button (visible on every page view) */
  .wa-float {
    position: fixed; right: 18px; bottom: 18px; z-index: 60;
    display: inline-flex; align-items: center; gap: 8px;
    background: #25D366; color: #fff; text-decoration: none;
    font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
    padding: 12px 18px; border-radius: 999px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.22);
    transition: transform 0.15s ease, filter 0.15s ease;
  }
  .wa-float:hover { filter: brightness(0.96); transform: translateY(-2px); }
  .wa-float:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
  @media (max-width: 480px) {
    .wa-float { padding: 14px; }
    .wa-float span { display: none; }
  }
  @media (prefers-reduced-motion: reduce) { .wa-float { transition: none; } }

  /* Header: show the "Start a Project" button in the menu on phones only; the header button covers desktop */
  .nav-cta-mobile { display: none; }
  @media (max-width: 899px) {
    nav.links .nav-cta-mobile { display: inline-flex; margin-top: 14px; }
  }

  /* ---------- Contact form ---------- */
  .contact-grid { display: grid; grid-template-columns: 1fr; gap: 44px; align-items: start; }
  @media (min-width: 900px) { .contact-grid { grid-template-columns: 0.9fr 1.1fr; } }
  .contact-title { font-size: clamp(1.7rem, 3.2vw, 2.35rem); margin-bottom: 14px; }
  .contact-lede { color: var(--ink-soft); font-size: 1.02rem; }
  .contact-details { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
  .contact-details li { display: flex; flex-direction: column; gap: 2px; color: var(--ink-soft); }
  .contact-details strong { color: var(--ink); font-family: var(--font-display); font-size: 0.9rem; }
  .contact-details a { color: var(--primary); text-decoration: none; font-weight: 500; }
  .contact-form { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-m); padding: 28px; display: grid; gap: 16px; grid-template-columns: 1fr; }
  @media (min-width: 640px) { .contact-form { grid-template-columns: 1fr 1fr; } }
  .contact-form .full { grid-column: 1 / -1; }
  .contact-form label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 6px; color: var(--ink); }
  .contact-form input, .contact-form select, .contact-form textarea {
    width: 100%; font: inherit; font-size: 0.97rem; padding: 11px 13px; border: 1px solid var(--line-strong);
    border-radius: var(--radius-s); background: var(--bg); color: var(--ink);
  }
  .contact-form textarea { min-height: 120px; resize: vertical; }
  .contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 2px solid var(--accent-bright); outline-offset: 1px; border-color: transparent; }
  .contact-form .btn { width: 100%; }
  @media (min-width: 640px) { .contact-form .btn { width: auto; } }
  .form-msg { color: var(--primary); font-weight: 600; font-size: 0.95rem; margin-top: 10px; min-height: 1.4em; }
  .form-note { color: var(--ink-soft); font-size: 0.88rem; margin-top: 6px; }

  /* Logo: the logo file has a white background, so it sits on a white badge in both themes */
  .brand img { height: 50px; width: auto; background: #fff; border-radius: 8px; padding: 4px 8px; }
  .footer-brand img { height: 46px; width: auto; background: #fff; border-radius: 8px; padding: 4px 8px; }
