:root {
  color-scheme: light;
  --ink: #17201d;
  --muted: #61716d;
  --paper: #fbfaf7;
  --line: #d9ded8;
  --teal: #246a69;
  --coral: #e76f51;
  --gold: #b58b31;
  --leaf: #667b4f;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(23, 32, 29, 0.15);
  --font-body: "IBM Plex Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Space Grotesk", "IBM Plex Sans", system-ui, sans-serif;
  --font-code: "IBM Plex Mono", "Space Grotesk", monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.5;
}

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

.site-header {
  align-items: center;
  background: rgba(251, 250, 247, 0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(217, 222, 216, 0.8);
  display: flex;
  height: 72px;
  justify-content: space-between;
  left: 0;
  padding: 0 clamp(20px, 5vw, 64px);
  position: fixed;
  right: 0;
  top: 0;
  transition: box-shadow 180ms ease;
  z-index: 10;
}

.site-header.is-scrolled {
  box-shadow: 0 12px 36px rgba(23, 32, 29, 0.08);
}

.brand {
  align-items: center;
  display: inline-flex;
  font-family: var(--font-display);
  font-weight: 800;
  gap: 16px;
}

.brand-mark {
  display: block;
  height: 101px;
  object-fit: contain;
  object-position: center bottom;
  transform: translateY(18px);
  width: 124px;
}

.site-nav {
  align-items: center;
  display: flex;
  gap: 26px;
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 700;
}

.site-nav a {
  color: #31403c;
}

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

.nav-toggle {
  background: transparent;
  border: 0;
  display: none;
  height: 42px;
  padding: 0;
  position: relative;
  width: 42px;
}

.nav-toggle span {
  background: var(--ink);
  display: block;
  height: 2px;
  left: 9px;
  position: absolute;
  right: 9px;
  transition: transform 180ms ease;
}

.nav-toggle span:first-child {
  top: 15px;
}

.nav-toggle span:last-child {
  top: 25px;
}

.hero {
  min-height: 92vh;
  overflow: hidden;
  position: relative;
}

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

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(10, 18, 16, 0.78) 0%, rgba(10, 18, 16, 0.52) 36%, rgba(10, 18, 16, 0.1) 74%),
    linear-gradient(0deg, rgba(23, 32, 29, 0.32), rgba(23, 32, 29, 0.06));
  inset: 0;
  position: absolute;
}

.hero-content {
  color: var(--white);
  max-width: 720px;
  padding: 17vh clamp(20px, 7vw, 88px) 13vh;
  position: relative;
}

.eyebrow {
  color: var(--coral);
  font-family: var(--font-code);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffc2ad;
}

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

h1 {
  font-family: var(--font-display);
  font-size: clamp(4.2rem, 11vw, 9rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.88;
  margin-bottom: 26px;
}

h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 4.4rem);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  margin-bottom: 22px;
}

h3 {
  font-family: var(--font-display);
  font-size: 1.14rem;
  font-weight: 700;
  line-height: 1.25;
}

.hero-copy {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.08rem, 2.1vw, 1.4rem);
  max-width: 600px;
}

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

.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  font-family: var(--font-display);
  font-weight: 700;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
}

.button.primary {
  background: var(--coral);
  color: var(--white);
}

.button.secondary {
  border-color: rgba(255, 255, 255, 0.44);
  color: var(--white);
}

.button.secondary-dark {
  border-color: var(--line);
  color: var(--ink);
}

.button.secondary-dark:hover {
  border-color: var(--coral);
  color: var(--coral);
}

.intro-band {
  background: var(--ink);
  color: var(--white);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
}

.metric {
  background: #20302b;
  padding: clamp(24px, 4vw, 44px);
}

.metric strong {
  color: #f6c85f;
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

.metric span {
  color: rgba(255, 255, 255, 0.74);
  font-weight: 700;
}

.section {
  padding: clamp(72px, 10vw, 128px) clamp(20px, 6vw, 76px);
}

.section-heading {
  max-width: 780px;
}

.work-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 32px;
}

.work-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(23, 32, 29, 0.06);
  overflow: hidden;
}

.work-media {
  aspect-ratio: 4 / 3;
}

.work-media.strategy {
  background: linear-gradient(135deg, var(--teal), #8fc7bd 52%, #f1d190);
}

.work-media.systems {
  background: linear-gradient(135deg, #283f58, #f4a261 54%, #f6eadc);
}

.work-media.launch {
  background: linear-gradient(135deg, var(--leaf), #b8c79d 50%, #f7b49c);
}

.work-body {
  padding: 24px;
}

.work-body p,
.work-body span,
.service-item p,
.section-copy,
.about-inner p,
.contact-panel p,
.site-footer {
  color: var(--muted);
}

.work-body p {
  color: var(--coral);
  font-family: var(--font-code);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 12px;
  text-transform: uppercase;
}

.work-body span {
  display: block;
  font-size: 0.94rem;
}

.split {
  align-items: start;
  background: #edf3ef;
  display: grid;
  gap: clamp(34px, 6vw, 72px);
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
}

.section-copy {
  font-size: 1.06rem;
  max-width: 560px;
}

.service-list {
  border-top: 1px solid #c8d3cb;
}

.service-item {
  display: grid;
  gap: 22px;
  grid-template-columns: 44px 1fr;
  padding: 26px 0;
  border-bottom: 1px solid #c8d3cb;
}

.service-item span {
  color: var(--gold);
  font-family: var(--font-code);
  font-weight: 700;
}

.service-item h3 {
  margin-bottom: 8px;
}

.about-band {
  background: var(--teal);
  color: var(--white);
  padding: clamp(72px, 10vw, 132px) clamp(20px, 12vw, 148px);
}

.about-inner {
  max-width: 840px;
}

.about-inner .eyebrow {
  color: #f9c9b9;
}

.about-inner p {
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.contact {
  align-items: center;
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
}

.contact-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: clamp(26px, 4vw, 42px);
}

.contact-panel a {
  color: var(--teal);
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.contact-panel p {
  margin: 16px 0 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 28px clamp(20px, 6vw, 76px);
}

.products-page {
  padding-top: 72px;
}

.products-hero {
  align-items: start;
  background:
    linear-gradient(120deg, rgba(36, 106, 105, 0.9), rgba(23, 32, 29, 0.92)),
    url("assets/hero-mars-rover.png") center / cover;
  color: var(--white);
  display: grid;
  gap: clamp(28px, 5vw, 64px);
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  min-height: 560px;
  padding: clamp(72px, 10vw, 120px) clamp(20px, 6vw, 76px);
}

.products-hero h1 {
  font-size: clamp(4rem, 10vw, 8rem);
}

.products-hero p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  max-width: 640px;
}

.cart-panel {
  background: rgba(251, 250, 247, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: var(--ink);
  padding: 24px;
}

.cart-heading,
.cart-total,
.cart-line,
.product-buy {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.cart-heading {
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}

.cart-heading h2 {
  font-size: 1.4rem;
  margin: 0;
}

.cart-heading span,
.empty-cart,
.cart-line span,
.product-info span {
  color: var(--muted);
}

.cart-items {
  display: grid;
  gap: 12px;
  min-height: 106px;
  padding: 18px 0;
}

.cart-line {
  border-bottom: 1px solid #eef0ec;
  font-size: 0.94rem;
  padding-bottom: 10px;
}

.cart-total {
  border-top: 1px solid var(--line);
  font-size: 1.08rem;
  padding-top: 16px;
}

.checkout-button {
  margin-top: 20px;
  width: 100%;
}

.product-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: clamp(42px, 7vw, 76px);
}

.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(23, 32, 29, 0.06);
  overflow: hidden;
}

.product-image {
  aspect-ratio: 1 / 1;
  background: var(--white);
  display: block;
  object-fit: contain;
  padding: 18px;
  width: 100%;
}

.catalog-status {
  color: var(--muted);
  font-size: 1rem;
  grid-column: 1 / -1;
  margin: 0;
}

.product-art {
  aspect-ratio: 5 / 3;
  position: relative;
}

.product-art::before,
.product-art::after {
  content: "";
  position: absolute;
}

.product-art.dust {
  background: linear-gradient(135deg, #c55231, #efb56f);
}

.product-art.dust::before {
  background: rgba(255, 244, 220, 0.6);
  border-radius: 50%;
  filter: blur(12px);
  height: 72px;
  left: 20%;
  top: 32%;
  width: 160px;
}

.product-art.soup {
  background: linear-gradient(135deg, #20302b, #739f95);
}

.product-art.soup::before {
  background: #f6c85f;
  border: 10px solid #f8efe0;
  border-radius: 50%;
  height: 86px;
  left: calc(50% - 53px);
  top: calc(50% - 53px);
  width: 86px;
}

.product-art.rock {
  background: linear-gradient(135deg, #783d2b, #d56f3e);
}

.product-art.rock::before {
  background: #4e332b;
  border-radius: 36% 64% 42% 58%;
  box-shadow: 28px 18px 0 #8e5841;
  height: 76px;
  left: 34%;
  top: 34%;
  transform: rotate(-14deg);
  width: 116px;
}

.product-art.air {
  background: linear-gradient(135deg, #e8f4f5, #f2c9a8);
}

.product-art.air::before {
  border: 4px solid rgba(23, 32, 29, 0.22);
  border-radius: 12px 12px 28px 28px;
  height: 104px;
  left: calc(50% - 42px);
  top: 28px;
  width: 84px;
}

.product-art.light {
  background: linear-gradient(135deg, #263547, #e3a344);
}

.product-art.light::before {
  background: #ffe9a6;
  border-radius: 50%;
  box-shadow: 0 0 45px #ffe9a6;
  height: 72px;
  left: calc(50% - 36px);
  top: 36px;
  width: 72px;
}

.product-art.stickers {
  background: linear-gradient(135deg, #f1d190, #e76f51);
}

.product-art.stickers::before,
.product-art.stickers::after {
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 16px 30px rgba(23, 32, 29, 0.12);
  height: 78px;
  top: 42px;
  width: 108px;
}

.product-art.stickers::before {
  left: 25%;
  transform: rotate(-10deg);
}

.product-art.stickers::after {
  right: 23%;
  transform: rotate(12deg);
}

.product-info {
  padding: 22px;
}

.product-info p {
  color: var(--coral);
  font-family: var(--font-code);
  font-size: 0.76rem;
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.product-info h2 {
  font-size: 1.45rem;
  line-height: 1.1;
  margin-bottom: 12px;
}

.product-info span {
  display: block;
  min-height: 0;
}

.product-versions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.product-version {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-code);
  font-size: 0.78rem;
  font-weight: 700;
  min-height: 36px;
  padding: 0 12px;
}

.product-version[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.product-buy {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 18px;
}

.product-buy strong,
.cart-total strong,
.cart-line strong {
  font-family: var(--font-code);
  font-weight: 700;
}

.really-popup {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  justify-items: center;
  left: 50%;
  opacity: 0;
  padding: 26px 34px 24px;
  position: fixed;
  top: 50%;
  transform: translate(-50%, -46%) scale(0.94);
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 30;
}

.really-popup.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.really-popup p {
  font-size: clamp(2rem, 6vw, 4rem);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1;
  margin: 0;
}

.rover-head {
  background: #d9d1c3;
  border: 3px solid #3a332d;
  border-radius: 18px;
  height: 76px;
  position: relative;
  width: 132px;
}

.rover-head::before {
  background: #3a332d;
  border-radius: 999px;
  content: "";
  height: 10px;
  left: 32px;
  position: absolute;
  right: 32px;
  top: 50px;
}

.rover-head::after {
  background: #3a332d;
  content: "";
  height: 26px;
  left: calc(50% - 2px);
  position: absolute;
  top: -29px;
  width: 4px;
}

.rover-eye {
  background: #17201d;
  border-radius: 50%;
  box-shadow: inset 4px 4px 0 #78b8c5;
  height: 24px;
  position: absolute;
  top: 21px;
  width: 24px;
}

.rover-eye.left {
  left: 30px;
}

.rover-eye.right {
  right: 30px;
}

.rover-neck {
  background: #3a332d;
  bottom: -22px;
  height: 22px;
  left: calc(50% - 4px);
  position: absolute;
  width: 8px;
}

@media (max-width: 840px) {
  .nav-toggle {
    display: block;
  }

  .nav-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(5px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-5px) rotate(-45deg);
  }

  .site-nav {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 45px rgba(23, 32, 29, 0.12);
    display: grid;
    gap: 0;
    left: 0;
    opacity: 0;
    padding: 10px 20px 22px;
    pointer-events: none;
    position: fixed;
    right: 0;
    top: 72px;
    transform: translateY(-10px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 14px 0;
  }

  .hero {
    min-height: 88vh;
  }

  .hero-content {
    padding-top: 15vh;
  }

  .intro-band,
  .work-grid,
  .split,
  .contact,
  .products-hero,
  .product-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .site-header {
    height: 64px;
  }

  .site-nav {
    top: 64px;
  }

  .brand span:last-child {
    display: none;
  }

  .brand-mark {
    height: 86px;
    transform: translateY(15px);
    width: 105px;
  }

  .hero {
    min-height: 86vh;
  }

  .hero-overlay {
    background: linear-gradient(180deg, rgba(10, 18, 16, 0.7), rgba(10, 18, 16, 0.28) 45%, rgba(10, 18, 16, 0.78));
  }

  .hero-content {
    padding-bottom: 9vh;
  }

  .button {
    width: 100%;
  }

  .service-item {
    grid-template-columns: 1fr;
  }

  .products-page {
    padding-top: 64px;
  }

  .products-hero {
    min-height: auto;
  }

  .product-grid {
    padding-inline: 20px;
  }
}
