/* Font: Archivo, SIL Open Font License 1.1, hosted with the site */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(fonts/archivo-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url(fonts/archivo-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Brokuhlee - company site
   Clean white pages, food cut-outs on white, a large faint broccoli mark behind
   the hero, heavy upper-case headings, lime buttons and a brand-green footer. */
:root {
  --ink: #161616;
  --muted: #5b5f58;
  --lime: #79b72b;
  --lime-dark: #5f9520;
  --brand-dark: #235c29;
  --brand: #2e7636;
  --mist: #f3f4f1;
  --line: #e4e6e0;

  --font: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brand);
  text-underline-offset: 3px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--lime);
  outline-offset: 3px;
}

.wrap {
  position: relative;
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  z-index: 100;
}

.skip:focus {
  left: 8px;
}

/* ── Type ─────────────────────────────────────────────────────────────── */
h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  text-transform: uppercase;
  font-weight: 900;
  font-stretch: 88%;
  letter-spacing: 0.005em;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 0.95;
}

h2 {
  font-size: clamp(1.875rem, 3.4vw, 2.75rem);
  line-height: 0.98;
}

h3 {
  font-size: 1.0625rem;
  line-height: 1.2;
  font-stretch: 95%;
  letter-spacing: 0.01em;
}

p {
  margin: 0;
}

.text {
  color: var(--muted);
  font-size: 0.975rem;
  max-width: 30em;
}

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 28px;
  border: 0;
  border-radius: 2px;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  background: #8cc83c;
}

.btn-green {
  background: var(--brand);
  color: #fff;
}

.btn-green:hover {
  background: var(--brand-dark);
}

.link {
  display: inline-block;
  margin-top: 14px;
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 2px solid var(--lime);
}

.link:hover {
  color: var(--lime-dark);
}

/* ── Top bar and header ───────────────────────────────────────────────── */
.topbar {
  position: relative;
  z-index: 60;
  background: var(--ink);
  color: #fff;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 8px var(--gutter);
}

@media (max-width: 480px) {
  .topbar {
    font-size: 0.625rem;
    letter-spacing: 0.04em;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

/* Once the page scrolls, the bar turns to frosted glass so the menu stays
   readable over photos and text. */
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 76px;
}

.brand {
  display: block;
  padding: 8px 0;
}

.brand img {
  width: 116px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0;
}

.nav a {
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 6px 14px;
  border-left: 1px solid var(--line);
}

.nav a:first-child {
  border-left: 0;
}

.nav a:hover {
  color: var(--lime-dark);
}

.nav a[aria-current='page'] {
  color: var(--lime-dark);
}

.nav .btn {
  margin-left: 14px;
  min-height: 34px;
  padding: 6px 16px;
  border-left: 0;
  font-size: 0.75rem;
  color: #fff;
}

.nav .btn:hover {
  color: #fff;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 4px var(--gutter) 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 14px 0;
    border-left: 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.875rem;
  }

  .nav .btn {
    margin: 16px 0 0;
    min-height: 48px;
    border-bottom: 0;
  }
}

/* ── Big faint broccoli mark behind the top of each page ─────────────── */
.has-mark {
  position: relative;
  isolation: isolate;
}

.mark {
  position: absolute;
  z-index: -1;
  left: -12%;
  top: -96px;
  width: min(760px, 70vw);
  pointer-events: none;
  user-select: none;
}

/* ── Hero (home) ──────────────────────────────────────────────────────── */
.hero {
  padding: clamp(24px, 4vw, 48px) 0 clamp(40px, 6vw, 80px);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 250px minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 44px);
  align-items: center;
}

.hero-plate img {
  width: 100%;
  filter: drop-shadow(0 26px 30px rgba(20, 30, 10, 0.22));
}

.hero-copy .mini-mark {
  width: 40px;
  margin-bottom: 18px;
}

.hero-copy h1 {
  max-width: 9ch;
}

.hero-copy .text {
  margin-top: 18px;
  max-width: 24em;
}

.hero-copy .btn {
  margin-top: 26px;
}

.hero-copy .link {
  display: table;
}

/* The nutrition label sits where a testimonial would */
.label {
  width: 100%;
  padding: 12px 14px 14px;
  background: #fff;
  border: 2px solid var(--ink);
  color: var(--ink);
  font-family: var(--font);
  box-shadow: 8px 8px 0 var(--brand);
  transform: rotate(-2deg);
}

.label-title {
  font-weight: 900;
  font-size: 1.625rem;
  line-height: 1;
  font-stretch: 70%;
}

.label-dish {
  margin-top: 4px;
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.3;
}

.label .row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 0;
  border-top: 1px solid var(--ink);
  font-size: 0.875rem;
}

.label .row b {
  font-weight: 800;
}

.label .thick {
  border-top-width: 9px;
  margin-top: 6px;
}

.label .mid {
  border-top-width: 4px;
}

.label .cal {
  align-items: baseline;
  font-weight: 900;
  font-stretch: 75%;
}

.label .cal span:first-child {
  font-size: 1.25rem;
}

.label .cal span:last-child {
  font-size: 2.125rem;
  line-height: 1;
}

.label-foot {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 4px solid var(--ink);
  font-size: 0.75rem;
  line-height: 1.35;
}

@media (max-width: 1000px) {
  .hero .wrap {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .hero-copy {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .hero-copy h1 {
    max-width: 14ch;
  }

  .hero .label {
    max-width: 270px;
  }
}

@media (max-width: 620px) {
  .hero .wrap {
    grid-template-columns: 1fr;
  }

  .hero-plate {
    grid-row: 2;
  }

  .hero .label {
    grid-row: 3;
    margin: -40px auto 0 8px;
    position: relative;
    z-index: 2;
  }
}

/* ── Sections ─────────────────────────────────────────────────────────── */
.section {
  padding: clamp(48px, 7vw, 96px) 0;
}

.section-tight {
  padding-top: 0;
}

.section-mist {
  background: var(--mist);
}

/* How it works: plate on the left, heading in the middle, steps on the right */
.how .wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 0.85fr) minmax(0, 1.2fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: center;
}

.how-plate img {
  width: 118%;
  max-width: none;
  margin-left: -18%;
  filter: drop-shadow(0 26px 30px rgba(20, 30, 10, 0.2));
}

.how-head {
  text-align: right;
}

.how-head h2 {
  font-size: clamp(1.75rem, 2.6vw, 2.375rem);
}

.how-head .text {
  margin: 16px 0 0 auto;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 24px;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 4px 14px;
  align-items: start;
}

.steps li::before {
  content: counter(step);
  grid-column: 1 / -1;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--lime-dark);
}

.icon {
  width: 36px;
  height: 36px;
  color: var(--ink);
}

.steps h3 {
  font-size: 0.875rem;
}

.steps p {
  grid-column: 2;
  margin-top: 4px;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 1000px) {
  .how .wrap {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .how-plate {
    grid-row: span 2;
  }

  .how-head {
    text-align: left;
  }

  .how-head .text {
    margin-left: 0;
  }
}

@media (max-width: 620px) {
  .how .wrap {
    grid-template-columns: 1fr;
  }

  .how-plate img {
    width: 100%;
    margin-left: 0;
  }

  .steps {
    grid-template-columns: 1fr;
  }
}

/* Meal plans: text on the left, scattered dishes on the right */
.plans .wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}

.plans-copy {
  text-align: right;
}

.plans-copy .leaf {
  width: 92px;
  margin: 0 0 12px auto;
}

.plans-copy .text {
  margin: 16px 0 0 auto;
}

.plan-list {
  list-style: none;
  margin: 22px 0 0 auto;
  padding: 0;
  max-width: 30em;
  text-align: left;
}

.plan-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
}

.plan-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.plan-list li span:last-child {
  font-weight: 800;
  white-space: nowrap;
}

.plans-copy .btn {
  margin-top: 26px;
}

.scatter {
  position: relative;
  aspect-ratio: 1 / 0.9;
}

.scatter img {
  position: absolute;
  filter: drop-shadow(0 18px 22px rgba(20, 30, 10, 0.18));
}

.scatter .s1 { width: 54%; left: 2%; top: 4%; }
.scatter .s2 { width: 30%; right: 4%; top: 0; }
.scatter .s3 { width: 40%; right: 0; top: 40%; }
.scatter .s4 { width: 26%; left: 18%; bottom: 0; }

@media (max-width: 760px) {
  .plans .wrap {
    grid-template-columns: 1fr;
  }

  .plans-copy,
  .plans-copy .plan-list {
    text-align: left;
  }

  .plans-copy .leaf,
  .plans-copy .text,
  .plan-list {
    margin-left: 0;
  }
}

/* Mosaic of photos and text, like a magazine spread */
.mosaic {
  display: grid;
  width: min(100% - 2 * var(--gutter), var(--wrap) - 2 * var(--gutter));
  margin: 0 auto;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(260px, auto);
}

.tile {
  position: relative;
  overflow: hidden;
  margin: 0;
}

.tile > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile-feature {
  grid-column: span 2;
  display: flex;
  align-items: center;
  color: #fff;
}

.tile-feature > img {
  position: absolute;
  inset: 0;
}

.tile-feature::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 14, 8, 0.78) 0%, rgba(10, 14, 8, 0.35) 70%, rgba(10, 14, 8, 0.15) 100%);
}

.tile-feature .tile-copy {
  position: relative;
  z-index: 1;
  padding: clamp(24px, 4vw, 48px);
  max-width: 26rem;
}

.tile-feature h2 {
  color: #fff;
}

.tile-feature p {
  margin-top: 12px;
  color: #e9ece4;
  font-size: 0.9375rem;
}

.tile-feature .btn {
  margin-top: 20px;
}

.tile-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(20px, 3vw, 36px);
  background: #fff;
}

.tile-text {
  align-items: flex-start;
}

.tile-text.right {
  text-align: right;
  align-items: flex-end;
}

.tile-text h3 {
  font-size: 1.125rem;
}

.tile-text p {
  margin-top: 10px;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.55;
  max-width: 22em;
}

@media (max-width: 900px) {
  .mosaic {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: minmax(200px, auto);
  }
}

@media (max-width: 520px) {
  .tile-feature {
    min-height: 340px;
  }

  .tile-text.right {
    text-align: left;
    align-items: flex-start;
  }
}

/* ── Inner pages ──────────────────────────────────────────────────────── */
.page-head {
  padding: clamp(32px, 5vw, 64px) 0 clamp(32px, 5vw, 64px);
}

.page-head .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}

.page-head h1 {
  max-width: 12ch;
}

.page-head .text {
  margin-top: 18px;
  font-size: 1.0625rem;
}

.page-head .plate img {
  width: 100%;
  filter: drop-shadow(0 26px 30px rgba(20, 30, 10, 0.2));
}

.page-head .plate.small {
  max-width: 420px;
  justify-self: end;
}

@media (max-width: 760px) {
  .page-head .wrap {
    grid-template-columns: 1fr;
  }

  .page-head .plate.small {
    justify-self: start;
    max-width: 300px;
  }
}

/* About: story */
.story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.story .plate img {
  width: 100%;
  filter: drop-shadow(0 22px 26px rgba(20, 30, 10, 0.18));
}

.prose {
  max-width: 34rem;
}

.prose h2 {
  margin-bottom: 18px;
}

.prose p {
  color: var(--muted);
}

.prose p + p {
  margin-top: 1em;
}

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

  .story .plate {
    max-width: 320px;
  }
}

/* About: promises */
.section-title {
  margin-bottom: clamp(28px, 4vw, 44px);
  text-align: center;
}

.promises {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px clamp(24px, 4vw, 48px);
}

.promise {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 6px 16px;
  align-items: start;
}

.promise p {
  grid-column: 2;
  font-size: 0.9375rem;
  color: var(--muted);
}

@media (max-width: 900px) {
  .promises {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

.cta {
  text-align: center;
}

.cta .text {
  margin: 14px auto 0;
}

.cta .btn {
  margin-top: 24px;
}

/* Contact */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.ways {
  display: grid;
  gap: 26px;
}

.way {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 4px 16px;
  align-items: start;
}

.way h2 {
  font-size: 1rem;
  line-height: 1.3;
  font-stretch: 95%;
}

.way p {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.9375rem;
}

.way a {
  font-weight: 700;
}

.form {
  padding: clamp(22px, 3vw, 40px);
  background: var(--mist);
  border-radius: 2px;
}

.form h2 {
  font-size: clamp(1.5rem, 2.4vw, 1.875rem);
}

.form > p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.field {
  margin-top: 18px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d3d6cd;
  border-radius: 2px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.form .btn {
  margin-top: 22px;
}

.form-error {
  margin-top: 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #a12a1a;
}

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

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-footer {
  margin-top: clamp(40px, 6vw, 80px);
}

.foot-main {
  background: var(--brand);
  color: #fff;
}

.foot-main .wrap {
  display: grid;
  grid-template-columns: 150px 220px repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: center;
  padding-top: 28px;
  padding-bottom: 28px;
}

.foot-logo {
  width: 130px;
}

.foot-dish {
  width: 220px;
  margin: -70px 0 -40px;
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.3));
}

.foot-col {
  align-self: start;
  font-size: 0.8125rem;
}

.foot-h {
  margin: 0 0 8px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.foot-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.foot-col li + li {
  margin-top: 4px;
}

.foot-col a {
  color: #fff;
  text-decoration: none;
}

.foot-col a:hover {
  text-decoration: underline;
}

.foot-strip {
  background: var(--mist);
  font-size: 0.8125rem;
  color: var(--muted);
}

.foot-strip .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.foot-strip b {
  color: var(--ink);
}

.copy {
  padding: 12px var(--gutter);
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
}

@media (max-width: 1000px) {
  .foot-main .wrap {
    grid-template-columns: 150px repeat(3, minmax(0, 1fr));
  }

  .foot-dish {
    display: none;
  }
}

@media (max-width: 620px) {
  .foot-main .wrap {
    grid-template-columns: 1fr 1fr;
  }

  .foot-brand {
    grid-column: 1 / -1;
  }
}

/* ── Motion ───────────────────────────────────────────────────────────────
   Only when <html> has .motion (set in each page's head, skipped for people
   who ask their device for reduced motion). Without it the page is static. */
.motion .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(60, 90, 20, 0.25);
}

.motion .btn:active {
  transform: none;
  box-shadow: none;
}

.motion .mark {
  animation: mark-in 1.4s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes mark-in {
  from {
    opacity: 0;
    transform: translateX(-40px) rotate(-6deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.motion .hero-copy h1 .w,
.motion .page-head h1 .w {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em);
  animation: word-in 0.65s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  animation-delay: calc(var(--i) * 70ms + 150ms);
}

@keyframes word-in {
  to {
    opacity: 1;
    transform: none;
  }
}

.motion .hero-copy .mini-mark,
.motion .hero-copy .text,
.motion .hero-copy .btn,
.motion .hero-copy .link,
.motion .page-head .text {
  opacity: 0;
  animation: rise 0.7s ease forwards;
}

.motion .hero-copy .mini-mark { animation-delay: 0.05s; }
.motion .hero-copy .text,
.motion .page-head .text { animation-delay: 0.6s; }
.motion .hero-copy .btn { animation-delay: 0.75s; }
.motion .hero-copy .link { animation-delay: 0.85s; }

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Plates spin onto the table */
.motion .hero-plate img,
.motion .page-head .plate img {
  animation: plate-in 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s both;
}

@keyframes plate-in {
  from {
    opacity: 0;
    transform: rotate(-35deg) scale(0.85);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.motion .label {
  animation: label-in 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s backwards;
}

@keyframes label-in {
  from {
    opacity: 0;
    transform: translateY(28px) rotate(-8deg);
  }
  to {
    opacity: 1;
    transform: rotate(-2deg);
  }
}

.motion .label .row,
.motion .label-foot {
  opacity: 0;
  transform: translateX(-10px);
  animation: row-in 0.45s ease forwards;
  animation-delay: calc(1s + var(--r, 0) * 90ms);
}

@keyframes row-in {
  to {
    opacity: 1;
    transform: none;
  }
}

.motion .label:hover {
  transform: rotate(0deg) translateY(-4px);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Scroll reveals */
.motion [data-r] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: calc(var(--d, 0) * 110ms);
}

.motion [data-r].in {
  opacity: 1;
  transform: none;
}

/* Cut-out dishes slide in from the side and turn slightly, like being set down */
.motion .how-plate[data-r] {
  transform: translateX(-60px) rotate(-12deg);
}

.motion .scatter img[data-r] {
  transform: translateY(30px) rotate(10deg) scale(0.9);
}

.motion .how-plate[data-r].in,
.motion .scatter img[data-r].in {
  transform: none;
}

/* Mosaic photos zoom out gently as they appear */
.motion .tile > img {
  transform: scale(1.12);
  transition: transform 1.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.motion .tile.in > img {
  transform: scale(1);
}

.motion .tile-feature:hover > img {
  transform: scale(1.04);
}

.motion .foot-dish {
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.motion .foot-main:hover .foot-dish {
  transform: rotate(-6deg) translateY(-6px);
}
