/* P1 foundation. Legacy section layouts remain unchanged. */
:root {
  --font-body: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Segoe UI Variable Display", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --ink: #262626; --muted: #616161; --line: #e6e6e6;
  --bg: #fff; --soft: #f2f2f2; --action: #1e3a7b; --action-hover: #0b1b3f;
  --navy-950: #262626; --navy-900: #262626; --navy-700: #262626; --navy-600: #f2f2f2;
  --sky: #616161; --amber: #262626; --orange: #262626; --pink: #616161; --violet: #616161;
  --shadow: none;
}
body { font-family: var(--font-body); font-size: 16px; line-height: 1.5; overflow-x: visible; }
button { font: inherit; }
a, button { transition: color 150ms ease, background-color 150ms ease; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.wrap { width: 100%; max-width: 1600px; margin-inline: auto; padding-inline: min(5vw, 80px); }
h1, h2, h3 { font-family: var(--font-heading); font-weight: 600; color: #000; }
h2.title { font-size: clamp(32px, 3vw, 48px); line-height: 1.1; font-weight: 600; text-transform: none; color: #000; }
section { padding-block: 72px; scroll-margin-top: 72px; }
[id] { scroll-margin-top: 120px; }
#top { scroll-margin-top: 56px; }
/* Neutralize legacy palette without changing section structure or content. */
.dark { background: var(--soft); color: var(--ink); }
.dark::before { content: none; }
.dark h2.title, .dark .kicker, .dark .lead { color: var(--ink); }
.hero .co, .hero .tag, .hero h1, .about .body, .commit, .chip, .chip b,
.card-dark h3, .svc h3, .svc p, .val b, .val span, .val svg, .team h3, .team p,
.proj h3, .proj p, .proj ul, .tag-s, .tag-s.y, .pf p, .partners .logos span { color: var(--ink); }
.hero h1 { font-weight: 600; }
.commit, .stat b, .chip b, .svc .no { font-family: var(--font-heading); }
.pill, .chip, .card-dark, .val, .team, .proj, .partners .logos span { background: #fff; border-color: var(--line); }
.pill { color: var(--ink); }
.pill i { border-color: var(--muted); }
.svc-board, .team .art, .team:nth-child(2) .art, .team:nth-child(3) .art { background: var(--soft); color: var(--ink); }
.svc .no { background: #fff; color: var(--ink); }
.team .art svg { color: var(--muted); }
.card-dark li::before { background: var(--muted); }
.tag-s, .tag-s.y { background: var(--soft); }
.orbit .ring, .orbit .ring:nth-child(2), .orbit .ring:nth-child(3) { border-color: var(--line); }
.orbit .core, .chip, .pf, .logos span, .cbox { box-shadow: none; }
.chip { backdrop-filter: none; }
.proj:hover { border-color: var(--muted); transform: none; }
.contact.dark { background: var(--soft) !important; }
.cl a { color: var(--action); background: #fff; }
.cl a:hover { background: #fff; color: var(--action-hover); text-decoration: underline; }
.cl i { background: var(--soft); color: var(--muted); }
/* Buttons and reusable action links. Legacy CTA classes map to primary. */
.btn, .btn-amber, .btn-navy, .btn-ghost, .btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 10px 24px; border: 0; border-radius: 2px;
  background: var(--action); color: #fff; font: 600 15px/20px var(--font-body);
  box-shadow: none; text-decoration: none;
}
.btn:hover, .btn:active { background: var(--action-hover); color: #fff; transform: none; text-decoration: none; }
.action-link { color: var(--action); font-size: 15px; line-height: 20px; font-weight: 600; }
.action-link::after { content: "›"; margin-inline-start: 6px; }
.action-link:hover, .action-link:focus-visible { text-decoration: underline; }
.action-link:active { color: var(--action-hover); }
/* Global header: solid white, no scroll-dependent appearance. */
header, header.solid, header.open {
  position: sticky; top: 0; z-index: 50; background: #fff;
  border-bottom: 1px solid var(--line); box-shadow: none; backdrop-filter: none; transition: none;
}
.nav { height: 55px; gap: 36px; justify-content: flex-start; }
.brand { flex: none; }
.brand img { height: 28px; width: auto; }
.menu { position: static; display: flex; flex-direction: row; align-items: center; gap: 24px; padding: 0; background: #fff; font-size: 14px; line-height: 20px; font-weight: 400; color: var(--ink); }
.menu a { display: inline-flex; align-items: center; min-height: 40px; padding: 0; border: 0; white-space: nowrap; }
.menu a:hover, .menu a:focus-visible, footer a:hover, footer a:focus-visible { color: var(--action); text-decoration: underline; }
.menu a:active, footer a:active { color: var(--action-hover); }
.tools { display: flex; gap: 16px; align-items: center; margin-left: auto; flex: none; }
.lang { display: flex; align-items: center; gap: 8px; border: 0; border-radius: 0; padding: 0; }
.lang button { min-width: 44px; min-height: 44px; padding: 10px 4px; border: 0; border-radius: 0; color: var(--muted); background: transparent; font: 400 14px/20px var(--font-body); cursor: pointer; position: relative; }
.lang button[aria-pressed="true"] { color: #000; background: transparent; }
.lang button[aria-pressed="true"]::after { content: ""; position: absolute; height: 2px; background: var(--action); inset: auto 4px 3px; }
.lang button:hover { color: var(--action); }
.tools .lang { position: relative; margin-right: 16px; }
.tools .lang::after { content: ""; position: absolute; right: -16px; height: 24px; width: 1px; background: var(--line); }
.burger { display: none; width: 44px; height: 44px; padding: 12px; color: var(--ink); border: 1px solid var(--line); border-radius: 2px; background: #fff; }
.menu .mobile-contact { display: none; }
/* Footer */
footer { background: var(--soft); color: var(--ink); font-size: 14px; line-height: 20px; padding: 0; border-bottom: 1px solid var(--line); }
footer .footer-columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; padding-block: 48px 40px; }
.footer-column { min-width: 0; overflow-wrap: anywhere; }
.footer-column h2 { margin-bottom: 12px; font: 600 14px/20px var(--font-body); color: var(--ink); }
.footer-brand { display: inline-block; margin-bottom: 16px; }
.footer-brand img { height: 24px; width: auto; }
.footer-column ul { list-style: none; display: grid; gap: 8px; }
.footer-column li a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; }
footer .footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; min-height: 56px; padding-block: 16px; border-top: 1px solid var(--line); }
footer .footer-tagline { display: block; padding-bottom: 16px; color: var(--muted); }
/* Keep all legacy content visible even when JS is unavailable. */
.reveal, .reveal.in { opacity: 1; transform: none; transition: none; }
@media (max-width: 1200px) {
  .nav { gap: 24px; }
  .menu { gap: 16px; }
  footer .footer-columns { gap: 32px; }
}
/* Six translated labels plus logo/utilities exceed 768px with system fonts.
   Use design's safe breakpoint instead of wrapping header controls. */
@media (max-width: 1100px) {
  .tools .header-contact, .menu { display: none; }
  .burger { display: grid; }
  .tools .lang { margin-right: 0; }
  .tools .lang::after { content: none; }
  header.open .menu {
    position: absolute; top: 55px; inset-inline: 0; display: flex;
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px min(5vw, 80px) 16px;
    background: #fff; border-block: 1px solid var(--line);
    max-height: calc(100dvh - 56px); overflow-y: auto;
  }
  .menu a { min-height: 44px; padding: 10px 0; width: 100%; }
  .menu .mobile-contact { display: inline-flex; margin-top: 8px; padding: 10px 24px; color: #fff; }
  .menu .mobile-contact:hover, .menu .mobile-contact:focus-visible { color: #fff; }
}
@media (max-width: 980px) { section { padding-block: 56px; } }
@media (max-width: 600px) {
  .wrap { padding-inline: 16px; }
  section { padding-block: 48px; }
  .nav { gap: 8px; }
  .brand img { height: 24px; }
  .tools { gap: 8px; }
  header.open .menu { padding-inline: 16px; }
  footer .footer-columns { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .footer-column li a { min-height: 44px; }
  footer .footer-bottom { flex-direction: column; align-items: flex-start; }
  .svc-board { padding: 28px 16px; }
  .svc { grid-template-columns: 48px minmax(0, 1fr); gap: 6px 12px; }
  .svc .no { width: 48px; height: 48px; }
  .svc h3 { overflow-wrap: anywhere; }
  .cl a { overflow-wrap: anywhere; border-radius: 4px; }
  .tag-s { overflow-wrap: anywhere; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  a:hover, button:hover { transform: none !important; }
}
