/* Home page sections. */

/* Intro loader: the letters of the name rise, then the panel wipes away. Shown once per hour. */

.loader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--color-dark);
}

.js .loader {
  display: flex;
}

.has-seen-loader .loader {
  display: none;
}

.loader-letters {
  display: flex;
  overflow: hidden;
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: clamp(4rem, 16vw, 14rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.loader-letters span {
  display: block;
}

/* Hero */

.hero {
  position: relative;
  z-index: 3;
  display: flex;
  min-height: max(100dvh, 40rem);
  overflow: hidden;
  background-color: var(--color-dark);
  color: var(--color-white);
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 85% 58%, rgba(0, 0, 0, 0.5), transparent 70%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.45) 40%, rgba(0, 0, 0, 0.8));
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: flex-end;
  gap: 3.5rem;
  padding: 9rem var(--gutter) 0;
}

.hero-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
  width: 100%;
  max-width: var(--container-large);
  margin: 0 auto;
}

.hero-title {
  max-width: 36rem;
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.hero-kicker {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--color-accent);
  font-size: 0.55em;
  font-style: italic;
}

.hero-intro {
  max-width: 30rem;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.6);
}

.hero-intro .text-small {
  font-size: 1rem;
}

/* The shadow is for the text on the photo; buttons have their own background. */
.hero-intro .button {
  text-shadow: none;
}

/* The name along the bottom edge, with a call to action in a blob shape at the end. */
.hero-wordmark {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  max-width: var(--container-large);
  margin: 0 auto;
  padding-bottom: 2.5rem;
}

.hero-name {
  display: flex;
  overflow: hidden;
  font-family: var(--font-heading);
  font-size: min(17vw, 16rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.95;
}

.hero-name span {
  display: block;
}

.hero-cta {
  position: relative;
  z-index: 0;
  display: flex;
  flex: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  width: min(15vw, 13.5rem);
  aspect-ratio: 238 / 260;
  padding: 1.5rem;
  color: var(--color-dark);
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

.hero-cta .blob {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  color: var(--color-accent);
  transition: transform 0.6s var(--ease-out);
}

.hero-cta:hover .blob {
  transform: scale(1.06) rotate(-5deg);
}

.hero-cta .icon {
  transition: transform 0.4s var(--ease-out);
}

.hero-cta:hover .icon {
  transform: translateX(0.35rem);
}

.hero-badges {
  position: absolute;
  top: -2.6rem;
  left: 0.2rem;
  z-index: 2;
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
}

.hero-badge {
  display: inline-block;
  padding: 0.625rem 1rem;
}

.hero-badge-1 {
  background-color: var(--color-cream);
  color: var(--color-dark);
  transform: rotate(-2deg);
}

.hero-badge-2 {
  position: absolute;
  top: 2.3rem;
  left: 5.5rem;
  background-color: var(--color-accent);
  color: var(--color-dark);
  transform: rotate(2deg);
}

@media (max-width: 991px) {
  .hero {
    min-height: 0;
  }

  .hero-content {
    justify-content: center;
    gap: 1.5rem;
    padding-top: 6rem;
    text-align: center;
  }

  .hero-top {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .hero-wordmark {
    order: -1;
    justify-content: center;
    margin: 0;
  }

  .hero-name,
  .hero-cta {
    display: none;
  }

  .hero-badges {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: center;
    white-space: normal;
  }

  .hero-badge-2 {
    position: static;
    margin-top: -0.4rem;
  }
}

/* Dish band */

.dishes {
  padding: 1.75rem 0;
  background-color: var(--color-dark);
}

.dishes .marquee {
  --marquee-gap: 3rem;
  --marquee-duration: 40s;
}

.dishes .marquee-item {
  color: var(--color-cream);
  font-size: clamp(2rem, 4vw, 3.25rem);
}

/* Welcome: text next to two portrait photos */

.welcome {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  align-items: center;
  gap: 3rem 6rem;
}

.welcome-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.75rem;
}

.welcome-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.welcome-images img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
}

.welcome-images img:last-child {
  margin-top: 4rem;
}

@media (max-width: 991px) {
  .welcome {
    grid-template-columns: 1fr;
  }
}

/* Specialities: stacked sticky cards */

.services-intro {
  margin-bottom: 5rem;
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 5rem;
}

.service {
  position: sticky;
  top: 8rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  height: min(78vh, 42rem);
}

.service-label {
  position: absolute;
  top: -1rem;
  z-index: 3;
  padding: 0.625rem 1rem;
  border: 2px solid var(--color-white);
  background-color: var(--color-cream);
  color: var(--color-dark);
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: transform 0.3s var(--ease-out);
}

.service-label:hover {
  transform: translateY(-2px) rotate(var(--label-rotate));
}

.service-label.is-1 { left: 1.5rem; --label-rotate: -2deg; transform: rotate(-2deg); }
.service-label.is-2 { left: 10rem; --label-rotate: 2deg; transform: rotate(2deg); background-color: var(--color-accent); }
.service-label.is-3 { left: 18.5rem; --label-rotate: -3deg; transform: rotate(-3deg); background-color: var(--color-dark); color: var(--color-accent); }

.service-content {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2rem;
  padding: 3.5rem;
  background-color: var(--color-cream);
}

.service-media {
  position: relative;
  overflow: hidden;
}

.service-media img {
  width: 100%;
  height: 120%;
  object-fit: cover;
}

.service.is-reversed .service-media {
  order: -1;
}

@media (max-width: 991px) {
  .service {
    position: relative;
    top: 0;
    grid-template-columns: 1fr;
    height: auto;
  }

  .service.is-reversed .service-media {
    order: 0;
  }

  .service-media {
    aspect-ratio: 16 / 10;
  }

  .service-media img {
    height: 100%;
  }

  .service-content {
    padding: 4rem 1.5rem 2rem;
  }

  .service-label.is-1,
  .service-label.is-2,
  .service-label.is-3 {
    left: auto;
    right: 1rem;
  }
}

/* Menu, takeaway and reservations as stacked cards */

.cases-intro {
  padding-bottom: 2rem;
}

.cases-intro .marquee {
  margin-top: 4rem;
}

.cases-stack {
  position: relative;
}

.cases-stack-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0 1rem;
}

.cases-stack .case-item {
  height: calc(100dvh - 2rem);
}

@media (min-width: 992px) {
  .cases-stack {
    height: 300vh;
  }

  .cases-stack-inner {
    position: sticky;
    top: 1rem;
    display: block;
    height: calc(100dvh - 2rem);
  }

  .cases-stack .case-item {
    position: absolute;
    inset: 0 1rem;
    height: 100%;
    will-change: clip-path;
  }
}

@media (max-width: 991px) {
  .cases-stack .case-item {
    height: auto;
    min-height: 32rem;
  }
}

/* Photo mosaic. It is wider than the screen on purpose, so the outer photos are cut off. */

.gallery-wrapper {
  position: relative;
  z-index: 3;
  overflow: hidden;
  background-color: var(--color-white);
}

.gallery {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1rem;
  width: 110%;
  margin-left: -5%;
  padding-top: 1rem;
}

.gallery > * {
  aspect-ratio: 212 / 245;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-cta {
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  padding: 1.5rem;
  color: var(--color-dark);
  font-weight: 600;
  text-align: center;
}

.gallery-cta .blob {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  color: var(--color-accent);
  transition: transform 0.6s var(--ease-out);
}

.gallery-cta:hover .blob {
  transform: scale(1.05) rotate(4deg);
}

.gallery-cta .icon {
  transition: transform 0.4s var(--ease-out);
}

.gallery-cta:hover .icon {
  transform: translateX(0.35rem);
}

@media (max-width: 991px) {
  .gallery {
    grid-template-columns: 1fr 1.5fr 1fr;
    width: 110vw;
    margin-left: -5vw;
    padding-top: 3rem;
  }
}

@media (max-width: 767px) {
  .gallery {
    grid-template-columns: 1fr 2.25fr 1fr;
  }
}

/* Promises (fresh, passion, quality) */

.promises {
  background-color: var(--color-light);
}

.promises-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.promises-title {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.promise {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3rem;
  padding: 2rem;
  background-color: var(--color-white);
}

.promise.is-wide {
  grid-column: span 2;
}

.promise-number {
  color: var(--color-accent);
  font-family: var(--font-heading);
  font-size: 4rem;
  font-style: italic;
  font-weight: 700;
  line-height: 1;
}

.promise h3 {
  margin-bottom: 0.5rem;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.promises-cta {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 1rem;
  text-align: right;
}

@media (max-width: 991px) {
  .promises-grid {
    grid-template-columns: 1fr 1fr;
  }

  .promises-title,
  .promise.is-wide,
  .promises-cta {
    grid-column: 1 / -1;
  }

  .promises-cta {
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 767px) {
  .promises-grid {
    grid-template-columns: 1fr;
  }
}

/* About: pinned photo with a sentence that scrolls sideways */

.about {
  position: relative;
  background-color: var(--color-dark);
  color: var(--color-white);
}

.about-image {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.45) 55%, var(--color-dark) 100%);
}

.about-track {
  position: relative;
  height: 300vh;
  margin-top: -100vh;
}

.about-sentence-wrapper {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  height: 100vh;
  overflow: hidden;
}

.about-sentence {
  flex: none;
  padding: 0 5% 0 10%;
  color: var(--color-cream);
  font-family: var(--font-heading);
  font-size: 10rem;
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  white-space: nowrap;
}

.about-content {
  position: relative;
  display: flex;
  justify-content: flex-end;
}

.about-text {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 32rem;
}

@media (max-width: 991px) {
  .about-image {
    position: relative;
    height: 60vh;
  }

  .about-track {
    height: auto;
    margin-top: -12rem;
  }

  .about-sentence-wrapper {
    position: relative;
    height: auto;
  }

  .about-sentence {
    padding: 0 var(--gutter);
    font-size: 4rem;
    white-space: normal;
  }

  .about-text {
    max-width: none;
  }
}

@media (max-width: 767px) {
  .about-sentence {
    font-size: 3rem;
  }
}

/* On phones the hero buttons stack at full width, so both are easy to tap. */
@media (max-width: 767px) {
  .hero-intro .button-group {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-intro .button-group .button {
    width: 100%;
  }
}
