.aih-hero { touch-action: pan-y pinch-zoom; }

.aih-home-rail {
  --aih-rail-gutter: max(5%, calc((100% - 1296px) / 2));
  padding-block: clamp(24px, 4vw, 52px);
}
.aih-home-rail-features { background: white; }
.aih-home-rail-steps {
  background: #102e25;
  color: #fff;
}
.aih-home-rail-steps .aih-home-rail-heading :is(h2, p) { color: #fff; }
.aih-home-rail-steps .aih-home-rail-footer .btn { background: #dcf4a5; color: #103d2f; }
.aih-home-rail-steps .aih-home-rail-footer .btn:hover { background: #fff; color: #103d2f; }
#how { scroll-margin-block-start: 18px; }
.aih-home-rail-heading { margin-block-end: 17px; }
.aih-home-rail-heading h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  line-height: 1.13;
  letter-spacing: -.045em;
}
.aih-home-rail-heading p { margin: 7px 0 0; }
.aih-home-rail-track {
  display: flex;
  align-items: stretch;
  gap: 13px;
  margin: 0;
  padding-block: 2px 10px;
  padding-inline-start: var(--aih-rail-gutter);
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline-start: var(--aih-rail-gutter);
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}
.aih-home-rail-track::-webkit-scrollbar { display: none; }
.aih-home-rail-track > li { flex: 0 0 clamp(230px, 32%, max(380px, 25%)); min-width: 0; scroll-snap-align: start; }
.aih-home-rail-steps .aih-home-rail-track > li { flex-basis: clamp(260px, 43%, max(500px, 33.34%)); }
.aih-home-rail-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-block-start: 10px; }
.aih-home-rail-footer [hidden] { display: none; }
.aih-home-rail-footer button:disabled { opacity: .4; cursor: default; }
.aih-home-rail-footer .btn { padding: 11px 16px; text-align: center; }
.aih-home-rail-track:focus-visible, .aih-member-card:focus-visible, .aih-home-rail-footer button:focus-visible {
  outline: 2px solid #086449;
  outline-offset: -2px;
}
.aih-member-card, .aih-diner-step {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid #dce5d8;
  border-radius: 14px;
  background: white;
  color: #103d2f;
  text-decoration: none;
}
.aih-member-card:hover h3 { text-decoration: underline; text-underline-offset: 3px; }
.aih-member-card > img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.aih-member-card > div, .aih-step-copy { padding: 13px 15px 16px; }
.aih-member-card h3, .aih-step-copy h3 { font-size: clamp(1.05rem, 2.2vw, 1.42rem); line-height: 1.18; margin: 0 0 5px; }
.aih-member-card p, .aih-step-copy p { margin: 0; color: #47634f; font-size: .94rem; line-height: 1.45; }
.aih-diner-step {
  position: relative;
  isolation: isolate;
  container-type: inline-size;
  --aih-screen-width: min(84cqw, 340px);
  border: 0;
  background: #183b2d;
  color: white;
}
.aih-diner-step .aih-step-copy {
  position: relative;
  flex: 1;
  padding: 15px 17px 19px;
  background: #fcfbf7;
}
.aih-diner-step .aih-step-copy h3,
.aih-diner-step .aih-step-copy p { color: #103d2f; }
.aih-step-visual { min-height: calc(var(--aih-screen-width) * 1.694915254 + 12px); }
.aih-step-qr-frame,
.aih-journey-screen-link { position: absolute; inset: 0; }
.aih-step-qr-frame { z-index: -1; }
.aih-step-qr-frame .aih-qr-scene { --aih-photo-x: 78%; }
.aih-journey-screen-link:focus-visible { outline: 3px solid #def4aa; outline-offset: -5px; }
.aih-journey-screen-link .aih-qr-scene {
  --aih-photo-x: 64%;
  --aih-photo-y: 46%;
}
.aih-journey-screen-link .aih-qr-plane {
  width: calc(max(100cqw, 150cqh) * 1.32);
}
.aih-journey-screen-link-menu .aih-qr-scene {
  --aih-photo-x: 57%;
  --aih-photo-y: 48%;
}
.aih-journey-screen-link-menu .aih-qr-plane {
  width: calc(max(100cqw, 150cqh) * 1.58);
  rotate: -2deg;
}
.aih-qr-display {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
/* Project the interfaces over the source panes, then clip to the photographed glass. */
.aih-phone-display-mask {
  clip-path: polygon(52.28% 31.25%, 67.83% 32.23%, 67.25% 40.04%, 66.37% 51.76%,
    65.51% 63.48%, 64.84% 73.24%, 49.35% 71.09%, 49.87% 63.48%,
    50.72% 51.76%, 51.63% 40.04%);
}
.aih-camera-display-mask {
  clip-path: polygon(52.6% 27.54%, 68.1% 28.42%, 67.25% 40.04%, 66.37% 51.76%,
    65.51% 63.48%, 64.58% 76.25%, 49.09% 73.93%, 49.87% 63.48%,
    50.72% 51.76%, 51.63% 40.04%);
}
.aih-phone-content {
  width: 472px;
  height: 800px;
  background: #104c37;
  transform-origin: 0 0;
  transform: matrix3d(.459214024435, .001753407669, 0, -.00005924705186,
    -.062428478051, .511471860139, 0, -.00000653644304, 0, 0, 1, 0, 800, 318, 0, 1);
}
.aih-phone-content > img {
  display: block;
  width: 100%;
  height: 100%;
  clip-path: inset(0 round 12px 12px 0 0);
}
.aih-qr-camera-preview {
  position: relative;
  width: 472px;
  height: 960px;
  overflow: hidden;
  background: #111 url("/assets/table-qr-scan-detail.webp") -1900px -562px / 2640px auto no-repeat;
  transform-origin: 0 0;
  transform: matrix3d(.447659041886, -.000518604686, 0, -.00006800833784,
    -.058704268417, .497519587578, 0, -.00000326800056, 0, 0, 1, 0, 805, 279, 0, 1);
}
.aih-qr-camera-preview::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 155px;
  background: linear-gradient(0deg, #111 20%, #111c 55%, transparent);
}
.aih-camera-focus { position: absolute; top: 350px; left: 85px; width: 302px; height: 302px; }
.aih-camera-shutter {
  position: absolute;
  z-index: 1;
  bottom: 24px;
  left: 50%;
  width: 65px;
  height: 65px;
  border: 3px solid white;
  border-radius: 50%;
  background: white;
  box-shadow: inset 0 0 0 4px #171717;
  transform: translateX(-50%);
}
.aih-movement {
  background: linear-gradient(90deg, #f2f5edf5 10%, #f2f5edce 64%, #f2f5edb8),
    url("/assets/main-salad.jpg") center 54% / cover no-repeat;
}
.aih-movement-grid { gap: 12px; }
.aih-movement-grid article { padding: 16px 18px; border-radius: 10px; background: #ffffffe8; }
.aih-movement-grid article h3 { margin-block: 7px; }
@media (max-width: 640px) {
  .aih-home-rail-track > li, .aih-home-rail-steps .aih-home-rail-track > li { flex-basis: min(86%, 345px); }

  .aih-movement { background-position: center, 60% center; }
}
.aih-qr-scene {
  position: absolute;
  inset: 0;
  overflow: hidden;
  container-type: size;
  --aih-photo-x: 64%;
  --aih-photo-y: 50%;
}
.aih-qr-plane {
  position: absolute;
  left: var(--aih-photo-x);
  top: var(--aih-photo-y);
  width: max(100cqw, 150cqh);
  aspect-ratio: 3 / 2;
  transform: translate(calc(-1 * var(--aih-photo-x)), calc(-1 * var(--aih-photo-y)));
}
.aih-qr-photo { display: block; width: 100%; height: 100%; }
.aih-qr-logo-screen, .aih-qr-logo-card {
  position: absolute;
  display: block;
  pointer-events: none;
}
.aih-qr-logo-screen { top: 33.8%; left: 52.7%; width: 11.4%; transform: rotate(3deg) skewX(-7deg); }
.aih-qr-logo-card { top: 46.3%; left: 76.2%; width: 11.6%; transform: rotate(5deg) skewX(-7deg); }
.aih-qr-logo-screen img, .aih-qr-logo-card img { display: block; width: 100%; height: auto; }
@media (max-width: 650px) {
  .aih-hero-frame[data-hero-slide="1"] .aih-qr-scene { height: 55%; --aih-photo-x: 73%; }
  .aih-hero-frame[data-hero-slide="1"] .aih-hero-overlay {
    background: linear-gradient(0deg, #103d2f 43%, #103d2fe0 53%, transparent 72%);
  }
  .aih-hero-frame[data-hero-slide="1"] .aih-hero-inner { align-items: end; padding-block: 0 89px; }
}

@media (min-width: 651px) {
  .aih-hero-frame[data-hero-slide="1"] .aih-hero-text { max-width: min(43vw, 560px); }
}

.aih-camera-card-logo {
  position: absolute;
  left: 108px;
  top: 253px;
  width: 305px;
  transform: rotate(5deg) skewX(-7deg);
  pointer-events: none;
}
.aih-camera-card-logo img { display: block; width: 100%; height: auto; }

.aih-site-footer,
.aih-site-footer-credit {
  background: #102e25;
  color: #fff;
  border-top: 1px solid #ffffff38;
}
.aih-site-footer {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 50px;
  padding: 45px 5%;
  font-size: 13px;
}
.aih-site-footer a,
.aih-site-footer p,
.aih-site-footer-credit a { color: #fff; }
.aih-site-footer a:not(.aih-site-footer-logo) { display: block; margin-bottom: 9px; }
.aih-site-footer a:not(.aih-site-footer-logo):hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.aih-site-footer a:focus-visible,
.aih-site-footer-credit a:focus-visible { outline: 2px solid #dcf4a5; outline-offset: 4px; }
.aih-site-footer-logo { display: inline-block; }
.aih-site-footer-logo img {
  display: block;
  width: 200px;
  max-width: 50vw;
  height: auto;
  filter: brightness(0) invert(1);
}
.aih-site-footer .aih-site-footer-note { margin-top: 11px; font-size: 11px; line-height: 1.7; }
.aih-site-footer-credit {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 24px 16px;
  font-size: 13px;
}
.aih-site-footer-credit img {
  display: block;
  width: auto;
  height: 53px;
  filter: brightness(0) invert(1);
}

@media (max-width: 760px) {
  .aih-site-footer { grid-template-columns: minmax(0, 1fr); gap: 15px; padding: 35px 6%; }
  .aih-site-footer-credit { padding-bottom: 86px; }
  .aih-site-footer-credit ~ .mobile-cta { background: #102e25; }
  .aih-site-footer-credit ~ .mobile-cta .btn { background: #dcf4a5; color: #103d2f; }
}
