:root {
  --bg: #060810;
  --bg-elevated: rgba(14, 18, 32, 0.82);
  --bg-panel: rgba(18, 24, 42, 0.8);
  --bg-panel-hover: rgba(22, 30, 52, 0.92);
  --line: rgba(164, 185, 255, 0.14);
  --line-strong: rgba(164, 185, 255, 0.24);
  --text: #e8eef9;
  --text-soft: #acb8d0;
  --text-muted: #7e8ba8;
  --gold: #d8bb74;
  --gold-soft: #b79c5d;
  --accent: #6ea7ff;
  --accent-soft: rgba(110, 167, 255, 0.14);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --container: 1240px;
  --transition: 180ms ease;
  --header-height: 79px;
  --anchor-clearance: 0px;
  --anchor-offset: calc(var(--header-height) + var(--anchor-clearance));
}

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

html {
  min-height: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--anchor-offset);
  background: #05070d;
  overscroll-behavior-y: none;
}

/* Keep in-page destinations clear of the sticky header in Safari and other
   browsers. This target-side offset complements the scroll-container offset. */
main[id],
.content-section[id] {
  scroll-margin-top: 0;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(61, 98, 179, 0.22), transparent 32%),
    radial-gradient(circle at top right, rgba(132, 84, 182, 0.16), transparent 26%),
    linear-gradient(180deg, #05070d 0%, #080c16 100%);
}

img {
  max-width: 100%;
  display: block;
}

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

button,
input {
  font: inherit;
}

.site-shell {
  min-height: 100vh;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin-inline: auto;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  background: rgba(6, 8, 16, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.brand-lockup {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-lockup-image {
  width: 180px;
  height: auto;
  max-height: 64px;
  object-fit: contain;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.85rem;
  min-width: 0;
}

.parent-lockup {
  display: inline-flex;
  align-items: center;
  flex: 0 1 auto;
  min-width: 0;
}

.parent-lockup-image {
  display: block;
  width: 132px;
  height: auto;
  max-height: 44px;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: brightness(1.05) contrast(1.06) drop-shadow(0 8px 18px rgba(0, 0, 0, 0.38));
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.site-nav a,
.footer-links a {
  color: var(--text-soft);
  transition: color var(--transition);
}

.site-nav a:hover,
.footer-links a:hover,
.text-link:hover {
  color: var(--text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition:
    transform var(--transition),
    border-color var(--transition),
    background var(--transition),
    color var(--transition);
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(180deg, rgba(218, 189, 116, 0.24), rgba(218, 189, 116, 0.12));
  border-color: rgba(218, 189, 116, 0.28);
  color: #f4e7c2;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.hero-section {
  padding: 3.25rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 2rem;
  align-items: center;
}

.eyebrow,
.section-kicker,
.collection-label,
.edition-type,
.hero-card-label {
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.eyebrow,
.section-kicker {
  margin: 0 0 0.9rem;
  font-size: 0.74rem;
  color: var(--gold);
}

.hero-copy h1,
.section-heading h2,
.about-panel h2 {
  margin: 0;
  line-height: 0.96;
  letter-spacing: -0.045em;
}

.hero-copy h1 {
  font-size: clamp(2.5rem, 4vw, 3.8rem);
  max-width: 9ch;
}

.hero-text,
.hero-subtext,
.section-text,
.about-panel p,
.collection-panel p,
.edition-desc,
.results-text {
  color: var(--text-soft);
  line-height: 1.65;
}

.hero-text {
  max-width: 60ch;
  margin: 1.2rem 0 0;
  font-size: 1.04rem;
}

.hero-subtext {
  max-width: 58ch;
  margin: 0.8rem 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  padding: 0;
  margin: 1.25rem 0 0;
  list-style: none;
}

.hero-meta li {
  padding: 0.7rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text-soft);
  font-size: 0.92rem;
}

.hero-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.hero-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at top left, rgba(108, 152, 255, 0.16), transparent 44%),
    rgba(13, 18, 34, 0.9);
  box-shadow: var(--shadow);
}

.hero-card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-card-main .hero-card-image {
  object-fit: contain;
  object-position: right center;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(6, 8, 16, 0) 58%,
    rgba(6, 8, 16, 0.32) 100%
  );
  pointer-events: none;
}

.hero-card > :not(.hero-card-image) {
  position: relative;
  z-index: 1;
}

.hero-card-main {
  grid-column: 1 / -1;
  min-height: 280px;
  padding: 1.4rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: end;
}

.hero-card-small {
  min-height: 150px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: end;
}

.hero-card-label {
  font-size: 0.68rem;
  color: var(--gold);
  margin-bottom: 0.7rem;
}

.hero-card-main h2,
.hero-card-small h3,
.edition-card h3,
.collection-panel h3 {
  margin: 0;
  letter-spacing: -0.03em;
}

.hero-card-main h2 {
  font-size: 1.7rem;
  max-width: 12ch;
}

.hero-card-main p {
  margin: 0.8rem 0 0;
  max-width: 38ch;
  color: var(--text-soft);
  line-height: 1.55;
}

.hero-card-small h3 {
  font-size: 1.1rem;
}

.content-section {
  padding: 1.5rem 0 2rem;
}

.section-heading {
  margin-bottom: 1.25rem;
}

.section-heading h2,
.about-panel h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.section-text {
  max-width: 58ch;
  margin: 0.8rem 0 0;
}

.catalogue-controls {
  display: grid;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1rem;
}

.filter-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.filter-chip {
  padding: 0.78rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  cursor: pointer;
  transition:
    border-color var(--transition),
    background var(--transition),
    color var(--transition),
    transform var(--transition);
}

.filter-chip:hover {
  border-color: var(--line-strong);
  color: var(--text);
  transform: translateY(-1px);
}

.filter-chip.is-active {
  background: var(--accent-soft);
  color: #dbe7ff;
  border-color: rgba(110, 167, 255, 0.28);
}

.search-wrap {
  max-width: 460px;
}

.catalogue-search {
  width: 100%;
  min-height: 50px;
  padding: 0 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  outline: none;
  transition:
    border-color var(--transition),
    background var(--transition);
}

.catalogue-search::placeholder {
  color: var(--text-muted);
}

.catalogue-search:focus {
  border-color: rgba(110, 167, 255, 0.3);
  background: rgba(255, 255, 255, 0.05);
}

.results-bar {
  margin: 0 0 1rem;
}

.results-text {
  margin: 0;
}

.featured-rail,
.store-grid,
.collections-grid {
  display: grid;
  gap: 1rem;
}

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

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

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

.edition-card,
.collection-panel,
.about-panel,
.empty-state {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--bg-panel);
  box-shadow: var(--shadow);
}

.hero-card,
.edition-card {
  overflow: hidden;
  transition:
    transform var(--transition),
    border-color var(--transition),
    background var(--transition);
}

.hero-card:hover,
.edition-card:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  background: var(--bg-panel-hover);
}

.hero-card:focus-visible,
.edition-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.store-item[hidden] {
  display: none !important;
}

.edition-media {
  position: relative;
  aspect-ratio: 1 / 1.02;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.edition-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.edition-body {
  padding: 1rem 1rem 1.1rem;
}

.edition-type,
.collection-label {
  margin: 0 0 0.6rem;
  font-size: 0.68rem;
  color: var(--gold);
}

.edition-card h3 {
  font-size: 1.08rem;
  line-height: 1.15;
}

.edition-desc {
  margin: 0.65rem 0 0;
  font-size: 0.95rem;
}

.edition-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.edition-tags span {
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: 0.76rem;
}

.edition-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  margin-top: 1rem;
}

.edition-price {
  font-weight: 700;
  color: #f4f7ff;
}

.text-link {
  color: var(--text-soft);
  font-weight: 600;
  transition: color var(--transition);
}

.collection-panel {
  padding: 1.2rem 1.2rem 1.35rem;
}

.collection-panel h3 {
  font-size: 1.3rem;
  margin-bottom: 0.7rem;
}

.collection-panel p {
  margin: 0;
}

.about-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1.5rem;
  padding: 1.4rem;
}

.about-panel p {
  margin: 0 0 1rem;
}

.about-panel p:last-child {
  margin-bottom: 0;
}

.empty-state {
  padding: 1rem 1.1rem;
}

.empty-state p {
  margin: 0;
  color: var(--text-soft);
}

.site-footer {
  padding: 2rem 0 2.8rem;
}

.footer-inner {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-brand-group {
  display: grid;
  gap: 0.55rem;
}

.footer-brand-lockups {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.footer-brand {
  display: inline-flex;
  width: fit-content;
}

.footer-brand-image {
  width: 180px;
  height: auto;
  max-height: 60px;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: brightness(1.05) contrast(1.06) drop-shadow(0 8px 18px rgba(0, 0, 0, 0.38));
}

.footer-parent-brand-image {
  display: block;
  width: 132px;
  height: auto;
  max-height: 44px;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: brightness(1.05) contrast(1.06) drop-shadow(0 8px 18px rgba(0, 0, 0, 0.38));
}

.footer-copy {
  margin: 0;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.product-hero .content-card > .edition-label {
  align-self: flex-start;
  margin: 1.4rem 0 0;
}

.product-hero .content-card > .price {
  margin-top: 0.65rem;
}

main.page .product-hero > .media-card {
  align-self: start;
}

@media (max-width: 1080px) {
  .hero-grid,
  .about-panel {
    grid-template-columns: 1fr;
  }

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

  .featured-rail,
  .collections-grid {
    grid-template-columns: 1fr;
  }

  .site-nav {
    display: none;
  }
}

@media (max-width: 720px) {
  .hero-section {
    padding-top: 2.5rem;
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }

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

  .header-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .header-actions {
    width: 100%;
  }

  .header-actions .button {
    flex: 1 1 auto;
    width: auto;
  }

  .parent-lockup-image,
  .footer-parent-brand-image {
    width: 116px;
  }

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

@media (min-width: 900px) and (max-width: 1080px) {
  .header-inner {
    gap: 0.8rem;
  }

  .brand-lockup-image {
    width: 148px;
    max-height: 54px;
  }

  .site-nav {
    display: flex;
    gap: 0.72rem;
    font-size: 0.88rem;
  }

  .header-actions {
    gap: 0.65rem;
  }

  .parent-lockup-image {
    width: 104px;
    max-height: 38px;
  }

  .header-actions .button {
    min-height: 42px;
    padding-inline: 0.8rem;
    font-size: 0.9rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    gap: 1.35rem;
  }

  .about-panel {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }

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

@media (max-width: 720px) {
  :root {
    --header-height: 118px;
  }

  .header-inner {
    gap: 0.45rem;
    min-height: 0;
    padding-block: 0.4rem 0.55rem;
  }

  .brand-lockup-image {
    width: 158px;
    max-height: 52px;
  }

  .header-actions {
    justify-content: space-between;
    gap: 0.65rem;
  }

  .parent-lockup-image {
    width: 104px;
    max-height: 38px;
  }

  .header-actions .button {
    min-height: 42px;
    padding-inline: 0.9rem;
  }
}

/* === Editions About heading refinement — 26/08/2026 === */
.about-panel h2 {
  font-size: clamp(1.9rem, 2.6vw, 2.55rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
}


/* === Editions premium typography pass v1 — 26/08/2026 === */

/* Hero identity: NeuroBios gradient + Editions gold */
.editions-hero-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  max-width: none;
  font-size: clamp(2.35rem, 3.45vw, 3.35rem);
  line-height: 0.92;
}

.editions-hero-neurobios {
  display: block;
  color: transparent;
  background: linear-gradient(
    90deg,
    #3193df 0%,
    #4f7fe1 68%,
    #7767d2 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
}

.editions-hero-editions {
  display: block;
  margin-top: 0.08em;
  color: #d8bb74;
}

/* Section headings: smaller, quieter, repeated NeuroBios gradient language */
.section-heading h2,
.about-panel h2 {
  font-size: clamp(1.75rem, 2.55vw, 2.45rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  color: transparent;
  background: linear-gradient(
    90deg,
    #4fb8f2 0%,
    #6f8df3 48%,
    #8d6fd8 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
}

/* About is a closing statement rather than another hero */
.about-panel h2 {
  max-width: 17ch;
  font-size: clamp(1.7rem, 2.3vw, 2.25rem);
}

/* === Editions anchor landing refinement v1 — 26/08/2026 === */
#featured,
#catalogue,
#collections,
#about {
  scroll-margin-top: -1.5rem;
}

/* === Editions hero top-spacing refinement — 26/08/2026 === */
.hero-section {
  padding-top: 2rem;
}

/* === Editions hero catalogue shortcuts v1 — 26/08/2026 === */
.hero-lane-shortcuts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  max-width: 44rem;
  margin: 1.25rem 0 0;
}

.hero-lane-shortcut {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.78rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  text-align: center;
  transition:
    border-color var(--transition),
    background var(--transition),
    color var(--transition),
    transform var(--transition);
}

.hero-lane-shortcut:hover,
.hero-lane-shortcut:focus-visible {
  border-color: var(--line-strong);
  color: var(--text);
  transform: translateY(-1px);
}

.hero-lane-shortcut:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 720px) {
  .hero-lane-shortcuts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


/* === Editions hero catalogue shortcut affordance v2 — 26/08/2026 === */
.hero-lane-shortcut {
  background: linear-gradient(
    180deg,
    rgba(110, 167, 255, 0.11),
    rgba(110, 167, 255, 0.045)
  );
  border-color: rgba(110, 167, 255, 0.24);
  color: #dbe7ff;
  font-weight: 600;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    0 8px 20px rgba(0, 0, 0, 0.16);
  cursor: pointer;
}

.hero-lane-shortcut:hover,
.hero-lane-shortcut:focus-visible {
  background: rgba(110, 167, 255, 0.16);
  border-color: rgba(110, 167, 255, 0.42);
  color: #f1f6ff;
  transform: translateY(-2px);
}
