@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+Devanagari:wght@400;500;600&display=swap");

/* Ninth Fall — chapter rail, cinematic hero, lower views */

:root {
  --nf-ink: #0c0c0c;
  --nf-ink-soft: rgba(12, 12, 12, 0.55);
  --nf-line: rgba(12, 12, 12, 0.12);
  --nf-paper: #f7f4ef;
  --nf-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nf-deva: "Noto Sans Devanagari", "Noto Sans", sans-serif;
  --nf-header-offset: 5rem;
  --nf-chapter-rail-height: 7.25rem;
}

.nf-chapter-page main aside {
  min-height: 14rem;
}

/* Mobile: aside becomes sticky top chapter slider (do NOT hide — nav lives here) */
@media (max-width: 1023px) {
  .nf-chapter-page main aside {
    display: block !important;
    position: sticky !important;
    top: var(--nf-header-offset);
    z-index: 35;
    min-height: 0 !important;
    height: auto !important;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 0 0.85rem !important;
    padding: 0.7rem 0 0.75rem !important;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 249, 247, 0.94) 100%);
    backdrop-filter: blur(18px) saturate(1.08);
    -webkit-backdrop-filter: blur(18px) saturate(1.08);
    border-bottom: 1px solid rgba(12, 12, 12, 0.1);
    box-shadow: 0 10px 28px rgba(12, 12, 12, 0.05);
    overflow: visible !important;
  }

  .nf-chapter-page main aside > nav[aria-label="Chapter rail"] {
    display: none !important;
  }

  .nf-chapter-page main aside > .mt-6.lg\:hidden,
  .nf-chapter-page main aside .mt-6 {
    display: block !important;
    margin: 0 !important;
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  /* Do NOT put overflow on sticky aside's parent — kills position:sticky */
  .nf-chapter-page main > div.mx-auto.grid,
  .nf-chapter-page main .mx-auto.grid {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: visible;
    gap: 1.35rem;
  }

  /* Keep overflow off content column so segment sticky works; clip only gallery/hero */
  .nf-chapter-page main .mx-auto.grid > div:not(aside) {
    max-width: 100%;
    min-width: 0;
    overflow: visible;
  }
}

/* ---------- Mobile chapter navigation — premium horizontal slider ---------- */
.nf-chapter-page main .mt-6.lg\:hidden {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

nav[aria-label="Chapter navigation"].nf-chapter-nav,
nav.nf-chapter-nav[aria-label="Chapter navigation"] {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: none;
  gap: 0.55rem !important;
}

nav[aria-label="Chapter navigation"] .nf-chapter-kicker {
  display: block;
  margin: 0;
  padding: 0 0.1rem;
  font-size: 0.5rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(12, 12, 12, 0.38);
}

nav[aria-label="Chapter navigation"] .nf-chapter-scroll {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0.35rem;
  width: 100%;
  max-width: 100%;
  min-width: 0; /* critical — otherwise flex min-content blocks overflow scroll */
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  padding: 0.15rem 1.65rem 0.35rem 0.1rem;
  /* Soft edge hint only — keep hit targets opaque */
  mask-image: linear-gradient(
    90deg,
    #000 0,
    #000 calc(100% - 1.1rem),
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    #000 0,
    #000 calc(100% - 1.1rem),
    transparent 100%
  );
}

nav[aria-label="Chapter navigation"] .nf-chapter-scroll::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

nav[aria-label="Chapter navigation"] .nf-chapter-item,
nav[aria-label="Chapter navigation"] .nf-chapter-item.is-mobile {
  display: block !important;
  flex: 0 0 auto;
  width: auto;
  margin: 0 !important;
  padding: 0;
  border: none;
  vertical-align: unset;
  scroll-snap-align: start;
}

nav[aria-label="Chapter navigation"] .nf-chapter-item > a,
nav[aria-label="Chapter navigation"] > a {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.22rem;
  width: auto;
  min-width: 4.6rem;
  min-height: 2.85rem;
  padding: 0.45rem 0.85rem 0.55rem;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  color: rgba(12, 12, 12, 0.4);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid rgba(12, 12, 12, 0.1);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
  transition:
    color 0.28s var(--nf-ease),
    border-color 0.28s var(--nf-ease),
    background 0.28s var(--nf-ease),
    box-shadow 0.28s var(--nf-ease),
    transform 0.28s var(--nf-ease);
}

nav[aria-label="Chapter navigation"] .nf-chapter-item > a:hover,
nav[aria-label="Chapter navigation"] .nf-chapter-item > a:active {
  color: rgba(12, 12, 12, 0.78);
  border-color: rgba(12, 12, 12, 0.22);
}

nav[aria-label="Chapter navigation"] .nf-chapter-item.is-active > a,
nav[aria-label="Chapter navigation"] .nf-chapter-active {
  font-weight: 500;
  color: #fff !important;
  background: #0c0c0c;
  border-color: #0c0c0c;
  box-shadow: 0 8px 20px rgba(12, 12, 12, 0.18);
}

nav[aria-label="Chapter navigation"] .nf-chapter-item.is-active > a::after,
nav[aria-label="Chapter navigation"] a.nf-chapter-active::after {
  content: "";
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.28rem;
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
}

nav[aria-label="Chapter navigation"] .nf-numeral {
  font-family: var(--nf-deva);
  font-size: 0.78rem;
  font-weight: 600;
  min-width: 0;
  line-height: 1;
  letter-spacing: 0;
  opacity: 0.55;
}

nav[aria-label="Chapter navigation"] .nf-chapter-item.is-active .nf-numeral,
nav[aria-label="Chapter navigation"] .nf-chapter-active .nf-numeral {
  opacity: 0.92;
  color: inherit;
}

nav[aria-label="Chapter navigation"] .nf-chapter-sep {
  display: none;
}

nav[aria-label="Chapter navigation"] .nf-chapter-name {
  display: inline-block;
  letter-spacing: 0.14em;
  line-height: 1.15;
  white-space: nowrap !important;
  font-size: 0.56rem;
  max-width: none;
}

/* Long title — keep “NINTH FALL” on one line in the chip */
nav[aria-label="Chapter navigation"] .nf-chapter-item[data-slug="ninth-fall"] > a,
nav[aria-label="Chapter navigation"] .nf-chapter-item[data-slug="ninth-fall"] .nf-chapter-name {
  white-space: nowrap !important;
}

nav[aria-label="Chapter navigation"] .nf-chapter-item[data-slug="ninth-fall"] > a {
  min-width: max(4.6rem, max-content);
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

nav[aria-label="Chapter navigation"] .nf-chapter-item[data-slug="ninth-fall"] .nf-chapter-name {
  letter-spacing: 0.1em;
  font-size: 0.52rem;
}

/* Hint that more chapters exist to the right */
nav[aria-label="Chapter navigation"] .nf-chapter-scroll-hint {
  display: none;
}

@media (max-width: 1023px) {
  nav[aria-label="Chapter navigation"] .nf-chapter-scroll-hint {
    display: block;
    align-self: flex-end;
    margin: -0.15rem 0.1rem 0;
    font-size: 0.48rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(12, 12, 12, 0.32);
  }
}

/* Gender rail unused on mobile (Overview/Men/Women segment handles it) */
nav[aria-label="Chapter navigation"] .nf-chapter-sub--rail,
nav[aria-label="Chapter navigation"] .nf-chapter-sub.is-mobile {
  display: none !important;
}

.nf-chapter-nav {
  gap: 0.05rem !important;
}

.nf-chapter-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 0;
  padding: 0.18rem 0;
}

.nf-chapter-item > a,
.nf-chapter-nav > a {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.45rem 0.65rem;
  letter-spacing: 0.08em;
  transition: color 0.35s var(--nf-ease);
}

.nf-numeral {
  font-family: var(--nf-deva);
  font-weight: 600;
  font-size: 0.95em;
  letter-spacing: 0;
  color: inherit;
  opacity: 0.78;
  white-space: nowrap;
  line-height: 1;
}

.nf-chapter-sep {
  opacity: 0.35;
  font-size: 0.7em;
}

.nf-chapter-item.is-active .nf-numeral,
.nf-chapter-active .nf-numeral {
  opacity: 1;
}

.nf-chapter-name {
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nf-chapter-item.is-active > a,
.nf-chapter-active {
  font-weight: 500;
}

/* Desktop rail only — do not override mobile white-on-black chips */
nav[aria-label="Chapter rail"] .nf-chapter-item.is-active > a,
nav[aria-label="Chapter rail"] .nf-chapter-active {
  color: var(--nf-ink) !important;
}

/* Active-only submenu */
.nf-chapter-sub {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0;
  margin-bottom: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding-left: 0.85rem;
  border-left: 1px solid transparent;
  margin-left: 0.15rem;
  transform: translateY(-6px);
  transition:
    max-height 0.55s var(--nf-ease),
    opacity 0.45s var(--nf-ease),
    transform 0.45s var(--nf-ease),
    margin 0.45s var(--nf-ease),
    border-color 0.45s ease;
}

.nf-chapter-sub.is-open {
  max-height: 3rem;
  opacity: 1;
  transform: translateY(0);
  margin-top: 0.45rem;
  margin-bottom: 0.6rem;
  border-left-color: rgba(12, 12, 12, 0.2);
}

.nf-chapter-sub.is-open .nf-gender-link:nth-child(1) {
  animation: nf-gender-in 0.5s var(--nf-ease) 0.08s both;
}

.nf-chapter-sub.is-open .nf-gender-link:nth-child(3) {
  animation: nf-gender-in 0.5s var(--nf-ease) 0.18s both;
}

@keyframes nf-gender-in {
  from {
    opacity: 0;
    transform: translateX(-6px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.nf-gender-link {
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(12, 12, 12, 0.36);
  transition: color 0.3s var(--nf-ease);
  line-height: 1.4;
  text-decoration: none;
  cursor: pointer;
}

.nf-gender-link:hover {
  color: rgba(12, 12, 12, 0.78);
}

.nf-gender-link.is-active {
  color: var(--nf-ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 1px;
}

.nf-gender-sep {
  font-size: 0.55rem;
  color: rgba(12, 12, 12, 0.2);
}

/* Desktop rail: keep compact sub markup aligned */
.nf-chapter-sub-label {
  display: none;
}

.nf-chapter-sub-opts {
  display: contents;
}

nav[aria-label="Chapter rail"] .nf-chapter-sub-opts {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.nf-view-hidden {
  display: none !important;
}

.nf-lower-switching #nf-gender-gallery,
.nf-lower-switching > *:not(.nf-hero-shell):not(.relative):not(#nf-segment-bar) {
  pointer-events: none;
}

/* Segment control */
.nf-segment-bar {
  display: flex;
  width: 100%;
  max-width: 26rem;
  margin: 1.5rem auto 0;
  padding: 0.2rem;
  border: 1px solid var(--nf-line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 244, 239, 0.92));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  position: sticky;
  top: calc(var(--nf-header-offset) + 0.5rem);
  z-index: 20;
  gap: 0.1rem;
  box-shadow: 0 10px 30px rgba(12, 12, 12, 0.04);
}

@media (min-width: 1024px) {
  .nf-segment-bar {
    margin-left: 0;
    margin-right: 0;
  }
}

.nf-segment-btn {
  flex: 1;
  min-height: 2.55rem;
  border: none;
  background: transparent;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(12, 12, 12, 0.42);
  cursor: pointer;
  transition:
    color 0.3s var(--nf-ease),
    background 0.3s var(--nf-ease),
    box-shadow 0.3s var(--nf-ease);
}

.nf-segment-btn:hover {
  color: var(--nf-ink);
}

.nf-segment-btn.is-active {
  background: var(--nf-ink);
  color: #fff;
  box-shadow: 0 8px 18px rgba(12, 12, 12, 0.18);
}

/* Cinematic hero */
.nf-hero-shell {
  isolation: isolate;
  overflow: hidden;
  background: #111;
}

.nf-hero-shell > img.nf-hero-poster,
.nf-hero-shell > img {
  z-index: 0;
  transition: opacity 0.9s var(--nf-ease);
}

.nf-hero-shell.has-video > img.nf-hero-poster,
.nf-hero-shell.has-video > img:not(.nf-keep) {
  opacity: 0;
}

.nf-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(0.72);
  opacity: 0;
  transition: opacity 1s var(--nf-ease);
  z-index: 1;
  pointer-events: none;
  transform: scale(1.04);
  animation: nf-hero-drift 22s ease-in-out infinite alternate;
}

.nf-hero-video.is-ready {
  opacity: 1;
}

@keyframes nf-hero-drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(-1.2%, -0.8%, 0);
  }
}

.nf-hero-veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.08) 38%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.28) 0%, transparent 42%);
}

.nf-hero-grain {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0.12;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

.nf-hero-shell > div.absolute {
  z-index: 4;
}

.nf-hero-shell > div.absolute h1,
.nf-hero-shell > div.absolute p,
.nf-hero-shell > div.absolute span {
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}

/* Gender gallery */
.nf-gender-gallery {
  margin-top: 2.25rem;
  padding-bottom: 2.75rem;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.55s var(--nf-ease),
    transform 0.55s var(--nf-ease);
}

.nf-gender-gallery.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.nf-gender-gallery[hidden] {
  display: none !important;
}

.nf-gender-head {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  margin-bottom: 2.15rem;
  max-width: 36rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--nf-line);
}

.nf-gender-lede {
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--nf-ink-soft);
}

.nf-overview-link {
  width: fit-content;
  margin-top: 0.4rem;
  color: rgba(12, 12, 12, 0.55);
  transition: color 0.3s ease;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.62rem;
}

.nf-overview-link:hover {
  color: var(--nf-ink);
}

.nf-gender-grid {
  display: grid;
  gap: 0.95rem;
  grid-template-columns: 1fr;
  width: 100%;
  min-width: 0;
}

@media (min-width: 640px) {
  .nf-gender-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 1.1rem;
  }
}

@media (min-width: 1024px) {
  .nf-gender-grid {
    gap: 1.65rem 1.35rem;
  }
}

@media (min-width: 1100px) {
  .nf-gender-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.9rem 1.6rem;
  }
}

/* Tighten page grid gap under lg (Tailwind gap-10 on chapter layout) */
@media (max-width: 1023px) {
  .nf-chapter-page main .mx-auto.grid.gap-10,
  .nf-chapter-page main .mx-auto.grid {
    gap: 1.1rem !important;
  }
}

.nf-gender-card {
  margin: 0;
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.55s var(--nf-ease),
    transform 0.55s var(--nf-ease);
  transition-delay: calc(var(--nf-i, 0) * 0.08s);
}

.nf-gender-card.is-in {
  opacity: 1;
  transform: translateY(0);
}

.nf-gender-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--nf-paper);
}

.nf-gender-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, 0.18) 100%);
  opacity: 0.7;
}

.nf-gender-frame > img,
.nf-gender-frame .nf-gender-media-link,
.nf-gender-frame .nf-gender-media-link img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.nf-gender-frame > img,
.nf-gender-frame .nf-gender-media-link img {
  object-fit: cover;
  filter: grayscale(1) contrast(1.03);
  transition:
    transform 1.1s var(--nf-ease),
    filter 0.85s var(--nf-ease);
  z-index: 0;
}

@media (hover: hover) {
  .nf-gender-card:hover .nf-gender-frame > img,
  .nf-gender-card:hover .nf-gender-frame .nf-gender-media-link img {
    transform: scale(1.05);
    filter: grayscale(0.25) contrast(1.06);
  }
}

.nf-gender-media-link {
  z-index: 0;
}

.nf-gender-card figcaption,
.nf-gender-meta {
  margin-top: 0.75rem;
  letter-spacing: 0.16em;
}

.nf-gender-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.nf-gender-meta .label {
  min-width: 0;
  flex: 1 1 auto;
  letter-spacing: 0.14em;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.nf-gender-price {
  flex-shrink: 0;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--nf-ink);
}

@media (max-width: 639px) {
  .nf-gender-meta .label {
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    line-height: 1.35;
  }

  .nf-gender-price {
    font-size: 0.75rem;
  }
}

/* Category tab bar (Men / Women) — scrollable on narrow */
.nf-cat-bar {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  margin: 0 0 1.75rem;
  padding: 0.1rem 1.25rem 0.95rem 0.05rem;
  border-bottom: 1px solid var(--nf-line);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  /* No left fade — first tab must stay tappable */
  mask-image: linear-gradient(
    90deg,
    #000 0,
    #000 calc(100% - 0.9rem),
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    90deg,
    #000 0,
    #000 calc(100% - 0.9rem),
    transparent 100%
  );
}

.nf-cat-bar::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.nf-cat-btn {
  flex: 0 0 auto;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  min-height: 2.35rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(12, 12, 12, 0.42);
  transition:
    color 0.25s ease,
    background 0.25s ease,
    border-color 0.25s ease;
  white-space: nowrap;
  text-align: center;
  scroll-snap-align: start;
}

@media (min-width: 1100px) {
  .nf-cat-bar {
    flex-wrap: wrap;
    overflow-x: visible;
    scroll-snap-type: none;
    mask-image: none;
    -webkit-mask-image: none;
    padding-left: 0;
    padding-right: 0;
  }

  .nf-cat-btn {
    flex: 1 1 0;
  }
}

.nf-cat-btn:hover {
  color: var(--nf-ink);
  border-color: rgba(12, 12, 12, 0.12);
}

.nf-cat-btn.is-active {
  color: #fff;
  background: var(--nf-ink);
  border-color: var(--nf-ink);
}

.nf-cat-empty {
  grid-column: 1 / -1;
  padding: 2rem 0;
  text-align: center;
  letter-spacing: 0.16em;
}

/* Mobile gender view — keep gallery / segments inside viewport */
@media (max-width: 1023px) {
  .nf-segment-bar {
    max-width: 100%;
    margin: 1rem 0 0;
    position: sticky;
    top: calc(var(--nf-header-offset) + var(--nf-chapter-rail-height));
    z-index: 30;
  }

  .nf-gender-gallery {
    margin-top: 1.35rem;
    padding-bottom: 2rem;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
    overflow-x: hidden;
  }

  .nf-gender-card {
    min-width: 0;
    max-width: 100%;
  }

  .nf-gender-head {
    margin-bottom: 1.35rem;
    max-width: 100%;
    padding-bottom: 0.95rem;
  }

  .nf-gender-head h2 {
    font-size: clamp(1.25rem, 5.5vw, 2rem) !important;
    letter-spacing: 0.06em !important;
    line-height: 1.2;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .nf-gender-lede {
    font-size: 0.82rem;
    line-height: 1.6;
  }

  .nf-gender-grid {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .nf-cat-bar {
    margin-bottom: 1.15rem;
    padding-bottom: 0.75rem;
  }

  .nf-hero-shell {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nf-chapter-sub,
  .nf-chapter-sub.is-open .nf-gender-link,
  .nf-hero-video,
  .nf-gender-gallery,
  .nf-gender-card,
  .nf-gender-frame img,
  .nf-segment-btn {
    animation: none !important;
    transition: none !important;
  }

  .nf-chapter-sub.is-open,
  .nf-hero-video,
  .nf-gender-gallery.is-visible,
  .nf-gender-card.is-in {
    opacity: 1;
    transform: none;
    max-height: none;
  }

  .nf-gender-card:hover .nf-gender-frame img {
    transform: none;
  }

  .nf-cat-btn {
    transition: none;
  }
}
