:root {
  --paper: #f7f8f6;
  --ink: #111412;
  --line: #d9ded7;
  --white: #ffffff;
  --header-offset: 12px;
  --section-pad: clamp(40px, 5vw, 64px);
  --divider-pad: clamp(14px, 2vw, 20px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  line-height: 1.55;
}

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

a {
  color: inherit;
}

.site-header {
  position: fixed;
  top: var(--header-offset);
  left: 50%;
  width: min(calc(100% - 24px), 1920px);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 50px;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
}

.brand {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: 0;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.buy-line {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  white-space: nowrap;
}

.email-button {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  background: #edf1e9;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.email-button:hover,
.email-button:focus-visible {
  background: #d9e1d7;
  color: var(--ink);
  transform: translateY(-1px);
}

.hero {
  position: relative;
  min-height: 76svh;
  overflow: hidden;
  background: #28342f;
}

.hero img {
  height: 76svh;
  min-height: 560px;
  object-fit: cover;
  object-position: center;
}

.mobile-hero-brand {
  display: none;
}

.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0) 45%),
    linear-gradient(55deg, rgba(0, 0, 0, 0) 42%, rgba(0, 0, 0, 0.55));
  pointer-events: none;
}

.hero-quote {
  position: absolute;
  right: clamp(18px, 3vw, 32px);
  bottom: clamp(18px, 3vw, 32px);
  z-index: 1;
  max-width: min(420px, calc(100% - 36px));
  margin: 0;
  color: var(--paper);
  font-size: clamp(1rem, 1.45vw, 1.45rem);
  font-weight: 700;
  line-height: 1.18;
  text-align: right;
  text-wrap: balance;
  text-shadow: 0 3px 22px rgba(0, 0, 0, 0.5);
}

.feature-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.section-divider-wrap {
  padding-block: var(--divider-pad);
  background: var(--paper);
}

.section-divider {
  width: min(1180px, calc(100% - 40px));
  height: 1px;
  margin: 0 auto;
  background: var(--line);
}

.feature-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.86fr);
  gap: clamp(28px, 6vw, 88px);
  align-items: center;
  padding: var(--section-pad) 0;
}

.meet-section {
  padding-top: calc(var(--section-pad) + var(--divider-pad));
}

.reverse-section {
  grid-template-columns: minmax(320px, 0.86fr) minmax(0, 1fr);
}

.feature-copy h1 {
  margin: 0 0 24px;
  font-size: clamp(1.9rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0;
}

.feature-copy p {
  margin: 0 0 20px;
  max-width: 680px;
  color: var(--ink);
  font-size: clamp(0.9rem, 1vw, 1rem);
}

.meet-section .feature-copy p {
  margin-bottom: 16px;
  font-size: clamp(0.9rem, 1vw, 1rem);
  line-height: 1.48;
}

.feature-copy p:last-child {
  margin-bottom: 0;
}

.spec-lines {
  color: var(--ink);
  font-weight: 700;
}

.spec-grid {
  display: grid;
  grid-template-columns: minmax(110px, 0.52fr) minmax(0, 1fr);
  gap: 5px 18px;
  max-width: 680px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: clamp(0.86rem, 0.95vw, 0.95rem);
  line-height: 1.35;
}

.spec-grid span:nth-child(odd) {
  font-weight: 700;
}

.spec-grid-weights,
.spec-grid-price {
  margin-top: 14px;
}

.spec-grid-weights span:first-child {
  grid-column: 1 / -1;
  margin-bottom: 2px;
  font-weight: 700;
}

.spec-grid-weights span:nth-child(2) {
  display: none;
}

.spec-grid-price {
  font-size: clamp(0.92rem, 1.05vw, 1.02rem);
}

.feature-media {
  position: relative;
  margin: 0;
}

.feature-media img {
  aspect-ratio: 2 / 3;
  max-height: min(780px, 86svh);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 18px 42px rgba(31, 40, 37, 0.16);
}

.system-copy {
  align-self: center;
}

.system-list {
  display: grid;
  gap: clamp(28px, 4.5vw, 44px);
}

.system-item {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.system-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.system-item h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 10px;
  font-size: clamp(1.12rem, 1.65vw, 1.55rem);
  font-weight: 700;
}

.system-item svg {
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  align-self: center;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translateY(-1px);
}

.system-item ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 43px;
  color: var(--ink);
  font-size: clamp(0.9rem, 1vw, 1rem);
}

.carousel-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: var(--section-pad) 0;
}

.carousel {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-padding-inline: max(20px, calc((100vw - 1180px) / 2));
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

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

.carousel:focus-visible,
.masonry-grid img:focus-visible,
.image-pane-close:focus-visible,
.image-pane-nav:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 4px;
}

.carousel-track {
  display: flex;
  gap: clamp(42px, 6vw, 84px);
  padding: 0 max(28px, calc((100vw - 1180px) / 2)) 18px;
}

.slide {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  flex: 0 0 min(72vw, 810px);
  background: transparent;
  scroll-snap-align: center;
  cursor: pointer;
}

.slide img {
  aspect-ratio: 3 / 2;
  width: 100%;
  height: auto;
  margin: 0 auto;
  background: transparent;
  border-radius: 8px;
  clip-path: inset(0 round 8px);
  object-fit: cover;
  overflow: hidden;
}

.slide-copy {
  display: grid;
  align-content: start;
  align-self: start;
  gap: 14px;
  width: min(90ch, 86%);
  margin: 0 auto;
  padding: clamp(28px, 4vw, 44px) 0 0;
  text-align: center;
}

.slide-copy h2 {
  margin: 0;
  font-size: clamp(1.12rem, 1.65vw, 1.55rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
}

.slide-copy p {
  max-width: 90ch;
  margin: 0;
  color: var(--ink);
  font-size: clamp(0.9rem, 1vw, 1rem);
}

.tech-specs {
  align-self: start;
  justify-self: center;
  width: 100%;
  color: var(--ink);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(0.76rem, 0.82vw, 0.84rem) !important;
  line-height: 1.45;
  text-align: center;
}

.carousel-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-top: 20px;
}

.carousel-dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #b7c0b8;
  cursor: pointer;
}

.carousel-dot[aria-current="true"] {
  background: var(--ink);
}

.masonry-section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: var(--section-pad) 0;
}

.masonry-grid {
  column-count: 4;
  column-gap: clamp(14px, 2vw, 24px);
}

.masonry-grid.is-balanced {
  display: grid;
  grid-template-columns: repeat(var(--masonry-columns, 4), minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
  column-count: auto;
}

.masonry-column {
  display: grid;
  align-content: start;
  gap: clamp(14px, 2vw, 24px);
}

.masonry-grid img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 clamp(14px, 2vw, 24px);
  break-inside: avoid;
  border-radius: 8px;
  cursor: zoom-in;
}

.masonry-grid.is-balanced img {
  margin: 0;
}

.image-pane {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 56px);
  background: rgba(0, 0, 0, 0.88);
}

.image-pane[hidden] {
  display: none;
}

.image-pane img {
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: calc(100svh - clamp(36px, 8vw, 112px));
  border-radius: 8px;
  object-fit: contain;
}

.image-pane-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  cursor: pointer;
}

.image-pane-close::before,
.image-pane-close::after {
  position: absolute;
  top: 21px;
  left: 12px;
  width: 20px;
  height: 2px;
  background: #111412;
  content: "";
}

.image-pane-close::before {
  transform: rotate(45deg);
}

.image-pane-close::after {
  transform: rotate(-45deg);
}

.image-pane-nav {
  position: absolute;
  top: 50%;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  cursor: pointer;
  transform: translateY(-50%);
}

.image-pane-nav::before {
  position: absolute;
  top: 14px;
  width: 14px;
  height: 14px;
  border-top: 2px solid #000000;
  border-left: 2px solid #000000;
  content: "";
}

.image-pane-prev {
  left: 18px;
}

.image-pane-prev::before {
  left: 17px;
  transform: rotate(-45deg);
}

.image-pane-next {
  right: 18px;
}

.image-pane-next::before {
  right: 17px;
  transform: rotate(135deg);
}

.site-footer {
  display: grid;
  min-height: 50px;
  place-items: center;
  padding: 0 20px;
  background: #111412;
}

.site-footer p {
  margin: 0;
  color: var(--paper);
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  text-align: center;
}

@media (min-width: 900px) {
  .slide-copy {
    min-height: 0;
  }
}

@media (max-width: 820px) {
  .site-header {
    align-items: center;
    flex-direction: row;
    justify-content: center;
  }

  .brand {
    display: none;
  }

  .buy-line {
    flex: 0 1 auto;
    justify-content: center;
    white-space: nowrap;
  }

  .email-button {
    max-width: 100%;
    background: transparent;
    overflow-wrap: anywhere;
  }

  .email-button:hover,
  .email-button:focus-visible {
    background: transparent;
    transform: none;
  }

  .hero,
  .hero img {
    height: clamp(378px, 52svh, 468px);
    min-height: 378px;
  }

  .hero img {
    object-position: center;
  }

  .mobile-hero-brand {
    position: absolute;
    top: calc(var(--header-offset) + 62px);
    left: 50%;
    z-index: 2;
    display: block;
    width: calc(100% - 40px);
    color: var(--paper);
    font-size: 14px;
    font-weight: 500;
    line-height: 18px;
    text-align: center;
    transform: translateX(-50%);
  }

  .hero-quote {
    max-width: calc(100% - 44px);
  }

  .feature-section,
  .reverse-section {
    grid-template-columns: 1fr;
    width: min(100% - 28px, 620px);
    padding: var(--section-pad) 0;
  }

  .meet-section .feature-media {
    order: -1;
  }

  .reverse-section .feature-media {
    order: -1;
  }

  .feature-media img {
    max-height: none;
  }

  .masonry-grid {
    column-count: 2;
  }
}

@media (max-width: 520px) {
  .email-button {
    min-height: 40px;
  }

  .hero,
  .hero img {
    height: clamp(342px, 50svh, 414px);
    min-height: 342px;
  }

  .slide-copy {
    min-height: 0;
  }

  .slide {
    flex-basis: min(84vw, 560px);
  }

  .slide img {
    height: auto;
  }

  .masonry-section {
    width: min(100% - 28px, 620px);
  }

  .masonry-grid {
    column-count: 1;
  }
}

@media (min-width: 920px) {
  .site-header {
    height: 56px;
  }

  .site-footer {
    min-height: 56px;
  }
}

@media (min-width: 1200px) {
  .hero img {
    object-position: center 62%;
  }
}

@media (min-width: 1486px) {
  .hero,
  .hero img {
    height: max(76svh, 50vw);
  }
}

@media (min-width: 1152px) {
  .site-header {
    padding: 0 20px;
  }
}
