/* ==========================================================================
   Base: reset, typography, shared components (button, pill, tag, header,
   footer, scroll-reveal). Reused by every page.
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--c-ink);
  background: var(--c-surface);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--c-blue); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - var(--gutter) * 2, var(--w-container)); 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;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 20px;
  border-radius: var(--r-pill);
  font-weight: 500; font-size: 16px; line-height: 20px; white-space: nowrap;
  color: #fff;
  background: var(--grad-brand);
  background-size: 160% 100%;
  background-position: 0 0;
  box-shadow: var(--sh-btn);
  overflow: hidden;
  transition: transform var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out),
    background-position 0.5s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 16px 28px -6px rgba(0, 36, 126, 0.4); }
.btn:active { transform: translateY(0); }

.btn--outline {
  color: transparent;
  background: transparent;
  border: 1px solid var(--c-navy);
  box-shadow: 0 12px 24px rgba(0, 36, 126, 0.3);
  height: 50px;
}
.btn--outline > span {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.btn--outline:hover { background: rgba(12, 90, 219, 0.06); box-shadow: 0 16px 28px rgba(0, 36, 126, 0.35); }

.btn--light {
  background: transparent; color: #fff; border: 1px solid #fff; box-shadow: 0 12px 24px rgba(0, 36, 126, 0.3); height: 48px;
}
.btn--light:hover { background: #fff; color: var(--c-navy); }

/* ---------- Pill (section eyebrow) & tags ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 12px;
  border-radius: 999px;
  background: var(--c-surface);
  box-shadow: var(--sh-pill);
  font-size: 16px; font-weight: 600; letter-spacing: 0.36px; line-height: 16px; text-transform: uppercase;
  color: var(--c-ink);
}
.pill::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--c-blue); box-shadow: 0 2px 5px rgba(255, 0, 0, 0.2);
}
.pill--grey { background: var(--c-surface-2); }
.pill--soft { background: rgba(233, 233, 233, 0.5); box-shadow: none; }

.tag {
  display: inline-flex; padding: 8px 16px;
  border: 1px solid var(--c-border); border-radius: var(--r-pill);
  background: var(--c-surface);
  font-size: 16px; line-height: normal; color: var(--c-muted-2); white-space: nowrap;
}
button.tag { cursor: pointer; transition: all var(--t-fast) var(--ease-out); }
button.tag:hover { border-color: var(--c-blue); color: var(--c-blue); }
button.tag.is-active { background: var(--grad-brand); border-color: transparent; color: #fff; }

/* ---------- Section title ---------- */
.title {
  font-size: 56px; line-height: 60px; font-weight: 300; color: var(--c-ink);
}
.title strong { font-weight: 700; color: var(--c-blue); }
.lead {
  font-size: 24px; line-height: 1.5; letter-spacing: 1.92px; color: var(--c-muted);
}
.lead-row { display: flex; align-items: center; gap: 48px; }
.lead-row::before { content: ""; flex: none; width: 83px; height: 3px; background: var(--c-ink); }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-block: 40px;
  transition: padding var(--t-base) var(--ease-out), background-color var(--t-base) var(--ease-out),
    box-shadow var(--t-base) var(--ease-out), backdrop-filter var(--t-base);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  width: min(100% - var(--gutter) * 2, var(--w-container)); margin-inline: auto;
}
.site-header.is-scrolled {
  padding-block: 14px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05), 0 12px 30px -18px rgba(0, 36, 126, 0.25);
}
.site-logo { display: block; width: 117.79px; height: 60px; margin-left: -11px; transition: transform var(--t-base) var(--ease-out); }
.site-logo__mark {
  display: block; width: 100%; height: 100%;
  background: url("../svg/logo.svg") center / contain no-repeat;
}
.site-header.is-scrolled .site-logo { transform: scale(0.82); transform-origin: left center; }
.site-nav { display: flex; align-items: center; gap: 100px; font-size: 20px; line-height: 1.2; }
.site-nav a { position: relative; padding-block: 6px; transition: color var(--t-fast); }
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; border-radius: 2px;
  background: var(--grad-brand); transform: scaleX(0); transform-origin: left; transition: transform 0.4s var(--ease-out);
}
.site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-nav a[aria-current="page"] { font-weight: 700; color: var(--c-navy); }
.site-header__toggle { display: none; width: 44px; height: 44px; border-radius: 50%; position: relative; }
.site-header__toggle span, .site-header__toggle::before, .site-header__toggle::after {
  content: ""; position: absolute; left: 11px; right: 11px; height: 2px; border-radius: 2px; background: var(--c-navy);
  transition: transform 0.35s var(--ease-out), opacity 0.2s;
}
.site-header__toggle::before { top: 15px; }
.site-header__toggle span { top: 21px; }
.site-header__toggle::after { top: 27px; }
.site-header.is-open .site-header__toggle::before { transform: translateY(6px) rotate(45deg); }
.site-header.is-open .site-header__toggle::after { transform: translateY(-6px) rotate(-45deg); }
.site-header.is-open .site-header__toggle span { opacity: 0; }

.site-header__actions { display: flex; align-items: center; gap: 8px; }
.site-header__cta { height: 48px; }
.site-nav__client { display: none; }

@media (max-width: 1280px) {
  .site-nav { gap: 64px; }
}
@media (max-width: 1100px) {
  .site-nav { gap: 48px; font-size: 18px; }
}
@media (max-width: 900px) {
  .site-header { padding-block: 16px; }
  .site-header__toggle { display: block; order: 3; }
  .site-header__actions { display: none; }
  .site-nav__client { display: block; }
  .site-nav {
    position: fixed; inset: 76px 16px auto 16px; flex-direction: column; align-items: stretch; gap: 4px;
    padding: 16px; border-radius: 24px; background: #fff; box-shadow: 0 30px 60px -20px rgba(0, 36, 126, 0.35);
    opacity: 0; pointer-events: none; transform: translateY(-12px) scale(0.98); transform-origin: top;
    transition: opacity 0.3s, transform 0.4s var(--ease-out);
  }
  .site-nav a { padding: 14px 12px; border-radius: 12px; }
  .site-nav a::after { display: none; }
  .site-nav a:hover { background: rgba(12, 90, 219, 0.06); }
  .site-header.is-open .site-nav { opacity: 1; pointer-events: auto; transform: none; }
  .site-header.is-open { background: rgba(255, 255, 255, 0.9); }
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative; overflow: hidden;
  background: var(--c-navy); color: #fff;
  padding: 120px var(--gutter);
}
.site-footer__glow {
  position: absolute; left: -100px; bottom: -70px; width: 400px; height: 400px; pointer-events: none;
}
.site-footer__inner { position: relative; width: min(100%, var(--w-container)); margin-inline: auto; display: flex; flex-direction: column; gap: 140px; }
.site-footer__top { display: flex; justify-content: space-between; gap: 48px; }
.site-footer__headline { position: relative; width: 515px; height: 190px; font-size: 80px; line-height: 1; letter-spacing: 1.6px; white-space: nowrap; flex: none; }
.site-footer__headline span { position: absolute; display: block; }
.site-footer__headline span:first-child { left: 0; top: 0; font-weight: 300; color: #cacaca; }
.site-footer__headline span:last-child { left: 130px; top: 104px; font-weight: 700; color: #fff; }
.site-footer__intro { display: flex; flex-direction: column; align-items: flex-start; gap: 40px; width: 600px; max-width: 100%; }
.site-footer__intro p { font-size: 20px; line-height: 1.6; letter-spacing: 0.4px; color: #b9b9b9; }
.site-footer__cols { display: flex; justify-content: space-between; gap: 48px; }
.site-footer__brand { display: flex; flex-direction: column; gap: 33px; }
.site-footer__logo { width: 235.58px; height: 120px; margin-left: -22px; background: url("../svg/logo-white.svg") center / contain no-repeat; }
.site-footer__social { display: flex; align-items: center; gap: 16px; }
.site-footer__social a { display: block; transition: transform var(--t-fast) var(--ease-out), opacity var(--t-fast); }
.site-footer__social a:hover { transform: translateY(-3px) scale(1.08); }
.site-footer__social img { width: 30px; height: 30px; }
.site-footer__social a:first-child img { width: 33.756px; height: 33.756px; }
.site-footer__col h3 { font-size: 18px; line-height: 36px; font-weight: 500; letter-spacing: 0.36px; margin-bottom: 24px; }
.site-footer__col ul { display: flex; flex-direction: column; gap: 16px; font-weight: 300; font-size: 16px; line-height: 1.2; letter-spacing: 0.32px; color: #b9b9b9; }
.site-footer__col a { transition: color var(--t-fast); }
.site-footer__col a:hover { color: #fff; }
.site-footer__col--addr { width: 340px; }

@media (max-width: 1100px) {
  .site-footer { padding-block: 80px; }
  .site-footer__inner { gap: 80px; }
  .site-footer__top { flex-direction: column; }
  .site-footer__cols { flex-wrap: wrap; }
  .site-footer__headline { transform-origin: left top; }
}
@media (max-width: 640px) {
  .site-footer__headline { width: auto; height: auto; font-size: 52px; white-space: normal; display: flex; flex-direction: column; }
  .site-footer__headline span { position: static; }
  .site-footer__headline span:last-child { margin-left: 56px; }
  .site-footer__brand, .site-footer__col, .site-footer__col--addr { width: 100%; }
  .site-footer__cols { flex-direction: column; }
  .site-footer__intro p { font-size: 17px; }
}

/* ---------- Scroll reveal (progressive enhancement: only hidden when JS is on) ---------- */
.js [data-reveal] {
  opacity: 0; translate: 0 36px;
  transition: opacity 0.9s var(--ease-out), translate 0.9s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.js [data-reveal="left"] { translate: -48px 0; }
.js [data-reveal="right"] { translate: 48px 0; }
.js [data-reveal="zoom"] { translate: 0 0; scale: 0.92; }
.js [data-reveal].is-visible { opacity: 1; translate: 0 0; scale: 1; }

@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; }
  .js [data-reveal] { opacity: 1; translate: 0 0; scale: 1; }
}

/* ==========================================================================
   Motion layer + performance (transform / opacity only)
   ========================================================================== */
/* header: hides while scrolling down, returns on scroll up */
.site-header { transition: padding var(--t-base) var(--ease-out), background-color var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out), backdrop-filter var(--t-base), transform 0.5s var(--ease-out); }
.site-header.is-hidden { transform: translateY(-115%); }

/* reading-progress bar (CSS scroll-driven animation, no JS; ignored where unsupported) */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; background: var(--grad-brand); transform-origin: 0 50%; scale: 0 1; pointer-events: none; }
@supports (animation-timeline: scroll()) {
  .scroll-progress { animation: progress linear both; animation-timeline: scroll(root); }
}
@keyframes progress { to { scale: 1 1; } }

/* light sweep across filled buttons on hover */
.btn:not(.btn--outline):not(.btn--light)::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%);
  transform: translateX(-130%); transition: transform 0.8s var(--ease-out);
}
.btn:not(.btn--outline):not(.btn--light):hover::before { transform: translateX(130%); }

/* word-by-word title reveal (JS wraps words; titles stay readable without JS) */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.split .w > span { display: inline-block; transform: translateY(108%); transition: transform 0.9s var(--ease-out); transition-delay: calc(var(--i, 0) * 45ms); }
.split.is-in .w > span { transform: none; }
.js .split[data-reveal] { translate: 0 0; }

/* pause infinite animations in sections that are off-screen */
.is-paused, .is-paused * { animation-play-state: paused !important; }

/* NOTE: no content-visibility here on purpose - it applies paint containment and cuts off anything that grows past a section's edge on hover. */

/* smooth page-to-page fade (Chromium multi-page view transitions; ignored elsewhere) */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root) { animation: vt-out 0.22s ease both; }
::view-transition-new(root) { animation: vt-in 0.45s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }
