:root {
  color-scheme: dark;

  --color-canvas: #1a1e2a;
  --color-accent: #6c63ff;
  --color-accent-light: #b0aaff;
  --color-ink: #f3f1ee;
  --color-muted: #b6bac6;
  --font-sans: "Manrope", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
  --gutter: clamp(1.25rem, 4.5vw, 5.5rem);
  --rule: rgb(243 241 238 / 16%);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  background: var(--color-canvas);
  line-height: 1.5;
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--color-canvas);
  color: var(--color-ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--color-accent);
  color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
  -webkit-tap-highlight-color: rgb(108 99 255 / 25%);
}

:focus-visible {
  outline: 2px solid var(--color-accent-light);
  outline-offset: 5px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  z-index: 10;
  top: 0.5rem;
  left: var(--gutter);
  padding: 0.75rem 1rem;
  transform: translateY(-180%);
  background: var(--color-accent);
  color: #fff;
}

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

.site-header {
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --color-accent-soft: #b8b4ff;
  --color-accent-active: #4a43c0;

  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.5rem;
  padding: 0.5rem var(--gutter);
  border-bottom: 1px solid rgb(179 183 199 / 14%);
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  padding-block: 0.25rem;
  color: #f3f4f8;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.brand img {
  display: block;
  width: 2rem;
  height: 2rem;
}

.brand:hover {
  color: var(--color-accent-soft);
}

.brand:active {
  color: var(--color-accent);
}

.social-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.icon-btn {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  min-height: 2.75rem;
  padding: 0;
  border: 1px solid rgb(108 99 255 / 50%);
  border-radius: 50%;
  background: transparent;
  color: var(--color-accent-soft);
  font-size: 1.1rem;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.icon-btn:hover,
.icon-btn:focus-visible {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: #fff;
}

.icon-btn:hover {
  transform: translateY(-2px);
}

.icon-btn:focus-visible {
  outline: 2px solid var(--color-accent-soft);
  outline-offset: 4px;
}

.icon-btn:active {
  border-color: var(--color-accent-active);
  transform: scale(0.94);
  background: var(--color-accent-active);
  color: #fff;
}

.product-row {
  position: relative;
  display: grid;
  isolation: isolate;
  grid-template-columns: 1.15fr 1fr;
  grid-template-rows: 1fr auto;
  align-items: center;
  width: 100%;
  min-height: 660px;
  height: min(800px, calc(100svh - 64px));
  padding: 3rem var(--gutter) 0;
  overflow: hidden;
  border-bottom: 1px solid var(--rule);
}

.product-visual {
  position: absolute;
  z-index: -2;
  inset: 0 auto 90px 0;
  width: 65%;
  overflow: hidden;
  pointer-events: none;
}

.product-photo {
  position: absolute;
  top: -15%;
  left: 50%;
  width: auto;
  height: 130%;
  max-width: none;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  transform: translate3d(-50%, var(--parallax-offset, 0), 0);
}

.product-visual::after {
  position: absolute;
  inset: -1px;
  background:
    linear-gradient(90deg, rgb(26 30 42 / 20%), transparent 22%, transparent 50%, var(--color-canvas) 96%),
    linear-gradient(0deg, var(--color-canvas), transparent 27%, transparent 76%, rgb(26 30 42 / 45%));
  content: "";
}

.product-copy {
  grid-column: 2;
  padding: 2rem 0 5rem 2rem;
}

.product-index,
.product-caption,
.site-footer {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.09em;
  line-height: 1.6;
  text-transform: uppercase;
}

.product-index {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 2.5rem;
  color: var(--color-muted);
}

.product-index::before {
  width: 1.5rem;
  height: 2px;
  background: var(--color-accent);
  content: "";
}

.product-name {
  margin: 0 0 1.4rem -0.06em;
  font-size: clamp(5rem, 8.6vw, 9rem);
  font-weight: 500;
  letter-spacing: -0.07em;
  line-height: 1;
}

.product-caption {
  position: absolute;
  top: 2.5rem;
  left: var(--gutter);
  color: var(--color-muted);
}

.product-baseline {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 110px;
  padding-block: 1.4rem;
  border-top: 1px solid var(--rule);
}

.product-description {
  margin: 0;
  color: var(--color-muted);
  font-size: clamp(0.8125rem, 1.15vw, 1rem);
  line-height: 1.7;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem var(--gutter);
  border-top: 1px solid var(--rule);
  color: var(--color-muted);
  font-size: 0.625rem;
  letter-spacing: 0.04em;
  text-transform: none;
}

.footer-symbol {
  color: var(--color-accent-light);
}

@media (width < 48rem) {
  .site-header {
    gap: 0.5rem;
    min-height: 4rem;
  }

  .brand {
    gap: 0.5rem;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
  }

  .brand img {
    width: 1.75rem;
    height: 1.75rem;
  }

  .social-links {
    gap: 0.35rem;
  }
}

@media (width <= 680px) {
  .product-row {
    grid-template-columns: 1fr;
    align-items: end;
    height: auto;
    min-height: 720px;
    padding-top: 3rem;
  }

  .product-visual {
    inset: 0 0 auto;
    width: 100%;
    height: 560px;
  }

  .product-visual::after {
    background:
      linear-gradient(0deg, var(--color-canvas) 1%, rgb(26 30 42 / 20%) 42%, transparent 70%),
      linear-gradient(90deg, rgb(26 30 42 / 30%), transparent 30%, transparent 70%, rgb(26 30 42 / 30%));
  }

  .product-copy {
    grid-column: 1;
    align-self: end;
    padding: 21rem 0 1.75rem;
  }

  .product-index {
    margin-bottom: 0.85rem;
  }

  .product-name {
    margin-bottom: 0.75rem;
    font-size: clamp(4.75rem, 17vw, 7rem);
  }

  .product-caption {
    top: 1.5rem;
    left: var(--gutter);
    font-size: 0.625rem;
  }

  .product-baseline {
    min-height: 120px;
  }

  .product-description {
    max-width: 40ch;
    font-size: 0.8125rem;
    line-height: 1.65;
  }

  .site-footer {
    font-size: 0.5625rem;
  }
}

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

  .brand,
  .icon-btn {
    transition: none;
  }

  .product-photo {
    transform: translateX(-50%);
  }
}
