/* The homepage showcase uses native scrolling, including when JavaScript is unavailable. */
.home-products.product-teaser {
  display: block;
  padding: 64px 0 56px;
  --home-gutter: var(--space);
  background: #f7f9fc;
}
.hp-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin: 0 var(--home-gutter) 32px; }
.hp-heading > .text-link { flex-shrink: 0; margin-bottom: 3px; }
.hp-carousel { --carousel-card-width: min(78%, 760px); --carousel-gap: 24px; min-width: 0; }
.hp-carousel-track {
  display: flex;
  gap: var(--carousel-gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: #9aacc2 #e6ecf4;
  padding-block: 8px;
}
.hp-carousel.is-ready .hp-carousel-track { scrollbar-width: none; }
.hp-carousel.is-ready .hp-carousel-track::-webkit-scrollbar { display: none; }
.hp-carousel-track:focus-visible { outline: 3px solid var(--blue); outline-offset: 6px; }
.hp-carousel-track::before, .hp-carousel-track::after { content: ""; flex: 0 0 max(0px, calc((100% - var(--carousel-card-width)) / 2 - var(--carousel-gap))); }
.hp-slide { flex: 0 0 var(--carousel-card-width); min-width: 0; scroll-snap-align: center; scroll-snap-stop: always; transform-origin: center; transition: transform .3s, opacity .3s; }
.hp-carousel.is-ready .hp-slide:not(.is-current) { transform: scale(.94); }
.hp-carousel.is-ready .hp-carousel-track, .hp-carousel.is-ready .hp-slide-link { cursor: grab; }
.hp-carousel-track.is-dragging, .hp-carousel-track.is-dragging .hp-slide-link { cursor: grabbing; user-select: none; }
.hp-carousel-track.is-dragging { scroll-snap-type: none; }
.hp-carousel-track img { -webkit-user-drag: none; user-select: none; }
.hp-slide-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 18px;
  background: transparent;
}
.hp-slide-link:focus-visible { outline-offset: -3px; }
.hp-art { position: relative; display: grid; place-items: center; height: clamp(220px, 25vw, 340px); flex-shrink: 0; border-radius: 20px; overflow: hidden; isolation: isolate; }
.hp-art::before { content: ""; position: absolute; inset: 16px; border: 1px solid currentColor; opacity: .08; pointer-events: none; }
.hp-art-label, .hp-art-note { position: absolute; left: 30px; z-index: 1; font-size: 9px; letter-spacing: .12em; line-height: 1.6; font-weight: 600; }
.hp-art-label { top: 27px; }
.hp-art-note { bottom: 27px; }
.hp-paper-art { background: #f4efdf; color: #36554b; }
.hp-paper-logo { display: block; width: 62%; max-width: 390px; height: auto; }
.hp-vegan-art { background: #e9e8ef; color: #494359; }
.hp-window { position: relative; width: 170px; height: 160px; border: 1px solid #9690ae; background: #d4d0e2; border-radius: 6px; box-shadow: 13px 13px 0 #c4bfd330; transform: rotate(-8deg); }
.hp-window::before { content: ""; position: absolute; top: 29px; left: 0; right: 0; border-top: 1px solid #9690ae; }
.hp-window span { position: absolute; bottom: 24px; left: 25px; width: 25px; height: 43px; border: 1px solid #9690ae; border-radius: 3px; background: #b4adc7; }
.hp-window span:nth-child(2) { left: 71px; height: 73px; }
.hp-window span:nth-child(3) { left: 117px; height: 97px; }
.hp-douii-art { background: #e7f0ed; color: #355952; }
.hp-dialogue { position: relative; width: 220px; height: 154px; transform: rotate(-7deg); }
.hp-dialogue span { position: absolute; width: 139px; height: 99px; border: 1px solid #8fafa3; border-radius: 35px 35px 35px 4px; background: #bdd5cb; }
.hp-dialogue span:last-child { right: 0; bottom: 0; border-radius: 35px 35px 4px 35px; background: #e4eee1; }
.hp-garakuta-art { background: #e6ebf1; color: #344c65; }
.hp-deck { position: relative; width: 175px; height: 175px; }
.hp-deck span { position: absolute; top: 0; left: 0; width: 110px; height: 158px; border: 1px solid #7994ae; border-radius: 7px; background: #b7c8d8; transform: rotate(-20deg); }
.hp-deck span:nth-child(2) { left: 28px; top: -4px; background: #cad7e2; transform: rotate(-1deg); }
.hp-deck span:nth-child(3) { left: 56px; top: 13px; background: #dfe7ee; transform: rotate(18deg); }
.hp-deck span:last-child::after { content: ""; position: absolute; inset: 17px; border: 1px solid #a6b7c7; border-radius: 3px; }
.hp-slide-body { display: flex; flex-direction: column; min-width: 0; flex: 1; padding: 22px 10px 0; }
.hp-slide-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.hp-category { color: var(--blue-dark); font-size: 9px; font-weight: 600; letter-spacing: .1em; }
.hp-status { display: inline-block; padding: 6px 9px; border: 1px solid #d9e2ec; border-radius: 2px; color: #486077; background: #f7f9fc; font-size: 10px; line-height: 1.2; white-space: nowrap; }
.hp-status-live { color: #36554b; border-color: #c8ddd2; background: #edf6f0; }
.hp-slide-body h3 { font-size: clamp(25px, 2.3vw, 32px); font-weight: 600; line-height: 1.55; letter-spacing: -.04em; overflow-wrap: anywhere; }
.hp-working-title { display: inline-block; font-size: .48em; font-weight: 400; letter-spacing: 0; }
.home-products .hp-slide-body .hp-description { margin-top: 10px; font-size: 15px; line-height: 1.9; color: var(--text); }
.home-products .hp-slide-body .hp-note { margin-top: 8px; font-size: 13px; line-height: 1.9; }
.hp-slide-bottom { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: auto; padding-top: 16px; font-size: 13px; color: var(--muted); }
.hp-arrow { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 50%; color: var(--blue-dark); font-size: 21px; line-height: 1; transition: background .2s, color .2s; }
.hp-slide-link:hover .hp-arrow { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.hp-carousel-controls { display: flex; justify-content: center; align-items: center; gap: 24px; margin-top: 24px; }
.hp-carousel-controls[hidden] { display: none; }
.hp-carousel-dots { display: flex; gap: 4px; }
.hp-carousel-dot { display: grid; place-items: center; width: 32px; height: 44px; padding: 0; border: 0; border-radius: 3px; background: transparent; cursor: pointer; }
.hp-carousel-dot span { display: block; width: 9px; height: 9px; border-radius: 20px; background: #c9d1dd; transition: width .25s, background .25s; }
.hp-carousel-dot[aria-current="true"] span { width: 30px; background: var(--blue-dark); }
.hp-carousel-dot:hover span { background: var(--navy); }
.hp-carousel-arrow { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; border: 1px solid #becbdd; border-radius: 50%; background: transparent; color: var(--navy); font-size: 22px; cursor: pointer; transition: background .2s, color .2s; }
.hp-carousel-arrow:hover:not(:disabled) { background: var(--navy); color: white; border-color: var(--navy); }
.hp-carousel-arrow:disabled { opacity: .32; cursor: default; }
.hp-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* Business cards put the name first and keep supporting imagery compact. */
.business.section { --home-gutter: var(--space); padding: 64px 0 56px; }
.business > .section-meta { margin: 0 var(--home-gutter) 30px; }
.business > .section-heading { margin: 0 var(--home-gutter) 30px; }
.bc-carousel { --carousel-card-width: min(74%, 420px); }
.bc-card { height: 100%; background: white; padding: 22px; border-radius: 16px; }
.bc-card-heading { margin-bottom: 16px; }
.bc-card-heading .eyebrow { color: var(--blue-dark); font-size: 9px; letter-spacing: .09em; }
.bc-card-heading h3 { font-size: 23px; letter-spacing: -.035em; margin-top: 6px; line-height: 1.4; }
.bc-art { display: flex; align-items: center; justify-content: center; height: 165px; overflow: hidden; border-radius: 7px; background: #d2e7fa; }
/* Keep the illustration's original tint separate from the matching side fill. */
.bc-art picture { display: block; flex: 0 0 auto; height: 100%; aspect-ratio: 3 / 2; max-width: 100%; background: #eaf3fc; isolation: isolate; }
.bc-art img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.bc-description { color: var(--muted); font-size: 14px; line-height: 1.9; margin-top: 16px; }
@media (min-width: 761px) {
  /* Align every selected card with its heading, including the last card. */
  .hp-carousel-track { scroll-padding-inline-start: var(--home-gutter); }
  .hp-carousel-track::before { flex-basis: max(0px, calc(var(--home-gutter) - var(--carousel-gap))); }
  .hp-carousel-track::after { flex-basis: max(0px, calc(100% - var(--home-gutter) - var(--carousel-card-width) - var(--carousel-gap))); }
  .hp-slide { scroll-snap-align: start; transform-origin: left center; }
}
@media (min-width: 1600px) {
  .home-products.product-teaser, .business.section { --home-gutter: max(var(--space), calc((100vw - 1400px) / 2)); }
}
@media (max-width: 1000px) {
  .hp-heading { align-items: flex-start; }
  .hp-heading h2 { max-width: 400px; line-height: 1.7; }
  .hp-heading > .text-link { margin-top: 28px; font-size: 13px; gap: 24px; }
}
@media (max-width: 760px) {
  .home-products.product-teaser { padding-top: 42px; padding-bottom: 38px; }
  .hp-heading { display: block; margin-bottom: 24px; }
  .home-products .hp-heading h2 { font-size: 23px; line-height: 1.65; }
  .home-products .hp-heading > div > p:not(.eyebrow) { font-size: 16px; }
  .home-products .hp-heading > .text-link { margin-top: 18px; width: max-content; font-size: 15px; }
  .hp-carousel { --carousel-gap: 16px; }
  .hp-art { height: clamp(165px, 46vw, 260px); border-radius: 16px; }
  .hp-art::before { inset: 12px; }
  .hp-art-label, .hp-art-note { left: 22px; font-size: 7px; }
  .hp-art-label { top: 20px; }
  .hp-art-note { bottom: 18px; }
  .hp-paper-logo { width: 74%; max-width: 290px; max-height: 110px; object-fit: contain; }
  .hp-window { transform: scale(.6) rotate(-8deg); }
  .hp-dialogue { transform: scale(.6) rotate(-7deg); }
  .hp-deck { transform: scale(.6); }
  .hp-slide-body { padding: 18px 4px 0; }
  .hp-slide-meta { margin-bottom: 12px; gap: 6px; }
  .hp-category { font-size: 8px; }
  .hp-status { font-size: 9px; padding: 5px 7px; }
  .hp-slide-body h3 { font-size: 23px; }
  .home-products .hp-slide-body .hp-description { font-size: 16px; margin-top: 9px; }
  .home-products .hp-slide-body .hp-note { font-size: 15px; margin-top: 8px; }
  .hp-slide-bottom { font-size: 15px; padding-top: 14px; }
  .hp-carousel-controls { gap: 20px; margin-top: 16px; }
  .hp-carousel-dots { gap: 0; }
  .hp-carousel-arrow { width: 44px; height: 44px; }
  .business.section { padding-top: 42px; padding-bottom: 36px; }
  .business > .section-meta { margin-bottom: 26px; }
  .business > .section-heading { margin-bottom: 24px; }
  .business .section-heading h2 { font-size: 25px; }
  .business .section-heading p { font-size: 16px; margin-top: 12px; }
  .bc-card { padding: 16px; border-radius: 12px; }
  .bc-card-heading { margin-bottom: 12px; }
  .bc-card-heading .eyebrow { font-size: 8px; }
  .bc-card-heading h3 { font-size: 20px; margin-top: 4px; }
  .bc-art { height: 130px; }
  .bc-description { font-size: 16px; line-height: 1.85; margin-top: 12px; }
}
@media (max-width: 380px) {
  .hp-slide-body h3 { font-size: 21px; }
  .hp-carousel-controls { gap: 12px; }
  .bc-card { padding: 14px; }
  .bc-card-heading h3 { font-size: 19px; }
  .bc-art { height: 120px; }
}
