:root {
  color-scheme: dark;
  --bg: #040404;
  --bg-alt: #0c0c0c;
  --surface: #111111;
  --surface-strong: #171717;
  --surface-soft: #1d1d1d;
  --text: #f5f5f0;
  --muted: #b4b4ac;
  --accent: #d9d9d4;
  --accent-strong: #ffffff;
  --border: rgba(255, 255, 255, 0.12);
  --border-strong: rgba(255, 255, 255, 0.22);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.05), transparent 28%),
    linear-gradient(135deg, var(--bg-alt) 0%, var(--bg) 60%, #060606 100%);
  line-height: 1.6;
}

img {
  display: block;
  width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 1rem 2rem 0.75rem;
  backdrop-filter: blur(16px);
  background: rgba(4, 4, 4, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.topbar__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff;
}

.topbar__brand img {
  width: 47px;
  height: auto;
}

.topbar__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1rem;
  font-size: 0.95rem;
  color: #ffffff;
}

.topbar__links a:hover {
  color: #ffffff;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: min(760px, 80vh);
  width: 100%;
  margin: 0;
  padding: 0 0 3rem;
}

.hero__visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  box-shadow: none;
}

.hero__visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 4, 4, 0.78) 0%, rgba(4, 4, 4, 0.48) 52%, rgba(4, 4, 4, 0.24) 100%);
}

.hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__content {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  padding: 3rem 2rem 3rem 2rem;
  margin-left: 8rem;
}

.hero__logo {
  width: min(320px, 100%);
  margin-bottom: 0.75rem;
}

.eyebrow {
  margin: 0 0 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.26em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
}

.hero h1,
.section h2,
.page-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 3.2vw, 3rem);
  line-height: 1.1;
}

.bio,
.section__heading p,
.page-hero p,
.card p,
.section-copy,
.section-card p {
  color: var(--muted);
  font-size: 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  background: #4a4a4a;
  color: #ffffff;
  margin-top: 1.25rem;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.button:hover {
  transform: translateY(-2px);
  background: #5d5d5d;
  box-shadow: 0 6px 16px rgba(255, 255, 255, 0.08);
}

main {
  padding: 1rem 2rem 4rem;
}

.section {
  max-width: 1240px;
  margin: 0 auto;
}

.section__heading {
  margin-bottom: 2rem;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.card {
  display: block;
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-strong) 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
  border-color: var(--border-strong);
}

.card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.card__content {
  padding: 1.2rem 1.2rem 1.35rem;
}

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
}

.page-hero {
  max-width: 1160px;
  margin: 0 auto;
  padding: 2rem 2rem 1.2rem;
}

.page-hero__back {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--accent);
  font-weight: 600;
}

.page-hero__cover {
  margin-top: 1rem;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.page-hero__cover img {
  max-height: 460px;
  object-fit: cover;
}

.gallery {
  max-width: 1160px;
  margin: 0 auto;
  padding: 1rem 2rem 4rem;
}

.section-card {
  margin-bottom: 2rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.025) 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.section-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.section-card__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.section-card__grid--comparisons {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.section-card__grid img {
  border-radius: 16px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: zoom-in;
}

.comparison-slider {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  min-height: 520px;
  aspect-ratio: 16 / 9;
  width: 100%;
  max-width: 1160px;
  background: #000;
}

.comparison-slider img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.comparison-slider__base {
  display: block;
}

.comparison-slider__overlay {
  position: absolute;
  inset: 0;
  width: 50%;
  overflow: hidden;
  pointer-events: none;
}

.comparison-slider__overlay img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comparison-slider__handle {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  cursor: ew-resize;
  padding: 0;
}

.comparison-slider__handle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.comparison-slider__handle:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.65);
}

.comparison-slider:hover .comparison-slider__handle,
.comparison-slider__handle:focus {
  background: rgba(255, 255, 255, 1);
}

@media (max-width: 900px) {
  .comparison-slider {
    min-height: 240px;
  }
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.86);
}

.modal.is-open {
  display: flex;
}

.modal__content {
  position: relative;
  max-width: min(1100px, 100%);
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal__image {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 2.2rem;
  height: 2.2rem;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.2);
  color: #f5f5f0;
  font-size: 1.1rem;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.modal__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  background: transparent;
  color: #f5f5f0;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.modal__nav svg {
  width: 100%;
  height: 100%;
  display: block;
}

.modal__nav--prev {
  left: -3.2rem;
}

.modal__nav--next {
  right: -3.2rem;
}

.download-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 1rem;
}

.download-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 180ms ease, border-color 180ms ease;
}

.download-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.22);
}

.download-card__title {
  font-weight: 600;
}

.download-card__meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 900px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .topbar__links {
    justify-content: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 1.5rem;
  }

  .category-grid,
  .section-card__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .hero,
  main,
  .page-hero,
  .gallery {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .category-grid,
  .section-card__grid {
    grid-template-columns: 1fr;
  }
}
