.hero-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: #ece8e5;
  min-height: 280px;
  box-shadow: none;
}

.hero-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.75s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.hero-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  max-width: 100%;
  height: 300px;
  text-decoration: none;
  color: inherit;
  display: block;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero-slide {
    height: 440px;
  }
}

.hero-slide img,
.hero-slide .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-slide.is-active img,
.hero-slide.is-active .hero-bg {
  animation: kenburns 9s ease-out forwards;
}

.hero-slide .hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(22, 20, 19, 0.72) 0%, rgba(22, 20, 19, 0.22) 46%, transparent 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem 5.5rem 4.25rem;
  max-width: 640px;
  color: #fcf9f8;
}

.hero-copy.is-enter {
  animation: copy-in 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 0;
  background: rgba(252, 249, 248, 0.92);
  color: #1c1b1b;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.hero-nav-btn:hover {
  background: #ff5a36;
  color: #fff;
  transform: translateY(-50%) scale(1.06);
}

.hero-nav-btn.prev {
  left: 12px;
}

.hero-nav-btn.next {
  right: 12px;
}

.hero-dots {
  position: absolute;
  left: 5.5rem;
  bottom: 1.15rem;
  z-index: 4;
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 8px;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: rgba(252, 249, 248, 0.35);
  cursor: pointer;
  padding: 0;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
}

.hero-dot.is-active {
  width: 28px;
  background: #ff5a36;
}

.place-marquee {
  overflow: hidden;
  width: 100%;
  border-block: 1px solid #e8e3df;
  background: transparent;
  padding: 0.9rem 0;
  margin: 0.4rem 0 0.2rem;
  box-sizing: border-box;
}

.place-marquee-track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 32s linear infinite;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 13px;
  letter-spacing: 0.01em;
  color: #6b615d;
  font-weight: 600;
  will-change: transform;
}

.place-marquee-track span {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 0 1.15rem;
}

.place-marquee-track span::after {
  content: "/";
  margin-left: 1.15rem;
  color: #c9bfba;
}

header.is-compact > div {
  height: 3.75rem;
  transition: height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

header > div {
  transition: height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

header.is-compact {
  box-shadow: none;
  background: #fcf9f8;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--d, 0ms);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.tilt-card,
article.group {
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s ease;
}

.tilt-card:hover,
article.group:hover {
  transform: none;
}

.tilt-card img,
article.group img,
.mood-card [class*="bg-cover"] {
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.tilt-card:hover img,
article.group:hover img {
  transform: scale(1.06);
}

.like-btn.is-pop {
  animation: like-pop 0.38s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes kenburns {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.1);
  }
}

@keyframes copy-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes like-pop {
  0% {
    transform: scale(1);
  }
  38% {
    transform: scale(1.28);
  }
  100% {
    transform: scale(1);
  }
}

[data-hood].is-hidden,
.nbh-card.is-hidden,
.creator-card.is-hidden {
  display: none !important;
}

.lab-panel[hidden],
[data-lab-panel][hidden],
#lab-indoor[hidden],
#lab-outdoor[hidden] {
  display: none !important;
}

html {
  overflow-x: clip;
  overflow-y: auto;
}

body {
  overflow: visible;
  overscroll-behavior: auto !important;
}

#ai-generating-overlay.hidden {
  display: none !important;
}

#ai-generating-overlay.is-open {
  display: flex !important;
}

.mobile-search-btn,
.mobile-search-panel,
.mobile-tabbar {
  display: none;
}

@media (max-width: 1023px) {
  .px-margin-desktop,
  .px-margin-tablet,
  .px-margin {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }

  .-mx-margin-desktop,
  .-mx-margin-tablet {
    margin-left: -1rem !important;
    margin-right: -1rem !important;
  }

  .left-margin-desktop {
    left: 1rem !important;
  }

  .right-margin-desktop {
    right: 1rem !important;
  }

  .gap-gutter-desktop {
    gap: 0.75rem !important;
  }

  header > div {
    height: 3.5rem !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    gap: 0.5rem;
  }

  header.is-compact > div {
    height: 3.25rem !important;
  }

  header .site-search,
  header .site-nav-desktop,
  header .site-notify,
  header .site-brand-sub {
    display: none !important;
  }

  header a[href="index.html"] img {
    height: 1.75rem;
  }

  .mobile-tabbar a span:last-child {
    letter-spacing: -0.02em;
    white-space: nowrap;
  }

  main.pt-20 {
    padding-top: 3.5rem !important;
    padding-bottom: calc(5rem + env(safe-area-inset-bottom, 0px));
  }

  .text-display-hero {
    font-size: 30px !important;
    line-height: 34px !important;
  }

  .text-headline-lg {
    font-size: 22px !important;
    line-height: 28px !important;
  }

  main h1.text-headline-lg,
  main h1.text-display-hero {
    font-size: 26px !important;
    line-height: 32px !important;
  }

  .hero-carousel {
    min-height: 220px;
  }

  .hero-slide {
    height: 220px;
  }

  .hero-copy {
    padding: 1.1rem 1.1rem 2.4rem;
    max-width: none;
  }

  .hero-copy h2 {
    font-size: 22px !important;
    line-height: 26px !important;
  }

  .hero-copy p {
    font-size: 13px !important;
    line-height: 18px !important;
  }

  .hero-slide .hero-scrim {
    background: linear-gradient(180deg, rgba(28, 27, 27, 0.08) 20%, rgba(28, 27, 27, 0.78) 100%);
  }

  .hero-nav-btn {
    display: none;
  }

  .hero-dots {
    left: 1rem;
    bottom: 0.7rem;
  }

  .h-\[68vh\] {
    height: 52vh !important;
    min-height: 300px !important;
    max-height: 420px !important;
  }

  .min-h-\[520px\] {
    min-height: 300px !important;
  }

  .max-h-\[720px\] {
    max-height: 420px !important;
  }

  .mood-card {
    height: 11.5rem !important;
  }

  #community-feed > div {
    grid-template-columns: 1fr 1fr !important;
    gap: 0.5rem !important;
  }

  #community-feed article > .bg-surface-container-low {
    display: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .mobile-search-btn {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 999px;
    background: #ffffff;
    color: #1c1b1b;
    box-shadow: 0 2px 10px rgba(26, 26, 26, 0.06);
    cursor: pointer;
    flex-shrink: 0;
    margin-left: auto;
  }

  .mobile-search-panel {
    display: none;
    position: fixed;
    top: 3.5rem;
    left: 0;
    right: 0;
    z-index: 45;
    padding: 0.55rem 1rem 0.75rem;
    background: rgba(252, 249, 248, 0.96);
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 24px rgba(26, 26, 26, 0.08);
  }

  body.search-open .mobile-search-panel {
    display: block;
  }

  .mobile-search-panel input {
    width: 100%;
    border: 0;
    outline: none;
    background: #ffffff;
    border-radius: 999px;
    padding: 0.7rem 1rem;
    font-size: 16px;
    box-shadow: 0 2px 10px rgba(26, 26, 26, 0.05);
  }

  .mobile-tabbar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    background: rgba(252, 249, 248, 0.94);
    backdrop-filter: blur(18px);
    border-top: 1px solid #e5e2e1;
    padding: 0.35rem 0.5rem calc(0.45rem + env(safe-area-inset-bottom, 0px));
  }

  .mobile-tabbar a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    color: #5e5e5c;
    font-size: 10px;
    line-height: 12px;
    font-weight: 600;
    padding: 0.35rem 0;
  }

  .mobile-tabbar a .material-symbols-outlined {
    font-size: 22px;
    line-height: 1;
  }

  .mobile-tabbar a.is-on {
    color: #b52603;
  }

  #generate-btn {
    width: 100%;
  }

  body {
    padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
  }

  footer {
    padding-bottom: 0.5rem;
  }
}

@media (hover: none) {
  .tilt-card:hover,
  article.group:hover {
    transform: none;
  }

  .tilt-card:hover img,
  article.group:hover img {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-track,
  .hero-copy,
  .hero-copy.is-enter,
  .hero-slide img,
  .hero-slide .hero-bg,
  .place-marquee-track,
  .reveal,
  .tilt-card,
  article.group,
  .like-btn.is-pop {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .hero-slide img,
  .hero-slide .hero-bg,
  .tilt-card img,
  article.group img {
    transform: none;
  }
}

/* ------------------------------------------------------------------
   Visual system: editorial city-guide, not Stitch chrome.
   Buttons stay pill. Cards / photos are 4-6px. Accent is coral only.
   ------------------------------------------------------------------ */

::-webkit-scrollbar {
  display: block;
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  background: #d4cdc8;
  border-radius: 99px;
}

html {
  scrollbar-width: thin;
  scrollbar-color: #d4cdc8 #fcf9f8;
}

body {
  background: #f6f3f0;
}

.material-symbols-outlined {
  letter-spacing: normal !important;
  font-family: "Material Symbols Outlined", sans-serif !important;
}

header.fixed {
  background: #fcf9f8;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  border-bottom: 1px solid #e8e3df;
}

header > div {
  height: 4.5rem;
  flex-wrap: nowrap;
  overflow: visible;
}

header .flex-1.max-w-lg,
header .site-search {
  flex: 1 1 14rem;
  max-width: 22rem;
  min-width: 0;
}

header > div > :last-child {
  flex-shrink: 0;
}

header nav {
  flex-shrink: 0;
}

header nav a {
  background: transparent !important;
  border-radius: 0 !important;
  padding-left: 0.15rem !important;
  padding-right: 0.15rem !important;
  margin: 0 0.4rem;
  box-shadow: none !important;
  white-space: nowrap;
}

header nav a[aria-current="page"],
header nav a.bg-surface-container-high {
  color: #1c1b1b !important;
  box-shadow: inset 0 -2px 0 #ff5a36 !important;
}

header a[href="remix.html"] {
  box-shadow: none !important;
  border-radius: 999px;
}

header .site-search > div,
header .flex-1.max-w-lg > div {
  border-radius: 6px !important;
  box-shadow: none !important;
  border: 1px solid #e8e3df;
  background: #fff;
}

footer {
  background: #f6f3f0 !important;
  border-top: 1px solid #e8e3df;
}

.blur-3xl {
  display: none !important;
}

.hero-copy > span.inline-flex {
  display: none;
}

.hero-nav-btn {
  border-radius: 4px;
  box-shadow: none;
  background: #fff;
  border: 1px solid #e8e3df;
}

.hero-nav-btn:hover {
  transform: translateY(-50%);
}

.hero-dot.is-active {
  background: #fff;
}

article.group,
.mood-card,
main .rounded-xl.shadow-sm,
main .rounded-xl.shadow-xl,
main .rounded-xl.shadow-\[0_4px_20px_rgba\(26\,26\,26\,0\.03\)\],
main .rounded-xl.shadow-\[0_4px_24px_-4px_rgba\(26\,26\,26\,0\.05\)\] {
  border-radius: 6px !important;
  box-shadow: none !important;
}

#community-feed article {
  background: transparent;
  border: 0;
}

#community-feed article .relative.w-full {
  border-radius: 6px;
}

#community-feed article .absolute.top-space-sm.left-space-sm,
#community-feed article .absolute.bottom-space-sm > .flex.items-center.gap-space-xs:first-child {
  display: none !important;
}

#community-feed article .bg-surface-container-low {
  background: transparent;
  padding-left: 0;
  padding-right: 0;
  padding-top: 0.55rem;
}

#community-feed article > .p-space-sm.flex {
  padding-left: 0;
  padding-right: 0;
}

@media (min-width: 1024px) {
  #community-feed > div {
    grid-template-columns: 1.2fr 1fr 1fr !important;
    gap: 1.1rem;
  }

  #community-feed > div > article:first-child {
    grid-column: 1;
    grid-row: auto;
  }

  #community-feed > div > article:first-child .aspect-\[4\/5\] {
    aspect-ratio: 4 / 5;
  }
}

.mood-ring,
.story-ring {
  background: #e8e3df !important;
  padding: 1px !important;
}

@media (min-width: 768px) {
  #mood-grid {
    grid-template-columns: 1.28fr 1fr 1fr;
    grid-template-rows: 220px 170px 170px;
    gap: 10px;
  }

  #mood-grid .mood-card {
    height: auto !important;
    min-height: 0;
    border-radius: 6px !important;
    box-shadow: none !important;
  }

  #mood-grid .mood-card:nth-child(1) {
    grid-row: span 2;
  }
}

.mood-card:hover {
  transform: none !important;
}

.font-caption-caps,
.text-caption-caps {
  letter-spacing: 0.02em !important;
  text-transform: none !important;
  font-family: "Plus Jakarta Sans", sans-serif !important;
}

.mood-card .text-\[18px\] {
  display: none;
}

.mood-card .selection-ring {
  border-radius: 6px;
  box-shadow: none;
}

.mood-card[data-selected="true"] .selection-ring {
  box-shadow: inset 0 0 0 2px #ff5a36;
}

.plan-params,
section.mb-space-xl.p-space-lg {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  border-top: 1px solid #e8e3df;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

#generate-btn {
  box-shadow: none !important;
  border-radius: 999px;
}

#generate-btn:hover {
  transform: none !important;
}

#ai-generating-overlay .animate-bounce {
  animation: none !important;
  background: #ffeadf;
}

.route-board {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 1024px) {
  .route-board {
    grid-template-columns: 1fr 1.15fr 1fr;
    align-items: stretch;
  }

  .route-board > .group:nth-child(2) {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    background: #fff !important;
  }
}

.route-board > .group {
  background: #fff;
  border: 1px solid #e8e3df;
  border-radius: 6px !important;
  box-shadow: none !important;
}

.route-ribbon,
.route-board .absolute.-top-1 {
  display: none !important;
}

.route-board .absolute.top-3 {
  display: none !important;
}

.masthead-note {
  font-size: 13px;
  color: #6b615d;
}

.mood-strip {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.85rem;
}

.mood-strip button,
.mood-strip a {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  min-width: 0;
  width: auto;
  text-align: left;
  text-decoration: none;
  color: inherit;
  display: block;
}

.mood-strip img {
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}

.mood-strip span {
  display: block;
  margin-top: 0.4rem;
  font-size: 13px;
  font-weight: 600;
  color: #1c1b1b;
}

.filter-row {
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.filter-row::-webkit-scrollbar {
  display: none;
}

.filter-row a {
  box-shadow: none !important;
  border: 1px solid #e8e3df;
  background: #fff;
  color: #1c1b1b;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}

.filter-row a.bg-on-surface {
  background: #1c1b1b !important;
  color: #fcf9f8 !important;
  border-color: #1c1b1b;
}

.load-more {
  box-shadow: none !important;
  border: 1px solid #e8e3df;
  background: transparent;
}

@media (max-width: 1199px) {
  .mood-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  header.fixed {
    background: #fcf9f8;
  }

  #community-feed > div > article:first-child {
    grid-column: 1 / -1;
  }

  #community-feed > div > article:first-child .aspect-\[4\/5\] {
    aspect-ratio: 16 / 10;
  }

  #mood-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
  }

  #mood-grid .mood-card:nth-child(1) {
    grid-row: auto;
  }
}

@media (max-width: 767px) {
  .mood-strip {
    display: flex;
    gap: 0.7rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.4rem;
  }

  .mood-strip::-webkit-scrollbar {
    display: none;
  }

  .mood-strip button,
  .mood-strip a {
    flex: 0 0 calc((100% - 1.4rem) / 3.2);
    min-width: 6.75rem;
    scroll-snap-align: start;
  }
}

/* ------------------------------------------------------------------
   Premium motion — no scroll hijack, respects reduced-motion
   ------------------------------------------------------------------ */

.page-curtain {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  background: #f6f3f0;
  transform-origin: top;
  animation: curtain-up 0.9s cubic-bezier(0.76, 0, 0.24, 1) forwards;
}

@keyframes curtain-up {
  0% {
    transform: scaleY(1);
  }
  100% {
    transform: scaleY(0);
  }
}

.masthead-title {
  overflow: hidden;
}

.masthead-title .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(110%);
  animation: char-rise 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(0.12s + var(--i, 0) * 0.055s);
}

@keyframes char-rise {
  to {
    opacity: 1;
    transform: none;
  }
}

.masthead-note.is-rise {
  animation: note-rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.05s both;
}

@keyframes note-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-carousel {
  clip-path: inset(8% 4% 8% 4% round 4px);
  transition: clip-path 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-carousel.is-open {
  clip-path: inset(0 0 0 0 round 4px);
}

.mood-strip button,
.mood-strip a {
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.mood-strip button.is-near,
.mood-strip a.is-near {
  transform: translateY(-6px) scale(1.04);
}

.mood-strip button img,
.mood-strip a img {
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.45s ease;
}

.mood-strip button.is-near img,
.mood-strip a.is-near img {
  transform: scale(1.08);
  filter: saturate(1.08);
}

#community-feed article {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: var(--d, 0ms);
}

#community-feed article.is-in {
  opacity: 1;
  transform: none;
}

#community-feed article .relative.w-full {
  overflow: hidden;
}

#community-feed article .relative.w-full::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #f6f3f0;
  transform: scaleY(1);
  transform-origin: bottom;
  transition: transform 0.85s cubic-bezier(0.76, 0, 0.24, 1);
  transition-delay: var(--d, 0ms);
  pointer-events: none;
  z-index: 2;
}

#community-feed article.is-in .relative.w-full::after {
  transform: scaleY(0);
}

.magnetic {
  display: inline-flex;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.hero-slide .hero-bg {
  will-change: transform;
}

@media (max-width: 767px) {
  .mood-strip button.is-near,
  .mood-strip a.is-near {
    transform: none;
  }

  .mood-strip button.is-near img,
  .mood-strip a.is-near img {
    transform: none;
    filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-curtain,
  .masthead-title .char,
  .masthead-note.is-rise,
  .hero-carousel {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }

  #community-feed article,
  #community-feed article .relative.w-full::after {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
