:root {
  color-scheme: dark;
  --bg: #090a0d;
  --panel: #0f1116;
  --panel-2: #14171d;
  --text: #c5ccd8;
  --muted: #9299a5;
  --line: rgba(255,255,255,.09);
  --accent: #8db2ff;
  --radius: 22px;
  --max: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
          radial-gradient(circle at 50% -10%, rgba(78, 112, 190, .15), transparent 32rem),
          var(--bg);
  color: var(--text);
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

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

/* BACKGROUND VIDEO */

.background-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

/* Darkens video without applying a filter directly to it */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
  pointer-events: none;
}


/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  margin: 0;
  padding: 10px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgb(0 0 0 / 34%);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.brand {
  font-weight: 800;
  letter-spacing: -.045em;
}

.brand span {
  color: var(--muted);
}

nav {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

nav a:hover {
  color: var(--text);
}


/* PAGE */

main,
footer {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 0 20px;
}

h2 {
  color: #fff;
}


/* HERO */

.hero {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 88px 0 96px;
  color: #fff;
}

.eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(44px, 7vw, 92px);
  line-height: .98;
  letter-spacing: -.06em;
  font-weight: 700;
  margin: 0;
}

.hero-sub {
  max-width: 690px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
  margin: 18px 0 0;
}

.hero-link {
  color: #fff;
  margin-left: 10px;
}

.hero-sub .hero-link {
  color: #fff;
  text-decoration: none;
}

.hero-sub .hero-link:hover {
  text-decoration: underline;
}

.hero-lead {
  margin: 32px 0 0;
  font-size: clamp(21px, 2.5vw, 23px);
  line-height: 1.35;
  letter-spacing: -.03em;
  color: var(--text);
  max-width: 710px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 34px;
  flex-wrap: wrap;
}


/* BUTTONS */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 600;
  font-size: 14px;
}

.button.primary {
  background: var(--text);
  color: var(--bg);
}

.button.secondary {
  background: rgba(255,255,255,.03);
}


/* CONTENT SECTIONS */

.content-section {
  padding-bottom: 60px;
}

.content-section h2 {
  font-size: 32px;
  margin-bottom: 40px;
  text-align: center;
}

.section-bg {
  background-color: rgb(0 0 0 / 34%);
  padding: 40px;
  border-radius: 8px;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  margin-bottom: 60px;
}


/* STUDIES */

.studies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
}

.study-card {
  background-color: rgb(0 0 0 / 34%);
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
  display: block;
  transition: border-color 0.2s ease;
}

a.study-card:hover {
  border-color: #fff;
}

.study-card img {
  border-radius: 12px;
  margin-bottom: 20px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--panel-2);
}

.study-card h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

.study-card p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
}


/* PROJECTS */

.projects {
  display: grid;
  gap: 120px;
  padding-bottom: 120px;
  scroll-margin-top: 100px;
}

.project {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, .75fr);
  gap: 46px;
  align-items: start;
  background-color: rgb(0 0 0 / 34%);
  padding: 40px;
  border-radius: 8px;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.project:nth-child(even) {
  grid-template-columns: minmax(300px, .75fr) minmax(0, 1.55fr);
}

.project:nth-child(even) .project-media {
  order: 2;
}

.project-media {
  min-width: 0;
}

.project-info {
  padding-top: 8px;
  position: sticky;
  top: 96px;
}

.project-number {
  color: #606774;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.project-type {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  margin-top: 22px;
}

.project h2 {
  font-size: clamp(32px, 4vw, 50px);
  letter-spacing: -.04em;
  margin: 9px 0 18px;
}

.project-description {
  color: var(--muted);
  line-height: 1.65;
  font-size: 16px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 28px;
  font-weight: 600;
  font-size: 14px;
}

.project-link span {
  transition: transform .2s ease;
}

.project-link:hover span {
  transform: translate(3px, -2px);
}


/* PROJECT IMAGES */

.main-image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #151922, #0e1015);
  display: flex;
  align-items: center;
  justify-content: center;
}

.main-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .18s ease, transform .45s ease;
}

.main-image img:hover {
  transform: scale(1.01);
}

.image-placeholder {
  height: 100%;
  display: grid;
  place-items: center;
  color: #5f6672;
  font-size: 13px;
  letter-spacing: .03em;
  padding: 20px;
  text-align: center;
}


/* THUMBNAILS */

.thumbnails {
  display: flex;
  gap: 9px;
  margin-top: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.thumbnails::-webkit-scrollbar {
  display: none;
}

.thumb {
  width: 82px;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid transparent;
  background: var(--panel-2);
  padding: 0;
  flex: 0 0 auto;
  cursor: pointer;
  opacity: .58;
}

.thumb.active {
  opacity: 1;
  border-color: rgba(255,255,255,.35);
}

.thumb img {
  height: 100%;
  object-fit: cover;
}


/* TECH */

.tech-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.tech {
  color: #bdc3cc;
  background: rgba(255,255,255,.035);
  border: 1px solid var(--line);
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
}


/* REVIEWS */

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  align-items: start;
}

.review {
  padding: 32px;
  border-radius: var(--radius);
  max-width: none;
}

.review-featured {
  grid-column: 1 / -1;
}

.review p {
  font-size: 18px;
  line-height: 1.6;
  margin: 0 0 12px;
  color: var(--text);
}

.review cite {
  display: block;
  font-style: normal;
  color: var(--muted);
  font-size: 14px;
  margin-left: 20px;
}

.review-small {
  width: 300px;
  height: 300px;
}


/* CAPABILITIES */

.capabilities-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

.capabilities-list li {
  padding: 20px 0;
  border-radius: var(--radius);
  font-weight: 500;
}


/* CONTACT */

#contact {
  scroll-margin-top: 100px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 500px;
  margin: 0 auto;
}

.contact-form label {
  font-size: 14px;
  color: var(--muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.contact-form button {
  width: fit-content;
  margin-top: 8px;
  cursor: pointer;
  align-self: flex-end;
}


/* FOOTER */

footer {
  border-top: 1px solid var(--line);
  padding: 34px 0 56px;
  display: flex;
  justify-content: flex-end;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

footer a {
  color: var(--text);
}


/* TABLET */

@media (max-width: 820px) {

  .site-header {
    padding-top: 16px;
  }

  .hero {
    min-height: auto;
    padding: 90px 0 78px;
  }

  .hero h1 {
    font-size: clamp(42px, 12vw, 68px);
  }

  .projects {
    gap: 84px;
  }

  .project,
  .project:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .project:nth-child(even) .project-media {
    order: initial;
  }

  .project-info {
    position: static;
    padding-top: 0;
  }

  .main-image {
    border-radius: 16px;
    aspect-ratio: 4 / 3;
  }

  .thumb {
    width: 72px;
  }

  /* Reviews become a single column */
  .reviews-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .review-featured {
    grid-column: auto;
  }
}


/* MOBILE */

@media (max-width: 520px) {

  main,
  footer {
    width: calc(100% - 20px);
    padding: 0 10px;
  }

  .site-header {
    padding-left: 20px;
    padding-right: 20px;
  }

  nav {
    gap: 14px;
  }

  .hero {
    padding: 72px 0 64px;
  }

  .hero h1 {
    font-size: 60px;
    line-height: 72px;
  }

  .hero-sub {
    font-size: 17px;
  }

  .hero-lead {
    font-size: 21px;
  }

  .button {
    width: 100%;
  }

  .projects {
    gap: 70px;
  }

  .project {
    padding: 24px;
  }

  .project h2 {
    font-size: 35px;
  }

  .section-bg {
    padding: 24px;
  }

  .review {
    padding: 20px 0;
  }

  .review p {
    font-size: 17px;
  }

  footer {
    flex-direction: column;
  }
}