:root {
  --ink: #071426;
  --ink-soft: #213047;
  --muted: #607087;
  --line: #dce5ee;
  --line-strong: #c8d5e2;
  --paper: #f7fafc;
  --white: #ffffff;
  --navy: #061a33;
  --navy-2: #0c294b;
  --cyan: #28bde8;
  --cyan-soft: #dff7ff;
  --amber: #e9a63a;
  --amber-soft: #fff3dd;
  --green: #2a9d72;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 30px;
  --shadow: 0 24px 60px -40px rgba(2, 19, 38, 0.45);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 4%, rgba(40, 189, 232, 0.12), transparent 28rem),
    radial-gradient(circle at 8% 36%, rgba(233, 166, 58, 0.09), transparent 24rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0.38;
  background-image:
    linear-gradient(rgba(7, 20, 38, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(7, 20, 38, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black 0, transparent 72%);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(40, 189, 232, 0.48);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--white);
  background: var(--navy);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(calc(100% - 36px), var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(200, 213, 226, 0.74);
  background: rgba(247, 250, 252, 0.86);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: max-content;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(40, 189, 232, 0.36);
  border-radius: 13px;
  color: var(--white);
  background: linear-gradient(145deg, var(--navy-2), var(--navy));
  box-shadow: 0 8px 20px -12px rgba(2, 19, 38, 0.8);
  font-size: 13px;
  letter-spacing: -0.05em;
}

.brand-role {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
}

.main-nav,
.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.main-nav a {
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 650;
}

.main-nav a:hover,
.footer-nav a:hover,
.text-link:hover {
  color: #087aa0;
}

.lang-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: var(--white);
  font-size: 12px;
  font-weight: 800;
}

.mobile-nav {
  display: none;
  padding: 0 0 12px;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.mobile-nav::-webkit-scrollbar {
  display: none;
}

.mobile-nav a {
  min-width: max-content;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.btn {
  display: inline-flex;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 16px;
  border: 1px solid transparent;
  border-radius: 13px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 750;
  line-height: 1;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--navy-2), var(--navy));
  box-shadow: 0 14px 26px -18px rgba(2, 19, 38, 0.9);
}

.btn-secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.82);
}

.btn-secondary:hover {
  border-color: #9cb2c6;
  background: var(--white);
}

.btn-ghost {
  min-height: 38px;
  padding: 9px 12px;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.hero {
  padding: clamp(58px, 8vw, 105px) 0 46px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(310px, 0.65fr);
  align-items: center;
  gap: clamp(36px, 7vw, 86px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: #14799a;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 26px;
  height: 2px;
  border-radius: 999px;
  content: "";
  background: linear-gradient(90deg, var(--cyan), var(--amber));
}

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

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 830px;
  margin-bottom: 22px;
  font-size: clamp(42px, 6.5vw, 78px);
  font-weight: 790;
}

h1 .accent {
  color: #14799a;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 780;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  font-weight: 760;
  letter-spacing: -0.025em;
}

.lead {
  max-width: 760px;
  margin-bottom: 28px;
  color: var(--ink-soft);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.58;
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

.trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 620;
}

.trust-line span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust-line span::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  content: "";
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(42, 157, 114, 0.12);
}

.profile-card {
  position: relative;
  padding: 26px;
  overflow: hidden;
  border: 1px solid rgba(200, 213, 226, 0.95);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.profile-card::after {
  position: absolute;
  right: -84px;
  bottom: -90px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  content: "";
  background: radial-gradient(circle, rgba(40, 189, 232, 0.24), transparent 70%);
}

.profile-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 18px;
}

.profile-photo {
  width: 116px;
  height: 116px;
  object-fit: cover;
  object-position: center 18%;
  border: 1px solid var(--line);
  border-radius: 23px;
  background: #eaf0f5;
  box-shadow: 0 14px 30px -22px rgba(2, 19, 38, 0.8);
}

.profile-name {
  margin-bottom: 3px;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.profile-role {
  color: var(--muted);
  font-size: 14px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 6px 10px;
  border: 1px solid #cce8dd;
  border-radius: 999px;
  color: #17694b;
  background: #f0fbf6;
  font-size: 12px;
  font-weight: 750;
}

.status::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  content: "";
  background: var(--green);
}

.profile-quote {
  position: relative;
  z-index: 1;
  margin: 22px 0 18px;
  padding: 17px 18px;
  border-left: 3px solid var(--cyan);
  border-radius: 0 14px 14px 0;
  color: var(--ink-soft);
  background: rgba(223, 247, 255, 0.52);
  font-size: 14px;
}

.profile-links {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 28px 0 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
}

.metric {
  min-height: 128px;
  padding: 25px;
  border-right: 1px solid var(--line);
}

.metric:last-child {
  border-right: 0;
}

.metric strong {
  display: block;
  margin-bottom: 7px;
  color: var(--navy);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 820;
  line-height: 1;
  letter-spacing: -0.045em;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.section {
  padding: clamp(68px, 8vw, 104px) 0;
}

.section-tight {
  padding-top: 26px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(300px, 0.65fr);
  align-items: end;
  gap: 36px;
  margin-bottom: 34px;
}

.section-heading p {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 16px;
}

.section-kicker {
  margin-bottom: 10px;
  color: #14799a;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.card {
  position: relative;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 18px 44px -40px rgba(2, 19, 38, 0.8);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.card:hover {
  border-color: #b6c8d8;
  box-shadow: 0 22px 54px -38px rgba(2, 19, 38, 0.65);
  transform: translateY(-3px);
}

.card-number,
.card-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 42px;
  place-items: center;
  border: 1px solid rgba(40, 189, 232, 0.25);
  border-radius: 14px;
  color: #0e7495;
  background: var(--cyan-soft);
  font-size: 13px;
  font-weight: 850;
}

.card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.75);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.tag-cyan {
  border-color: #bae6f4;
  color: #0b6f8e;
  background: #effbff;
}

.tag-amber {
  border-color: #f1dbb5;
  color: #8a5b13;
  background: #fff8ec;
}

.dark-panel {
  position: relative;
  padding: clamp(32px, 5vw, 58px);
  overflow: hidden;
  border-radius: var(--radius-lg);
  color: #d9e8f5;
  background:
    radial-gradient(circle at 90% 20%, rgba(40, 189, 232, 0.22), transparent 25rem),
    linear-gradient(135deg, #0c294b, #05172c 70%);
  box-shadow: 0 30px 80px -46px rgba(2, 19, 38, 0.9);
}

.dark-panel::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(120deg, transparent 10%, black 100%);
}

.dark-panel > * {
  position: relative;
  z-index: 1;
}

.dark-panel h2,
.dark-panel h3 {
  color: var(--white);
}

.dark-panel p {
  color: #b7c9da;
}

.dark-panel .btn-secondary {
  border-color: #ffffff;
  color: #061a2f;
  background: #ffffff;
  box-shadow: 0 12px 26px -18px rgba(0, 0, 0, 0.8);
}

.dark-panel .btn-secondary:hover {
  border-color: #70dcff;
  color: #031426;
  background: #dff7ff;
}

.systems-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 32px;
}

.system-card {
  min-height: 245px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(8px);
}

.system-card .tag {
  border-color: rgba(255, 255, 255, 0.15);
  color: #cbe9f4;
  background: rgba(255, 255, 255, 0.06);
}

.system-result {
  display: block;
  margin: 32px 0 9px;
  color: #70dcff;
  font-size: 27px;
  font-weight: 820;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(30px, 6vw, 82px);
}

.sticky-copy {
  align-self: start;
  position: sticky;
  top: 116px;
}

.timeline {
  display: grid;
  gap: 13px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 126px 1fr;
  gap: 22px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.78);
}

.timeline-date {
  color: #14799a;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.timeline-item h3 {
  margin-bottom: 4px;
}

.timeline-company {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.timeline-item p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.research-grid,
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.research-card {
  display: flex;
  min-height: 310px;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.8);
  transition: transform 180ms ease, border-color 180ms ease;
}

.research-card:hover {
  border-color: #abc2d5;
  transform: translateY(-3px);
}

.research-card h3 {
  margin-top: 28px;
  font-size: 22px;
}

.research-card p {
  margin-bottom: 22px;
  color: var(--muted);
  font-size: 14px;
}

.research-card .text-link {
  margin-top: auto;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #126f8f;
  font-size: 13px;
  font-weight: 800;
}

.cta-panel {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 30px;
  padding: clamp(30px, 5vw, 56px);
  border: 1px solid rgba(40, 189, 232, 0.25);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(223, 247, 255, 0.9), rgba(255, 243, 221, 0.64)),
    var(--white);
  box-shadow: var(--shadow);
}

.cta-panel h2 {
  max-width: 760px;
  margin-bottom: 10px;
}

.cta-panel p {
  max-width: 730px;
  margin-bottom: 0;
  color: var(--muted);
}

.site-footer {
  margin-top: 70px;
  border-top: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.5);
}

.footer-inner {
  display: flex;
  min-height: 104px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-copy {
  color: var(--muted);
  font-size: 13px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 700;
}

/* Work pages */
.page-hero {
  padding: clamp(62px, 8vw, 100px) 0 42px;
}

.page-hero h1 {
  max-width: 920px;
  font-size: clamp(42px, 6vw, 70px);
}

.page-hero .lead {
  max-width: 820px;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.filter-btn {
  padding: 9px 13px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.76);
  cursor: pointer;
  font-size: 12px;
  font-weight: 760;
}

.filter-btn[aria-pressed="true"] {
  border-color: var(--navy);
  color: var(--white);
  background: var(--navy);
}

.case-list {
  display: grid;
  gap: 20px;
}

.case-study {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(0, 1.24fr);
  gap: clamp(28px, 5vw, 60px);
  padding: clamp(28px, 5vw, 52px);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow);
}

.case-study[hidden] {
  display: none;
}

.case-index {
  margin-bottom: 18px;
  color: #14799a;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.case-study h2 {
  font-size: clamp(30px, 4vw, 46px);
}

.case-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 28px;
}

.case-meta div {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}

.case-meta strong {
  display: block;
  margin-bottom: 4px;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.case-meta span {
  color: var(--muted);
  font-size: 11px;
}

.case-body {
  display: grid;
  gap: 18px;
}

.case-block {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.case-block:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.case-block h3 {
  margin-bottom: 7px;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.case-block p,
.case-block ul {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.case-block ul {
  padding-left: 19px;
}

.case-block li + li {
  margin-top: 5px;
}

.publication-list {
  display: grid;
  gap: 12px;
}

.publication-row {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

.publication-venue {
  color: #14799a;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.06em;
}

.publication-row h3 {
  margin-bottom: 4px;
  font-size: 18px;
  line-height: 1.3;
}

.publication-row p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.system-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.system-list .card-number {
  margin-bottom: 28px;
}

.system-list .card {
  min-height: 235px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .main-nav {
    display: none;
  }

  .mobile-nav {
    display: flex;
  }

  .hero-grid,
  .split,
  .case-study {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    align-items: start;
  }

  .profile-card {
    max-width: 660px;
  }

  .metric-strip,
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .metric:nth-child(2) {
    border-right: 0;
  }

  .metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .systems-grid,
  .research-grid,
  .proof-grid {
    grid-template-columns: 1fr;
  }

  .system-card {
    min-height: auto;
  }

  .sticky-copy {
    position: static;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(calc(100% - 26px), var(--max));
  }

  .header-inner {
    min-height: 66px;
  }

  .brand-role,
  .header-actions .btn {
    display: none;
  }

  h1 {
    font-size: clamp(39px, 12vw, 58px);
  }

  .hero {
    padding-top: 55px;
  }

  .profile-head {
    align-items: flex-start;
  }

  .profile-photo {
    width: 96px;
    height: 96px;
  }

  .profile-links {
    grid-template-columns: 1fr;
  }

  .metric-strip,
  .card-grid,
  .system-list,
  .case-meta {
    grid-template-columns: 1fr;
  }

  .metric {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .metric:last-child {
    border-bottom: 0;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .cta-panel {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 28px;
  }

  .publication-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .publication-row .text-link {
    margin-top: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
