:root {
  color-scheme: dark;
  --home-bg: #040a12;
  --home-surface: #07131f;
  --home-text: #f4f8fb;
  --home-muted: #8ba8b8;
  --home-teal: #14f1c4;
  --home-blue: #1fa2ff;
  --home-gold: #cfaf70;
  --home-line: rgba(139, 196, 214, 0.15);
  --home-shell: 1180px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  min-width: 320px;
  background:
    radial-gradient(circle at 72% 8%, rgba(20, 241, 196, 0.08), transparent 25rem),
    radial-gradient(circle at 12% 30%, rgba(31, 162, 255, 0.09), transparent 30rem),
    var(--home-bg);
  color: var(--home-text);
  text-align: left;
  text-rendering: optimizeLegibility;
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--home-teal);
  outline-offset: 4px;
}

.shell {
  width: min(var(--home-shell), calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--home-teal);
  color: #02110e;
  font-weight: 750;
  text-decoration: none;
  transform: translateY(-160%);
}

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

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(139, 196, 214, 0.1);
  background: rgba(4, 10, 18, 0.82);
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  flex: 0 0 auto;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--home-text);
  font-size: 0.98rem;
  font-weight: 720;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(20, 241, 196, 0.22));
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.site-nav a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 13px;
  border-radius: 999px;
  color: #a9bec9;
  font-size: 0.84rem;
  font-weight: 610;
  text-decoration: none;
  white-space: nowrap;
  transition: background 180ms ease, color 180ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(20, 241, 196, 0.08);
  color: var(--home-text);
}

.page {
  min-height: auto;
  display: block;
  padding: 0;
}

.home-hero {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(480px, 1.18fr);
  align-items: center;
  gap: clamp(42px, 7vw, 92px);
  padding-block: clamp(70px, 9vw, 126px);
}

.eyebrow,
.collection-kicker {
  margin: 0 0 18px;
  color: var(--home-gold);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.home-hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--home-text);
  font-size: clamp(3rem, 6.3vw, 6.4rem);
  font-weight: 660;
  letter-spacing: -0.055em;
  line-height: 0.98;
  text-wrap: balance;
}

.hero-intro {
  max-width: 640px;
  margin: 28px 0 0;
  color: var(--home-muted);
  font-size: clamp(1rem, 1.55vw, 1.16rem);
  line-height: 1.75;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 32px;
}

.home-button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border: 1px solid var(--home-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--home-text);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.home-button:hover {
  border-color: rgba(20, 241, 196, 0.42);
  background: rgba(20, 241, 196, 0.08);
  color: var(--home-text);
  transform: translateY(-1px);
}

.home-button-primary {
  border-color: transparent;
  background: var(--home-teal);
  color: #02130f;
}

.home-button-primary:hover {
  border-color: transparent;
  background: #40f4d0;
  color: #02130f;
}

.home-button svg {
  flex: 0 0 auto;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 32px 0 0;
  padding: 0;
  color: #718e9e;
  font-size: 0.77rem;
  list-style: none;
}

.hero-facts li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-facts li::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--home-teal);
  box-shadow: 0 0 10px rgba(20, 241, 196, 0.7);
  content: "";
}

.carousel {
  min-width: 0;
}

.carousel-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 12px;
  color: #6f8b9a;
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.carousel-topline span:last-child {
  color: var(--home-gold);
}

.carousel-viewport {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid rgba(139, 196, 214, 0.18);
  border-radius: 28px;
  background: #07131f;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.42), 0 0 90px rgba(31, 162, 255, 0.07);
  isolation: isolate;
  touch-action: pan-y;
}

.carousel-slide {
  height: 100%;
  margin: 0;
}

.carousel:not(.is-enhanced) .carousel-slide:not(:first-of-type) {
  display: none;
}

.carousel.is-enhanced .carousel-slide {
  position: absolute;
  z-index: 0;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 900ms ease;
}

.carousel.is-enhanced .carousel-slide.is-active {
  z-index: 1;
  opacity: 1;
  pointer-events: auto;
}

.carousel-slide::after {
  position: absolute;
  z-index: 1;
  inset: 36% 0 0;
  background: linear-gradient(to top, rgba(2, 7, 12, 0.92), transparent);
  content: "";
  pointer-events: none;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.carousel-caption {
  position: absolute;
  z-index: 2;
  right: 76px;
  bottom: 28px;
  left: 28px;
}

.carousel-caption-link {
  color: inherit;
  text-decoration: none;
}

.carousel-profile-link {
  display: inline-flex;
  margin-top: 11px;
  color: var(--home-teal);
  font-size: 0.75rem;
  font-weight: 700;
  font-style: normal;
}

.carousel-caption-link:hover .carousel-profile-link {
  color: var(--home-text);
}

.carousel-name,
.carousel-species {
  display: block;
}

.carousel-name {
  margin-bottom: 4px;
  font-size: clamp(1.3rem, 3vw, 2rem);
  font-weight: 690;
  letter-spacing: -0.025em;
}

.carousel-species {
  color: #bbced8;
  font-size: 0.84rem;
  font-style: italic;
}

.carousel-arrow {
  position: absolute;
  z-index: 3;
  top: 50%;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(2, 8, 14, 0.62);
  color: var(--home-text);
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
}

.carousel-arrow:hover {
  border-color: rgba(20, 241, 196, 0.52);
  background: rgba(7, 28, 34, 0.88);
}

.carousel-arrow[data-prev] {
  left: 14px;
}

.carousel-arrow[data-next] {
  right: 14px;
}

.carousel-controls {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 13px;
}

.carousel-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.carousel-dot {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.carousel-dot::before {
  width: 18px;
  height: 3px;
  border-radius: 99px;
  background: #27414f;
  content: "";
  transition: width 180ms ease, background 180ms ease;
}

.carousel-dot[aria-current="true"]::before {
  width: 30px;
  background: var(--home-teal);
}

.carousel-toggle {
  min-width: 124px;
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid var(--home-line);
  border-radius: 999px;
  background: transparent;
  color: #a9bec9;
  font-size: 0.76rem;
  font-weight: 650;
  cursor: pointer;
}

.carousel-toggle:hover {
  border-color: rgba(20, 241, 196, 0.38);
  color: var(--home-text);
}

.collection {
  width: min(var(--home-shell), calc(100% - 48px));
  margin: 0 auto;
  padding-block: clamp(82px, 10vw, 138px);
  border-top: 1px solid var(--home-line);
}

.collection-heading {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  align-items: end;
  gap: 32px;
  margin: 0 0 36px;
  text-align: left;
}

.collection-heading-main {
  min-width: 0;
}

.collection-kicker {
  margin-bottom: 14px;
}

.collection-title {
  color: var(--home-text);
  font-size: clamp(2.4rem, 5vw, 4.5rem);
  font-weight: 650;
  letter-spacing: -0.05em;
  line-height: 1;
}

.collection-intro {
  margin: 0;
  color: var(--home-muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

.collection-gallery {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 30px;
}

.collection-card {
  aspect-ratio: 4 / 5;
  border-color: var(--home-line);
  border-radius: 18px;
  background: var(--home-surface);
}

.collection-card-link {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  color: inherit;
  text-decoration: none;
}

.collection-card-link:focus-visible {
  outline-offset: -4px;
}

.collection-caption {
  padding: 44px 22px 21px;
}

.collection-name {
  font-size: 1.2rem;
}

.collection-species {
  color: #a7bdc8;
  font-size: 0.78rem;
}

.collection-list-title,
.collection-list {
  display: none;
}

.collection-cta {
  display: flex;
  justify-content: center;
}

.home-section {
  width: min(var(--home-shell), calc(100% - 48px));
  margin-inline: auto;
  padding-block: clamp(82px, 10vw, 138px);
  border-top: 1px solid var(--home-line);
}

.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.feature {
  position: relative;
  min-height: 570px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: clamp(28px, 5vw, 50px);
  border: 1px solid var(--home-line);
  border-radius: 28px;
  background: var(--home-surface);
  isolation: isolate;
}

.feature::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 8, 14, 0.98), rgba(2, 8, 14, 0.62) 48%, rgba(2, 8, 14, 0.06));
  content: "";
}

.feature > img {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 800ms ease;
}

.feature:hover > img {
  transform: scale(1.025);
}

.feature-research > img {
  object-position: 55% 48%;
}

.feature-video > img {
  object-position: 64% 55%;
}

.feature-copy {
  max-width: 540px;
}

.feature-copy h2,
.about-copy h2,
.codex-copy h2 {
  margin: 0;
  color: var(--home-text);
  font-size: clamp(2.35rem, 5vw, 4.8rem);
  font-weight: 650;
  letter-spacing: -0.05em;
  line-height: 1;
  text-wrap: balance;
}

.feature-copy > p:last-of-type {
  max-width: 500px;
  margin: 20px 0 0;
  color: #a2bac6;
  font-size: 0.94rem;
  line-height: 1.7;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.86fr) minmax(420px, 1.14fr);
  align-items: center;
  gap: clamp(42px, 7vw, 96px);
}

.about-portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--home-line);
  border-radius: 28px;
  background: var(--home-surface);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
}

.about-portrait::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2, 8, 14, 0.88), transparent 42%);
  content: "";
  pointer-events: none;
}

.about-portrait img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 52% center;
}

.about-portrait figcaption {
  position: absolute;
  z-index: 1;
  right: 22px;
  bottom: 18px;
  left: 22px;
  color: #a7bdc8;
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.about-story {
  min-width: 0;
}

.about-copy > p:not(.eyebrow),
.codex-copy > p:last-of-type {
  margin: 26px 0 0;
  color: var(--home-muted);
  font-size: 1rem;
  line-height: 1.8;
}

.about-links {
  display: grid;
  gap: 10px;
  padding-top: 28px;
}

.about-link {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 20px;
  border-bottom: 1px solid var(--home-line);
  color: #c5d5dd;
  font-size: 0.9rem;
  text-decoration: none;
  transition: color 180ms ease, padding-left 180ms ease;
}

.about-link:hover {
  padding-left: 26px;
  color: var(--home-teal);
}

.about-link span:last-child {
  color: #587382;
  font-size: 1.15rem;
}

.codex-panel {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  align-items: center;
  gap: 30px;
  padding: clamp(28px, 5vw, 46px);
  border: 1px solid rgba(20, 241, 196, 0.16);
  border-radius: 28px;
  background:
    radial-gradient(circle at 0 50%, rgba(20, 241, 196, 0.1), transparent 28rem),
    var(--home-surface);
}

.codex-mark {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(20, 241, 196, 0.2);
  border-radius: 22px;
  background: rgba(20, 241, 196, 0.04);
}

.codex-mark img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.codex-copy h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.codex-copy > p:last-of-type {
  max-width: 650px;
  margin-top: 12px;
  font-size: 0.9rem;
}

.status-pill {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(207, 175, 112, 0.24);
  border-radius: 999px;
  color: var(--home-gold);
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.site-footer {
  width: 100%;
  border-top: 1px solid var(--home-line);
  color: #607d8c;
  font-size: 0.76rem;
  letter-spacing: 0;
}

.footer-inner {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 22px;
}

.footer-links a {
  color: #7593a2;
  text-decoration: none;
}

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

[hidden] {
  display: none !important;
}

@media (max-width: 1040px) {
  .home-hero {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 820px;
  }

  .carousel {
    width: min(880px, 100%);
  }

  .about-layout {
    grid-template-columns: 1fr;
  }

  .about-portrait {
    width: min(100%, 680px);
    aspect-ratio: 16 / 11;
  }
}

@media (max-width: 820px) {
  .collection-heading {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 20px;
  }

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

@media (max-width: 760px) {
  html {
    scroll-padding-top: 132px;
  }

  .shell,
  .collection,
  .home-section {
    width: min(100% - 32px, var(--home-shell));
  }

  .header-inner {
    min-height: 104px;
    flex-wrap: wrap;
    gap: 2px 14px;
    padding-block: 8px;
  }

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

  .site-nav {
    width: 100%;
    justify-content: space-between;
    gap: 0;
    overflow-x: visible;
    scrollbar-width: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    min-height: 44px;
    padding-inline: 6px;
    font-size: 0.76rem;
  }

  .home-hero {
    padding-block: 64px 86px;
  }

  .home-hero h1 {
    font-size: clamp(2.85rem, 14vw, 5.2rem);
  }

  .carousel-viewport {
    aspect-ratio: 4 / 3;
    border-radius: 22px;
  }

  .carousel-caption {
    right: 60px;
    bottom: 20px;
    left: 20px;
  }

  .carousel-controls {
    align-items: flex-start;
  }

  .carousel-dots {
    flex-wrap: wrap;
    gap: 0;
  }

  .carousel-dot {
    width: 36px;
  }

  .carousel-dot::before {
    width: 14px;
  }

  .carousel-dot[aria-current="true"]::before {
    width: 22px;
  }

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

  .feature {
    min-height: 520px;
  }

  .codex-panel {
    grid-template-columns: 66px 1fr;
    gap: 20px;
  }

  .codex-mark {
    width: 66px;
    height: 66px;
    border-radius: 18px;
  }

  .codex-mark img {
    width: 48px;
    height: 48px;
  }

  .status-pill {
    grid-column: 1 / -1;
    justify-self: start;
  }

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

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .collection-gallery {
    grid-template-columns: 1fr;
  }

  .collection-card {
    aspect-ratio: 4 / 4.6;
  }

  .about-portrait {
    aspect-ratio: 4 / 5;
    border-radius: 22px;
  }
}

@media (max-width: 480px) {
  .brand span {
    font-size: 0.9rem;
  }

  .hero-actions .home-button {
    width: 100%;
  }

  .carousel-topline span:last-child {
    display: none;
  }

  .carousel-controls {
    align-items: stretch;
    flex-direction: column;
    gap: 0;
  }

  .carousel-dots {
    flex-wrap: nowrap;
    justify-content: center;
  }

  .carousel-dot {
    width: 44px;
  }

  .carousel-toggle {
    min-width: 124px;
    align-self: flex-end;
    white-space: nowrap;
  }

  .feature {
    min-height: 470px;
  }
}

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

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