/* Secontext / Zero-Agent — light professional theme */
:root {
  --ink: #10203a;
  --heading: #001756;
  --surface: #f6f9fc;
  --paper: #ffffff;
  --paper-soft: #eef4f8;
  --muted: #526174;
  --line: #d8e2ea;

  /* matched to the supplied Secontext / Zero-Agent logos */
  --brand-blue: #008efb;
  --brand-navy: #001756;
  --brand-violet: #79018b;
  --brand-yellow: #d1db00;
  --zero-blue: #0120b3;

  --shadow: 0 18px 50px rgba(0, 23, 86, 0.10);
  --radius: 18px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button, input, textarea, select { font: inherit; }

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 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;
}

/* Header */
.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 max(20px, calc((100vw - 1120px) / 2));
  color: var(--heading);
  background: rgba(255, 255, 255, 0.90);
  border-bottom: 1px solid rgba(0, 23, 86, 0.08);
  box-shadow: 0 4px 24px rgba(0, 23, 86, 0.05);
  backdrop-filter: blur(14px);
  transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 32px rgba(0, 23, 86, 0.09);
}

.brand {
  width: 178px;
  min-width: 150px;
  text-decoration: none;
}

.brand img {
  width: 100%;
  height: 48px;
  object-fit: contain;
  object-position: left center;
}

.brand.small { width: 148px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 700;
}

.site-nav a {
  color: var(--heading);
  text-decoration: none;
  position: relative;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 2px;
  background: var(--brand-blue);
  transition: right 160ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after { right: 0; }

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(0, 23, 86, 0.20);
  border-radius: 10px;
  background: #fff;
  color: var(--heading);
  cursor: pointer;
}

.menu-button span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px auto;
  background: currentColor;
}

/* Typography */
.eyebrow {
  margin: 0 0 16px;
  color: var(--brand-blue);
  font-size: 12px;
  line-height: 1.3;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }

h1, h2, h3 {
  color: var(--heading);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
}

h1 {
  margin-bottom: 26px;
  font-size: 64px;
  font-weight: 800;
  max-width: 860px;
}

h2 {
  margin-bottom: 0;
  font-size: 48px;
  font-weight: 800;
}

h3 {
  margin-bottom: 14px;
  font-size: 30px;
  font-weight: 750;
}

p { margin-bottom: 18px; }

.section { padding: 104px 0; }

/* Hero */
.hero {
  position: relative;
  min-height: 760px;
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 84% 18%, rgba(0, 142, 251, 0.12), transparent 28%),
    radial-gradient(circle at 12% 82%, rgba(209, 219, 0, 0.12), transparent 24%),
    linear-gradient(135deg, #f9fbfd 0%, #eef5fa 55%, #f8faf5 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(0deg, rgba(246, 249, 252, 0.90), transparent);
  pointer-events: none;
}

.hero-media {
  position: absolute;
  inset: 0;
  opacity: 0.48;
}

.signal-map {
  position: absolute;
  right: -8vw;
  top: 120px;
  width: min(620px, 72vw);
  aspect-ratio: 1;
  border: 1px solid rgba(0, 23, 86, 0.12);
  border-radius: 50%;
}

.signal-map::before,
.signal-map::after {
  content: "";
  position: absolute;
  inset: 15%;
  border: 1px solid rgba(0, 142, 251, 0.22);
  border-radius: 50%;
}

.signal-map::after {
  inset: 31%;
  border-color: rgba(121, 1, 139, 0.20);
}

.signal-map span {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand-yellow);
}

.signal-map span:nth-child(1) { left: 20%; top: 31%; }
.signal-map span:nth-child(2) { right: 28%; top: 18%; background: var(--brand-blue); }
.signal-map span:nth-child(3) { right: 18%; bottom: 34%; background: var(--brand-violet); }
.signal-map span:nth-child(4) { left: 34%; bottom: 22%; }

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) 360px;
  gap: 68px;
  align-items: center;
  padding-top: 78px;
}

.hero-copy { max-width: 760px; }

.hero .eyebrow,
.zero-agent .eyebrow,
.contact .eyebrow { color: var(--brand-violet); }

.hero-copy > p:not(.eyebrow) {
  max-width: 650px;
  color: #526174;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid currentColor;
  border-radius: 9px;
  background: transparent;
  color: inherit;
  font: 800 14px/1 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 23, 86, 0.10);
}

.button.primary {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #fff;
}

.button.secondary {
  border-color: var(--brand-navy);
  color: var(--brand-navy);
  background: rgba(255, 255, 255, 0.72);
}

/* Hero panel */
.hero-panel {
  border: 1px solid rgba(0, 23, 86, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  padding: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.hero-panel img {
  height: 92px;
  width: 100%;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 22px;
  background: transparent;
}

.hero-panel dl { margin: 0; }

.hero-panel div {
  padding: 17px 0;
  border-top: 1px solid var(--line);
}

.hero-panel dt {
  margin-bottom: 5px;
  color: var(--heading);
  font-weight: 800;
}

.hero-panel dd {
  margin: 0;
  color: var(--muted);
}

/* Approach */
.split {
  display: grid;
  grid-template-columns: 0.92fr 1fr;
  gap: 84px;
  align-items: start;
}

.stack p,
.split > p {
  color: var(--muted);
  font-size: 17px;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 72px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.principle-grid article {
  min-height: 250px;
  padding: 28px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.78);
}

.principle-grid span {
  display: block;
  margin-bottom: 72px;
  color: var(--brand-blue);
  font-weight: 800;
}

.principle-grid h3 { font-size: 28px; }
.principle-grid p { color: var(--muted); }

/* Zero-Agent */
.zero-agent {
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 30%, rgba(0, 142, 251, 0.08), transparent 24%),
    linear-gradient(135deg, #f3f8fc 0%, #ffffff 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.zero-agent h2 { color: var(--heading); }

.zero-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 84px;
  align-items: center;
}

.zero-logo {
  display: grid;
  place-items: center;
  min-height: 330px;
  padding: 28px;
  border: 1px solid rgba(1, 32, 179, 0.14);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.zero-logo img {
  width: 90%;
  max-height: 230px;
  object-fit: contain;
}

.zero-agent p {
  color: var(--muted);
  font-size: 17px;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 34px 0 0;
  border-top: 1px solid var(--line);
}

.check-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  color: #304158;
}

.check-list li::before {
  content: "+";
  margin-right: 12px;
  color: var(--brand-yellow);
  font-weight: 900;
}

/* Leaders */
.leaders { background: var(--paper); }

.section-head {
  max-width: 860px;
  margin-bottom: 58px;
}

.leader-layout {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 34px;
}

.leader-tabs {
  display: grid;
  align-content: start;
  border-top: 1px solid var(--line);
}

.leader-tab,
.career-tab {
  width: 100%;
  padding: 20px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  text-align: left;
  font: 14px/1.35 Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease;
}

.leader-tab:hover,
.career-tab:hover { background: #f1f6fa; }

.leader-tab span {
  display: block;
  margin-bottom: 6px;
  color: var(--heading);
  font-size: 20px;
  font-weight: 800;
}

.leader-tab.active,
.career-tab.active {
  background: var(--heading);
  color: #fff;
}

.leader-tab.active span { color: #fff; }

.leader-detail {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 34px;
  min-height: 460px;
  padding: 28px;
  background: #eef4f8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.leader-detail[hidden],
.career-panel[hidden] { display: none; }

.leader-photo,
.photo-placeholder {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #d9e1e8;
  border-radius: 12px;
}

.photo-placeholder {
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 56px;
  font-weight: 800;
  background: linear-gradient(135deg, rgba(0, 142, 251, 0.85), rgba(121, 1, 139, 0.85));
}

.leader-detail p:not(.eyebrow) { color: var(--muted); }

/* Careers */
.careers { background: #edf3f7; }

.career-tabs {
  display: flex;
  margin-top: 58px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 12px;
  overflow: hidden;
}

.career-tab {
  border-bottom: 0;
  border-right: 1px solid var(--line);
  font-weight: 800;
  text-align: center;
}

.career-tab:last-child { border-right: 0; }
.career-panels { margin-top: 24px; }

.career-panel {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 58px;
  padding: 34px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0, 23, 86, 0.05);
}

.career-panel p { color: var(--muted); }

.career-panel ul {
  margin: 0;
  padding-left: 20px;
  color: #2a3942;
}

.career-panel li + li { margin-top: 13px; }

/* Contact */
.contact {
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 20%, rgba(0, 142, 251, 0.12), transparent 25%),
    linear-gradient(135deg, #f4f8fb 0%, #eef4f8 100%);
  border-top: 1px solid var(--line);
}

.contact h2 { color: var(--heading); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.74fr;
  gap: 76px;
}

.contact p {
  color: var(--muted);
  font-size: 17px;
}

.contact-note {
  margin-top: 14px;
  font-size: 13px !important;
}

/* Footer */
.site-footer {
  padding: 28px 0;
  color: #526174;
  background: #e8eff4;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 170px 1fr auto;
  gap: 24px;
  align-items: center;
  font-size: 13px;
}

.footer-grid p {
  margin: 0;
  color: #607083;
}

.footer-grid a:not(.brand) {
  color: var(--heading);
  font-weight: 700;
  text-decoration: none;
}

/* Toast + accessibility */
.toast {
  position: fixed;
  z-index: 30;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  max-width: min(460px, calc(100% - 32px));
  padding: 14px 18px;
  border-radius: 10px;
  background: var(--heading);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 46px rgba(0, 23, 86, 0.24);
}

:focus-visible {
  outline: 3px solid rgba(0, 142, 251, 0.38);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .site-header {
    height: 68px;
    padding: 0 20px;
  }

  .menu-button { display: block; }

  .site-nav {
    position: absolute;
    top: 68px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
  }

  .site-nav.open { display: flex; }

  .site-nav a {
    padding: 12px;
    color: var(--heading);
  }

  .site-nav a::after { display: none; }

  .hero {
    min-height: auto;
    padding: 128px 0 72px;
  }

  .hero-grid,
  .split,
  .zero-grid,
  .leader-layout,
  .leader-detail,
  .career-panel,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid,
  .zero-grid,
  .contact-grid { gap: 34px; }

  .section { padding: 82px 0; }
  .principle-grid { grid-template-columns: 1fr; }
  .principle-grid span { margin-bottom: 36px; }
  .zero-logo { min-height: 240px; }
  .leader-detail { min-height: 0; }

  .leader-photo,
  .photo-placeholder { max-width: 260px; }

  .career-panel { gap: 28px; }
}

@media (max-width: 620px) {
  .wrap { width: min(100% - 28px, 1120px); }
  .brand { width: 148px; }

  h1 {
    font-size: 46px;
    line-height: 1.04;
  }

  h2 { font-size: 36px; }

  .hero-copy > p:not(.eyebrow) { font-size: 17px; }

  .hero-actions,
  .career-tabs { display: grid; }

  .button,
  .career-tab { width: 100%; }

  .hero-panel,
  .leader-detail,
  .career-panel { padding: 20px; }

  .footer-grid { grid-template-columns: 1fr; }
}
