:root {
  color-scheme: light;
  --bg: #f5f7fb;
  --surface: #eef2f8;
  --text: #101827;
  --muted: #526071;
  --line: #d4dce7;
  --blue: #2563eb;
  --blue-deep: #1849b9;
  --white: #f9fbff;
  --radius: 16px;
  --shell: min(1180px, calc(100% - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.shell { width: var(--shell); margin-inline: auto; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 20; padding: 10px 14px;
  background: var(--white); border-radius: 10px; transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 10; height: 72px;
  color: var(--text); transition: background-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled {
  color: var(--text); background: rgba(245,247,251,.93);
  box-shadow: 0 1px 0 rgba(16,24,39,.08); backdrop-filter: blur(18px);
}
.nav-wrap { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-size: 14px; font-weight: 720; letter-spacing: .045em; }
.brand img { width: 40px; height: 40px; filter: drop-shadow(0 0 12px rgba(37,99,235,.25)); }
.nav-wrap nav { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 540; }
.nav-wrap nav a { text-decoration: none; transition: color .2s ease; }
.nav-wrap nav a:hover { color: #7fb0ff; }
.site-header.is-scrolled .nav-wrap nav a:hover { color: var(--blue); }
.nav-contact { border: 1px solid currentColor; border-radius: 999px; padding: 8px 16px; }
.menu-button, .mobile-menu { display: none; }

.hero {
  position: relative; min-height: 100dvh; overflow: hidden; display: grid; align-items: center;
  background: var(--bg); color: var(--text); isolation: isolate;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(245,247,251,.99) 0%, rgba(245,247,251,.94) 38%, rgba(245,247,251,.1) 72%);
}
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); padding-block: 112px 64px; }
.hero-copy { grid-column: 1; max-width: 650px; }
.eyebrow { margin: 0 0 25px; color: var(--blue-deep); font-size: 12px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 24px; font-size: clamp(3rem, 5vw, 4.55rem); line-height: .98; letter-spacing: -.065em; font-weight: 650; text-wrap: balance; }
h1 span { white-space: nowrap; }
.hero-intro { max-width: 520px; margin-bottom: 34px; color: var(--muted); font-size: clamp(1.05rem, 1.7vw, 1.3rem); line-height: 1.55; }
.button {
  display: inline-flex; align-items: center; min-height: 50px; padding: 12px 21px;
  border-radius: 999px; background: var(--blue); color: #fff; font-weight: 650; text-decoration: none;
  box-shadow: 0 12px 34px rgba(37,99,235,.24); transition: transform .2s ease, background-color .2s ease;
}
.button:hover { background: #3974f0; transform: translateY(-2px); }
.button:active { transform: translateY(1px); }
.button:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid #7fb0ff; outline-offset: 4px; }

.section { padding-block: clamp(84px, 11vw, 150px); }
h2 { margin-bottom: 24px; font-size: clamp(2.5rem, 5vw, 4.8rem); line-height: 1.02; letter-spacing: -.055em; font-weight: 610; text-wrap: balance; }
h3 { margin-bottom: 10px; font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.2; letter-spacing: -.025em; }
.about-layout { display: grid; grid-template-columns: minmax(180px, .48fr) 1.52fr; gap: clamp(48px, 9vw, 130px); align-items: center; }
.about-mark { display: grid; place-items: center; min-height: 290px; border-radius: var(--radius); background: var(--surface); }
.about-mark img { width: 148px; filter: drop-shadow(0 20px 30px rgba(37,99,235,.16)); }
.about-copy { max-width: 760px; }
.about-copy p { max-width: 650px; color: var(--muted); font-size: clamp(1.05rem, 1.7vw, 1.25rem); }

.capabilities { background: #e9eef6; }
.section-heading { max-width: 680px; margin-bottom: 52px; }
.section-heading p { max-width: 520px; color: var(--muted); font-size: 1.1rem; }
.capability-grid { display: grid; grid-template-columns: 1.25fr .75fr; grid-template-rows: repeat(2, minmax(290px, auto)); gap: 16px; }
.capability {
  position: relative; overflow: hidden; min-height: 290px; padding: clamp(28px, 4vw, 50px);
  border-radius: var(--radius); background: var(--white); display: flex; flex-direction: column; justify-content: flex-end;
}
.capability p { max-width: 440px; margin-bottom: 0; color: var(--muted); }
.capability-primary { grid-row: span 2; min-height: 596px; background: #111a28; color: var(--white); }
.capability-primary::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 78% 20%, rgba(37,99,235,.35), transparent 32%);
}
.capability-primary h3 { position: relative; max-width: 450px; font-size: clamp(2rem, 4vw, 3.6rem); }
.capability-primary p { position: relative; color: #b9c5d5; }
.capability-image { padding: 0; }
.capability-image img { width: 100%; height: 100%; object-fit: cover; }
.capability-blue { background: var(--blue); color: #fff; }
.capability-blue p { color: #dce8ff; }

.principles { padding-bottom: clamp(100px, 13vw, 180px); }
.principles-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(50px, 10vw, 150px); }
.principles-title { position: sticky; top: 130px; align-self: start; }
.principles-title .eyebrow { color: var(--blue); }
.principles-list { display: grid; }
.principle { padding: 34px 0 42px; border-bottom: 1px solid var(--line); }
.principle:first-child { padding-top: 4px; }
.principle p { max-width: 470px; margin-bottom: 0; color: var(--muted); }

.contact { background: #e9eef6; }
.contact-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.contact-inner img { width: 88px; margin-bottom: 30px; }
.contact-inner h2 { max-width: 800px; }
.contact-inner p { margin-bottom: 16px; color: var(--muted); }
.email-link {
  color: var(--blue-deep); font-size: clamp(1.3rem, 3vw, 2.25rem); font-weight: 650;
  letter-spacing: -.025em; text-decoration-thickness: 2px; text-underline-offset: 7px;
}

footer { padding-block: 52px; background: #111a28; color: #9fabbb; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.footer-grid p { margin-bottom: 7px; }
.footer-brand { color: #edf3ff; font-weight: 650; letter-spacing: .02em; }
address { justify-self: end; max-width: 330px; font-style: normal; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 800px) {
  :root { --shell: min(100% - 32px, 680px); }
  .nav-wrap nav { display: none; }
  .menu-button { display: grid; width: 44px; height: 44px; place-content: center; gap: 7px; border: 0; background: transparent; color: currentColor; }
  .menu-button span:not(.sr-only) { display: block; width: 23px; height: 1.5px; background: currentColor; transition: transform .2s ease; }
  .menu-button[aria-expanded="true"] span:nth-last-child(2) { transform: translateY(4.25px) rotate(45deg); }
  .menu-button[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
  .mobile-menu { position: absolute; top: 72px; left: 0; width: 100%; padding: 12px 16px 22px; background: var(--bg); color: var(--text); box-shadow: 0 14px 30px rgba(16,24,39,.12); }
  .mobile-menu:not([hidden]) { display: grid; }
  .mobile-menu a { padding: 13px 8px; text-decoration: none; border-bottom: 1px solid var(--line); }
  .hero { align-items: end; }
  .hero::after { background: linear-gradient(0deg, rgba(245,247,251,.99) 0%, rgba(245,247,251,.9) 48%, rgba(245,247,251,.08) 100%); }
  .hero-media img { object-position: 61% center; }
  .hero-grid { display: block; padding-block: 135px 62px; }
  h1 { max-width: 600px; font-size: clamp(3rem, 12vw, 4.9rem); }
  h1 span { white-space: normal; }
  .hero-intro { max-width: 430px; }
  .section { padding-block: 80px; }
  .about-layout, .principles-layout { grid-template-columns: 1fr; gap: 44px; }
  .about-mark { min-height: 220px; }
  .principles-title { position: static; }
  .capability-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .capability-primary { grid-row: auto; min-height: 420px; }
  .capability-image { min-height: 300px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  address { justify-self: start; }
}

@media (max-width: 460px) {
  .brand span { max-width: 150px; line-height: 1.05; }
  .hero-grid { padding-top: 120px; }
  h1 { font-size: 3.25rem; }
  .hero-intro { font-size: 1.05rem; }
  .capability { min-height: 275px; padding: 28px 24px; }
  .capability-image { padding: 0; }
  .email-link { font-size: 1.16rem; }
}

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

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #101722;
    --surface: #172131;
    --text: #edf3fc;
    --muted: #aab7c8;
    --line: #2d3949;
    --blue: #3b78ed;
    --blue-deep: #76a7ff;
    --white: #f4f7fc;
  }
  .site-header.is-scrolled { background: rgba(16,23,34,.93); }
  .hero::after { background: linear-gradient(90deg, rgba(16,23,34,.99) 0%, rgba(16,23,34,.92) 38%, rgba(16,23,34,.08) 72%); }
  .capabilities, .contact { background: #141e2b; }
  .capability:not(.capability-primary):not(.capability-blue):not(.capability-image) { background: #1a2535; }
  .mobile-menu { background: var(--bg); }
  @media (max-width: 800px) {
    .hero::after { background: linear-gradient(0deg, rgba(16,23,34,.99) 0%, rgba(16,23,34,.86) 48%, rgba(16,23,34,.08) 100%); }
  }
}
