@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/space-grotesk-500.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/space-grotesk-700.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/dm-sans-400.woff2") format("woff2");
}
@font-face {
  font-family: "DM Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/dm-mono-500.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --void: #09090d;
  --surface: #121218;
  --surface-2: #191921;
  --rule: #30303d;
  --text: #f7f7fa;
  --muted: #b2b3c0;
  --quiet: #8e8f9f;
  --uv: #8b5cf6;
  --uv-light: #c4b5fd;
  --cyan: #67e8f9;
  --green: #4ade80;
  --max: 1180px;
}

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

html {
  background: var(--void);
  scroll-behavior: smooth;
}

body {
  min-width: 280px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 3%, rgba(139, 92, 246, 0.2), transparent 32rem),
    radial-gradient(circle at 10% 42%, rgba(103, 232, 249, 0.06), transparent 28rem),
    var(--void);
  color: var(--text);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--text);
  color: var(--void);
  font-weight: 700;
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: none;
}

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  border-bottom: 1px solid rgba(247, 247, 250, 0.1);
  background: rgba(9, 9, 13, 0.9);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  width: min(var(--max), calc(100% - 40px));
  min-height: 68px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: "Space Grotesk", sans-serif;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
}

.nav-links,
.hero-actions,
.gallery-controls,
.card-actions,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.nav-link,
.lang-link {
  min-height: 42px;
  padding: 9px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.nav-link:hover,
.lang-link:hover {
  background: var(--surface-2);
  color: var(--text);
}

.nav-cta,
.button {
  display: inline-flex;
  min-height: 46px;
  padding: 11px 17px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
}

.nav-cta,
.button.primary {
  border-color: rgba(196, 181, 253, 0.6);
  background: var(--uv);
  color: var(--void);
  box-shadow: 0 0 22px rgba(139, 92, 246, 0.24);
}

.nav-cta:hover,
.button.primary:hover {
  background: var(--uv-light);
}

.button:hover {
  border-color: var(--uv-light);
}

main {
  overflow: hidden;
}

.hero,
.section,
.closing {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 680px;
  padding: 116px 0 88px;
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 68px;
  right: -20px;
  width: min(38vw, 430px);
  height: 520px;
  background: url("/brand/rebrand-v03/logo-aperture-active-uv-v03.svg") center / contain no-repeat;
  opacity: 0.13;
}

.eyebrow,
.section-kicker,
.card-kicker,
.sku {
  color: var(--uv-light);
  font-family: "DM Mono", monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
}

h1 {
  max-width: 930px;
  margin: 22px 0 28px;
  font-size: clamp(54px, 8.8vw, 116px);
  line-height: 0.88;
  letter-spacing: -0.07em;
}

h1 em,
h2 em {
  color: var(--uv-light);
  font-style: normal;
}

.hero-lead {
  max-width: 760px;
  margin-bottom: 30px;
  color: #dbdbe5;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.52;
}

.hero-actions {
  margin-top: 32px;
}

.hero-math {
  display: grid;
  max-width: 900px;
  margin: 48px 0 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--rule);
}

.hero-math div {
  min-height: 112px;
  padding: 18px;
  background: rgba(18, 18, 24, 0.94);
}

.hero-math strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 31px;
  letter-spacing: -0.04em;
}

.hero-math span {
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: 88px 0;
  border-top: 1px solid rgba(247, 247, 250, 0.09);
}

.section-head {
  display: grid;
  margin-bottom: 38px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  align-items: end;
  gap: 54px;
}

.section h2,
.closing h2 {
  max-width: 800px;
  margin: 12px 0 0;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.section-intro {
  margin-bottom: 0;
  color: var(--muted);
}

.gallery-tools {
  display: flex;
  margin-bottom: 18px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.gallery-status {
  color: var(--quiet);
  font-family: "DM Mono", monospace;
  font-size: 12px;
}

.gallery-button {
  width: 46px;
  height: 46px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: var(--surface);
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
}

.gallery-button:hover {
  border-color: var(--uv-light);
  color: var(--uv-light);
}

.gallery-track {
  display: grid;
  grid-auto-columns: min(78vw, 700px);
  grid-auto-flow: column;
  gap: 16px;
  width: 100%;
  padding: 0 0 18px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-color: var(--uv) var(--surface);
}

.gallery-card {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--surface);
  scroll-snap-align: start;
}

.gallery-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.gallery-card figcaption {
  padding: 16px 18px 18px;
  color: var(--muted);
}

.gallery-card strong {
  color: var(--text);
}

.catalog-equation,
.lines,
.moods,
.factory-grid {
  display: grid;
  gap: 14px;
}

.catalog-equation {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.catalog-card,
.line-card,
.factory-card,
.god-card,
.catalog-note {
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: linear-gradient(145deg, var(--surface), rgba(18, 18, 24, 0.74));
}

.catalog-card {
  min-height: 210px;
  padding: 24px;
}

.catalog-card strong {
  display: block;
  margin: 18px 0 4px;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(34px, 4vw, 52px);
  letter-spacing: -0.045em;
}

.catalog-card p,
.line-card p,
.factory-card p,
.god-card p,
.catalog-note p {
  margin-bottom: 0;
  color: var(--muted);
}

.catalog-total {
  border-color: rgba(196, 181, 253, 0.5);
  box-shadow: inset 0 0 38px rgba(139, 92, 246, 0.08);
}

.catalog-note {
  margin-top: 14px;
  padding: 20px 24px;
}

.catalog-note strong {
  color: var(--text);
}

.moods {
  margin-top: 24px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.mood {
  min-height: 82px;
  padding: 17px 12px;
  border: 1px solid var(--rule);
  border-top: 3px solid var(--mood);
  border-radius: 10px;
  background: rgba(18, 18, 24, 0.8);
  text-align: center;
}

.mood strong {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
}

.mood span {
  color: var(--quiet);
  font-size: 12px;
}

.lines {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.line-card {
  padding: 28px;
}

.line-card h3,
.factory-card h3,
.god-card h3 {
  margin: 10px 0 12px;
  font-size: clamp(25px, 3vw, 35px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.pack-list {
  display: grid;
  margin: 24px 0 0;
  padding: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 16px;
  list-style: none;
}

.pack-list li {
  display: flex;
  min-width: 0;
  padding-bottom: 8px;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(247, 247, 250, 0.08);
  font-size: 14px;
}

.pack-list small {
  flex: 0 0 auto;
  color: var(--quiet);
  font-family: "DM Mono", monospace;
  font-size: 10px;
}

.god-card {
  display: grid;
  margin-top: 16px;
  padding: 30px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 34px;
  border-color: rgba(196, 181, 253, 0.52);
  background:
    linear-gradient(105deg, rgba(139, 92, 246, 0.15), transparent 55%),
    var(--surface);
}

.price {
  display: block;
  color: var(--text);
  font-family: "Space Grotesk", sans-serif;
  font-size: 32px;
  letter-spacing: -0.04em;
  white-space: nowrap;
}

.price small {
  display: block;
  color: var(--muted);
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: normal;
}

.factory-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.factory-card {
  display: grid;
  min-width: 0;
  overflow: hidden;
  grid-template-columns: minmax(150px, 0.8fr) minmax(0, 1.2fr);
}

.factory-card > img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
}

.factory-body {
  display: flex;
  min-width: 0;
  padding: 25px;
  flex-direction: column;
}

.factory-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--quiet);
  font-family: "DM Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.works {
  margin: 18px 0 22px;
  padding: 0;
  color: var(--muted);
  font-size: 13px;
  list-style: none;
}

.works li + li {
  margin-top: 5px;
}

.factory-buy {
  display: flex;
  margin-top: auto;
  padding-top: 20px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid rgba(247, 247, 250, 0.1);
}

.factory-buy .button {
  min-height: 42px;
  padding: 9px 13px;
  font-size: 13px;
}

.sku {
  display: block;
  margin-top: 12px;
  overflow-wrap: anywhere;
  color: var(--quiet);
  letter-spacing: 0.04em;
  text-transform: none;
}

.store-discovery {
  display: flex;
  margin-top: 22px;
  padding: 22px 24px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  background: var(--surface);
}

.store-discovery p {
  margin: 0;
  color: var(--muted);
}

.closing-wrap {
  padding: 88px 0;
  background:
    radial-gradient(circle at 75% 50%, rgba(139, 92, 246, 0.18), transparent 31rem),
    #0d0d13;
}

.closing {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 44px;
}

.closing p {
  max-width: 690px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.site-footer {
  border-top: 1px solid rgba(247, 247, 250, 0.1);
  color: var(--quiet);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  width: min(var(--max), calc(100% - 40px));
  min-height: 100px;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-links a:hover {
  color: var(--text);
}

@media (max-width: 940px) {
  .hero {
    min-height: auto;
  }

  .section-head,
  .closing {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 22px;
  }

  .hero-math {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .moods {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .factory-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .nav {
    width: min(100% - 28px, var(--max));
  }

  .nav-link {
    display: none;
  }

  .nav-cta {
    min-height: 40px;
    padding: 8px 11px;
    font-size: 12px;
  }

  .hero,
  .section,
  .closing,
  .footer-inner {
    width: min(100% - 32px, var(--max));
  }

  .hero {
    padding: 78px 0 64px;
  }

  .hero::after {
    top: 84px;
    right: -70px;
    width: 260px;
    height: 320px;
    opacity: 0.08;
  }

  h1 {
    font-size: clamp(48px, 17vw, 76px);
  }

  .section,
  .closing-wrap {
    padding: 66px 0;
  }

  .catalog-equation,
  .lines {
    grid-template-columns: 1fr;
  }

  .gallery-track {
    grid-auto-columns: min(86vw, 620px);
  }

  .factory-card {
    grid-template-columns: 1fr;
  }

  .factory-card > img {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .god-card,
  .store-discovery {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner {
    padding: 28px 0;
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 430px) {
  .brand span {
    display: none;
  }

  .hero-math,
  .moods,
  .pack-list {
    grid-template-columns: 1fr 1fr;
  }

  .factory-buy {
    align-items: flex-start;
    flex-direction: column;
  }

  .gallery-tools {
    align-items: flex-end;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
