:root {
  --ink: #0b1f33;
  --ink-2: #33475b;
  --muted: #55687a;
  --line: #dde4eb;
  --bg: #ffffff;
  --bg-alt: #f4f7fa;
  --navy: #0b1f33;
  --navy-2: #12304d;
  --accent: #0a5bc4;
  --accent-dark: #084a9f;
  --accent-soft: #e8f1fc;
  --radius: 10px;
  --wrap: 1180px;
  --font: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol { margin: 0; }
img, svg { max-width: 100%; }
a { color: var(--accent); }
a:hover { color: var(--accent-dark); }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 50;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus { top: 0.75rem; color: #fff; }

.wrap {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
}
.narrow { max-width: 48rem; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 1px 12px rgba(11, 31, 51, 0.06);
}
.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.5rem;
  min-height: 72px;
  padding-block: 0.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.14em;
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background:
    radial-gradient(circle at 50% 50%, #fff 0 2.5px, transparent 3px),
    linear-gradient(135deg, var(--accent), #2f86e6);
}
.primary { order: 3; width: 100%; }
.primary ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
  list-style: none;
  padding: 0;
}
.primary a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink-2);
  font-weight: 500;
  font-size: 0.98rem;
  text-decoration: none;
}
.primary a:hover, .primary a[aria-current="page"] { color: var(--accent); }
.primary a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent); }
.header-cta { margin-left: auto; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.7rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-sm { min-height: 42px; padding: 0.55rem 1rem; font-size: 0.95rem; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, 0.45); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--accent-soft); color: var(--navy); }

.link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}
.link svg { transition: transform 0.15s ease; }

.kicker {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Hero */
.hero, .page-hero, .cta-band {
  background:
    radial-gradient(ellipse 60% 80% at 85% 20%, rgba(59, 143, 224, 0.22), transparent 60%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
}
.hero .kicker, .page-hero .kicker { color: #8fc1f2; }
.hero { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
.hero h1, .page-hero h1 {
  margin-top: 0.9rem;
  max-width: 16ch;
  font-size: clamp(2.4rem, 5.4vw, 3.9rem);
  font-weight: 650;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.page-hero h1 { max-width: 22ch; }
.hero-sub {
  max-width: 40rem;
  margin-top: 1.25rem;
  color: #d3e1ee;
  font-size: clamp(1.08rem, 1.7vw, 1.22rem);
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}
.hero-art { display: none; width: 100%; max-width: 460px; justify-self: end; }
.page-hero { padding-block: clamp(3rem, 7vw, 5rem); }
.page-hero-tall { min-height: 60vh; display: grid; align-items: center; }

.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
  padding: 0;
  list-style: none;
}
.jump a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  color: #fff;
  font-size: 0.92rem;
  text-decoration: none;
}
.jump a:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); color: #fff; }

/* Sections */
.section { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 46rem; margin-bottom: 2.5rem; }
.section-head h2, .section h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.4rem);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.section-head .kicker + h2 { margin-top: 0.6rem; }
.section-head p:not(.kicker) {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 1.1rem;
}
.section-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
  max-width: none;
}
.section-head-row > div { max-width: 46rem; }
.lead { margin-top: 0.9rem; color: var(--ink-2); font-size: 1.12rem; line-height: 1.6; }
.note { margin-top: 1.5rem; color: var(--muted); font-size: 0.95rem; }

/* Pillars */
.pillars-section { padding-block: clamp(2.75rem, 5vw, 3.75rem); border-bottom: 1px solid var(--line); }
.pillars { display: grid; gap: 2rem; }
.pillar h2 {
  font-size: 1.15rem !important;
  font-weight: 650;
  letter-spacing: -0.005em !important;
}
.pillar p { margin-top: 0.5rem; color: var(--muted); }

/* Solution cards */
.sol-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
  gap: 1.25rem;
}
.sol-card, .res-card {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.sol-card:hover, .res-card:hover {
  border-color: #b9cde3;
  box-shadow: 0 8px 24px rgba(11, 31, 51, 0.08);
  color: var(--ink);
}
.sol-card:hover .link svg, .res-card:hover .link svg { transform: translateX(3px); }
.sol-card h3, .res-card h3 { font-size: 1.2rem; font-weight: 650; line-height: 1.3; }
.sol-card p, .res-card p { color: var(--muted); flex: 1; }
.sol-card .link, .res-card .link { margin-top: 0.5rem; }
.icon { color: var(--accent); }
.sol-card .icon {
  box-sizing: content-box;
  padding: 10px;
  border-radius: 10px;
  background: var(--accent-soft);
}

/* Process */
.process {
  display: grid;
  gap: 1.5rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.process li {
  position: relative;
  padding: 1.5rem 1.5rem 1.6rem;
  border-top: 3px solid var(--accent);
  border-radius: 0 0 var(--radius) var(--radius);
  background: #fff;
  counter-increment: step;
}
.process li::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 0.6rem;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.process h3 { font-size: 1.15rem; font-weight: 650; }
.process p { margin-top: 0.45rem; color: var(--muted); font-size: 0.98rem; }

/* Industries */
.ind-grid { display: grid; gap: 0; border-top: 1px solid var(--line); }
.ind {
  display: grid;
  gap: 0.4rem;
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--line);
}
.ind h3 { font-size: 1.15rem; font-weight: 650; }
.ind p { color: var(--muted); }
.ind-detail-grid { display: grid; gap: 1.25rem; }
.ind-detail {
  padding: 1.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.ind-detail h2 { font-size: 1.45rem !important; }
.ind-detail > p { margin-top: 0.6rem; color: var(--muted); }
.ind-detail .checks { margin-top: 1.2rem; }

/* Research */
.res-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
  gap: 1.25rem;
}
.tag {
  align-self: flex-start;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.areas {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr));
  gap: 1.75rem 2rem;
}
.areas h3, .principles h3 { font-size: 1.1rem; font-weight: 650; }
.areas p, .principles p { margin-top: 0.4rem; color: var(--muted); }

/* Solutions detail */
.sol-detail-grid { display: grid; gap: 2rem; }
.sol-detail-head .icon { margin-bottom: 1rem; }
.sol-detail-head h2 { font-size: clamp(1.7rem, 3vw, 2.2rem); }
.sol-detail-body h3 {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.sol-detail-body h3 + ul { margin-top: 0.9rem; }
.sol-detail-body ul + h3 { margin-top: 2rem; }

.checks, .plain, .principles, .plain-list { padding: 0; list-style: none; }
.checks { display: grid; gap: 0.7rem; }
.checks li {
  position: relative;
  padding-left: 1.9rem;
  color: var(--ink-2);
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.3rem;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px #b9d3f1;
}
.checks li::after {
  content: "";
  position: absolute;
  left: 0.38rem;
  top: 0.55rem;
  width: 0.38rem;
  height: 0.62rem;
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.plain { display: grid; gap: 0.5rem; }
.plain li { padding-left: 1rem; border-left: 2px solid var(--line); color: var(--ink-2); }

/* About */
.about-grid { display: grid; gap: 2rem; }
.principles { display: grid; gap: 1.6rem; }
.plain-list { display: grid; gap: 1rem; }
.plain-list li { color: var(--ink-2); }
.plain-list strong { color: var(--ink); }

/* Contact */
.contact-grid { display: grid; gap: 2.5rem; }
.contact-grid h2 { font-size: 1.4rem !important; margin-bottom: 1rem; }
.contact-card {
  align-self: start;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-alt);
}
.contact-email { font-size: 1.2rem; font-weight: 600; word-break: break-all; }
.contact-card .btn { margin-top: 1.5rem; }

/* CTA band */
.cta-band { padding-block: clamp(3rem, 6vw, 4.5rem); }
.cta-inner { display: grid; gap: 1.75rem; align-items: center; }
.cta-band h2 {
  max-width: 28ch;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.cta-band p { max-width: 44rem; margin-top: 0.8rem; color: #d3e1ee; }

/* Footer */
.site-footer {
  padding-top: 3.5rem;
  background: #071523;
  color: #b8c7d6;
  font-size: 0.95rem;
}
.footer-grid { display: grid; gap: 2rem; padding-bottom: 2.5rem; }
.brand-light, .brand-light:hover { color: #fff; }
.footer-about p { max-width: 24rem; margin-top: 0.9rem; }
.footer-h {
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.site-footer ul { display: grid; gap: 0.15rem; margin-top: 0.8rem; padding: 0; list-style: none; }
.site-footer ul a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: #b8c7d6;
  text-decoration: none;
}
.site-footer ul a:hover { color: #fff; }
.footer-base { padding-block: 1.25rem 1.75rem; border-top: 1px solid #1b2e42; }
.footer-base p { color: #8ea2b6; font-size: 0.88rem; }

@media (min-width: 760px) {
  .wrap { width: min(var(--wrap), calc(100% - 4rem)); }
  .pillars { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .ind-grid { grid-template-columns: repeat(2, 1fr); column-gap: 3rem; border-top: 0; }
  .ind { border-top: 1px solid var(--line); border-bottom: 0; }
  .ind-detail-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1.4fr; }
  .footer-grid { grid-template-columns: 1.6fr 1.3fr 1fr 1fr; }
  .cta-inner { grid-template-columns: 1fr auto; }
}

@media (min-width: 980px) {
  .header-inner { flex-wrap: nowrap; gap: 2.5rem; }
  .primary { order: 0; width: auto; }
  .primary ul { gap: 0 1.75rem; }
  .hero-grid { grid-template-columns: 1.25fr 1fr; }
  .hero-art { display: block; }
  .process { grid-template-columns: repeat(4, 1fr); }
  .sol-grid { grid-template-columns: repeat(6, 1fr); }
  .sol-grid > .sol-card { grid-column: span 2; }
  .sol-grid > .sol-card:nth-child(4), .sol-grid > .sol-card:nth-child(5) { grid-column: span 3; }
  .sol-detail-grid { grid-template-columns: 1fr 1.25fr; gap: 4rem; }
  .about-grid { grid-template-columns: 1fr 1.4fr; gap: 4rem; }
}

@media (max-width: 520px) {
  .header-cta { padding-inline: 0.8rem; font-size: 0.9rem; }
  .brand { font-size: 1.05rem; }
  .hero-actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

@media (forced-colors: active) {
  .btn, .sol-card, .res-card, .ind-detail, .contact-card { border: 1px solid CanvasText; }
}

@media print {
  .site-header { position: static; }
  .hero, .page-hero, .cta-band { background: #fff; color: #000; }
}
