:root {
  --ink: #0e0d0a;
  --muted: #72726d;
  --faint: rgba(14, 13, 10, 0.3);
  --yellow: #f9e97d;
  --dark: #0b0b09;
  --white: #ffffff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

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

button,
input,
textarea {
  font: inherit;
}

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

.site-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  min-height: 86px;
  padding: 29px 56px 0;
  background: var(--white);
}

.brand img {
  width: 192px;
  height: auto;
}

.nav {
  display: flex;
  justify-content: flex-end;
  gap: 64px;
  padding-right: 36px;
  font-size: 16px;
}

.nav a,
.pill,
.service-item,
.partner-list button,
.project-card,
.social-link,
.submit-button {
  transition:
    color 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    opacity 180ms ease,
    transform 180ms ease,
    box-shadow 180ms ease;
}

.nav a:hover,
.nav a:focus-visible {
  opacity: 0.55;
}

.menu-toggle {
  display: none;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--white);
  background: var(--ink);
  border-radius: 999px;
  font-weight: 800;
  text-transform: uppercase;
  white-space: nowrap;
}

.pill-small {
  min-width: 144px;
  min-height: 34px;
  padding: 5px 6px 5px 20px;
  font-size: 14px;
}

.pill-large {
  min-width: 212px;
  min-height: 56px;
  padding: 8px 10px 8px 30px;
  font-size: 14px;
}

.pill-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
}

.pill-small .pill-icon {
  width: 25px;
  height: 25px;
  font-size: 20px;
}

.pill:hover,
.pill:focus-visible {
  transform: translateY(-1px);
}

.pill:hover .pill-icon,
.pill:focus-visible .pill-icon {
  background: #fff19a;
}

.section {
  padding: 0 56px;
}

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

h1,
h2 {
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 1328px;
  font-size: clamp(56px, 6vw, 86px);
  line-height: 1.28;
}

h2 {
  font-size: clamp(42px, 4.2vw, 62px);
  line-height: 1.05;
}

.hero {
  position: relative;
  min-height: 890px;
  display: flex;
  align-items: flex-start;
  padding-top: 205px;
  overflow: hidden;
  background:
    radial-gradient(circle at 33% 100%, rgba(249, 233, 125, 0.42), transparent 32%),
    var(--white);
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero p {
  max-width: 560px;
  margin: 72px 0 70px;
  font-size: 20px;
  line-height: 1.35;
}

.lab-a {
  display: inline-block;
  height: 1cap;
  width: calc(1cap * 46.93 / 41.41);
  margin: 0 0.09em 0 0.02em;
  vertical-align: baseline;
  line-height: 0;
}

@supports not (height: 1cap) {
  .lab-a {
    height: 0.72em;
    width: calc(0.72em * 46.93 / 41.41);
  }
}

.lab-a svg {
  display: block;
  width: 100%;
  height: 100%;
}

.dotted-mark {
  position: absolute;
  right: -38px;
  bottom: 54px;
  width: 626px;
  opacity: 0.38;
}

.glow-section {
  background:
    radial-gradient(circle at 32% 44%, rgba(249, 233, 125, 0.86), transparent 33%),
    linear-gradient(90deg, #fff 0%, #fffdf2 45%, #fff 100%);
}

.services {
  min-height: 1085px;
  padding-top: 94px;
}

.section-grid {
  display: grid;
  grid-template-columns: 410px 1fr;
  gap: 235px;
  align-items: start;
}

.service-list {
  margin-top: 70px;
}

.service-item {
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  color: rgba(14, 13, 10, 0.34);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(14, 13, 10, 0.28);
  cursor: pointer;
  font-size: 24px;
  text-align: left;
}

.service-item span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--ink);
  background: var(--white);
  border-radius: 50%;
  opacity: 0;
}

.service-item.is-active {
  color: var(--ink);
}

.service-item.is-active span {
  opacity: 1;
}

.service-item:hover,
.service-item:focus-visible {
  color: var(--ink);
}

.service-copy {
  max-width: 520px;
  padding-top: 210px;
  font-size: 31px;
  line-height: 1.16;
}

.service-copy p + p {
  margin-top: 54px;
}

.what {
  position: relative;
  min-height: 1370px;
  display: grid;
  grid-template-columns: 330px minmax(455px, 500px) 1fr;
  align-items: start;
  gap: 120px;
  padding-top: 66px;
}

.what-title {
  padding-top: 520px;
  font-size: 62px;
  line-height: 1;
  text-transform: uppercase;
}

.lab-scroll {
  width: min(500px, 100%);
  max-height: 760px;
  display: grid;
  gap: 52px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 18px 52px 0;
  scroll-padding-top: 0;
  scroll-snap-type: y mandatory;
  scrollbar-color: rgba(14, 13, 10, 0.28) transparent;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.lab-scroll:focus-visible {
  outline: 2px solid rgba(14, 13, 10, 0.45);
  outline-offset: 8px;
}

.lab-card {
  position: relative;
  width: 455px;
  min-height: 455px;
  padding: 49px 48px;
  color: var(--white);
  background: var(--dark);
  border: 18px solid #e7e7e7;
  border-radius: 38px;
  overflow: hidden;
  scroll-snap-align: start;
}

.lab-card h3 {
  font-size: 30px;
  line-height: 1.1;
}

.lab-card p {
  position: relative;
  z-index: 1;
  max-width: 330px;
  margin-top: 50px;
  font-size: 36px;
  line-height: 1.06;
}

.lab-card img {
  position: absolute;
  left: 58px;
  right: 58px;
  bottom: 54px;
  width: calc(100% - 116px);
}

.lab-card-secondary {
  opacity: 0.42;
  transition: opacity 180ms ease;
}

.lab-card-secondary p {
  max-width: 360px;
  font-size: 34px;
}

.lab-card-secondary p strong {
  display: block;
  font-weight: 800;
}

.lab-scroll:hover .lab-card-secondary,
.lab-scroll:focus-visible .lab-card-secondary,
.lab-scroll:focus-within .lab-card-secondary {
  opacity: 0.92;
}

.what-logo {
  display: grid;
  justify-items: center;
  gap: 70px;
  padding-top: 560px;
}

.what-logo img {
  width: 218px;
}

.slider-dots {
  display: grid;
  gap: 8px;
}

.slider-dots span {
  width: 8px;
  height: 8px;
  background: var(--ink);
  border-radius: 50%;
}

.slider-dots span + span {
  opacity: 0.35;
}

.cta-strip {
  width: 920px;
  margin: -120px auto 170px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 38px;
  padding: 29px 42px;
  background: var(--yellow);
  border: 18px solid rgba(249, 233, 125, 0.32);
  border-radius: 40px;
}

.cta-strip p {
  max-width: 260px;
  font-size: 30px;
  line-height: 1.08;
}

.cta-strip img {
  width: 160px;
}

.cta-strip .pill {
  justify-self: end;
}

.dark {
  color: var(--white);
  background: var(--dark);
}

.partners-section {
  min-height: 1180px;
  padding-top: 120px;
}

.partners-section h2,
.projects h2 {
  color: var(--white);
}

.partner-layout {
  display: grid;
  grid-template-columns: 410px 600px;
  gap: 290px;
  margin-top: 86px;
  align-items: start;
}

.partner-list {
  display: grid;
}

.partner-list button {
  min-height: 78px;
  color: rgba(255, 255, 255, 0.28);
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.23);
  text-align: left;
  font-size: 25px;
  cursor: pointer;
}

.partner-list .is-active {
  color: var(--white);
}

.partner-list button:hover,
.partner-list button:focus-visible {
  color: rgba(255, 255, 255, 0.82);
}

.partner-detail {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 70px;
  align-items: start;
  padding-top: 20px;
}

.partner-logo {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 8px;
}

.partner-logo img,
.partner-logo-fallback {
  display: block;
  width: auto;
  max-width: 116px;
  max-height: 72px;
  padding: 18px 16px;
  object-fit: contain;
  background: #b3b3b3;
  border-radius: 18px;
}

.partner-logo-fallback {
  min-width: 84px;
  min-height: 72px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.72);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.partner-logo-fallback[hidden],
.partner-logo img[hidden] {
  display: none;
}

.partner-copy {
  min-width: 0;
  padding-top: 8px;
}

.partner-copy p {
  max-width: 390px;
  font-size: 16px;
  line-height: 1.35;
}

.team-section {
  min-height: 1180px;
  padding-top: 126px;
  background:
    radial-gradient(circle at 45% 35%, rgba(249, 233, 125, 0.42), transparent 34%),
    var(--white);
}

.team-lead {
  max-width: 1130px;
  margin: 36px 0 92px;
  font-size: 23px;
  line-height: 1.22;
}

.team-grid {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 52px 92px;
}

.person {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 18px;
  align-items: center;
}

.person img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
}

.person h3 {
  font-size: 18px;
  line-height: 1.1;
}

.person p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.projects {
  min-height: 1120px;
  padding-top: 126px;
}

.projects h2 {
  text-align: left;
  font-size: 58px;
}

.projects-board {
  width: 1328px;
  min-height: 430px;
  margin: 154px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-radius: 8px;
}

.project-card {
  display: grid;
  place-items: center;
  min-height: 176px;
  padding: 34px;
  background:
    radial-gradient(circle at 50% 10%, rgba(255, 255, 255, 0.08), transparent 60%),
    #11110f;
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  cursor: pointer;
}

.project-card img {
  max-width: 86%;
  max-height: 84px;
  filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.14));
}

.project-card:hover,
.project-card:focus-visible,
.project-card.is-active {
  border-color: rgba(249, 233, 125, 0.55);
  box-shadow: inset 0 0 0 1px rgba(249, 233, 125, 0.18);
  transform: translateY(-2px);
}

.project-caption {
  width: min(760px, 100%);
  margin: 38px auto 0;
  color: rgba(255, 255, 255, 0.72);
  text-align: center;
  font-size: 18px;
  line-height: 1.35;
}

.contact-section {
  min-height: 820px;
  padding-top: 90px;
}

.contact-section h2 {
  margin-left: 0;
}

.contact-card {
  width: 558px;
  margin: 54px auto 0;
  padding: 42px;
  background: var(--white);
  border: 18px solid rgba(249, 233, 125, 0.45);
  border-radius: 38px;
}

.form-fields h3 {
  margin-bottom: 36px;
  font-size: 27px;
  font-weight: 400;
}

label {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
  font-size: 14px;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid #dadada;
  border-radius: 8px;
  padding: 13px 17px;
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
}

textarea {
  min-height: 104px;
  resize: vertical;
}

.submit-button {
  min-width: 98px;
  min-height: 44px;
  margin-top: 10px;
  color: var(--white);
  background: var(--ink);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 700;
}

.consent-field {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 12px;
  align-items: start;
  margin-bottom: 18px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
}

.consent-field input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  padding: 0;
}

.consent-field label {
  margin: 0;
  font-weight: 400;
}

.consent-field--error label {
  color: #9c2a2a;
}

.form-msg {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 700;
}

.form-msg.error {
  color: #9c2a2a;
}

.form-msg.success {
  color: #2f6b32;
}

.footer {
  padding: 0 56px 42px;
  background: var(--white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr 0.8fr;
  gap: 145px;
  padding-top: 34px;
  border-top: 1px solid rgba(14, 13, 10, 0.55);
}

.footer p {
  font-size: 16px;
  line-height: 1.24;
}

.footer .muted {
  margin-bottom: 18px;
  color: var(--muted);
}

.footer .pill {
  margin-top: 30px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 16px;
  width: max-content;
  margin-top: 14px;
  font-size: 16px;
  font-weight: 800;
}

.social-link span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  background: var(--yellow);
  border-radius: 50%;
}

.footer-logo {
  width: 100%;
  margin-top: 62px;
}

.powered-logo {
  width: 130px;
  margin: 22px auto 0;
}

.footer-legal {
  display: flex;
  gap: 48px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(14, 13, 10, 0.45);
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
    min-height: 76px;
    padding: 24px 24px 0;
  }

  .nav,
  .site-header > .pill {
    display: none;
  }

  .site-header.is-open .nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    z-index: 30;
    display: grid;
    gap: 0;
    padding: 10px 24px 18px;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(14, 13, 10, 0.16);
  }

  .site-header.is-open .nav a {
    padding: 14px 0;
    border-bottom: 1px solid rgba(14, 13, 10, 0.1);
  }

  .menu-toggle {
    display: grid;
    gap: 7px;
    width: 42px;
    padding: 10px 0;
    border: 0;
    background: transparent;
  }

  .menu-toggle span {
    display: block;
    height: 2px;
    background: var(--ink);
  }

  .section {
    padding-left: 24px;
    padding-right: 24px;
  }

  .hero {
    min-height: 770px;
    padding-top: 130px;
  }

  .dotted-mark {
    right: -42vw;
    bottom: 10px;
    width: 108vw;
  }

  .section-grid,
  .partner-layout,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .services,
  .what,
  .partners-section,
  .team-section,
  .projects,
  .contact-section {
    min-height: auto;
    padding-top: 90px;
    padding-bottom: 90px;
  }

  .service-copy {
    padding-top: 0;
  }

  .what {
    display: grid;
    grid-template-columns: 1fr;
  }

  .what-title,
  .what-logo {
    padding-top: 0;
  }

  .lab-scroll {
    width: min(455px, 100%);
    max-height: 560px;
    gap: 36px;
    padding: 0 10px 36px 0;
  }

  .lab-card {
    width: 100%;
  }

  .what-logo {
    justify-items: start;
  }

  .cta-strip {
    width: calc(100% - 48px);
    margin: 0 auto 90px;
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .cta-strip .pill {
    justify-self: start;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .projects-board {
    width: 100%;
    height: auto;
    min-height: 0;
    margin-top: 64px;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

  .project-card {
    min-height: 124px;
    padding: 22px;
  }

  .contact-card {
    margin-top: 80px;
  }
}

@media (max-width: 620px) {
  .brand img {
    width: 168px;
  }

  h1 {
    font-size: clamp(42px, 13vw, 58px);
  }

  .hero p {
    margin-bottom: 44px;
    font-size: 18px;
  }

  .pill-large {
    min-width: 178px;
  }

  .service-item {
    min-height: 72px;
    font-size: 22px;
  }

  .lab-card {
    min-height: 420px;
    border-width: 12px;
    border-radius: 28px;
  }

  .lab-scroll {
    max-height: 520px;
  }

  .lab-card-secondary p {
    font-size: 27px;
  }

  .lab-card img {
    left: 28px;
    right: 28px;
    width: calc(100% - 56px);
  }

  .cta-strip {
    border-width: 12px;
    border-radius: 28px;
    padding: 24px;
  }

  .partner-detail {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .contact-card {
    width: 100%;
    padding: 24px;
    border-width: 12px;
    border-radius: 28px;
  }

  .projects-board {
    grid-template-columns: 1fr;
  }

  .footer {
    padding-left: 24px;
    padding-right: 24px;
  }

  .footer-logo {
    margin-top: 72px;
  }

  .footer-legal {
    display: grid;
    gap: 16px;
  }
}
