    /* =================== SCREEN 1: HOME =================== */
    .home-header {
      position: relative;
      z-index: 30;
      padding-top: max(16px, env(safe-area-inset-top));
      padding-left: 20px;
      padding-right: 20px;
      padding-bottom: 12px;
      transform: translateY(0);
      opacity: 1;
      transition: transform 0.44s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.38s ease;
      will-change: transform, opacity;
    }

    /* Surface and shadow come from the Ridge rule below. */
    .search-box {
      height: 52px;
      border-radius: 26px;
      display: flex;
      align-items: center;
      padding: 5px 6px 5px 20px;
    }

    .search-box input {
      border: none;
      outline: none;
      background: transparent;
      font-size: 15px;
      font-weight: 500;
      color: var(--ink);
      width: 100%;
    }

    .search-box input::placeholder {
      color: var(--ink-4);
    }

    .search-btn {
      width: 42px;
      height: 42px;
      border-radius: 50%;
      background: var(--accent);
      display: flex;
      align-items: center;
      justify-content: center;
      color: var(--on-accent);
      border: none;
      cursor: pointer;
      flex-shrink: 0;
      transition: transform 0.15s ease;
    }

    .search-btn:active {
      transform: scale(0.92);
      background: var(--accent-press);
    }

    /* =================== RIDGE: SEARCH BAR & MENU ===================
       The home search box and the menu button beside it are one pair of
       objects: a white surface floating above the cream, held by a fine
       highlight along the top edge, a hairline shade along the bottom, and
       a wide low-contrast shadow. The orange search chip picks up the same
       light, and a press sinks the button. */
    .search-box,
    #home-view .menu-btn {
      background: var(--surface);
      box-shadow: inset 0 1.5px 0 var(--ridge-hi),
                  inset 0 -1.5px 0 var(--ridge-lo),
                  0 3px 8px rgba(var(--shade-rgb), 0.1),
                  0 15px 28px rgba(var(--shade-rgb), 0.18);
    }

    #home-view .search-btn {
      box-shadow: -3px -3px 7px var(--ridge-hi-soft),
                  4px 5px 11px rgba(var(--shade-rgb), 0.36);
    }

    #home-view .menu-btn:active {
      box-shadow: inset 4px 4px 9px rgba(var(--shade-rgb), 0.45),
                  inset -3px -3px 8px var(--ridge-hi-soft);
    }


    /* Categories */
    .category-row {
      display: flex;
      justify-content: space-around;
      padding: 8px 12px 14px;
      transform: translateY(0);
      opacity: 1;
      transition: transform 0.44s cubic-bezier(0.22, 1, 0.36, 1) 0.04s, opacity 0.38s ease 0.04s;
      will-change: transform, opacity;
    }

    .category-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 7px;
      cursor: pointer;
      min-width: 68px;
    }

    .category-circle {
      position: relative;
      width: var(--cat-circle-size, 56px);
      height: var(--cat-circle-size, 56px);
      border-radius: 50%;
      background: var(--surface);
      display: flex;
      align-items: center;
      justify-content: center;
      box-shadow: 0 6px 14px rgba(var(--shade-rgb), 0.22);
      transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    }

    .category-item:active .category-circle {
      transform: scale(0.9);
    }

    .category-icon {
      width: 100%;
      height: 100%;
      border-radius: 50%;
      object-fit: cover;
      display: block;
      pointer-events: none;
    }

    /* Shine sweep: every 7 seconds one of the four category buttons is
       picked at random and a band of golden light passes diagonally across
       its face. Fired from JS by adding .sweep near the home-screen setup. */
    .category-circle::before {
      content: '';
      position: absolute;
      inset: 0;
      border-radius: 50%;
      overflow: hidden;
      opacity: 0;
      pointer-events: none;
      background: linear-gradient(112deg,
        rgba(var(--sweep-rgb), 0) 38%,
        rgba(var(--sweep-rgb), 0.85) 50%,
        rgba(var(--sweep-rgb), 0) 62%);
      background-size: 280% 100%;
    }

    .category-circle.sweep::before {
      animation: categorySweep 1.4s cubic-bezier(0.3, 0, 0.2, 1);
    }

    @keyframes categorySweep {
      0%   { opacity: 0; background-position: 130% 0; }
      15%  { opacity: 1; }
      85%  { opacity: 1; }
      100% { opacity: 0; background-position: -30% 0; }
    }


    .category-item span {
      font-size: 11.5px;
      font-weight: 600;
      color: var(--ink-3);
      white-space: nowrap;
      text-align: center;
    }

    /* Carousel with Parallax & Snap */
    .carousel-section {
      flex: 1;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      perspective: 1000px;
    }

    .section-title {
      color: var(--ink);
      padding: 0 22px 12px;
      transform: translateY(0);
      opacity: 1;
      transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.06s, opacity 0.35s ease 0.06s;
    }

    .carousel-wrapper {
      position: relative;
      flex: 1;
      display: flex;
      gap: var(--carousel-gap, 16px);
      padding: 4px calc(50vw - (var(--card-w, 270px) / 2)) 16px;
      overflow-x: auto;
      scrollbar-width: none;
      -webkit-overflow-scrolling: touch;
      scroll-snap-type: x mandatory;
      cursor: grab;
    }

    .carousel-wrapper:active {
      cursor: grabbing;
    }

    .carousel-wrapper::-webkit-scrollbar {
      display: none;
    }

    /* Carousel indicators: one dot per destination, the one at the centre of
       the viewport stretched into a pill carrying that country's flag bands
       (--d1/--d2/--d3, set per dot from FLAG_COLORS). */
    .carousel-dots {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 7px;
      padding: 0 0 10px;
      flex-shrink: 0;
    }

    .carousel-dot {
      width: 7px;
      height: 7px;
      padding: 0;
      border: none;
      border-radius: 4px;
      background: rgba(var(--ink-rgb), 0.18);
      cursor: pointer;
      transition: width 0.34s cubic-bezier(0.22, 1, 0.36, 1),
                  background 0.34s ease,
                  opacity 0.34s ease;
    }

    .carousel-dot.active {
      width: 28px;
      background: linear-gradient(90deg,
        var(--d1) 0 33.33%,
        var(--d2) 33.33% 66.66%,
        var(--d3) 66.66% 100%);
      box-shadow: 0 2px 6px rgba(var(--shade-rgb), 0.28);
    }

    .card-snap {
      scroll-snap-align: center;
      flex: 0 0 var(--card-w, 270px);
      display: flex;
    }

    .card-destination {
      flex: 0 0 var(--card-w, 270px);
      width: var(--card-w, 270px);
      height: 100%;
      max-height: 470px;
      border-radius: var(--card-radius, 34px);
      position: relative;
      overflow: hidden;
      box-shadow: 0 14px 28px rgba(var(--shade-rgb), 0.22);
      cursor: pointer;
      transform-origin: center center;
      scale: var(--press, 1);
      /* The 3D turn follows the scroll with no easing; only the press eases. */
      transition: scale 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease, opacity 0.2s ease;
      will-change: transform;
    }

    /* The 3D carousel darkens a card as it turns away; the shade is set per
       card from the scroll position. */
    .card-destination::after {
      content: '';
      position: absolute;
      inset: 0;
      z-index: 6;
      border-radius: inherit;
      background: #000;
      opacity: var(--shade, 0);
      pointer-events: none;
      transition: opacity 0.18s ease;
    }

    .carousel-wrapper.is-scrolling .card-destination::after,
    .carousel-wrapper.is-scrolling .art-layer {
      transition: none;
    }

    .carousel-wrapper.is-scrolling .card-content {
      transition: opacity 0.2s ease;
    }

    /* A press shrinks the card without undoing its 3D turn. */
    .card-destination:active {
      --press: 0.97;
    }

    /* A destination still being curated: its scene washed toward the page,
       a quiet Coming soon badge, and no press. */
    .card-destination.is-soon {
      cursor: default;
    }

    .card-destination.is-soon:active {
      --press: 1;
    }

    .card-destination.is-soon .art-layer,
    .card-destination.is-soon .flock-layer {
      filter: grayscale(0.85) contrast(0.85);
    }

    .card-destination.is-soon::before {
      content: '';
      position: absolute;
      inset: 0;
      z-index: 3;
      border-radius: inherit;
      background: rgba(var(--fc-veil-rgb), 0.38);
      pointer-events: none;
    }

    .card-soon {
      position: absolute;
      left: 50%;
      bottom: 30px;
      z-index: 7;
      transform: translateX(-50%);
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 7px 14px;
      border-radius: 18px;
      background: rgba(var(--fc-veil-rgb), 0.92);
      color: var(--ink-2);
      font-size: 12px;
      font-weight: 700;
      letter-spacing: 0.2px;
      white-space: nowrap;
      pointer-events: none;
    }

    /* Card Depth Layers */
    .art-layer {
      position: absolute;
      inset: -15px;
      width: calc(100% + 30px);
      height: calc(100% + 30px);
      pointer-events: none;
      will-change: transform;
      transition: transform 0.08s linear;
    }

    .art-layer svg {
      width: 100%;
      height: 100%;
      display: block;
    }

    .card-content {
      position: absolute;
      top: 24px;
      left: 22px;
      z-index: 5;
      will-change: transform, opacity;
      transition: transform 0.08s linear, opacity 0.2s ease;
    }

    /* Colour comes from the destination-card exception further down. */
    .card-title {
      line-height: 1.15;
    }

