/* postquantum-ai.com - main stylesheet */

/* font files are on our own server, so no requests go to Google */
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-weight: 400;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-v12-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-weight: 500;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-v12-latin-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-weight: 600;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-v12-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-weight: 700;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-v12-latin-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-weight: 800;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-v12-latin-800.woff2') format('woff2');
}

:root {
  --teal: #0F7C8A;
  --coral: #E8664F;
  --navy: #16324F;
  --text: #1D2B3A;
  --grey: #4F5E6E;
  --light: #8A97A6;
  --line: #E6EBF0;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* everything looked a bit too big at 100% */
html {
  zoom: .85;
  background: #fff url("images/bg-pattern.svg");
}

body {
  font-family: 'Plus Jakarta Sans', Arial, sans-serif;
  color: var(--text);
  display: flex;
  flex-direction: column;
  min-height: calc(100vh / .85);   /* footer stays at the bottom */
}

a {
  color: inherit;
  text-decoration: none;
}

h1 {
  font-weight: 800;
  letter-spacing: -1.4px;
}

.container {
  width: 1120px;
  margin: 0 auto;
  position: relative;
}

.box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 12px 32px rgba(29, 43, 58, .05);
}


/* ---------- top bar ---------- */

.topbar {
  height: 104px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(6px);
}
.topbar .container {
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-link {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}
.logo-link img { display: block; }
.logo-link b {
  display: block;
  font-size: 19px;
  line-height: 1;
  padding-bottom: 4px;
}
.logo-link small {
  display: block;
  font-size: 13px;
  color: var(--light);
  padding-bottom: 4px;
}

.menu {
  display: flex;
  gap: 6px;
  font-size: 16px;
  font-weight: 600;
  color: var(--grey);
}
.menu a {
  padding: 9px 16px;
  border-radius: 10px;
}
.menu a.active {
  color: var(--teal);
  background: #E5F3F4;
}


/* ---------- footer ---------- */

footer {
  margin-top: auto;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  background: #fff;
  color: var(--light);
  font-size: 15px;
}
footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
footer .copy {
  display: flex;
  align-items: center;
  gap: 12px;
}
footer .copy img { display: block; }
footer a:hover { color: var(--teal); }


/* ---------- home ---------- */

.hero .container {
  display: grid;
  grid-template-columns: 1fr 440px;
  align-items: center;
  gap: 60px;
  height: 600px;
}

.small-title {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 2.4px;
  color: var(--coral);
  text-transform: uppercase;
}

.hero h1 {
  font-size: 40px;
  line-height: 1.22;
  margin: 18px 0 24px;
}
.hero h1 .nowrap { white-space: nowrap; }
.red { color: #FF0000; }
.blue { color: #4E95D8; }

.hero p {
  width: 480px;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--grey);
}

.hero .buttons {
  display: flex;
  gap: 14px;
  margin-top: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: 13px 22px;
  border-radius: 11px;
  font-weight: 700;
  font-size: 14.5px;
}
.btn-teal {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 12px 26px rgba(15, 124, 138, .28);
}
.btn-outline {
  background: #fff;
  border: 1.5px solid var(--coral);
  color: var(--coral);
}

.hero-pic { display: block; }

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding-bottom: 90px;
}
.feature {
  position: relative;
  padding: 24px 22px;
}
/* small coloured line on top of each card */
.feature::before {
  content: "";
  position: absolute;
  left: 28px;
  top: -1px;
  width: 44px;
  height: 3px;
  border-radius: 3px;
  background: var(--teal);
}
.feature.coral::before { background: var(--coral); }

.icon {
  width: 46px;
  height: 46px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: #E5F3F4;
}
.icon img { display: block; }
.coral .icon { background: #FDEEEA; }

.feature h3 {
  font-size: 17px;
  margin: 18px 0 8px;
}
.feature p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--grey);
}


/* ---------- page heading (all other pages) ---------- */

.page-title { padding: 48px 0 28px; }
.page-title h1 {
  font-size: 44px;
  margin-top: 14px;
}
.page-title p {
  font-size: 18px;
  color: var(--grey);
  margin-top: 12px;
}

.back {
  font-size: 15px;
  font-weight: 600;
  color: var(--teal);
}
.back:hover { text-decoration: underline; }


/* ---------- mission ---------- */

.mission-pic {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 18px 44px rgba(22, 50, 79, .10);
}

.tiles-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.4px;
  margin-top: 48px;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 20px 0 90px;
  overflow: hidden;
}
.tile {
  padding: 34px 28px;
  text-align: center;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 500;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.tile:nth-child(3n) { border-right: 0; }
.tile:nth-child(n+4) { border-bottom: 0; }
.tile .icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  margin: 0 auto 18px;
}
.tile:nth-child(even) .icon { background: #FDEEEA; }

.cert {
  display: inline-block;
  margin-top: 8px;
  color: #FF0000;
  font-weight: 700;
  text-decoration: underline;
}


/* ---------- offers ---------- */

.steps {
  position: relative;
  width: 820px;
  margin-bottom: 90px;
}
/* line behind the numbers */
.steps::before {
  content: "";
  position: absolute;
  left: 29px;
  top: 70px;
  bottom: 70px;
  width: 2px;
  background: linear-gradient(var(--teal), var(--coral));
}
.step {
  position: relative;
  display: flex;
  align-items: center;
  gap: 30px;
  padding: 24px 0;
}
.step .num {
  flex: none;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 18px;
  color: #fff;
  background: var(--teal);
  box-shadow: 0 0 0 8px #fff;
}
.step:nth-child(2) .num,
.step:nth-child(5) .num { background: var(--navy); }
.step:nth-child(3) .num { background: var(--coral); }
.step h3 {
  font-size: 22px;
  letter-spacing: -.4px;
  margin-top: 4px;
}


/* ---------- team ---------- */

.team-top {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 28px;
}

.facts {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 22px;
}
.fact {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 28px;
}
.fact .big {
  min-width: 150px;
  font-size: 58px;
  font-weight: 800;
  letter-spacing: -3px;
  line-height: 1;
  color: var(--teal);
}
.fact .big small {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: .75;
}
.fact:nth-child(2) .big {
  color: var(--coral);
  font-size: 44px;
  letter-spacing: -1.5px;
}
.fact p {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--grey);
}

.standards { padding: 26px 28px; }
.standards p {
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--grey);
}
.groups {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.group {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 11px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.group b {
  display: block;
  font-size: 17px;
}
.group span {
  font-size: 15px;
  color: var(--grey);
}
.badge {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid var(--navy);
  display: grid;
  place-items: center;
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--navy);
}
.badge.two-lines {
  font-size: 11px;
  line-height: 1.05;
  text-align: center;
}

.profile {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 38px;
  align-items: start;
  padding: 28px;
  margin: 24px 0 90px;
  background: linear-gradient(120deg, #fff 0%, #fff 55%, #E5F3F4 100%);
}
.profile .photo {
  display: block;
  width: 170px;
  height: 215px;
  border-radius: 18px;
  object-fit: cover;
  object-position: center top;
}
.profile .label {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 2.4px;
  color: var(--coral);
}
.profile h3 {
  font-size: 26px;
  letter-spacing: -.6px;
  margin: 10px 0 14px;
}
.profile .bio {
  max-width: 820px;
  margin-bottom: 20px;
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--grey);
}

.numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  margin-bottom: 24px;
}
.numbers b {
  display: block;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.1;
  color: var(--teal);
}
.numbers div:nth-child(2) b { color: var(--coral); }
.numbers div:nth-child(3) b { color: var(--navy); }
.numbers span {
  font-size: 14.5px;
  color: var(--grey);
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.links a {
  display: inline-flex;
  align-items: center;
  padding: 11px 18px;
  border-radius: 11px;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  background: var(--navy);
}
.links a.teal {
  background: var(--teal);
  box-shadow: 0 10px 22px rgba(15, 124, 138, .25);
}
.links a.coral {
  background: var(--coral);
  box-shadow: 0 10px 22px rgba(232, 102, 79, .25);
}
.links a.white {
  background: #fff;
  border: 1.5px solid var(--navy);
  color: var(--navy);
}


/* ---------- career, publications, patents, theses ---------- */

.content {
  padding: 34px 40px;
  margin-bottom: 90px;
}
.content p {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--grey);
  margin-bottom: 16px;
}

.timeline {
  list-style: none;
  display: grid;
  gap: 12px;
}
.timeline li {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--grey);
}
.timeline b { color: var(--teal); }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
  color: var(--grey);
}
th {
  text-align: left;
  font-size: 12.5px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--light);
  padding: 0 12px 10px 0;
  border-bottom: 1.5px solid var(--line);
}
td {
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid #EEF2F5;
  vertical-align: top;
  line-height: 1.5;
}
td:first-child {
  width: 60px;
  color: var(--teal);
  font-weight: 700;
}
.patents td:nth-child(2) {
  width: 170px;
  white-space: nowrap;
  color: var(--navy);
  font-weight: 600;
}
.theses td:nth-child(2) {
  width: 230px;
  color: var(--navy);
  font-weight: 600;
}


/* ---------- legal notice, privacy policy, contact ---------- */

.text-box {
  max-width: 900px;
  padding: 40px 44px;
  margin-bottom: 90px;
}
.text-box h2 {
  font-size: 20px;
  letter-spacing: -.3px;
  color: var(--navy);
  margin: 28px 0 10px;
}
.text-box h2:first-child { margin-top: 0; }
.text-box p,
.text-box ul {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--grey);
  margin-bottom: 12px;
}
.text-box ul { margin-left: 22px; }
.text-box a {
  color: var(--teal);
  text-decoration: underline;
}

 
/* ---------- phones and small screens ---------- */
 
@media (max-width: 900px) {
  html { zoom: 1; }
  body { min-height: 100vh; }
 
  .container {
    width: 100%;
    padding: 0 18px;
  }
 
  .topbar,
  .topbar .container { height: auto; }
  .topbar .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding-top: 12px;
    padding-bottom: 12px;
  }
  .logo-link img {
    width: 56px;
    height: 56px;
  }
  .logo-link b { font-size: 17px; }
  .menu {
    flex-wrap: wrap;
    gap: 2px;
    font-size: 14px;
  }
  .menu a { padding: 7px 10px; }
 
  .hero .container {
    grid-template-columns: 1fr;
    height: auto;
    gap: 20px;
    padding-top: 32px;
    padding-bottom: 32px;
  }
  .hero h1 { font-size: 30px; }
  .hero h1 .nowrap { white-space: normal; }
  .hero p { width: auto; }
  .hero-pic {
    width: 100%;
    max-width: 340px;
    height: auto;
    margin: 0 auto;
  }
  .features {
    grid-template-columns: 1fr;
    padding-bottom: 50px;
  }
 
  .page-title { padding: 28px 18px 20px; }
  .page-title h1 { font-size: 32px; }
 
  .mission-pic { border-radius: 14px; }
  .tiles-title { font-size: 20px; margin-top: 32px; }
  .tiles { grid-template-columns: 1fr; margin-bottom: 50px; }
  .tile,
  .tile:nth-child(n+4) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .tile:last-child { border-bottom: 0; }
 
  .steps { width: auto; margin-bottom: 50px; }
  .step { gap: 18px; }
  .step h3 { font-size: 18px; }
 
  .team-top { grid-template-columns: 1fr; }
  .fact {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .profile {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 50px;
  }
 
  .content,
  .text-box {
    padding: 24px 20px;
    margin-bottom: 50px;
  }
  .timeline li {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  table { font-size: 14px; }
  .patents td:nth-child(2),
  .theses td:nth-child(2) {
    width: auto;
    white-space: normal;
  }
 
  footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}