/* ELVORA COLLECTION — Appily Sixtythree home
   Full-bleed hero · aisle rail · featured runway · floating dock */

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.nx-body {
  --nx-paper: #E7ECE9;
  --nx-mist: #D5DED9;
  --nx-ink: #13201C;
  --nx-mute: #42534C;
  --nx-moss: #1F6B56;
  --nx-moss-deep: #154A3C;
  --nx-brass: #B08D57;
  --nx-white: #FAFCFB;
  --nx-dock: rgba(250, 252, 251, 0.9);
  --nx-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nx-display: "Syne", system-ui, sans-serif;
  --nx-body: "Figtree", system-ui, sans-serif;

  margin: 0;
  font-family: var(--nx-body);
  color: var(--nx-ink);
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(31, 107, 86, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 70%, rgba(176, 141, 87, 0.1), transparent 50%),
    linear-gradient(180deg, var(--nx-paper) 0%, #F3F6F4 50%, var(--nx-mist) 100%);
  min-height: 100vh;
}

.nx-root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.nx-root > .page-main {
  flex: 1;
  width: 100%;
  padding: 0;
  overflow: visible;
}

body.nx-body.nx-dock-pad .page-main {
  padding-bottom: 7.5rem;
}

.nx-stage {
  position: relative;
}

/* ── Full-bleed hero ───────────────────────────────── */

.nx-hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: grid;
  align-items: end;
  overflow: hidden;
}

.nx-hero-plane {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #0F1A16;
}

.nx-hero-img,
.nx-hero-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.04);
  transition: transform 1.8s var(--nx-ease);
}

.nx-hero-fallback {
  background:
    radial-gradient(ellipse 65% 50% at 72% 28%, rgba(31, 107, 86, 0.5), transparent 60%),
    radial-gradient(ellipse 45% 40% at 18% 78%, rgba(176, 141, 87, 0.28), transparent 55%),
    linear-gradient(150deg, #0C1512 0%, #1A2E28 55%, #243B34 100%);
}

.nx-hero.is-lit .nx-hero-img {
  transform: scale(1);
}

.nx-hero-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(12, 21, 18, 0.92) 0%, rgba(12, 21, 18, 0.62) 42%, rgba(12, 21, 18, 0.2) 68%, transparent 100%),
    linear-gradient(0deg, rgba(12, 21, 18, 0.78) 0%, transparent 52%);
  pointer-events: none;
}

.nx-hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.14;
  pointer-events: none;
  mix-blend-mode: overlay;
  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='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.nx-hero-copy {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: clamp(4rem, 12vh, 7rem) 0 clamp(6.5rem, 14vh, 8.5rem);
  color: var(--nx-white);
}

.nx-brand {
  margin: 0 0 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.05em;
  font-family: var(--nx-display);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: var(--nx-white);
}

.nx-brand-top {
  font-size: clamp(3rem, 10vw, 6.2rem);
}

.nx-brand-bottom {
  font-size: clamp(2.1rem, 6.5vw, 4rem);
  color: #D4C09A;
  letter-spacing: -0.03em;
}

.nx-headline {
  margin: 0;
  max-width: 16ch;
  font-family: var(--nx-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: rgba(250, 252, 251, 0.96);
}

.nx-lede {
  margin: 0.9rem 0 0;
  max-width: 36rem;
  font-size: clamp(0.98rem, 0.92rem + 0.25vw, 1.08rem);
  line-height: 1.55;
  color: rgba(250, 252, 251, 0.82);
}

.nx-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.6rem;
}

.nx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.95rem;
  padding: 0 1.35rem;
  border: 1.5px solid transparent;
  border-radius: 6px;
  font-family: var(--nx-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.35s var(--nx-ease),
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.35s var(--nx-ease);
}

.nx-btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
}

.nx-btn-fill {
  background: var(--nx-moss);
  color: var(--nx-white);
  border-color: var(--nx-moss);
}

.nx-btn-fill:hover {
  background: var(--nx-brass);
  border-color: var(--nx-brass);
  color: var(--nx-ink);
  box-shadow: 0 12px 28px rgba(176, 141, 87, 0.28);
}

.nx-btn-line {
  background: transparent;
  color: var(--nx-white);
  border-color: rgba(250, 252, 251, 0.42);
}

.nx-btn-line:hover {
  border-color: var(--nx-white);
  background: rgba(250, 252, 251, 0.08);
  color: var(--nx-white);
}

.nx-signal .nx-btn-fill:hover {
  color: var(--nx-ink);
}

/* Rise entrance */

[data-nx-rise] {
  opacity: 1;
  transform: none;
}

.nx-hero.is-lit [data-nx-rise] {
  animation: nx-rise 0.75s var(--nx-ease) both;
}

.nx-hero.is-lit [data-nx-delay="1"] { animation-delay: 0.1s; }
.nx-hero.is-lit [data-nx-delay="2"] { animation-delay: 0.18s; }
.nx-hero.is-lit [data-nx-delay="3"] { animation-delay: 0.28s; }

@keyframes nx-rise {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ── Shared section chrome ─────────────────────────── */

.nx-aisles,
.nx-runway,
.nx-signal {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
}

.nx-aisles {
  padding: clamp(3rem, 7vw, 4.5rem) 0 1.5rem;
}

.nx-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.nx-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--nx-moss);
}

.nx-section-head h2,
.nx-signal-copy h2 {
  margin: 0;
  font-family: var(--nx-display);
  font-weight: 800;
  font-size: clamp(1.55rem, 3vw, 2.15rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.nx-link-arrow {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--nx-ink);
  text-decoration: none;
  position: relative;
  padding-right: 1.15rem;
  white-space: nowrap;
}

.nx-link-arrow::after {
  content: "→";
  position: absolute;
  right: 0;
  transition: transform 0.3s var(--nx-ease);
}

.nx-link-arrow:hover {
  color: var(--nx-moss);
  text-decoration: none;
}

.nx-link-arrow:hover::after {
  transform: translateX(4px);
}

/* Aisle rail — no cards */

.nx-aisle-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(19, 32, 28, 0.14);
}

.nx-aisle {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 0.75rem;
  row-gap: 0.2rem;
  padding: 1.15rem 1.1rem 1.25rem;
  border-bottom: 1px solid rgba(19, 32, 28, 0.14);
  border-right: 1px solid rgba(19, 32, 28, 0.14);
  text-decoration: none;
  color: var(--nx-ink);
  transition:
    background 0.35s var(--nx-ease),
    color 0.3s ease,
    padding-left 0.35s var(--nx-ease);
}

.nx-aisle:nth-child(3n) {
  border-right: 0;
}

.nx-aisle:hover {
  background: rgba(31, 107, 86, 0.08);
  color: var(--nx-moss-deep);
  text-decoration: none;
  padding-left: 1.35rem;
}

.nx-aisle-hint {
  grid-column: 1;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nx-mute);
}

.nx-aisle-title {
  grid-column: 1;
  font-family: var(--nx-display);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nx-aisle-count {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-family: var(--nx-display);
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
  color: var(--nx-moss);
}

/* ── Featured runway ───────────────────────────────── */

.nx-runway {
  padding: 2rem 0 1rem;
}

.nx-runway-controls {
  display: flex;
  gap: 0.4rem;
}

.nx-scrub {
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid rgba(19, 32, 28, 0.16);
  border-radius: 6px;
  background: transparent;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--nx-ink);
  cursor: pointer;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s var(--nx-ease);
}

.nx-scrub:hover {
  background: var(--nx-ink);
  color: var(--nx-white);
  border-color: var(--nx-ink);
  transform: scale(1.04);
}

.nx-runway-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(210px, 250px);
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.35rem 0 1rem;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.nx-runway-track::-webkit-scrollbar {
  display: none;
}

.nx-packet {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--nx-ink);
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  transition: transform 0.45s var(--nx-ease);
}

.nx-packet:hover {
  transform: translateY(-5px);
  text-decoration: none;
  color: var(--nx-ink);
}

.nx-packet-frame {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--nx-mist);
  border-radius: 4px;
}

.nx-packet-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--nx-ease);
}

.nx-packet:hover .nx-packet-frame img {
  transform: scale(1.06);
}

.nx-packet-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.85rem 0.1rem 0.2rem;
}

.nx-packet-aisle {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nx-moss);
}

.nx-packet-title {
  font-family: var(--nx-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.nx-packet-price {
  margin-top: 0.3rem;
  font-weight: 800;
  font-family: var(--nx-display);
  font-size: 1.05rem;
}

/* ── Signal strip ──────────────────────────────────── */

.nx-signal {
  padding: 2.5rem 0 1rem;
}

.nx-signal-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  padding: clamp(1.75rem, 4vw, 2.5rem) 0;
  border-top: 1px solid rgba(19, 32, 28, 0.14);
  border-bottom: 1px solid rgba(19, 32, 28, 0.14);
}

.nx-signal-copy .nx-kicker {
  color: var(--nx-brass);
}

.nx-signal-copy p:not(.nx-kicker) {
  margin: 0.85rem 0 1.35rem;
  color: var(--nx-mute);
  line-height: 1.55;
  max-width: 36ch;
}

.nx-signal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  justify-content: center;
}

.nx-signal-list li {
  display: grid;
  gap: 0.15rem;
  padding: 1rem 0;
  border-top: 1px solid rgba(19, 32, 28, 0.12);
  transition: padding-left 0.35s var(--nx-ease);
}

.nx-signal-list li:last-child {
  border-bottom: 1px solid rgba(19, 32, 28, 0.12);
}

.nx-signal-list li:hover {
  padding-left: 0.55rem;
}

.nx-signal-list strong {
  font-family: var(--nx-display);
  font-size: 1.05rem;
}

.nx-signal-list span {
  font-size: 0.9rem;
  color: var(--nx-mute);
}

[data-nx-section] {
  opacity: 1;
  transform: none;
}

[data-nx-section].is-in {
  animation: nx-rise 0.65s var(--nx-ease) both;
}

/* ── Floating dock ─────────────────────────────────── */

.nx-dock {
  position: fixed;
  z-index: 80;
  left: 0;
  right: 0;
  bottom: max(1rem, env(safe-area-inset-bottom));
  width: min(720px, calc(100vw - 1.5rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.15rem;
  padding: 0.4rem;
  background: var(--nx-dock);
  border: 1px solid rgba(19, 32, 28, 0.1);
  border-radius: 14px;
  backdrop-filter: blur(14px) saturate(1.15);
  -webkit-backdrop-filter: blur(14px) saturate(1.15);
  box-shadow:
    0 12px 36px rgba(19, 32, 28, 0.12),
    0 1px 0 rgba(255, 255, 255, 0.65) inset;
  box-sizing: border-box;
  opacity: 1;
  animation: nx-dock-in 0.55s var(--nx-ease) 0.15s both;
}

@keyframes nx-dock-in {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.nx-dock.is-up {
  opacity: 1;
  transform: none;
}

.nx-dock-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.12rem;
  flex: 1 1 0;
  min-width: 0;
  padding: 0.5rem 0.4rem;
  border-radius: 6px;
  color: var(--nx-ink);
  text-decoration: none;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition:
    background 0.3s ease,
    color 0.3s ease,
    transform 0.35s var(--nx-ease);
}

.nx-dock-item strong {
  font-family: var(--nx-display);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-transform: none;
  line-height: 1;
}

.nx-dock-item:hover {
  background: rgba(31, 107, 86, 0.1);
  color: var(--nx-moss-deep);
  text-decoration: none;
  transform: translateY(-2px);
}

.nx-dock-item.is-active {
  background: var(--nx-ink);
  color: var(--nx-white);
}

.nx-dock-item.is-active:hover {
  background: var(--nx-moss);
  color: var(--nx-white);
}

.nx-dock-account,
.nx-dock-cart {
  padding-top: 0.35rem;
  padding-bottom: 0.4rem;
}

.nx-dock-glyph {
  display: grid;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  margin-bottom: 0.05rem;
  border-radius: 50%;
  background: rgba(31, 107, 86, 0.12);
  color: var(--nx-moss-deep);
  transition: transform 0.35s var(--nx-ease), background 0.3s ease, color 0.3s ease;
}

.nx-dock-glyph svg {
  width: 0.95rem;
  height: 0.95rem;
  display: block;
}

.nx-dock-account:hover .nx-dock-glyph,
.nx-dock-cart:hover .nx-dock-glyph {
  transform: scale(1.08);
}

.nx-dock-item.is-active .nx-dock-glyph,
.nx-dock-cart.has-items .nx-dock-glyph {
  background: rgba(255, 255, 255, 0.18);
  color: var(--nx-white);
}

.nx-dock-cart.has-items:not(.is-active) .nx-dock-glyph {
  background: var(--nx-brass);
  color: var(--nx-ink);
}

.nx-dock-badge {
  position: absolute;
  top: 0.1rem;
  right: 0.35rem;
  min-width: 1.1rem;
  height: 1.1rem;
  padding: 0 0.25rem;
  border-radius: 6px;
  background: var(--nx-moss);
  color: var(--nx-white);
  font-size: 0.6rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-shadow: 0 0 0 2px var(--nx-white);
}

.nx-dock-search {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  margin-left: 0.1rem;
  padding-left: 0.3rem;
  border-left: 1px solid rgba(19, 32, 28, 0.1);
}

.nx-dock-search input {
  width: 0;
  opacity: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.85rem;
  color: var(--nx-ink);
  outline: none;
  transition: width 0.4s var(--nx-ease), opacity 0.3s ease, padding 0.3s ease;
}

.nx-dock-search:focus-within input,
.nx-dock-search.is-open input {
  width: 6.5rem;
  opacity: 1;
  padding: 0 0.3rem;
}

.nx-dock-search button {
  width: 2.3rem;
  height: 2.3rem;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--nx-ink);
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.nx-dock-search button:hover {
  background: rgba(31, 107, 86, 0.1);
  color: var(--nx-moss);
}

/* Footer */

.nx-foot {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 2rem auto 0;
  padding: 1.5rem 0 0.5rem;
  border-top: 1px solid rgba(19, 32, 28, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--nx-mute);
}

.nx-foot a {
  color: var(--nx-ink);
  font-weight: 600;
  text-decoration: none;
}

.nx-foot a:hover {
  color: var(--nx-moss);
}

.nx-foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Responsive */

@media (max-width: 960px) {
  .nx-aisle-rail {
    grid-template-columns: 1fr 1fr;
  }

  .nx-aisle:nth-child(3n) {
    border-right: 1px solid rgba(19, 32, 28, 0.14);
  }

  .nx-aisle:nth-child(2n) {
    border-right: 0;
  }

  .nx-signal-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nx-hero-copy {
    width: min(1120px, calc(100% - 1.5rem));
    padding-bottom: 7.25rem;
  }

  .nx-brand-top {
    font-size: clamp(2.6rem, 14vw, 3.6rem);
  }

  .nx-brand-bottom {
    font-size: clamp(1.7rem, 9vw, 2.4rem);
  }

  .nx-aisle-rail {
    grid-template-columns: 1fr;
  }

  .nx-aisle,
  .nx-aisle:nth-child(3n),
  .nx-aisle:nth-child(2n) {
    border-right: 0;
  }

  .nx-dock {
    width: calc(100vw - 1rem);
    bottom: max(0.65rem, env(safe-area-inset-bottom));
    border-radius: 1.25rem;
    overflow-x: auto;
  }

  .nx-dock-search {
    display: none;
  }

  .nx-runway-controls {
    display: none;
  }

  .nx-section-head {
    align-items: start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nx-hero-img,
  [data-nx-rise],
  [data-nx-section],
  .nx-packet,
  .nx-aisle,
  .nx-dock,
  .nx-dock-glyph {
    animation: none !important;
    transition: none !important;
  }

  [data-nx-rise],
  [data-nx-section],
  .nx-dock {
    opacity: 1;
    transform: none;
  }
}
