/* Section layouts, grouped by the page that introduces them. Later pages reuse earlier blocks. */

/* ---------- Generic layout helpers ---------- */
.split {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .split--wide-left {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  }
  .split--wide-right {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  }
}
.stack > * + * {
  margin-top: 1.25rem;
}
.frame {
  border-radius: var(--radius-l);
  overflow: hidden;
  position: relative;
}
.frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.frame--tall {
  aspect-ratio: 4/5;
}
.frame--wide {
  aspect-ratio: 16/10;
}
.frame--square {
  aspect-ratio: 1;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.section-head {
  display: grid;
  gap: 1.25rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}
@media (min-width: 900px) {
  .section-head--row {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: end;
  }
}
.caption {
  font-style: italic;
  font-size: var(--step--1);
  margin-top: 0.75rem;
}

/* image trailing the pointer over lists */
.follow-img {
  position: fixed;
  left: 0;
  top: 0;
  width: 260px;
  aspect-ratio: 4/5;
  margin: -170px 0 0 30px;
  border-radius: var(--radius-m);
  overflow: hidden;
  pointer-events: none;
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.4);
  box-shadow: 0 30px 60px -20px rgba(43, 26, 18, 0.5);
}
.follow-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Home: hero ---------- */
.home-hero {
  position: relative;
  height: 100svh;
  background: var(--leaf);
  color: var(--on-dark);
  overflow: hidden;
}
.home-hero__hut {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 1;
}
.home-hero__hut img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.3);
}
.home-hero__hut::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 12, 8, 0.1), rgba(20, 12, 8, 0.55));
}
.home-hero__title {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  align-content: center;
  pointer-events: none;
  font-size: clamp(3.4rem, 1rem + 11vw, 13rem);
  line-height: 0.86;
  letter-spacing: -0.055em;
  font-weight: 800;
  font-variation-settings: 'wdth' 75;
  padding-inline: var(--gutter);
}
.home-hero__line {
  display: block;
  overflow: hidden;
  padding-block: 0.04em;
}
.home-hero__line > span {
  display: inline-block;
}
.home-hero__line--b {
  text-align: right;
}
.home-hero__line em {
  font-family: var(--font-body);
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.03em;
  color: var(--bamboo);
}
.home-hero__meta {
  position: absolute;
  z-index: 3;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  justify-content: space-between;
  align-items: end;
}
.home-hero__meta p {
  margin: 0;
  max-width: 34ch;
  font-size: var(--step-0);
}
.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-style: italic;
}
.scroll-cue i {
  width: 1px;
  height: 46px;
  background: currentColor;
  position: relative;
  overflow: hidden;
}
.scroll-cue i::after {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--kalamansi);
  animation: cue 2s var(--ease-in-out) infinite;
}
@keyframes cue {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(100%);
  }
}
.home-hero__over {
  position: absolute;
  z-index: 3;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(2rem, 8vw, 6rem);
  visibility: hidden;
  display: grid;
  gap: 1.25rem;
  max-width: 900px;
}
.home-hero__over h2 {
  font-size: var(--step-4);
}

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  padding-block: clamp(1.5rem, 3vw, 2.5rem);
  border-block: 1px solid color-mix(in srgb, currentColor 18%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  align-items: center;
}
.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
  padding-right: clamp(1rem, 2vw, 2rem);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 1.6rem + 5vw, 7rem);
  letter-spacing: -0.04em;
  line-height: 1;
  font-variation-settings: 'wdth' 78;
  white-space: nowrap;
}
.marquee__item em {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.4em;
  letter-spacing: 0;
  color: var(--ink-muted);
}
.marquee__item img {
  width: clamp(80px, 9vw, 140px);
  height: clamp(56px, 6vw, 92px);
  object-fit: cover;
  border-radius: 999px;
}
.bean-sep {
  width: 0.5em;
  height: 0.5em;
  flex: none;
}

/* ---------- Scrub paragraph ---------- */
.statement {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 1.1rem + 2.8vw, 3.9rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 24ch;
  font-variation-settings: 'wdth' 85;
}

/* ---------- Sticky swap (services) ---------- */
.swap {
  display: grid;
  gap: 2rem;
}
@media (min-width: 900px) {
  .swap {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 5rem;
  }
}
.swap-media {
  position: sticky;
  top: 12vh;
  height: 76vh;
  border-radius: var(--radius-l);
  overflow: hidden;
  display: none;
}
@media (min-width: 900px) {
  .swap-media {
    display: block;
  }
}
.swap-media figure {
  position: absolute;
  inset: 0;
  margin: 0;
}
.swap-media figure:first-child {
  z-index: 2;
}
.swap-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.swap-item {
  min-height: 70vh;
  display: grid;
  align-content: center;
  gap: 1rem;
  opacity: 0.35;
  transition: opacity 0.6s var(--ease-out);
}
.swap-item.is-active {
  opacity: 1;
}
.swap-item .frame {
  display: block;
}
@media (min-width: 900px) {
  .swap-item .frame {
    display: none;
  }
}
@media (max-width: 899px) {
  .swap-item {
    opacity: 1;
    min-height: 0;
    padding-block: 2rem;
  }
}

/* ---------- Menu rows (home teaser + menu page) ---------- */
.menu-list {
  border-top: 1px solid color-mix(in srgb, currentColor 22%, transparent);
}
.menu-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.25rem 1.5rem;
  align-items: baseline;
  padding: 1.25rem 0.25rem;
  border-bottom: 1px solid color-mix(in srgb, currentColor 22%, transparent);
  position: relative;
  transition:
    padding 0.5s var(--ease-out),
    color 0.3s;
}
.menu-row::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--wood);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.5s var(--ease-out);
  z-index: -1;
}
.menu-row:hover {
  color: var(--abaka);
  padding-inline: 1.25rem;
}
.menu-row:hover::before {
  transform: scaleY(1);
}
.menu-row:hover .menu-row__desc,
.menu-row:hover .menu-row__temp {
  color: var(--on-dark-muted);
}
.menu-list {
  isolation: isolate;
}
.menu-row__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-2);
  letter-spacing: -0.03em;
  line-height: 1.05;
  font-variation-settings: 'wdth' 82;
}
.menu-row__price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--step-1);
  font-variant-numeric: tabular-nums;
}
.menu-row__desc {
  grid-column: 1 / -1;
  color: var(--ink-muted);
  font-style: italic;
  margin: 0;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.menu-row__temp {
  display: inline-block;
  font-style: normal;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.1rem 0.6rem;
  border-radius: 999px;
  border: 1px solid currentColor;
}
.menu-group__title {
  font-size: var(--step-3);
  padding: 3rem 0 1rem;
}

/* ---------- Horizontal journey ---------- */
.journey {
  background: var(--wood);
  color: var(--on-dark);
  overflow: hidden;
}
.journey .muted {
  color: var(--on-dark-muted);
}
.journey .kicker {
  color: var(--bamboo);
}
.journey__intro {
  padding: clamp(4rem, 8vw, 7rem) var(--gutter) 2rem;
}
.h-track {
  display: flex;
  gap: clamp(1rem, 2vw, 2rem);
  padding: 0 var(--gutter) clamp(3rem, 6vw, 5rem);
  flex-direction: column;
}
@media (min-width: 900px) {
  .h-track {
    flex-direction: row;
    width: max-content;
    height: 100svh;
    align-items: center;
    padding-bottom: 0;
  }
  [data-horizontal] .journey .muted {
  color: var(--on-dark-muted);
}
.journey .kicker {
  color: var(--bamboo);
}
.journey__intro {
    display: none;
  }
}
.h-panel {
  flex: none;
  display: grid;
  gap: 1.25rem;
  width: 100%;
}
@media (min-width: 900px) {
  .h-panel {
    width: min(72vw, 820px);
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    align-items: end;
  }
  .h-panel--title {
    width: min(60vw, 640px);
    grid-template-columns: minmax(0, 1fr);
  }
}
.h-panel .frame {
  aspect-ratio: 3/4;
  max-height: 70vh;
}
.h-panel .frame img {
  width: 120%;
  max-width: none;
  margin-left: -10%;
}
.h-panel__num {
  font-family: var(--font-display);
  font-size: var(--step-4);
  font-weight: 800;
  color: var(--bamboo);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.h-progress {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 2rem;
  height: 2px;
  background: rgba(239, 231, 214, 0.15);
  display: none;
}
@media (min-width: 900px) {
  .h-progress {
    display: block;
  }
}
.h-progress span {
  display: block;
  height: 100%;
  background: var(--kalamansi);
  transform-origin: left;
  transform: scaleX(0);
}
[data-horizontal] {
  position: relative;
}

/* ---------- Chessboard + countdown ---------- */
.board {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  aspect-ratio: 1;
  width: min(100%, 520px);
  border-radius: var(--radius-m);
  overflow: hidden;
  perspective: 800px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6);
  position: relative;
}
.board__tile {
  background: #d9c08a;
  position: relative;
}
.board__tile.is-dark {
  background: #6b4a2f;
}
.board__piece {
  position: absolute;
  inset: 12%;
  display: grid;
  place-items: center;
  font-size: clamp(1.4rem, 4vw, 2.6rem);
  line-height: 1;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: var(--wood);
  filter: drop-shadow(0 4px 3px rgba(0, 0, 0, 0.35));
}
.board__piece.is-light {
  color: #fff8ea;
}
.board__tile.is-scrabble {
  background: #efe0bd;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--wood);
  font-size: clamp(0.9rem, 2.4vw, 1.4rem);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.15);
}
.countdown {
  display: flex;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  margin-block: 1.5rem;
}
.countdown div {
  display: grid;
  justify-items: start;
}
.countdown strong {
  font-family: var(--font-display);
  font-size: var(--step-4);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  display: block;
}
.countdown strong span {
  display: inline-block;
}
.countdown small {
  font-style: italic;
  color: var(--on-dark-muted);
}
.perk-list {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
  display: grid;
  gap: 0.9rem;
}
.perk-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
}
.perk-list svg {
  margin-top: 0.25rem;
  color: var(--bamboo-deep);
}
.section--wood .perk-list svg,
.section--leaf .perk-list svg {
  color: var(--kalamansi);
}

/* ---------- Crew fan (home) ---------- */
.crew-fan {
  display: flex;
  justify-content: center;
  padding-block: 2rem 1rem;
}
.crew-fan__card {
  width: clamp(120px, 20vw, 250px);
  aspect-ratio: 3/4;
  border-radius: var(--radius-m);
  overflow: hidden;
  margin-inline: clamp(-34px, -2.5vw, -14px);
  box-shadow: 0 25px 50px -20px rgba(43, 26, 18, 0.55);
  border: 5px solid var(--abaka);
  position: relative;
  text-decoration: none;
}
.crew-fan__card:hover {
  z-index: 5;
}
.crew-fan__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.crew-fan__card span {
  position: absolute;
  left: 0.75rem;
  bottom: 0.6rem;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

/* ---------- CTA ---------- */
.cta {
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 2rem;
}
.cta h2 {
  font-size: var(--step-5);
  max-width: 12ch;
}

/* ---------- Menu page ---------- */
.menu-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 5;
  padding-block: 1rem;
  background: var(--abaka);
}
.tabs {
  display: flex;
  gap: 0.25rem;
  position: relative;
  padding: 0.3rem;
  border-radius: 999px;
  background: var(--abaka-2);
  overflow-x: auto;
  scrollbar-width: none;
  max-width: 100%;
}
.tabs__pill {
  position: absolute;
  left: 0;
  top: 0.3rem;
  bottom: 0.3rem;
  border-radius: 999px;
  background: var(--wood);
  width: 0;
}
.tab {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
  min-height: 44px;
  font-family: var(--font-display);
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.35s;
}
.tab[aria-selected='true'] {
  color: var(--abaka);
}
.temp-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  border: 0;
  background: transparent;
  font-family: var(--font-display);
  font-weight: 600;
  min-height: 44px;
}
.temp-switch__track {
  width: 64px;
  height: 34px;
  border-radius: 999px;
  background: #b9552e;
  position: relative;
  transition: background-color 0.5s;
}
.temp-switch__track::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #fff8ea;
  transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.temp-switch[aria-checked='true'] .temp-switch__track {
  background: #4f7f9a;
}
.temp-switch[aria-checked='true'] .temp-switch__track::after {
  transform: translateX(30px);
}
.menu-note {
  margin-top: 2rem;
  padding: 1.5rem;
  border-radius: var(--radius-m);
  background: var(--abaka-2);
  font-style: italic;
}

/* ---------- Story page ---------- */
.timeline {
  position: relative;
  display: grid;
  gap: clamp(3rem, 8vw, 7rem);
  padding-block: 2rem;
}
.timeline__line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 60px;
  transform: translateX(-50%);
  display: none;
}
@media (min-width: 900px) {
  .timeline__line {
    display: block;
  }
}
.timeline__line path {
  stroke: var(--bamboo-deep);
  stroke-width: 2;
  fill: none;
}
.timeline__item {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 900px) {
  .timeline__item {
    width: 44%;
  }
  .timeline__item.is-right {
    margin-left: auto;
  }
}
.timeline__year {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--step-3);
  color: var(--bamboo-deep);
  line-height: 1;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.5rem, 1.5vw, 1.25rem);
  height: clamp(420px, 90vh, 900px);
  overflow: hidden;
}
.gallery__col {
  display: grid;
  gap: inherit;
  align-content: start;
}
.gallery__col .frame {
  aspect-ratio: 3/4;
  border-radius: var(--radius-m);
}
.quote {
  font-family: var(--font-body);
  font-style: italic;
  font-size: var(--step-3);
  line-height: 1.15;
  max-width: 24ch;
  margin: 0;
}
.quote footer {
  font-family: var(--font-display);
  font-style: normal;
  font-size: var(--step-0);
  margin-top: 1.5rem;
}

/* ---------- Team page ---------- */
.owner {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
@media (min-width: 900px) {
  .owner {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
}
.owner__portrait {
  aspect-ratio: 3/4;
  border-radius: var(--radius-l);
  overflow: hidden;
}
.owner__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.role {
  font-style: italic;
  color: var(--bamboo-deep);
  font-size: var(--step-1);
}
.crew {
  display: grid;
  gap: clamp(1.25rem, 3vw, 2rem);
}
@media (min-width: 760px) {
  .crew {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.flip-card {
  perspective: 1400px;
}
.flip-card__inner {
  position: relative;
  transform-style: preserve-3d;
  min-height: 600px;
}
.flip-card__face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-l);
  overflow: hidden;
  display: grid;
}
.flip-card__front {
  grid-template-rows: 1fr auto;
  background: var(--abaka-2);
}
.flip-card__front .frame {
  border-radius: 0;
  height: 100%;
  min-height: 0;
}
.flip-card__body {
  padding: 1.25rem 1.4rem 1.4rem;
  display: grid;
  gap: 0.4rem;
}
.flip-card__back {
  transform: rotateY(180deg);
  background: var(--leaf);
  color: var(--on-dark);
  padding: 1.8rem;
  align-content: space-between;
}
.flip-card__toggle,
.flip-card__back-btn {
  justify-self: start;
  margin-top: 0.5rem;
}
.glare {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.28), transparent 50%);
  mix-blend-mode: soft-light;
  z-index: 2;
}
[data-tilt] {
  transform-style: preserve-3d;
  will-change: transform;
}

/* ---------- Sourcing page ---------- */
.route-map {
  width: 100%;
  height: auto;
  overflow: visible;
}
.route-map .route {
  fill: none;
  stroke: var(--kalamansi);
  stroke-width: 2.5;
  stroke-linecap: round;
}
.route-map .node circle {
  fill: var(--bamboo);
}
.route-map .home-node circle {
  fill: var(--kalamansi);
}
.route-map text {
  fill: var(--on-dark);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
}
.route-map .route-label text {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 400;
  font-size: 15px;
  fill: var(--on-dark-muted);
}
.origins {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 900px) {
  .origins {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.origin {
  display: grid;
  gap: 0.75rem;
  align-content: start;
}
.origin .frame {
  aspect-ratio: 4/3;
}
.origin dl {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.25rem 1rem;
  margin: 0;
  font-size: var(--step--1);
}
.origin dt {
  font-family: var(--font-display);
  font-weight: 600;
}
.origin dd {
  margin: 0;
  font-style: italic;
}
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-5);
  line-height: 0.9;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.chain {
  display: grid;
  gap: 0.75rem;
}
@media (min-width: 900px) {
  .chain {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}
.chain__step {
  position: relative;
  padding: 1.25rem;
  border-radius: var(--radius-m);
  background: var(--abaka);
  font-family: var(--font-display);
  font-weight: 600;
  min-height: 110px;
  display: grid;
  align-content: space-between;
}
.chain__step small {
  font-family: var(--font-body);
  font-weight: 400;
  font-style: italic;
  color: var(--ink-muted);
}
.chain__strike {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 50%;
  height: 3px;
  background: var(--danger);
  transform-origin: left;
}

/* ---------- Roastery page ---------- */
.roast-pin {
  min-height: 100svh;
  background: var(--wood);
  color: var(--on-dark);
  display: grid;
  align-items: center;
  padding: 6rem var(--gutter) 3rem;
  overflow: hidden;
}
.roast-pin__grid {
  width: min(100%, var(--max));
  margin-inline: auto;
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 900px) {
  .roast-pin__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}
.roast-bean {
  width: min(70vw, 420px);
  justify-self: center;
  position: relative;
}
.roast-bean svg {
  width: 100%;
  height: auto;
  overflow: visible;
}
.roast-bean__shape {
  fill: #7f9a5a;
  transition: fill 0.2s;
}
.wisp {
  position: absolute;
  left: 50%;
  top: 10%;
  width: 40px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(239, 231, 214, 0.28), transparent);
  filter: blur(6px);
}
.wisp:nth-child(2) {
  left: 38%;
}
.wisp:nth-child(3) {
  left: 60%;
}
.roast-stage__temp {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--step-5);
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
  color: var(--bamboo);
}
.roast-stage__label {
  font-size: var(--step-3);
  display: block;
}
.roast-stage__note {
  font-style: italic;
  font-size: var(--step-1);
  color: var(--on-dark-muted);
  min-height: 3em;
}
.roast-steps {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}
.roast-steps li {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(239, 231, 214, 0.18);
  transition: background-color 0.4s;
}
.roast-steps li.is-active {
  background: var(--kalamansi);
}
.bags {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 900px) {
  .bags {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.bag {
  border-radius: var(--radius-l);
  padding: 1.75rem;
  display: grid;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  color: var(--on-dark);
  min-height: 420px;
  align-content: end;
  isolation: isolate;
}
.bag::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--bag-color, var(--leaf));
  z-index: -2;
}
.bag img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  opacity: 0.35;
  mix-blend-mode: luminosity;
  transition:
    transform 1.2s var(--ease-out),
    opacity 0.6s;
}
.bag:hover img {
  transform: scale(1.08);
  opacity: 0.5;
}
.bag__notes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.bag__notes span {
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(239, 231, 214, 0.4);
  font-size: var(--step--1);
}

/* ---------- Visit page ---------- */
.map-embed {
  border-radius: var(--radius-l);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--abaka-2);
}
.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: sepia(0.35) saturate(0.85);
}
.hours {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.4rem 2rem;
  margin: 0;
}
.hours dt {
  font-family: var(--font-display);
  font-weight: 600;
}
.hours dd {
  margin: 0;
}
.service-cards {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 900px) {
  .service-cards {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}
.service-card {
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--abaka-2);
  display: grid;
  transition: transform 0.6s var(--ease-out);
}
.service-card:hover {
  transform: translateY(-6px);
}
.service-card .frame {
  border-radius: 0;
  aspect-ratio: 16/10;
}
.service-card .frame img {
  transition: transform 1.2s var(--ease-out);
}
.service-card:hover .frame img {
  transform: scale(1.06);
}
.service-card__body {
  padding: 1.75rem;
  display: grid;
  gap: 0.6rem;
}
.day {
  display: grid;
  gap: 2rem;
}
@media (min-width: 900px) {
  .day {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  }
}
.day-clock {
  position: sticky;
  top: 18vh;
  width: min(100%, 380px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid var(--bamboo);
  display: none;
}
@media (min-width: 900px) {
  .day-clock {
    display: block;
  }
}
.day-clock::before {
  content: '';
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  border: 1px dashed rgba(239, 231, 214, 0.25);
}
.day-clock__hand {
  position: absolute;
  left: 50%;
  top: 12%;
  bottom: 50%;
  width: 4px;
  margin-left: -2px;
  background: var(--kalamansi);
  border-radius: 2px;
  transform-origin: bottom center;
}
.day-clock__hub {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  margin: -9px;
  border-radius: 50%;
  background: var(--kalamansi);
}
.day-clock span {
  position: absolute;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--on-dark-muted);
}
.day__list {
  display: grid;
  gap: 1rem;
}
.day__item {
  padding: 1.5rem;
  border-radius: var(--radius-m);
  border: 1px solid rgba(239, 231, 214, 0.15);
  opacity: 0.45;
  transition:
    opacity 0.5s,
    background-color 0.5s,
    transform 0.6s var(--ease-out);
}
.day__item.is-active {
  opacity: 1;
  background: rgba(239, 231, 214, 0.06);
  transform: translateX(10px);
}
.day__item time {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step-2);
  color: var(--bamboo);
}
@media (max-width: 899px) {
  .day__item {
    opacity: 1;
  }
}

/* ---------- Reserve page ---------- */
.reserve {
  display: grid;
  min-height: 100svh;
}
@media (min-width: 1000px) {
  .reserve {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  }
}
.reserve__aside {
  position: relative;
  overflow: hidden;
  min-height: 46svh;
  color: var(--on-dark);
  display: grid;
  align-items: end;
  padding: 7rem var(--gutter) 2.5rem;
  isolation: isolate;
}
@media (min-width: 1000px) {
  .reserve__aside {
    position: sticky;
    top: 0;
    height: 100svh;
  }
}
.reserve__aside img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}
.reserve__aside::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(20, 12, 8, 0.1), rgba(20, 12, 8, 0.8));
}
.reserve__main {
  padding: clamp(3rem, 8vw, 8rem) var(--gutter);
  display: grid;
  align-content: center;
}
.steps {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.steps__bar {
  height: 4px;
  border-radius: 2px;
  background: var(--abaka-2);
  overflow: hidden;
}
.steps__bar span {
  display: block;
  height: 100%;
  background: var(--wood);
  transform-origin: left;
  transform: scaleX(0.333);
  transition: transform 0.7s var(--ease-out);
}
.steps__label {
  font-style: italic;
  color: var(--ink-muted);
}
.step-nav {
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* ---------- Contact page ---------- */
.faq {
  border-top: 1px solid rgba(43, 26, 18, 0.2);
}
.faq__item {
  border-bottom: 1px solid rgba(43, 26, 18, 0.2);
}
.faq__item h3 {
  font-size: var(--step-1);
}
.faq__item button {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.4rem 0;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  min-height: 44px;
}
.faq__item button:hover {
  color: var(--bamboo-deep);
}
.faq__icon {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid currentColor;
  display: grid;
  place-items: center;
}
.faq__panel {
  overflow: hidden;
}
.faq__panel p {
  padding-bottom: 1.4rem;
}
.contact-cards {
  display: grid;
  gap: 1rem;
}
.contact-card {
  padding: 1.5rem;
  border-radius: var(--radius-m);
  background: var(--abaka-2);
  display: grid;
  gap: 0.3rem;
  text-decoration: none;
  transition:
    background-color 0.4s,
    color 0.4s,
    transform 0.5s var(--ease-out);
}
a.contact-card:hover {
  background: var(--wood);
  color: var(--abaka);
  transform: translateY(-4px);
}
.contact-card strong {
  font-family: var(--font-display);
  font-size: var(--step-1);
}

/* ---------- Utility pages ---------- */
.center-page {
  min-height: 100svh;
  display: grid;
  place-content: center;
  text-align: center;
  gap: 1.5rem;
  padding: 7rem var(--gutter) 4rem;
  justify-items: center;
}
.center-page h1 {
  font-size: var(--step-5);
}
.flip-card__back .muted {
  color: var(--on-dark-muted);
}
