@import url("https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600&display=swap");

:root {
  --ink: #111111;
  --paper: #ffffff;
  --line: #d8d8d8;
  --muted: #696969;
  --header-height: 88px;
  --page-gutter: clamp(20px, 4vw, 64px);
  --ease: cubic-bezier(0.76, 0, 0.24, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

button {
  color: inherit;
  font: inherit;
}

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  height: var(--header-height);
  align-items: center;
  justify-content: space-between;
  padding: 10px var(--page-gutter);
  border-bottom: 1px solid var(--ink);
  background: var(--paper);
}

.brand {
  display: block;
  width: 72px;
  height: 64px;
}

.brand img {
  display: block;
  width: 72px;
  height: 64px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 52px);
}

.site-nav a,
.menu-toggle {
  position: relative;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  background: var(--ink);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 250ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.carousel {
  position: relative;
  height: max(540px, calc(75vh - 66px));
  min-height: max(540px, calc(75vh - 66px));
  overflow: hidden;
  border-bottom: 1px solid var(--ink);
}

.carousel-track {
  min-height: inherit;
}

.slide {
  position: absolute;
  inset: 0;
  visibility: hidden;
  opacity: 0;
  transform: translateX(5%);
  transition:
    opacity 600ms ease,
    transform 800ms var(--ease),
    visibility 600ms;
}

.slide.is-active {
  position: relative;
  visibility: visible;
  opacity: 1;
  transform: translateX(0);
}

.slide.is-leaving {
  visibility: visible;
  opacity: 0;
  transform: translateX(-5%);
}

.slide-link {
  display: grid;
  height: max(540px, calc(75vh - 66px));
  min-height: max(540px, calc(75vh - 66px));
  grid-template-columns: minmax(320px, 0.8fr) minmax(480px, 1.2fr);
}

.slide-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(52px, 7vw, 112px) var(--page-gutter);
  border-right: 1px solid var(--ink);
}

.eyebrow,
.section-label,
.product-number,
.detail-kicker {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.slide-copy h1,
.slide-copy h2 {
  margin: 0.08em 0 0;
  font-size: clamp(52px, 5.4vw, 86px);
  font-weight: 500;
  line-height: 0.92;
}

.slide-copy h1,
.slide-copy h2 {
  letter-spacing: -0.025em;
}

.slide-copy > p:not(.eyebrow) {
  max-width: 460px;
  margin: 36px 0 48px;
  font-size: clamp(18px, 1.7vw, 27px);
  letter-spacing: -0.025em;
}

.text-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 12px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.product-visual {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  background: var(--ink);
}

.visual-transcript-hacker {
  background:
    linear-gradient(90deg, transparent 49.9%, rgba(255, 255, 255, 0.14) 50%, transparent 50.1%),
    linear-gradient(transparent 49.9%, rgba(255, 255, 255, 0.14) 50%, transparent 50.1%),
    var(--ink);
  background-size: 25% 25%;
}

.carousel .visual-transcript-hacker {
  min-height: 0;
}

.visual-transcript-hacker > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.crop {
  position: absolute;
  border: 2px solid var(--paper);
}

.crop::before,
.crop::after {
  position: absolute;
  width: 22px;
  height: 22px;
  border-color: var(--paper);
  content: "";
}

.crop::before {
  top: -12px;
  left: -12px;
  border-top: 6px solid;
  border-left: 6px solid;
}

.crop::after {
  right: -12px;
  bottom: -12px;
  border-right: 6px solid;
  border-bottom: 6px solid;
}

.crop-one {
  top: 16%;
  right: 14%;
  width: 58%;
  height: 54%;
}

.crop-two {
  right: 28%;
  bottom: 12%;
  width: 36%;
  height: 30%;
}

.crop-three {
  top: 10%;
  left: 8%;
  width: 13%;
  height: 13%;
  background: var(--paper);
}

.scan-line {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--paper);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
  animation: scan 5s ease-in-out infinite;
}

.visual-label {
  position: absolute;
  right: 24px;
  bottom: 22px;
  color: var(--paper);
  font-size: 11px;
  letter-spacing: 0.16em;
}

@keyframes scan {
  0%,
  100% {
    transform: translateY(10vh);
  }
  50% {
    transform: translateY(68vh);
  }
}

.visual-frame {
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, transparent 48%, rgba(255, 255, 255, 0.08) 48% 52%, transparent 52%),
    var(--ink);
}

.frame-window {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(70%, 620px);
  aspect-ratio: 4 / 3;
  align-items: center;
  justify-content: center;
  border: 16px solid var(--paper);
  color: var(--paper);
}

.frame-mark {
  font-size: clamp(90px, 13vw, 190px);
  font-weight: 500;
  letter-spacing: -0.12em;
}

.frame-caption {
  position: absolute;
  bottom: -42px;
  left: -16px;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.frame-shadow {
  position: absolute;
  width: min(70%, 620px);
  aspect-ratio: 4 / 3;
  border: 1px solid var(--paper);
  transform: translate(34px, 34px);
}

.visual-dispatch {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: 1fr auto;
  padding: clamp(40px, 6vw, 96px);
  color: var(--paper);
}

.dispatch-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.dispatch-list span {
  padding: 20px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
  font-size: clamp(18px, 2vw, 32px);
  letter-spacing: 0.08em;
}

.dispatch-arrow {
  align-self: center;
  padding-left: 32px;
  font-size: clamp(80px, 12vw, 180px);
  font-weight: 400;
}

.dispatch-stamp {
  grid-column: 1 / -1;
  justify-self: end;
  padding: 12px 20px;
  border: 3px solid var(--paper);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.2em;
  transform: rotate(-5deg);
}

.carousel-controls {
  position: absolute;
  z-index: 5;
  bottom: 0;
  left: 0;
  display: flex;
  width: min(40%, 640px);
  min-width: 500px;
  height: 96px;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--page-gutter);
  border-top: 1px solid var(--ink);
  background: var(--paper);
}

.carousel-buttons {
  display: flex;
  gap: 8px;
}

.carousel-button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  cursor: pointer;
  transition: 180ms ease;
}

.carousel-button:hover,
.carousel-button:focus-visible {
  color: var(--paper);
  background: var(--ink);
}

.carousel-progress {
  display: grid;
  width: min(220px, 44%);
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
}

.progress-track {
  height: 1px;
  background: var(--line);
}

.progress-track span {
  display: block;
  width: 33.333%;
  height: 1px;
  background: var(--ink);
  transition: transform 600ms var(--ease);
}

.about {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  padding: clamp(80px, 11vw, 180px) var(--page-gutter);
}

.about-copy {
  max-width: 980px;
}

.about-copy h2 {
  margin: 0;
  font-size: clamp(40px, 6vw, 94px);
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.about-copy p {
  max-width: 640px;
  margin: 56px 0 0 auto;
  font-size: clamp(18px, 1.55vw, 24px);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  padding: 24px var(--page-gutter);
  border-top: 1px solid var(--ink);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.site-footer p {
  margin: 0;
}

/* Product detail pages */
.product-hero {
  display: grid;
  min-height: calc(100vh - var(--header-height));
  grid-template-columns: 0.82fr 1.18fr;
  border-bottom: 1px solid var(--ink);
}

.product-intro {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(48px, 6vw, 96px) var(--page-gutter);
  border-right: 1px solid var(--ink);
}

.product-intro h1 {
  margin: 32px 0;
  font-size: clamp(52px, 5.4vw, 86px);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 0.92;
}

.product-tagline {
  max-width: 520px;
  margin: 0;
  font-size: clamp(20px, 2vw, 32px);
  letter-spacing: -0.035em;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 64px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid var(--ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transition: 180ms ease;
}

.button-primary,
.button:hover,
.button:focus-visible {
  color: var(--paper);
  background: var(--ink);
}

.button-primary:hover,
.button-primary:focus-visible {
  color: var(--ink);
  background: var(--paper);
}

.product-hero .product-visual {
  min-height: inherit;
}

.product-video {
  display: flex;
  min-width: 0;
  min-height: inherit;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 4vw, 64px);
  color: var(--paper);
  background: var(--ink);
}

.product-video-meta,
.product-video-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.product-video-meta {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.product-video-frame {
  position: relative;
  width: 100%;
  margin: clamp(20px, 3vw, 42px) 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: #000000;
}

.product-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.product-video-caption {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.5);
}

.product-story {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  padding: clamp(80px, 10vw, 160px) var(--page-gutter);
  border-bottom: 1px solid var(--ink);
}

.story-body {
  max-width: 820px;
}

.story-body > p {
  margin: 0;
  font-size: clamp(26px, 3.2vw, 50px);
  letter-spacing: -0.045em;
  line-height: 1.14;
}

.feature-list {
  display: grid;
  margin-top: 80px;
  border-top: 1px solid var(--ink);
}

.feature {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.feature span {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.feature p {
  margin: 0;
  font-size: 17px;
}

.story-additional {
  max-width: 680px;
  margin-top: clamp(48px, 6vw, 88px);
}

.story-additional p {
  margin: 0;
  font-size: clamp(18px, 1.55vw, 24px);
  line-height: 1.55;
}

.story-additional p + p {
  margin-top: 1.25em;
}

.next-product {
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding: clamp(64px, 8vw, 120px) var(--page-gutter);
  transition:
    color 250ms ease,
    background 250ms ease;
}

.next-product:hover,
.next-product:focus-visible {
  color: var(--paper);
  background: var(--ink);
}

.next-product p {
  margin: 0 0 16px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.next-product h2 {
  margin: 0;
  font-size: clamp(58px, 8vw, 126px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.9;
}

.next-product > span {
  font-size: clamp(48px, 6vw, 90px);
}

@media (max-width: 900px) {
  :root {
    --header-height: 74px;
  }

  .brand {
    width: 58px;
    height: 52px;
  }

  .brand img {
    width: 58px;
    height: 52px;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
  }

  .menu-icon,
  .menu-icon::after {
    display: block;
    width: 20px;
    height: 1px;
    background: var(--ink);
    content: "";
    transition: transform 250ms ease;
  }

  .menu-icon::after {
    transform: translateY(6px);
  }

  .menu-open .menu-icon {
    transform: translateY(3px) rotate(45deg);
  }

  .menu-open .menu-icon::after {
    transform: rotate(-90deg);
  }

  .site-nav {
    position: fixed;
    inset: var(--header-height) 0 0;
    display: flex;
    visibility: hidden;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 32px var(--page-gutter);
    background: var(--paper);
    opacity: 0;
    transform: translateY(-12px);
    transition: 250ms ease;
  }

  .menu-open .site-nav {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .site-nav a {
    width: 100%;
    padding: 22px 0;
    border-bottom: 1px solid var(--ink);
    font-size: clamp(28px, 8vw, 52px);
    font-weight: 500;
    letter-spacing: -0.04em;
    text-transform: none;
  }

  .site-nav a::after {
    display: none;
  }

  .slide-link,
  .product-hero {
    grid-template-columns: 1fr;
  }

  .carousel,
  .carousel .slide-link {
    height: auto;
  }

  .slide-copy,
  .product-intro {
    min-height: 52vh;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .product-visual {
    min-height: 58vh;
  }

  .product-video {
    min-height: auto;
    padding: clamp(24px, 6vw, 48px) var(--page-gutter);
  }

  .carousel .slide-copy {
    min-height: 42vh;
  }

  .carousel .product-visual {
    min-height: 40vh;
  }

  .carousel-controls {
    position: absolute;
    top: calc(42vh - 96px);
    bottom: auto;
    width: 100%;
    min-width: 0;
  }

  .about,
  .product-story {
    grid-template-columns: 1fr;
  }

  .product-intro {
    justify-content: flex-start;
  }

  .product-actions {
    margin-top: 42px;
  }
}

@media (max-width: 560px) {
  .carousel .slide-copy {
    min-height: 380px;
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .carousel .product-visual {
    min-height: 34vh;
  }

  .slide-copy h1,
  .slide-copy h2 {
    font-size: clamp(48px, 16vw, 72px);
  }

  .slide-copy > p:not(.eyebrow) {
    margin: 24px 0 32px;
  }

  .carousel-controls {
    top: 284px;
  }

  .carousel-progress {
    width: 50%;
  }

  .visual-dispatch {
    padding: 36px 24px;
  }

  .dispatch-arrow {
    padding-left: 12px;
    font-size: 64px;
  }

  .about-copy p {
    margin-top: 36px;
  }

  .site-footer {
    flex-direction: column;
    gap: 8px;
  }

  .product-intro h1 {
    font-size: clamp(62px, 21vw, 100px);
  }

  .product-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .feature {
    grid-template-columns: 44px 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
