/* ==========================================================================
   Café momo — one-page site
   Hand-written CSS, mobile-first. No framework, no build step.
   Sections: tokens · reset · type · layout · header · hero · menu · visit
             gallery · reviews · instagram · footer · motion
   ========================================================================== */

/* --- fonts: self-hosted, no third-party request ------------------------- */

@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  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;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-latin-ext.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  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-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Karla';
  src: url('../fonts/karla-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  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;
}
@font-face {
  font-family: 'Karla';
  src: url('../fonts/karla-latin-ext.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
  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-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

/* --- tokens ------------------------------------------------------------- */
/* Palette read off the interior photos: off-white walls, walnut panelling,
   brushed steel, terrazzo, and the matcha green that is the one sharp accent. */

:root {
  --paper: #f5f2ea;
  --paper-2: #ece6da;
  --paper-3: #e2dbcc;
  --ink: #191614;
  --ink-2: #453e37;
  --ink-3: #6d645b;
  --wood: #7c5133;
  --steel: #b6b1a7;
  --matcha: #5f7f47;
  --matcha-deep: #3f5730;

  --edge: color-mix(in oklab, var(--ink) 12%, transparent);
  --edge-strong: color-mix(in oklab, var(--ink) 22%, transparent);

  --font-display: 'Fraunces', 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --font-text: 'Karla', 'Avenir Next', 'Segoe UI', 'Helvetica Neue', sans-serif;

  /* one fluid scale, 3x+ jumps between the levels that matter */
  --t-xs: 0.78rem;
  --t-sm: 0.9rem;
  --t-base: clamp(1rem, 0.97rem + 0.16vw, 1.09rem);
  --t-lg: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  --t-xl: clamp(1.65rem, 1.3rem + 1.7vw, 2.6rem);
  --t-2xl: clamp(2.4rem, 1.6rem + 4vw, 4.6rem);
  --t-hero: clamp(4.2rem, 1.5rem + 17vw, 12rem);

  --space: clamp(1.25rem, 4vw, 2rem);
  --section-y: clamp(3.5rem, 9vw, 7.5rem);
  --measure: 34rem;
  --max: 74rem;
  --radius: 2px;

  --header-h: 3.5rem;
  color-scheme: light;
}

/* --- reset -------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  /* sticky header + chips must not cover the anchor target */
  scroll-padding-top: calc(var(--header-h) + 3.4rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--t-base);
  line-height: 1.55;
  font-synthesis-weight: none;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
picture {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
  background: var(--paper-2);
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
  text-decoration-thickness: from-font;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

table {
  border-collapse: collapse;
  width: 100%;
}

:focus-visible {
  outline: 2px solid var(--matcha-deep);
  outline-offset: 3px;
  border-radius: 1px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: 0.7rem 1rem;
}
.skip-link:focus {
  left: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* --- type --------------------------------------------------------------- */

h1,
h2,
h3,
.display {
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: 'opsz' 90;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

/* The wordmark is the cafe's own hand-drawn lettering, traced from the opening poster
   (tools/build-wordmark.mjs) and inlined once as a <symbol>. It takes its colour from the
   text around it, so the same mark works on paper and on the dark footer. */
.wordmark {
  display: inline-flex;
  align-items: center;
  color: inherit;
  line-height: 0;
}

.wordmark__art {
  display: block;
  height: 1em;
  width: calc(1em * 1889 / 497);
  fill: currentColor;
}

.wordmark--sm {
  font-size: 1.15rem;
}

.wordmark--hero {
  font-size: clamp(3.6rem, 1.2rem + 15vw, 9.5rem);
}

.wordmark--footer {
  font-size: 2.4rem;
  margin-bottom: 0.9rem;
}

.eyebrow {
  font-size: var(--t-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-3);
}

.lede {
  font-size: var(--t-lg);
  line-height: 1.4;
  max-width: var(--measure);
  text-wrap: pretty;
}

/* --- layout ------------------------------------------------------------- */

.wrap {
  width: min(100% - var(--space) * 2, var(--max));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-y);
  scroll-margin-top: var(--header-h);
}

.section--tint {
  background: var(--paper-2);
}

.section-head {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: clamp(1.6rem, 4vw, 2.8rem);
}

.section-head h2 {
  font-size: var(--t-2xl);
}

.rule {
  height: 1px;
  background: var(--edge);
  border: 0;
  margin: 0;
}

/* --- buttons ------------------------------------------------------------ */

.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 3rem;
  padding: 0.75rem 1.35rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border: 1px solid var(--btn-bg);
  border-radius: 999px;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--edge-strong);
  backdrop-filter: blur(6px);
}

.btn--ghost:hover {
  border-color: var(--ink);
}

.btn--accent {
  --btn-bg: var(--matcha);
  --btn-fg: #fff;
}

.btn--on-photo {
  --btn-bg: rgba(255, 255, 255, 0.14);
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
}

.btn--on-photo:hover {
  --btn-bg: #fff;
  --btn-fg: var(--ink);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid var(--edge-strong);
  padding-bottom: 2px;
}

.link-arrow:hover {
  border-color: currentColor;
}

/* --- header ------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: color-mix(in oklab, var(--paper) 86%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.site-header[data-scrolled='true'] {
  border-bottom-color: var(--edge);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header .wordmark {
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 3vw, 1.8rem);
  font-size: var(--t-sm);
  font-weight: 700;
}

.nav a {
  text-decoration: none;
  padding-block: 0.4rem;
  border-bottom: 1.5px solid transparent;
}

.nav a:hover {
  border-bottom-color: var(--ink);
}

.nav .nav__ig {
  color: var(--ink-3);
}

/* --- hero ----------------------------------------------------------------
   Split, not overlay: the photograph keeps its own light and the type sits on
   paper, so the headline is black-on-white rather than white-on-scrim. On a
   phone the photo is a full-bleed band above the type; from 56rem the two sit
   side by side and the photo runs the full height of the section. */

.hero {
  display: grid;
  background: var(--paper);
}

.hero__media {
  position: relative;
  height: clamp(15rem, 42svh, 24rem);
  background: var(--paper-2);
}

.hero__media picture,
.hero__media img {
  width: 100%;
  height: 100%;
}

.hero__media img {
  object-fit: cover;
  object-position: 50% 46%;
}

.hero__body {
  width: min(100% - var(--space) * 2, var(--max));
  margin-inline: auto;
  padding-block: clamp(1.6rem, 5vw, 2.6rem) clamp(2rem, 6vw, 3rem);
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
}

.hero h1 {
  margin-block: 0.35rem 0.25rem;
}

.hero__tagline {
  font-size: var(--t-lg);
  max-width: 22ch;
  text-wrap: pretty;
  color: var(--ink-2);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.6rem;
}

/* Open/closed line — filled in by js/hours.js, invisible (but space-reserving)
   without JS, so the hero never shifts when the script runs. */
.status {
  display: inline-flex;
  visibility: hidden;
  align-items: center;
  min-height: 2.1rem;
  gap: 0.55rem;
  font-size: var(--t-sm);
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.35rem 0.85rem 0.35rem 0.6rem;
  border: 1px solid var(--edge-strong);
  border-radius: 999px;
}

.status[data-state] {
  visibility: visible;
}

.status__dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--steel);
}

.status[data-state='open'] .status__dot {
  background: var(--matcha);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--matcha) 22%, transparent);
}

.status[data-state='closed'] .status__dot {
  background: #c2623f;
  box-shadow: 0 0 0 3px rgba(194, 98, 63, 0.18);
}

@media (min-width: 56rem) {
  .hero {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    min-height: min(82svh, 46rem);
  }

  .hero__media {
    order: 2;
    height: auto;
  }

  .hero__body {
    order: 1;
    display: flex;
    align-items: center;
    width: 100%;
    padding-inline: clamp(2rem, 6vw, 5.5rem);
    padding-block: clamp(2.5rem, 6vw, 4rem);
  }

  .hero__inner {
    max-width: 30rem;
    margin-left: auto;
  }

  .hero__tagline {
    max-width: 24ch;
  }
}

@media (min-width: 90rem) {
  .hero__body {
    padding-inline: clamp(3rem, 8vw, 9rem);
  }
}

@media (min-width: 56rem) {
  .menu-media {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* --- strip (the three answers, right under the fold) -------------------- */

.strip {
  background: var(--ink);
  color: var(--paper);
}

.strip ul {
  display: grid;
  gap: 0.1rem;
  padding-block: 0.4rem;
}

.strip li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.6rem;
  padding-block: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: var(--t-sm);
}

.strip li:last-child {
  border-bottom: 0;
}

.strip b {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

.strip a {
  color: inherit;
}

@media (min-width: 48rem) {
  .strip ul {
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    gap: 2rem;
  }
  .strip li {
    border-bottom: 0;
    flex-direction: column;
    gap: 0.15rem;
    padding-block: 1.4rem;
  }
}

/* --- menu --------------------------------------------------------------- */

.chips {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-block: 0.7rem;
  margin-bottom: 1.6rem;
  background: color-mix(in oklab, var(--paper-2) 92%, transparent);
  backdrop-filter: blur(8px);
  /* bleed to the screen edges so the strip can scroll off-canvas on a phone */
  margin-inline: calc(var(--space) * -1);
  padding-inline: var(--space);
  scroll-snap-type: x proximity;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chips a {
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--edge-strong);
  border-radius: 999px;
  font-size: var(--t-sm);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  background: var(--paper);
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.chips a:hover,
.chips a[aria-current='true'] {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.menu-group + .menu-group {
  margin-top: clamp(2.4rem, 6vw, 3.6rem);
}

.menu-group__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 0.4rem;
}

.menu-group__head h3 {
  font-size: var(--t-xl);
}

.menu-group__note {
  font-size: var(--t-xs);
  color: var(--ink-3);
  text-align: right;
}

.menu-list li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 0.25rem 0.8rem;
  padding-block: 0.7rem;
  border-bottom: 1px solid var(--edge);
}

.menu-list .item {
  font-weight: 700;
}

.menu-list .price {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--ink-2);
}

.menu-list .desc {
  grid-column: 1 / -1;
  font-size: var(--t-sm);
  color: var(--ink-3);
  max-width: var(--measure);
}

.menu-foot {
  margin-top: 1.4rem;
  font-size: var(--t-sm);
  color: var(--ink-3);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.menu-media {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-bottom: clamp(1.6rem, 4vw, 2.4rem);
}

.menu-media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
}

@media (min-width: 60rem) {
  .menu-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 clamp(2rem, 5vw, 4rem);
    align-items: start;
  }
  .menu-columns > .menu-group:nth-child(-n + 2) {
    margin-top: 0;
  }
}

/* --- visit -------------------------------------------------------------- */

.visit-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
}

@media (min-width: 56rem) {
  .visit-grid {
    grid-template-columns: 1fr 1.1fr;
    align-items: start;
  }
}

.hours {
  font-size: var(--t-sm);
}

.hours caption {
  text-align: left;
  font-weight: 700;
  padding-bottom: 0.5rem;
}

.hours th,
.hours td {
  text-align: left;
  padding: 0.6rem 0.2rem;
  border-bottom: 1px solid var(--edge);
  font-weight: 400;
}

.hours td {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.hours tr[data-today='true'] {
  font-weight: 700;
}

.hours tr[data-today='true'] th::before {
  content: '';
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--matcha);
  margin-right: 0.5rem;
  vertical-align: 0.15em;
}

.hours-note {
  font-size: var(--t-sm);
  color: var(--matcha-deep);
  font-weight: 700;
  margin-top: 0.7rem;
}

.hours-note:empty {
  display: none;
}

.address {
  margin-top: 1.6rem;
  font-style: normal;
  font-size: var(--t-lg);
  line-height: 1.35;
}

.visit-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
  margin-top: 1rem;
}

.tag {
  font-size: var(--t-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--ink-2);
  border: 1px solid var(--edge-strong);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
}

.map {
  margin: 0;
}

.map img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--edge);
}

.map figcaption {
  font-size: var(--t-xs);
  color: var(--ink-3);
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

.visit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

/* --- gallery ------------------------------------------------------------ */

.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78%;
  gap: 0.7rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin-inline: calc(var(--space) * -1);
  padding-inline: var(--space);
  padding-bottom: 0.5rem;
  overscroll-behavior-x: contain;
}

.gallery::-webkit-scrollbar {
  display: none;
}

.gallery figure {
  margin: 0;
  scroll-snap-align: center;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}

.gallery figcaption {
  font-size: var(--t-xs);
  color: var(--ink-3);
  margin-top: 0.5rem;
}

@media (min-width: 56rem) {
  .gallery {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, 1fr);
    overflow: visible;
    margin-inline: 0;
    padding-inline: 0;
    gap: clamp(0.7rem, 1.4vw, 1.2rem);
  }
  /* two of the eight run tall so the grid does not read as a contact sheet */
  .gallery figure:nth-child(1),
  .gallery figure:nth-child(6) {
    grid-row: span 2;
  }
  .gallery figure:nth-child(1) img,
  .gallery figure:nth-child(6) img {
    height: 100%;
    aspect-ratio: auto;
  }
}

/* --- reviews ------------------------------------------------------------ */

.rating {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.rating__score {
  font-family: var(--font-display);
  font-size: var(--t-2xl);
  font-weight: 700;
  line-height: 1;
}

.rating__stars {
  color: var(--matcha);
  letter-spacing: 0.1em;
}

.quotes {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  margin-top: clamp(1.6rem, 4vw, 2.4rem);
}

@media (min-width: 52rem) {
  .quotes {
    grid-template-columns: repeat(3, 1fr);
  }
}

.quote {
  margin: 0;
  padding: 1.4rem 1.3rem 1.1rem;
  background: var(--paper);
  border: 1px solid var(--edge);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.section--tint .quote {
  background: var(--paper);
}

.quote p {
  font-family: var(--font-display);
  font-size: var(--t-lg);
  line-height: 1.3;
  text-wrap: pretty;
}

.quote footer {
  font-size: var(--t-xs);
  color: var(--ink-3);
  margin-top: auto;
}

.press {
  margin-top: clamp(1.6rem, 4vw, 2.2rem);
  font-size: var(--t-sm);
  color: var(--ink-3);
}

/* --- instagram ---------------------------------------------------------- */

.ig {
  display: grid;
  gap: clamp(1.4rem, 4vw, 2.5rem);
  align-items: center;
}

@media (min-width: 56rem) {
  .ig {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

.ig__media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}

@media (min-width: 56rem) {
  .ig__media img {
    aspect-ratio: 3 / 2;
  }
}

/* --- footer ------------------------------------------------------------- */

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(2.5rem, 7vw, 4.5rem);
}

.site-footer a {
  color: inherit;
}

.footer-grid {
  display: grid;
  gap: 1.6rem;
}

@media (min-width: 48rem) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}



.footer-meta {
  margin-top: clamp(2rem, 5vw, 3rem);
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: var(--t-xs);
  color: rgba(245, 242, 234, 0.6);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  justify-content: space-between;
}

/* --- motion --------------------------------------------------------------
   All CSS, no JavaScript. Two things happen: the hero type arrives in one
   staggered pass on load, and each section fades up as it enters the viewport
   using a scroll-driven animation. Browsers without `animation-timeline` never
   run the second one and simply show everything — the @supports guard means
   content is visible by default and only opted into the effect. */

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

.hero__inner > * {
  animation: rise 0.55s cubic-bezier(0.2, 0.7, 0.3, 1) backwards;
}

.hero__inner > :nth-child(1) {
  animation-delay: 0.05s;
}
.hero__inner > :nth-child(2) {
  animation-delay: 0.13s;
}
.hero__inner > :nth-child(3) {
  animation-delay: 0.21s;
}
.hero__inner > :nth-child(4) {
  animation-delay: 0.29s;
}

@supports (animation-timeline: view()) {
  @media (min-width: 0px) {
    .section-head,
    .menu-group,
    .quote,
    .gallery figure,
    .map,
    .visit-grid > div,
    .ig > * {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 5% cover 22%;
    }
  }
}

/* Buttons and chips: a small, quick response, nothing springy. */
.btn,
.chips a,
.gallery img {
  will-change: auto;
}

.gallery figure {
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.3, 1);
}

@media (hover: hover) {
  .gallery figure:hover {
    transform: translateY(-4px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero__inner > *,
  .section-head,
  .menu-group,
  .quote,
  .gallery figure,
  .map,
  .visit-grid > div,
  .ig > * {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
