/* ExoLabs static site — shared layout and theme */

:root {
  --ink: #1d1d1b;
  --paper: #fff;
  --soft: #f5f5f5;
  --line: #d6d6d6;
  --green: #8dbb47;
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  scroll-behavior: smooth;
  scroll-padding-top: 108px;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}

.skip-link {
  position: absolute;
  top: -5rem;
  left: 1rem;
  z-index: 30;
  padding: 0.75rem;
  color: var(--ink);
  background: var(--paper);
}

.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 108px;
  padding: 0 clamp(1.25rem, 5.5vw, 5rem);
  color: var(--ink);
  background: var(--paper);
  border-bottom: 1px solid #f2f2f2;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 400;
  text-decoration: none;
}

.brand img {
  display: block;
  width: 152px;
  height: 20px;
  object-fit: contain;
}
.brand small {
  margin-left: 0.35rem;
  font-size: 0.83rem;
  white-space: nowrap;
}

nav {
  display: flex;
  align-items: center;
  gap: 1.65rem;
}
nav a {
  color: var(--ink);
  font-size: 0.87rem;
  text-decoration: none;
}
.nav-contact {
  padding: 0.8rem 1.45rem;
  border: 1px solid var(--ink);
}
.menu-button {
  display: none;
  color: var(--ink);
  background: transparent;
  border: 0;
  font: inherit;
}

/* Hero */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(16rem, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: stretch;
  min-height: 620px;
  padding: 4.5rem clamp(1.25rem, 12vw, 12rem);
  background: var(--soft);
}

.hero::before,
.hero::after {
  position: absolute;
  inset: 4.5rem clamp(1.25rem, 12vw, 12rem);
  z-index: -1;
  content: "";
}

.hero::before {
  background: linear-gradient(
    180deg,
    #7ca9c7 0%,
    #c9e0ec 26%,
    #f4f7f8 49%,
    #819aaa 50%,
    #dbeaf1 70%,
    #386785 100%
  );
  box-shadow: inset 0 0 0 1px rgb(0 0 0 / 5%);
}

.hero::after {
  background: linear-gradient(
    152deg,
    transparent 0 35%,
    #ffffff80 35.1% 42%,
    transparent 42.1% 51%,
    #f8ffff90 51.1% 59%,
    transparent 59.1% 100%
  );
  mix-blend-mode: screen;
}

.hero:has(.hero-video)::before,
.hero:has(.hero-video)::after {
  display: none;
}
.hero-video {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  min-height: 500px;
  overflow: hidden;
  background: #24333c;
}
.hero-video iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  border: 0;
}

.hero-content {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  max-width: 520px;
  color: var(--ink);
}
.eyebrow,
.section-label {
  margin: 0 0 0.8rem;
  font-size: 0.95rem;
  font-weight: 400;
}
.hero .eyebrow {
  color: var(--ink);
  font-size: 1rem;
}

h1 {
  margin-bottom: 0.8rem;
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.04em;
}
h2 {
  font-size: clamp(2rem, 3.5vw, 3.4rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.045em;
}
.hero-copy {
  margin-bottom: 1.35rem;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.45;
}
.button,
.outline-button {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  font-size: 0.9rem;
  text-decoration: none;
}
.button {
  color: var(--ink);
  border: 1px solid var(--ink);
}
.outline-button {
  margin-top: 0.8rem;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.outline-button:hover,
.team-grid a:hover {
  color: var(--paper);
  background: var(--ink);
}

/* Shared content */
.section {
  padding: clamp(4.5rem, 7vw, 7rem) clamp(1.25rem, 12vw, 12rem);
}
.section-label {
  color: var(--ink);
}
.intro {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 5rem;
  background: var(--paper);
}
.intro .section-label {
  font-size: clamp(2rem, 3.5vw, 3.4rem);
  line-height: 1.18;
  letter-spacing: -0.045em;
}
.intro > div p {
  max-width: 600px;
  font-size: 1rem;
  line-height: 1.6;
}

/* Feature */
.feature {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 4rem;
  align-items: center;
  padding: clamp(4rem, 8vw, 8rem) clamp(1.25rem, 12vw, 12rem);
  background: var(--soft);
}
.feature-media {
  min-width: 0;
  min-height: 360px;
  color: var(--paper);
  background: linear-gradient(
    140deg,
    #202f3a,
    #687f8d 42%,
    #b2c6ce 43%,
    #617e91 100%
  );
}
.video-embed {
  position: relative;
  width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  max-width: 100%;
  height: 100%;
  border: 0;
}
.feature-media .video-embed {
  height: 100%;
  min-height: inherit;
}
.feature-copy p {
  max-width: 420px;
  font-size: 1rem;
  line-height: 1.6;
}

/* Products */
.products {
  padding-top: 3rem;
  background: var(--paper);
}
.products .section-heading,
.products .product-grid {
  max-width: 1100px;
  margin-inline: auto;
}
.section-heading {
  display: block;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.section-heading h2 {
  margin: 0;
}
.product-grid {
  display: block;
}
.product-card {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) auto;
  column-gap: 2rem;
  row-gap: 0.65rem;
  align-items: start;
  min-height: 0;
  padding: 2.6rem 0;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.product-number,
.product-tag {
  margin: 0;
  color: #555;
  font-size: 0.85rem;
}
.product-card h3 {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.15;
}
.product-card .product-tag {
  grid-column: 2;
  grid-row: 2;
}
.product-card > p:nth-of-type(3) {
  grid-column: 2;
  grid-row: 3;
  max-width: 680px;
  margin: 0;
  color: #444;
  font-size: 0.95rem;
  line-height: 1.5;
}
.product-card a {
  grid-column: 3;
  grid-row: 1 / span 3;
  align-self: center;
  color: var(--ink);
  font-size: 0.9rem;
  text-underline-offset: 0.25rem;
  white-space: nowrap;
}

/* Services */
.services,
.partners,
.contact {
  background: var(--soft);
}
.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 2rem;
  border-top: 1px solid var(--line);
}
.service-grid article {
  min-height: 0;
  padding: 2rem 3rem 2rem 0;
  border-bottom: 1px solid var(--line);
}
.service-grid article:nth-child(even) {
  padding-left: 3rem;
  border-left: 1px solid var(--line);
}
.service-grid span {
  color: #555;
  font-size: 0.85rem;
}
.service-grid h3 {
  margin: 1rem 0 0.7rem;
  font-size: 1.3rem;
  font-weight: 400;
}
.service-grid p {
  max-width: 380px;
  color: #444;
  font-size: 0.95rem;
  line-height: 1.55;
}

/* References and partners */
.logo-section {
  background: var(--paper);
}
.logo-section h2,
.team > h2 {
  margin-bottom: 3rem;
}
.partners {
  background: var(--soft);
}
.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.logo-grid a {
  display: grid;
  place-items: center;
  height: 150px;
  padding: 2rem;
  background: var(--paper);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.logo-grid img {
  width: 100%;
  height: 100%;
  max-width: 150px;
  max-height: 75px;
  object-fit: contain;
  filter: grayscale(1);
  transition: filter 0.2s ease;
}
.logo-grid a:hover img {
  filter: none;
}

/* Team and contact */
.team,
.about {
  background: var(--paper);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3rem 2rem;
}
.team-grid article {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.25rem;
  border: 1px solid #cfd7da;
}
.team-grid img {
  display: block;
  width: 100%;
  max-width: 240px;
  aspect-ratio: 1;
  object-fit: cover;
  filter: grayscale(1);
}
.team-grid h3 {
  margin: 1.4rem 0 1.2rem;
  font-size: 1.35rem;
  font-weight: 400;
  line-height: 1.45;
}
.team-grid p {
  margin-bottom: 1.4rem;
  color: #555;
  font-size: 1rem;
  line-height: 1.6;
}
.team-grid a {
  display: inline-block;
  padding: 0.6rem 1.15rem;
  color: var(--ink);
  font-size: 0.85rem;
  text-decoration: none;
  border: 1px solid var(--ink);
}
.about {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 6rem;
  align-items: start;
}
.about h2 {
  margin: 0;
}
.about-copy {
  font-size: 1rem;
  line-height: 1.65;
}
.contact {
  padding: clamp(4.5rem, 7vw, 7rem) clamp(1.25rem, 12vw, 12rem);
}
.contact h2 {
  margin-bottom: 2rem;
}
.contact-link {
  padding-bottom: 0.25rem;
  color: var(--ink);
  font-size: clamp(1.2rem, 2.4vw, 2rem);
  text-decoration: none;
  border-bottom: 1px solid var(--ink);
}

/* Footer */
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2rem clamp(1.25rem, 5.5vw, 5rem);
  color: #555;
  font-size: 0.78rem;
  background: var(--paper);
  border-top: 1px solid var(--line);
}
footer p {
  margin: 0;
}
footer a {
  color: inherit;
}

@media (max-width: 700px) {
  :root {
    scroll-padding-top: 76px;
  }
  .site-header {
    height: 76px;
  }
  .brand {
    font-size: 1.1rem;
  }
  .brand img {
    width: 126px;
    height: auto;
  }
  .brand small {
    display: none;
  }
  .menu-button {
    display: block;
  }
  nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    z-index: 4;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.2rem;
    padding: 1rem 1.25rem 1.5rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  nav.open {
    display: flex;
  }
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 2rem 1.25rem 3rem;
  }
  .hero-video {
    grid-column: 1;
    grid-row: 1;
    justify-self: center;
    width: 100%;
    margin-inline: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
  .hero-content {
    grid-column: 1;
    grid-row: 2;
  }
  .intro,
  .about,
  .feature {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .feature {
    gap: 2rem;
  }
  .feature-media {
    min-height: 230px;
  }
  .product-card {
    grid-template-columns: 2.25rem minmax(0, 1fr);
    column-gap: 0.75rem;
    row-gap: 0.55rem;
  }
  .product-card h3,
  .product-card .product-tag,
  .product-card > p:nth-of-type(3),
  .product-card a {
    grid-column: 2;
    grid-row: auto;
  }
  .product-card a {
    align-self: start;
    justify-self: start;
    margin-top: 0.5rem;
    white-space: normal;
  }
  .service-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }
  .service-grid article:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }
  .logo-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .logo-grid a {
    height: 115px;
    padding: 1.2rem;
  }
  footer {
    display: grid;
    gap: 1rem;
    align-items: start;
  }
}
