:root {
  --orange: #f47722;
  --orange-dark: #d9620f;
  --blue: #04508f;
  --blue-dark: #033a69;
  --ink: #1d2733;
  --muted: #5b6774;
  --line: #e6e9ee;
  --bg: #ffffff;
  --tint: #f6f8fb;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(4, 80, 143, 0.08);
  --head: "Quicksand", system-ui, sans-serif;
  --body: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3 { font-family: var(--head); line-height: 1.2; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: min(1140px, 100% - 32px); margin-inline: auto; }

.sr-only, .skip:not(:focus) {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: #fff; padding: 8px 12px; border-radius: 8px; }

.eyebrow {
  font-family: var(--head);
  font-weight: 700;
  font-size: .85rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .75rem;
}
.eyebrow-light { color: #ffd2b3; }
.accent { color: var(--orange); }

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--head);
  font-weight: 700;
  font-size: 1rem;
  padding: .85em 1.6em;
  border-radius: 999px;
  border: 2px solid var(--orange);
  background: var(--orange);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, border-color .2s, transform .2s, color .2s;
}
.btn:hover { background: var(--orange-dark); border-color: var(--orange-dark); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-ghost:hover { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn-small { padding: .55em 1.2em; font-size: .95rem; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 2px 16px rgba(0,0,0,.04); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { height: 52px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav a:not(.btn) {
  font-family: var(--head); font-weight: 600; color: var(--ink); text-decoration: none;
}
.site-nav a:not(.btn):hover { color: var(--orange); }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle .bar { display: block; width: 24px; height: 3px; margin: 4px 0; border-radius: 3px; background: var(--blue); transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(4) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(56px, 9vw, 120px) 0;
  background:
    radial-gradient(circle at 85% 20%, rgba(4, 80, 143, .08), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(244, 119, 34, .08), transparent 40%);
}
.hero-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 48px; align-items: center; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }

.hero-art { position: relative; justify-self: center; width: min(340px, 80%); max-width: 100%; aspect-ratio: 1; }
.hero-art img, .hero-dots { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art img { object-fit: contain; }
.hero-art, .hero-dots { overflow: visible; }

/* Soft circles behind the logo, drifting at their own pace for depth */
.bubble { position: absolute; border-radius: 50%; background: var(--blue); opacity: .15; animation: drift 9s ease-in-out infinite; }
.bubble.b1 { width: 22%; height: 22%; top: -4%; left: -8%; }
.bubble.b2 { width: 11%; height: 11%; bottom: 4%; right: -4%; background: var(--orange); opacity: .28; animation-duration: 7s; animation-delay: -2s; }
.bubble.b3 { width: 6%; height: 6%; bottom: 20%; left: -10%; animation-duration: 11s; animation-delay: -5s; }
@keyframes drift {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(8px, 12px); }
}

/* The whole logo floats gently, with a slight sway, while its dots light up */
.hero-art { animation: float 6s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-14px) rotate(-1.5deg); }
}

/* The logo's dots light up one by one, like a connection being made, then ripple now and again */
.hero-dots circle {
  fill: var(--blue);
  transform-box: fill-box;
  transform-origin: center;
  animation:
    dot-in .45s cubic-bezier(.34, 1.56, .64, 1) calc(.3s + var(--i) * .12s) both,
    dot-pulse 5s ease-in-out calc(2s + var(--i) * .12s) infinite;
}
@keyframes dot-in { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes dot-pulse {
  0%, 12%, 100% { transform: scale(1); fill: var(--blue); }
  6% { transform: scale(1.25); fill: var(--orange); }
}


/* Trust band */
.trust { background: var(--blue); color: #cfe0f0; }
.trust-inner { display: flex; align-items: center; gap: 20px 48px; padding: 32px 0; }
.trust-years { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.trust-num { font-family: var(--head); font-weight: 700; font-size: 4rem; line-height: 1; color: var(--orange); font-variant-numeric: tabular-nums; }
.trust-unit { font-family: var(--head); font-weight: 700; font-size: 1.05rem; line-height: 1.25; color: #fff; text-transform: uppercase; letter-spacing: .06em; }
.trust-text { margin: 0; font-size: 1.2rem; max-width: 40em; padding-left: 48px; border-left: 2px solid rgba(255, 255, 255, .18); }
.trust-text strong { color: #fff; }

/* Who we work with */
.sectors { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.sector { background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); border-top: 5px solid var(--orange); }
.sector:nth-child(2) { border-top-color: var(--blue); }
.sector > p { color: var(--muted); }
.sector ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sector li { position: relative; padding-left: 26px; }
.sector li::before { content: ""; position: absolute; left: 4px; top: .6em; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); }
.sector:nth-child(2) li::before { background: var(--blue); }

/* Phone-only call/message bar */
.quick-contact { display: none; }

/* Sections */
.section { padding: clamp(64px, 9vw, 110px) 0; }
.section-tint { background: var(--tint); }
.section-head { max-width: 640px; margin-bottom: 48px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card p { color: var(--muted); margin: 0; }
.icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(244, 119, 34, .12);
  margin-bottom: 18px;
}
.icon svg { width: 26px; height: 26px; fill: var(--orange); stroke: var(--orange); }
.icon svg [fill="none"] { fill: none; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: none; }
.steps li { position: relative; background: #fff; border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow); }
.steps p { color: var(--muted); margin: 0; }
.step-num {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--blue); color: #fff;
  font-family: var(--head); font-weight: 700; font-size: 1.2rem;
  margin-bottom: 16px;
}
.steps li:nth-child(2) .step-num { background: var(--orange); }
.steps li:nth-child(4) .step-num { background: var(--orange); }

/* Statement */
.statement { padding: clamp(56px, 8vw, 96px) 0; text-align: center; }
.statement blockquote { margin: 0 auto; max-width: 820px; }
.statement p { font-family: var(--head); font-weight: 600; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.4; color: var(--blue); }
.statement cite { font-style: normal; font-weight: 700; color: var(--orange); }

/* About */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: center; }
.about-grid > div p { color: var(--muted); }
.values { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.values li {
  background: var(--tint); border-left: 5px solid var(--orange);
  border-radius: 12px; padding: 18px 22px; color: var(--muted);
}
.values li:nth-child(2) { border-color: var(--blue); }
.values strong { display: block; font-family: var(--head); font-size: 1.15rem; color: var(--ink); }

/* Contact */
.contact { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%); color: #e4eef8; }
.contact h2 { color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 16px; align-items: baseline; }
.contact-list span { min-width: 60px; font-family: var(--head); font-weight: 700; color: #ffd2b3; }
.contact-list a { color: #fff; font-weight: 700; text-decoration: none; border-bottom: 2px solid var(--orange); }

.contact-form {
  background: #fff; color: var(--ink);
  border-radius: var(--radius); padding: 32px;
  display: grid; gap: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .2);
}
.contact-form label { display: grid; gap: 6px; font-family: var(--head); font-weight: 700; font-size: .95rem; }
.contact-form .opt { font-weight: 500; color: var(--muted); }
.contact-form input, .contact-form textarea {
  font: inherit; font-family: var(--body); font-weight: 400;
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--tint); color: var(--ink);
  transition: border-color .2s, background .2s;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--orange); background: #fff; }
.contact-form .invalid { border-color: #c0392b; }
.contact-form .btn { justify-self: start; }
.form-status { margin: 0; min-height: 1.5em; font-weight: 600; color: var(--blue); }
.form-status.is-error { color: #b42318; }
.contact-form .btn:disabled { opacity: .7; cursor: wait; transform: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Soft orange glow that follows the mouse (or a finger on phones) */
.cursor-glow {
  position: fixed; left: 0; top: 0; z-index: 40;
  width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 119, 34, .16) 0%, rgba(244, 119, 34, .07) 35%, rgba(244, 119, 34, 0) 68%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .5s ease;
  will-change: transform;
}
.cursor-glow.on { opacity: 1; }
@media (hover: none) { .cursor-glow { width: 320px; height: 320px; } }

/* Footer */
.site-footer { background: #0f1720; color: #9aa6b2; padding: 40px 0; font-size: .95rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.footer-inner img { height: 48px; width: auto; filter: brightness(0) invert(1); opacity: .9; }
.footer-inner p { margin: 0; }
.site-footer a { color: #cfd8e1; }

/* Reveal on scroll */
.reveal { transform: translateY(14px); transition: transform .6s ease; }
.reveal.in { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .hero-art, .bubble { animation: none; }
  html { scroll-behavior: auto; }
  .hero-dots circle { animation: none; }
  .reveal { transform: none; transition: none; }
}

/* Responsive */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .trust-inner { flex-direction: column; align-items: flex-start; }
  .trust-text { padding-left: 0; border-left: 0; }
}

/* Phones: compact rows instead of stacked boxes, and a call bar always in reach */
@media (max-width: 760px) {
  body { font-size: 16px; padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  html { scroll-padding-top: 72px; }

  .header-inner { height: 64px; }
  .brand img { height: 40px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 16px 20px;
    box-shadow: 0 12px 24px rgba(0,0,0,.06);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .site-nav .btn { margin-top: 16px; text-align: center; }

  /* Hero: the header already shows the logo, so phones get the headline alone */
  .hero { padding: 32px 0 40px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .hero h1 { font-size: 2.1rem; }
  .lead { font-size: 1.05rem; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
  .hero-actions .btn { text-align: center; padding-inline: .8em; }

  .trust-inner { gap: 14px; padding: 24px 0; }
  .trust-num { font-size: 3.2rem; }
  .trust-text { font-size: 1.05rem; }

  .section { padding: 52px 0; }
  .section-head { margin-bottom: 24px; }
  h2 { font-size: 1.7rem; }

  /* Services as a tight list: icon on the left, text on the right */
  .cards { grid-template-columns: 1fr; gap: 0; }
  .card {
    display: grid; grid-template-columns: 44px 1fr; gap: 2px 16px;
    border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
    padding: 18px 0; background: transparent;
  }
  .card:last-child { border-bottom: 0; }
  .card:hover { transform: none; box-shadow: none; }
  .card .icon { grid-row: span 2; width: 44px; height: 44px; border-radius: 12px; margin: 0; }
  .card .icon svg { width: 22px; height: 22px; }
  .card h3 { font-size: 1.1rem; margin: 0; align-self: center; }
  .card p { font-size: .95rem; }

  .sectors { grid-template-columns: 1fr; gap: 16px; }
  .sector { padding: 24px 20px; }

  /* Steps as a joined-up timeline */
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { background: none; box-shadow: none; border-radius: 0; padding: 0 0 26px 60px; }
  .steps li:last-child { padding-bottom: 0; }
  .steps li::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: var(--line); }
  .steps li:last-child::before { display: none; }
  .step-num { position: absolute; left: 0; top: 0; margin: 0; }
  .steps h3 { padding-top: 9px; margin-bottom: .3em; }
  .steps p { font-size: .95rem; }

  .statement { padding: 44px 0; }
  .statement p { font-size: 1.3rem; }

  .about-grid { gap: 24px; }
  .values { gap: 10px; }
  .values li { padding: 14px 18px; }

  .contact-form { padding: 24px 20px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }

  .quick-contact {
    display: grid; grid-template-columns: 1.5fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(4, 80, 143, .08);
  }
  .quick-contact a {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 50px; border-radius: 999px;
    font-family: var(--head); font-weight: 700; font-size: 1rem; text-decoration: none;
  }
  .quick-contact svg { width: 18px; height: 18px; flex-shrink: 0; }
  .qc-call { background: var(--orange); color: #fff; }
  .qc-call svg { fill: #fff; }
  .qc-email { background: var(--tint); color: var(--blue); border: 2px solid var(--blue); }
  .qc-email svg { stroke: var(--blue); }
}
