:root {
  --ink: #111411;
  --paper: #fbfbf7;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  background: #050505;
  font-family: "Aptos", "Helvetica Neue", ui-sans-serif, system-ui, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0.22);
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid #d9efe0;
  outline-offset: 5px;
}

.skip-link {
  position: fixed;
  z-index: 40;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--ink);
  background: var(--white);
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
  transform: translateY(-140%);
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px max(clamp(20px, 5vw, 72px), env(safe-area-inset-right)) 18px max(clamp(20px, 5vw, 72px), env(safe-area-inset-left));
  color: var(--white);
  background: rgba(5, 5, 5, 0.42);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brand,
.site-nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: var(--ink);
  background: var(--white);
  border-radius: 6px;
  font-family: "Iowan Old Style", Georgia, serif;
}

.site-nav {
  gap: 22px;
  font-size: 0.94rem;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--white);
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 92svh;
  display: flex;
  align-items: flex-end;
  padding: 132px max(clamp(20px, 7vw, 96px), env(safe-area-inset-right)) 88px max(clamp(20px, 7vw, 96px), env(safe-area-inset-left));
  color: var(--white);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(5, 8, 6, 0.88) 0%, rgba(5, 8, 6, 0.58) 45%, rgba(5, 8, 6, 0.14) 100%);
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-copy {
  width: min(760px, 100%);
}

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

h1 {
  margin-bottom: 12px;
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: clamp(3.6rem, 9vw, 8rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.25rem, 2.3vw, 2rem);
  font-weight: 800;
}

.banner-stack {
  background: #050505;
}

.repo-banner {
  position: relative;
  isolation: isolate;
  min-height: clamp(360px, 54vw, 760px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  overflow: hidden;
  padding: clamp(34px, 6vw, 86px);
  color: var(--white);
  text-decoration: none;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.repo-banner img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.001);
  transition: transform 320ms ease, filter 320ms ease;
}

.repo-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.68) 0%, rgba(0, 0, 0, 0.34) 42%, rgba(0, 0, 0, 0.07) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.34) 0%, rgba(0, 0, 0, 0.02) 58%);
}

.repo-banner:hover img {
  transform: scale(1.025);
}

.banner-label {
  display: block;
  width: fit-content;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(0.78rem, 1.1vw, 0.95rem);
  font-weight: 850;
  text-transform: uppercase;
}

.repo-banner h2 {
  max-width: min(1260px, 100%);
  margin: 0;
  font-family: "Arial Narrow", "Helvetica Neue Condensed", "Aptos", "Helvetica Neue", ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(4.2rem, 11.2vw, 10.5rem);
  font-weight: 950;
  line-height: 0.82;
  letter-spacing: 0;
  overflow-wrap: normal;
}

.banner-bioprospector img {
  object-position: center center;
}

.banner-structure-factory img {
  object-position: center center;
}

.banner-genecluster img {
  object-position: center center;
}

.banner-ferm-doe::after {
  background:
    linear-gradient(90deg, rgba(1, 26, 24, 0.62) 0%, rgba(1, 26, 24, 0.3) 42%, rgba(1, 26, 24, 0.04) 100%),
    linear-gradient(0deg, rgba(1, 26, 24, 0.2) 0%, rgba(1, 26, 24, 0.01) 58%);
}

.banner-ferm-doe img {
  object-position: center center;
}

.banner-cryocore img {
  object-position: center center;
}

.banner-org::after {
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.52) 0%, rgba(0, 0, 0, 0.2) 46%, rgba(0, 0, 0, 0.04) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.02) 62%);
}

.banner-org img {
  object-position: center center;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 30px clamp(20px, 7vw, 96px);
  color: rgba(255, 255, 255, 0.75);
  background: #050505;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  text-decoration: none;
}

@media (max-width: 720px) {
  .site-header {
    position: absolute;
    padding: 16px max(18px, env(safe-area-inset-right)) 16px max(18px, env(safe-area-inset-left));
  }

  .site-nav {
    display: none;
  }

  .hero {
    min-height: 84svh;
    padding: 118px max(20px, env(safe-area-inset-right)) 54px max(20px, env(safe-area-inset-left));
  }

  .hero::after {
    background: linear-gradient(180deg, rgba(5, 8, 6, 0.78) 0%, rgba(5, 8, 6, 0.66) 62%, rgba(5, 8, 6, 0.52) 100%);
  }

  .repo-banner {
    min-height: 66svh;
    padding: 30px 20px;
  }

  .repo-banner h2 {
    max-width: 100%;
    font-size: clamp(3rem, 14vw, 4.25rem);
  }

  .banner-bioprospector img {
    object-position: 54% center;
  }

  .banner-structure-factory img {
    object-position: 48% center;
  }

  .banner-genecluster img {
    object-position: 58% center;
  }

  .banner-ferm-doe img {
    object-position: 55% center;
  }

  .banner-cryocore img {
    object-position: 62% center;
  }

  .banner-org img {
    object-position: 46% center;
  }

  .site-footer {
    flex-direction: column;
  }
}

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

  .skip-link,
  .repo-banner img {
    transition: none;
  }

  .repo-banner:hover img {
    transform: none;
  }
}
