.restaurant-portfolio {
  --rp-gold: #d8bb72;
  --rp-cream: #f2f0e7;
  position: relative;
  overflow: hidden;
  padding: clamp(84px, 9vw, 140px) 0 clamp(92px, 10vw, 160px);
  color: var(--rp-cream);
  background:
    radial-gradient(circle at 88% 8%, rgba(34, 111, 80, .2), transparent 30%),
    radial-gradient(circle at 8% 92%, rgba(216, 187, 114, .07), transparent 25%),
    #031b13;
  border-top: 1px solid rgba(216, 187, 114, .12);
}

.restaurant-portfolio::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, transparent, #000 16%, #000 84%, transparent);
}

.restaurant-portfolio__shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
}

.restaurant-portfolio__eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  color: var(--rp-gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .25em;
}

.restaurant-portfolio__eyebrow span {
  width: 42px;
  height: 1px;
  background: currentColor;
}

.restaurant-portfolio__title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: clamp(42px, 5vw, 72px);
}

.restaurant-portfolio__title-row h2 {
  margin: 0;
  max-width: 720px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(48px, 6vw, 84px);
  font-weight: 400;
  line-height: .96;
  letter-spacing: -.045em;
}

.restaurant-portfolio__title-row h2 em {
  color: var(--rp-gold);
  font-weight: 400;
}

.restaurant-portfolio__title-row p {
  margin: 0 0 7px;
  color: rgba(242, 240, 231, .58);
  font-size: 15px;
  line-height: 1.7;
}

.restaurant-portfolio__viewport {
  overflow-x: auto;
  padding-bottom: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(216, 187, 114, .55) rgba(255, 255, 255, .06);
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  overscroll-behavior-inline: contain;
}

.restaurant-portfolio__viewport::-webkit-scrollbar { height: 4px; }
.restaurant-portfolio__viewport::-webkit-scrollbar-track { background: rgba(255, 255, 255, .06); }
.restaurant-portfolio__viewport::-webkit-scrollbar-thumb { background: rgba(216, 187, 114, .55); }

.restaurant-portfolio__grid {
  display: grid;
  grid-auto-flow: column;
  grid-template-columns: none;
  grid-template-rows: 340px;
  grid-auto-columns: clamp(270px, 23vw, 298px);
  gap: 18px;
  width: max-content;
}

.restaurant-card {
  position: relative;
  display: block;
  min-height: 340px;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
  background: #10261f;
  border: 1px solid rgba(216, 187, 114, .22);
  border-radius: 4px 28px 4px 28px;
  isolation: isolate;
  transform: translateY(18px);
  opacity: 0;
  transition: transform .65s cubic-bezier(.2,.7,.2,1), opacity .65s ease, border-color .35s ease;
}

.restaurant-portfolio.is-visible .restaurant-card {
  transform: translateY(0);
  opacity: 1;
}

.restaurant-portfolio.is-visible .restaurant-card:nth-child(2) { transition-delay: .05s; }
.restaurant-portfolio.is-visible .restaurant-card:nth-child(3) { transition-delay: .1s; }
.restaurant-portfolio.is-visible .restaurant-card:nth-child(4) { transition-delay: .15s; }
.restaurant-portfolio.is-visible .restaurant-card:nth-child(5) { transition-delay: .2s; }
.restaurant-portfolio.is-visible .restaurant-card:nth-child(6) { transition-delay: .25s; }
.restaurant-portfolio.is-visible .restaurant-card:nth-child(7) { transition-delay: .3s; }

.restaurant-card::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, rgba(1, 12, 8, .08) 30%, rgba(1, 12, 8, .94) 100%);
}

.restaurant-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .5s ease;
}

.restaurant-card__content {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
}

.restaurant-card__number {
  align-self: flex-end;
  color: rgba(255,255,255,.68);
  font-size: 11px;
  letter-spacing: .18em;
}

.restaurant-card__info {
  display: block;
}

.restaurant-card__info strong {
  display: block;
  margin-bottom: 12px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 27px;
  font-weight: 400;
  line-height: 1.05;
}

.restaurant-card__info > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  color: rgba(255,255,255,.68);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-top: 1px solid rgba(255,255,255,.2);
}

.restaurant-card__info b {
  color: var(--rp-gold);
  font-size: 18px;
  font-weight: 400;
}

.restaurant-card:hover,
.restaurant-card:focus-visible {
  border-color: rgba(216, 187, 114, .7);
  outline: none;
}

.restaurant-card:hover img,
.restaurant-card:focus-visible img {
  transform: scale(1.055);
  filter: saturate(1.08);
}

.restaurant-portfolio__hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 15px;
  color: rgba(242, 240, 231, .48);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.restaurant-portfolio__hint b {
  color: var(--rp-gold);
  font-size: 20px;
  font-weight: 400;
}

@media (max-width: 900px) {
  .restaurant-portfolio__title-row { align-items: flex-start; flex-direction: column; }
  .restaurant-portfolio__title-row p br { display: none; }
}

@media (max-width: 640px) {
  .restaurant-portfolio {
    padding: 72px 0 84px;
  }

  .restaurant-portfolio__shell {
    width: 100%;
  }

  .restaurant-portfolio__heading {
    padding: 0 22px;
  }

  .restaurant-portfolio__eyebrow {
    gap: 12px;
    margin-bottom: 20px;
    font-size: 10px;
  }

  .restaurant-portfolio__eyebrow span { width: 28px; }

  .restaurant-portfolio__title-row {
    gap: 22px;
    margin-bottom: 36px;
  }

  .restaurant-portfolio__title-row h2 {
    font-size: clamp(42px, 13.3vw, 58px);
    line-height: .98;
  }

  .restaurant-portfolio__title-row p {
    max-width: 330px;
    font-size: 14px;
  }

  .restaurant-portfolio__viewport {
    padding-bottom: 0;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .restaurant-portfolio__viewport::-webkit-scrollbar { display: none; }

  .restaurant-portfolio__grid {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-template-rows: repeat(2, 262px);
    grid-auto-columns: min(72vw, 278px);
    gap: 12px;
    width: max-content;
    padding: 0 22px;
  }

  .restaurant-card {
    min-height: 0;
    border-radius: 3px 22px 3px 22px;
    scroll-snap-align: start;
  }

  .restaurant-card__content { padding: 18px; }
  .restaurant-card__info strong { font-size: 23px; }

  .restaurant-portfolio__hint {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 24px 22px 0;
    padding-top: 15px;
    color: rgba(242, 240, 231, .48);
    font-size: 10px;
    letter-spacing: .18em;
    text-transform: uppercase;
    border-top: 1px solid rgba(216, 187, 114, .16);
  }

  .restaurant-portfolio__hint b {
    color: var(--rp-gold);
    font-size: 20px;
    font-weight: 400;
  }
}

@media (prefers-reduced-motion: reduce) {
  .restaurant-card,
  .restaurant-card img { transition: none; }
}
