/* Root & Salt launch page. Colours come from the November brand boards and Chanél's Canva palette. */

@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("fonts/cormorant-garamond-latin-500-italic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Allura";
  src: url("fonts/allura-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  --paper: #fbf4ea;
  --cream: #f4e3cf;
  --olive: #564e1f;
  --olive-deep: #4b491f;
  --terracotta: #b04718;
  --tomato: #962d17;
  --mustard: #e6a321;
  --sage: #aca070;
  --blush: #e2ac8a;
  --ink: #2f2f2f;
  --line: #d9c7ae;

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --script: "Allura", "Snell Roundhand", cursive;

  --gutter: clamp(16px, 5vw, 72px);
  --ease-out: cubic-bezier(0.16, 0.8, 0.24, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  overflow-x: clip;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

picture {
  display: block;
}

figure,
h1,
h2,
h3,
p,
ul {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--terracotta);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 10;
  padding: 10px 16px;
  background: var(--olive-deep);
  color: var(--paper);
}

.skip-link:focus {
  top: 8px;
}

/* Show notice */
.show-bar {
  padding: 10px var(--gutter);
  background: var(--tomato);
  color: var(--paper);
  font-size: 0.875rem;
  line-height: 1.4;
  letter-spacing: 0.02em;
  text-align: center;
}

.show-bar strong {
  font-weight: 600;
}

/* Wordmark, set in live type to match the logo */
.wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  color: var(--olive-deep);
  font-weight: inherit;
}

.wordmark__name {
  font-family: var(--serif);
  font-size: clamp(2.75rem, 12.5vw, 4.25rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  white-space: nowrap;
}

.wordmark__line {
  display: flex;
  align-items: center;
  align-self: stretch;
  justify-content: center;
  gap: 0.9em;
  margin-top: 0.8em;
  font-family: var(--sans);
  font-size: clamp(0.6875rem, 2.6vw, 0.8125rem);
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  white-space: nowrap;
}

.wordmark__line::before,
.wordmark__line::after {
  content: "";
  flex: 1;
  max-width: 3.5em;
  height: 1px;
  background: currentColor;
}

.wordmark__by {
  margin-top: 0.1em;
  padding-inline: 0.2em;
  font-family: var(--script);
  font-size: clamp(1.75rem, 7vw, 2.25rem);
  line-height: 1.25;
}

.wordmark--small .wordmark__name {
  font-size: 2.125rem;
}

.wordmark--small .wordmark__line {
  font-size: 0.625rem;
}

.wordmark--small .wordmark__by {
  font-size: 1.5rem;
}

.wordmark--light {
  color: var(--paper);
}

/* Hero */
.hero {
  display: flex;
  flex-direction: column-reverse;
}

.hero__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  background: var(--paper);
}

.hero__text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  padding: 26px var(--gutter) 92px;
  text-align: center;
}

.hero__tagline {
  margin-top: 16px;
  color: var(--olive-deep);
  font-family: var(--serif);
  font-size: clamp(1.375rem, 5.6vw, 1.75rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.25;
  text-wrap: balance;
}

.hero__welcome {
  margin-top: 6px;
  color: var(--tomato);
  font-family: var(--serif);
  font-size: 1.3125rem;
  font-weight: 500;
}

.hero__intro {
  max-width: 28rem;
  margin-top: 10px;
  text-wrap: balance;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 24px;
  margin-top: 18px;
}

.hero__photo {
  overflow: hidden;
  background: var(--cream);
}

.hero__photo img {
  width: 100%;
  height: clamp(270px, 44svh, 520px);
  object-fit: cover;
  object-position: 50% 54%;
}

/* The swell along the bottom of the hero */
.waves {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 80px;
  overflow: hidden;
  pointer-events: none;
}

.wave {
  position: absolute;
  bottom: 0;
  left: 0;
  display: block;
  width: 200%;
  height: 100%;
}

.wave--front {
  height: 78%;
}

.wave__fill {
  fill: var(--sage);
  fill-opacity: 0.3;
}

.wave--front .wave__fill {
  fill-opacity: 0.55;
}

.wave__line {
  fill: none;
  stroke: var(--paper);
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

/* Awning stripes from the brand boards */
.stripes {
  height: 26px;
  background: repeating-linear-gradient(90deg, var(--olive) 0 16px, var(--paper) 16px 32px);
}

.stripes--light {
  background: repeating-linear-gradient(90deg, var(--paper) 0 16px, var(--olive-deep) 16px 32px);
}

/* Buttons and links */
.button {
  display: inline-block;
  min-height: 48px;
  padding: 14px 30px;
  border: 1px solid var(--olive-deep);
  border-radius: 2px;
  background: var(--olive-deep);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.16em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}

.button:hover {
  border-color: var(--tomato);
  background: var(--tomato);
  box-shadow: 0 8px 18px rgba(47, 47, 47, 0.18);
  transform: translateY(-2px);
}

.button--light {
  border-color: var(--paper);
  background: var(--paper);
  color: var(--olive-deep);
}

.button--light:hover {
  border-color: var(--mustard);
  background: var(--mustard);
  color: var(--ink);
}

.button[disabled] {
  opacity: 0.7;
  cursor: progress;
  box-shadow: none;
  transform: none;
}

.text-link {
  color: var(--olive-deep);
  font-weight: 500;
  text-underline-offset: 4px;
}

.text-link:hover {
  color: var(--tomato);
}

/* Section headings */
.kicker {
  color: var(--tomato);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.kicker--light {
  color: var(--paper);
}

h2 {
  font-family: var(--serif);
  font-size: clamp(2.25rem, 7vw, 3.25rem);
  font-weight: 500;
  line-height: 1.08;
}

.section-head h2 {
  margin-top: 10px;
  color: var(--olive-deep);
}

/* Sign-up, beside the big tomatoes */
.join {
  display: grid;
  background: var(--olive);
  color: var(--paper);
}

.join__photo {
  overflow: hidden;
  height: min(125vw, 80svh);
  background: var(--cream);
}

.join__photo picture {
  height: 100%;
}

.join__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
}

.join__content {
  display: grid;
  gap: 28px;
  align-content: start;
  width: 100%;
  max-width: 40rem;
  padding: clamp(40px, 8vw, 80px) var(--gutter);
  scroll-margin-top: 0;
}

.join__intro h2 {
  margin-top: 10px;
}

.join__intro > p:last-of-type {
  max-width: 30rem;
  margin-top: 14px;
}

.join__form .button--light {
  width: 100%;
}

.field {
  min-width: 0;
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}

.field label:not(.chip):not(.consent),
.field legend {
  display: block;
  margin-bottom: 6px;
  padding: 0;
  font-size: 0.9375rem;
  font-weight: 500;
}

.field__optional {
  font-weight: 400;
  opacity: 0.8;
}

.field__help {
  margin-top: 6px;
  font-size: 0.8125rem;
  line-height: 1.45;
  opacity: 0.88;
}

.field__error {
  margin-top: 6px;
  padding: 4px 8px;
  border-radius: 2px;
  background: var(--paper);
  color: var(--tomato);
  font-size: 0.875rem;
  font-weight: 500;
}

.field--trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid var(--paper);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  /* 16px or more stops phones zooming in on focus */
  font-size: 1rem;
}

textarea {
  resize: vertical;
}

.join :focus-visible {
  outline-color: var(--mustard);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  position: relative;
  cursor: pointer;
}

.chip input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.chip span {
  display: block;
  padding: 9px 14px;
  border: 1px solid var(--paper);
  border-radius: 999px;
  font-size: 0.9375rem;
  line-height: 1.3;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s var(--ease-out);
}

.chip:hover span {
  transform: translateY(-1px);
}

.chip input:checked + span {
  background: var(--paper);
  color: var(--olive-deep);
  font-weight: 500;
}

.chip input:focus-visible + span {
  outline: 3px solid var(--mustard);
  outline-offset: 2px;
}

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.9375rem;
  line-height: 1.45;
  cursor: pointer;
}

.consent input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--mustard);
}

.turnstile {
  margin-bottom: 16px;
}

.turnstile:empty {
  margin-bottom: 0;
}

.form-status {
  margin-top: 12px;
  font-size: 0.9375rem;
  font-weight: 500;
}

.form-status:empty {
  display: none;
}

.form-note {
  margin-top: 12px;
  font-size: 0.8125rem;
  opacity: 0.9;
}

.form-note a {
  text-underline-offset: 3px;
}

.form-success {
  padding: 28px 24px;
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  outline: none;
}

.form-success__title {
  color: var(--olive-deep);
  font-family: var(--serif);
  font-size: 1.875rem;
  font-weight: 500;
  line-height: 1.15;
}

.form-success__title + p {
  margin-top: 8px;
}

.form-success__by {
  margin-top: 8px;
  color: var(--olive);
  font-family: var(--script);
  font-size: 1.75rem;
}

/* Drifting ribbon of photos. Without motion it's a row you can swipe. */
.ribbon {
  padding-top: clamp(28px, 5vw, 56px);
  overflow-x: auto;
}

.ribbon--moving {
  overflow-x: hidden;
}

.ribbon__track {
  display: flex;
  width: max-content;
}

.ribbon__set {
  display: flex;
  gap: 12px;
  padding-right: 12px;
}

.ribbon__set img {
  width: auto;
  height: clamp(220px, 30vw, 420px);
  aspect-ratio: 2 / 3;
  object-fit: cover;
  background: var(--cream);
}

.ribbon__controls {
  display: flex;
  justify-content: flex-end;
  min-height: 20px;
  padding: 8px var(--gutter) 0;
}

.ribbon__pause {
  min-height: 32px;
  padding: 4px 2px;
  border: 0;
  background: none;
  color: var(--olive-deep);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* Services */
.services {
  padding: clamp(36px, 6vw, 72px) var(--gutter) clamp(52px, 8vw, 96px);
}

.section-head,
.service-list {
  max-width: 1280px;
  margin-inline: auto;
}

.service-list {
  display: grid;
  gap: 28px;
  margin-top: 28px;
}

.service {
  display: grid;
  grid-template-columns: 44% 1fr;
  gap: 16px;
  align-items: center;
}

/* On phones the photos swap sides, so the list doesn't read as a column of the same thing. */
.service:nth-child(even) {
  grid-template-columns: 1fr 44%;
}

.service:nth-child(even) .service__photo {
  order: 2;
}

.service__photo {
  overflow: hidden;
  background: var(--cream);
}

.service__photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}

.service:hover .service__photo img {
  transform: scale(1.05);
}

.service--supperclub img {
  object-position: 60% 82%;
}

.service--baking img {
  object-position: 50% 62%;
}

.service--catering img {
  object-position: 50% 62%;
}

.service--private img {
  object-position: 50% 40%;
}

.service--chef img {
  object-position: 42% 50%;
}

.service h3 {
  color: var(--olive-deep);
  font-family: var(--serif);
  font-size: 1.625rem;
  font-weight: 500;
  line-height: 1.15;
}

.service__text p {
  margin-top: 6px;
  font-size: 0.9688rem;
  line-height: 1.5;
}

.service .service__status {
  margin-top: 10px;
  color: var(--tomato);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Our story */
.story {
  display: grid;
  background: var(--cream);
}

.story__photos {
  position: relative;
}

.story__photo {
  overflow: hidden;
  height: clamp(400px, 120vw, 720px);
}

.story__photo picture {
  height: 100%;
}

.story__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}

/* Sits below the book on phones and beside her face on desktop, so it never covers either. */
.story__inset {
  position: absolute;
  right: var(--gutter);
  bottom: -84px;
  z-index: 1;
  width: min(30%, 170px);
  overflow: hidden;
  border: 6px solid var(--cream);
}

.story__inset img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 30%;
}

.story__text {
  display: grid;
  gap: 14px;
  align-content: center;
  padding: 104px var(--gutter) clamp(44px, 8vw, 88px);
  color: var(--ink);
}

.story__text h2 {
  color: var(--olive-deep);
}

.story__sub {
  margin-top: 8px;
  color: var(--tomato);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.story__quote {
  margin-block: 10px;
  color: var(--olive-deep);
  font-family: var(--serif);
  font-size: clamp(1.875rem, 6.4vw, 2.625rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.15;
  text-wrap: balance;
}

.story__closing {
  color: var(--olive-deep);
  font-weight: 600;
}

/* Closing call to action */
.closing {
  display: grid;
  background: var(--olive);
  color: var(--paper);
}

.closing__text {
  display: grid;
  gap: 22px;
  justify-items: start;
  align-content: center;
  padding: clamp(44px, 8vw, 88px) var(--gutter);
}

.closing__text p {
  max-width: 28rem;
  margin-top: 12px;
}

.closing__photo {
  overflow: hidden;
  height: clamp(380px, 115vw, 640px);
}

.closing__photo picture {
  height: 100%;
}

.closing__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 68%;
}

.closing :focus-visible {
  outline-color: var(--mustard);
}

/* Footer */
.footer {
  background: var(--olive-deep);
  color: var(--paper);
}

.footer__inner {
  display: grid;
  gap: 28px;
  justify-items: center;
  max-width: 1120px;
  margin-inline: auto;
  padding: 44px var(--gutter) 28px;
  text-align: center;
}

.footer__label {
  margin-bottom: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.85;
}

.footer a {
  text-underline-offset: 3px;
}

.footer a:hover {
  color: var(--mustard);
}

.footer :focus-visible {
  outline-color: var(--mustard);
}

.footer__contact li + li {
  margin-top: 4px;
}

.footer__legal {
  padding: 16px var(--gutter) 24px;
  border-top: 1px solid rgba(251, 244, 234, 0.25);
  font-size: 0.8125rem;
  line-height: 1.5;
  text-align: center;
}

.footer__legal a {
  white-space: nowrap;
}

.footer__credit {
  display: block;
  margin-top: 6px;
}

/* Simple text pages: privacy notice and not found */
.page {
  max-width: 44rem;
  margin-inline: auto;
  padding: 40px var(--gutter) 64px;
}

.page__home {
  display: block;
  text-align: center;
  text-decoration: none;
}

.page h1 {
  margin-top: 36px;
  color: var(--olive-deep);
  font-family: var(--serif);
  font-size: clamp(2.25rem, 7vw, 3rem);
  font-weight: 500;
  line-height: 1.1;
}

.page h2 {
  margin-top: 30px;
  color: var(--olive-deep);
  font-size: 1.625rem;
}

.page p,
.page ul {
  margin-top: 10px;
}

.page ul {
  padding-left: 1.25em;
  list-style: disc;
}

.page li + li {
  margin-top: 6px;
}

.page a:not(.page__home):not(.button) {
  color: var(--tomato);
  text-underline-offset: 3px;
}

.page .button {
  margin-top: 24px;
}

.page__updated {
  color: var(--olive);
  font-size: 0.875rem;
}

/* Tablet and up */
@media (min-width: 700px) {
  .service-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px 20px;
  }

  .service,
  .service:nth-child(even) {
    display: block;
  }

  .service__text {
    margin-top: 14px;
  }

  .footer__inner {
    grid-template-columns: 1.3fr 1fr 1fr;
    align-items: start;
    justify-items: start;
    text-align: left;
  }
}

/* Desktop: side-by-side sections, alternating photo and text */
@media (min-width: 900px) {
  .hero {
    display: grid;
    grid-template-columns: 54fr 46fr;
    min-height: min(calc(100svh - 66px), 860px);
  }

  .hero__panel {
    justify-content: center;
  }

  .hero__text {
    padding: 48px var(--gutter) 150px;
  }

  /* Fill the column without letting the photo's height stretch the hero. */
  .hero__photo {
    position: relative;
  }

  .hero__photo picture {
    position: absolute;
    inset: 0;
  }

  .hero__photo img {
    height: 100%;
    object-position: 50% 44%;
  }

  .waves {
    height: 130px;
  }

  .wordmark__name {
    font-size: clamp(3.75rem, 5.8vw, 5.5rem);
  }

  .wordmark--small .wordmark__name {
    font-size: 2.125rem;
  }

  /* The tomatoes stay in view while the form scrolls past. */
  .join {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .join__photo {
    position: sticky;
    top: 0;
    height: 100svh;
  }

  .story {
    grid-template-columns: 44fr 56fr;
    align-items: stretch;
  }

  .story__photos {
    min-height: 760px;
  }

  .story__photo {
    position: absolute;
    inset: 0;
    height: auto;
  }

  .story__inset {
    top: 64px;
    right: -48px;
    bottom: auto;
    width: 30%;
    max-width: 220px;
  }

  .story__text {
    max-width: 46rem;
    padding: clamp(56px, 7vw, 96px) var(--gutter) clamp(56px, 7vw, 96px) clamp(96px, 10vw, 150px);
  }

  .closing {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }

  .closing__photo {
    position: relative;
    height: auto;
    min-height: 680px;
  }

  .closing__photo picture {
    position: absolute;
    inset: 0;
  }
}

@media (min-width: 1100px) {
  .service-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  /* A gentle stagger, so the row doesn't sit like a table. */
  .service:nth-child(even) {
    margin-top: 56px;
  }
}

/* Movement. Everything here is switched off for people who ask for reduced motion. */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* "by Chanél" appears from left to right, as if it's being signed. */
@keyframes sign {
  from {
    clip-path: inset(-20% 100% -20% -5%);
  }
  to {
    clip-path: inset(-20% -5% -20% -5%);
  }
}

@keyframes settle {
  from {
    transform: scale(1.1);
  }
  to {
    transform: none;
  }
}

@keyframes drift {
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  /* Hero arrival */
  .hero__photo img {
    animation: settle 2.4s var(--ease-out) both;
  }

  .hero .wordmark__name {
    animation: rise 0.9s var(--ease-out) both;
  }

  .hero .wordmark__line {
    animation: rise 0.8s var(--ease-out) 0.1s both;
  }

  .hero .wordmark__by {
    animation: sign 1.3s ease-out 0.3s both;
  }

  /* Quick enough that the button is ready well before the signature finishes. */
  .hero__tagline {
    animation: rise 0.7s var(--ease-out) 0.2s both;
  }

  .hero__welcome {
    animation: rise 0.7s var(--ease-out) 0.3s both;
  }

  .hero__intro {
    animation: rise 0.7s var(--ease-out) 0.4s both;
  }

  .hero__actions {
    animation: rise 0.7s var(--ease-out) 0.5s both;
  }

  /* The sea keeps moving */
  .wave--front {
    animation: drift 28s linear infinite;
  }

  .wave--back {
    animation: drift 44s linear infinite reverse;
  }

  /* Photos drift a little as you scroll. Set slightly larger so no edge ever shows. */
  [data-parallax] {
    transform: translate3d(0, var(--shift, 0), 0) scale(1.1);
  }

  /* Ribbon of photos */
  .ribbon--moving .ribbon__track {
    animation: drift 90s linear infinite;
  }

  .ribbon--moving:hover .ribbon__track,
  .ribbon--moving:focus-within .ribbon__track,
  .ribbon--moving.is-paused .ribbon__track {
    animation-play-state: paused;
  }

  /* Things that arrive as you scroll to them */
  .reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.9s ease, transform 0.9s var(--ease-out);
  }

  .reveal.is-in {
    opacity: 1;
    transform: none;
  }

  .service.reveal:nth-child(2) {
    transition-delay: 0.1s;
  }

  .service.reveal:nth-child(3) {
    transition-delay: 0.2s;
  }

  .service.reveal:nth-child(4) {
    transition-delay: 0.3s;
  }

  .service.reveal:nth-child(5) {
    transition-delay: 0.4s;
  }

  /* The clip goes on the photo inside the frame. Browsers can treat a fully clipped frame
     as off screen, and then the reveal would never start. */
  .reveal-photo > * {
    clip-path: inset(100% 0 0 0);
    transition: clip-path 1.2s var(--ease-out);
  }

  .reveal-photo.is-in > * {
    clip-path: inset(0);
  }
}
