/* Kopi Jam Tujuh · sample kopitiam site
   Cream paper and marble, kopi brown, enamel green from the cup band, one chilli
   red for sambal. Rooms: cream shopfront, dark kopi story, cream menu under an
   awning, cream shop, green reviews, dark close. Phone first. */

:root {
  --cream: #F5ECDA;
  --cream-2: #EFE3CC;
  --paper: #FBF6EA;
  --kopi: #2A190F;
  --kopi-2: #3A2416;
  --kopi-ink: #3A2416;
  --kopi-mid: #6B4429;
  --crema: #D9AE78;
  --green: #2A6648;
  --green-deep: #1E4B35;
  --green-board: #1F4A36;
  --chilli: #C4381F;
  --soft-cream: #6A523D;   /* body copy on cream: 6.6:1 */
  --soft-dark: #D9C6A8;    /* body copy on kopi: 10:1 */
  --display: "Rozha One", "Abril Fatface", Georgia, serif;
  --text: "Karla", system-ui, -apple-system, "Segoe UI", sans-serif;
  --zh: "Noto Serif SC", "Songti SC", "SimSun", serif;
  --gut: clamp(16px, 4.4vw, 64px);
  --max: 1280px;
  --bar-h: 60px;
  --marble: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1000' height='1000'%3E%3Cfilter id='m' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.003 .009' numOctaves='4' seed='5' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 .45 0 0 0 0 .38 0 0 0 0 .3 1.4 0 0 0 -.2'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='table' tableValues='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .08 .26 .08 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='1000' height='1000' filter='url(%23m)'/%3E%3C/svg%3E");
  --mosaic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Crect width='32' height='32' fill='%23EFE3CC'/%3E%3Cpath d='M16 6l10 10-10 10L6 16z' fill='%232A6648'/%3E%3Ccircle cx='16' cy='16' r='3.2' fill='%23EFE3CC'/%3E%3Cpath d='M0 0h5v5H0zM27 0h5v5h-5zM0 27h5v5H0zM27 27h5v5h-5z' fill='%236B4429'/%3E%3Cpath d='M0 15.5h3M29 15.5h3M15.5 0v3M15.5 29v3' stroke='%232A6648' stroke-width='1.4'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--cream); color: var(--kopi-ink);
  font-family: var(--text); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); position: relative; }
#stage { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 5; pointer-events: none; }

/* ---------- small parts */
.kicker {
  font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--crema); display: flex; align-items: center; gap: 10px;
}
.kicker::before { content: ""; width: 22px; height: 2px; background: currentColor; flex: none; }
.kicker--ink { color: var(--green); }
.kicker--chip::before { display: none; }
.kicker--chip { display: inline-flex; border: 1.5px solid currentColor; border-radius: 99px; padding: 5px 12px; color: var(--crema); }
.display {
  font-family: var(--display); font-weight: 400; font-size: clamp(38px, 6vw, 84px);
  line-height: 1.02; letter-spacing: -.005em; margin-top: 14px; color: var(--cream);
}
.display--ink { color: var(--kopi-ink); }
.muted { color: var(--soft-cream); font-size: 15px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none;
  font-family: var(--text); font-weight: 800; font-size: 16px; letter-spacing: .01em;
  min-height: 50px; padding: 12px 22px; border-radius: 99px; border: 2px solid transparent;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { min-height: 44px; padding: 8px 16px; font-size: 14px; }
.btn--green { background: var(--green); color: #FBF6EA; box-shadow: 0 6px 0 -1px var(--green-deep), 0 10px 22px -10px rgba(30, 75, 53, .6); }
.btn--green:hover { background: #2F7352; }
.btn--line { border-color: var(--kopi-ink); color: var(--kopi-ink); background: transparent; }
.btn--line:hover { background: rgba(58, 36, 22, .06); }
.btn--cream { background: var(--cream); color: var(--kopi); box-shadow: 0 6px 0 -1px #C9B08A; }
.btn--ghost { border-color: rgba(245, 236, 218, .55); color: var(--cream); }
.btn--ghost:hover { border-color: var(--cream); }
.ico { width: 20px; height: 20px; flex: none; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--crema); outline-offset: 3px; }

/* ---------- sample strip and bar */
.strip {
  display: block; position: relative; z-index: 21; text-align: center; text-decoration: none;
  background: var(--kopi); color: #EADBC0; font-size: 13px; line-height: 1.35; padding: 9px var(--gut);
}
.strip:hover { text-decoration: underline; }
.bar {
  position: sticky; top: 0; z-index: 20; height: var(--bar-h);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 0 var(--gut); background: var(--cream);
}
.bar::after { /* awning scallops */
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 11px; pointer-events: none;
  background: radial-gradient(circle at 50% 0, var(--green) 9px, transparent 9.6px) 0 0 / 22px 11px repeat-x;
  filter: drop-shadow(0 3px 3px rgba(42, 25, 15, .12));
}
.bar__mark { text-decoration: none; display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.bar__mark b { font-family: var(--display); font-weight: 400; font-size: 22px; line-height: 1; white-space: nowrap; }
.bar__mark span { font-family: var(--zh); font-weight: 700; font-size: 13px; color: var(--green); letter-spacing: .08em; white-space: nowrap; }
.bar__links { display: none; }
.bar .short { display: inline; }
.bar .long { display: none; }
.bar__mark b { font-size: 20px; }
.bar__mark span { display: none; }

/* ---------- hero: signboard over a shopfront */
.hero { position: relative; padding: 18px 0 0; background: var(--cream); background-image: var(--marble); background-size: 1000px; }
.sign {
  position: relative; margin: 0; border-radius: 16px; padding: 16px 14px 14px;
  background: linear-gradient(180deg, #2C6A4B 0%, #235A40 48%, #1C4B35 100%);
  color: #F6EAD0; text-align: center; font-weight: 400;
  box-shadow: inset 0 0 0 3px #1A4431, inset 0 0 0 6px #E9D9B8, inset 0 0 0 8px #1A4431, 0 16px 30px -18px rgba(42, 25, 15, .7);
  display: grid; justify-items: center; gap: 2px;
}
.sign::before { /* enamel sheen */
  content: ""; position: absolute; inset: 8px; border-radius: 10px; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, .14) 0%, rgba(255, 255, 255, 0) 28%, rgba(255, 255, 255, 0) 70%, rgba(255, 255, 255, .06) 100%);
}
.sign__zh { font-family: var(--zh); font-weight: 700; font-size: 15px; letter-spacing: .4em; padding-left: .4em; color: var(--crema); }
.sign__name { font-family: var(--display); font-size: clamp(38px, 11.6vw, 156px); line-height: .98; letter-spacing: -.01em; text-shadow: 0 2px 0 #143826; }
.sign__est { font-size: 12px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: #E9D9B8; display: flex; align-items: center; gap: 10px; }
.sign__est i { width: 6px; height: 6px; border-radius: 50%; background: var(--chilli); }

.shop { display: grid; grid-template-columns: minmax(0, 1fr) 40%; gap: 16px 14px; margin-top: 18px; align-items: start; }
.shop__copy { display: contents; }
.shop__line { grid-column: 1; grid-row: 1; font-size: 17px; line-height: 1.5; color: var(--kopi-ink); }
.chip {
  grid-column: 1 / -1; grid-row: 2; justify-self: start;
  display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; line-height: 1.3;
  background: var(--paper); border: 1.5px solid rgba(58, 36, 22, .18); border-radius: 14px; padding: 9px 14px 9px 12px;
}
.chip__dot { width: 10px; height: 10px; border-radius: 50%; background: #3B9A6A; box-shadow: 0 0 0 4px rgba(59, 154, 106, .2); flex: none; }
.shop__cta { grid-column: 1 / -1; grid-row: 3; display: flex; flex-wrap: wrap; gap: 12px; }
.shop__cta { gap: 10px; }
.shop__cta .btn { flex: 1 1 auto; padding: 12px 13px; font-size: 15px; gap: 8px; }

.clock { grid-column: 2; grid-row: 1; position: relative; width: 100%; aspect-ratio: 1; align-self: center; margin-top: 4px; }
.clock__face { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 10px 14px rgba(42, 25, 15, .28)); }
.clock__min { transform-origin: 100px 100px; transform: rotate(var(--clock-min, 0deg)); transform-box: view-box; }
.clock__hour { transform-origin: 100px 100px; transform: rotate(var(--clock-hour, 0deg)); transform-box: view-box; }

.shop__photo { grid-column: 1 / -1; grid-row: 4; position: relative; margin-top: 4px; }
.shop__photo img {
  width: 100%; aspect-ratio: 16 / 11; object-fit: cover; object-position: 50% 62%;
  border-radius: 160px 160px 18px 18px; border: 6px solid var(--paper);
  box-shadow: 0 0 0 1.5px rgba(42, 102, 72, .5), 0 26px 40px -26px rgba(42, 25, 15, .65);
}
.tag {
  position: absolute; left: 14px; bottom: 14px; max-width: calc(100% - 28px);
  background: var(--paper); color: var(--kopi-ink); border-radius: 12px; padding: 8px 12px;
  font-size: 14px; font-weight: 700; line-height: 1.3; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px;
  box-shadow: 0 10px 20px -12px rgba(42, 25, 15, .6);
}
.tag span { background: var(--chilli); color: #FFF6EA; border-radius: 6px; padding: 1px 7px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.tag b { font-family: var(--display); font-weight: 400; font-size: 18px; color: var(--green); }

.mosaic { height: 32px; margin-top: 40px; background: var(--mosaic) 0 0 / 32px 32px repeat-x; border-top: 3px solid var(--kopi-mid); border-bottom: 3px solid var(--kopi-mid); }

/* ---------- docks: empty boxes that say where the cup stands and how tall it is */
.dock { position: relative; pointer-events: none; }
.cupart { display: none; width: 100%; height: 100%; }
html:not(.js) .cupart, .no-stage .cupart { display: block; }
.dock--hero { position: absolute; left: 50%; bottom: -16%; width: 74%; height: 76%; transform: translateX(-50%); }

/* ---------- since 7:00 am */
.story { position: relative; background: var(--kopi); color: var(--cream); padding: 64px 0 76px; overflow: hidden; }
.story::before { /* lamp glow */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 50% at 78% 30%, rgba(217, 174, 120, .16), rgba(217, 174, 120, 0) 70%);
}
.story__grid { display: grid; gap: 26px; }
.story__text p:not(.kicker) { color: var(--soft-dark); margin-top: 16px; max-width: 34em; }
.story__text .display { margin-bottom: 6px; }
.story__seven { display: grid; justify-items: center; }
.seven { font-family: var(--display); font-size: clamp(104px, 33vw, 250px); line-height: .74; color: var(--crema); display: flex; align-items: baseline; padding-top: .02em; }
.seven span { color: var(--cream); }
.seven small { font-family: var(--text); font-weight: 800; font-size: 16px; letter-spacing: .14em; text-transform: uppercase; color: var(--soft-dark); margin-left: 6px; }
.dock--story { height: 200px; width: 70%; margin-bottom: -4px; }
.morning { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid rgba(245, 236, 218, .18); }
.morning li { padding: 16px 12px 16px 0; border-bottom: 1px solid rgba(245, 236, 218, .18); }
.morning li:nth-child(odd) { padding-right: 16px; border-right: 1px solid rgba(245, 236, 218, .18); }
.morning li:nth-child(even) { padding-left: 16px; }
.morning time { font-family: var(--display); font-size: 24px; color: var(--crema); }
.morning p { color: var(--soft-dark); font-size: 15px; line-height: 1.4; margin-top: 2px; }

/* ---------- section heads with a dock beside them */
.head { display: grid; grid-template-columns: minmax(0, 1fr) 47%; column-gap: 8px; align-items: center; }
.head > div:first-child { display: contents; }
.head .kicker { grid-column: 1 / -1; grid-row: 1; }
.head .display { grid-column: 1 / -1; grid-row: 2; }
.head__sub { grid-column: 1; grid-row: 3; margin-top: 16px; color: var(--soft-cream); max-width: 34em; font-size: 16px; }
.head .dock { grid-column: 2; grid-row: 3; height: 150px; margin-top: 16px; }

/* ---------- menu */
.menu { position: relative; padding: 0 0 72px; background: var(--cream-2); }
.awning {
  height: 46px; margin-bottom: 44px;
  background:
    radial-gradient(circle at 50% 100%, var(--cream-2) 13px, transparent 13.6px) 0 100% / 28px 14px repeat-x,
    repeating-linear-gradient(90deg, var(--green) 0 28px, #F1E6D0 28px 56px);
  filter: drop-shadow(0 6px 5px rgba(42, 25, 15, .18));
}
.menu__grid { display: grid; gap: 22px; margin-top: 28px; }
.board {
  position: relative; background: var(--green-board); color: #F4E8D0; border-radius: 14px; padding: 26px 20px 22px;
  box-shadow: 0 0 0 8px #5B3A23, 0 0 0 10px #3A2416, 0 30px 40px -24px rgba(42, 25, 15, .7);
  margin: 10px;
  background-image: radial-gradient(120% 80% at 20% 0%, rgba(255, 255, 255, .07), rgba(255, 255, 255, 0) 60%);
}
.board__tag { position: absolute; top: -12px; right: 16px; background: var(--cream); color: var(--kopi-ink); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 3px 10px; border-radius: 99px; border: 1.5px solid #5B3A23; }
.board__cols { display: grid; gap: 26px; }
.board__h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-family: var(--display); font-weight: 400; font-size: 34px; line-height: 1; color: #F6D9A4; border-bottom: 2px dashed rgba(244, 232, 208, .35); padding-bottom: 8px; margin-bottom: 4px; }
.board__h i { font-family: var(--text); font-style: normal; font-weight: 700; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: #CFE0D2; }
.board__list li { display: grid; grid-template-columns: 1fr auto; column-gap: 12px; padding: 10px 0 9px; border-bottom: 1px solid rgba(244, 232, 208, .14); }
.board__list b { font-family: var(--display); font-weight: 400; font-size: 23px; line-height: 1.15; }
.board__list em { grid-column: 1; font-style: normal; font-size: 14px; color: #CFE0D2; }
.board__list span { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-family: var(--display); font-size: 22px; color: #F6D9A4; white-space: nowrap; }
.board__set { background: rgba(246, 217, 164, .1); margin: 6px -10px 0; padding-left: 10px !important; padding-right: 10px !important; border-radius: 10px; border-bottom: 0 !important; }
.board__note { margin-top: 12px; font-size: 14px; color: #CFE0D2; }
.nasi { background: var(--paper); border-radius: 18px; overflow: hidden; box-shadow: 0 24px 40px -28px rgba(42, 25, 15, .7); }
.nasi img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 60%; }
.nasi figcaption { padding: 16px 18px 20px; display: grid; gap: 6px; }
.nasi figcaption b { font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.1; }
.nasi figcaption span:last-child { color: var(--soft-cream); font-size: 15px; }
.sambal { justify-self: start; background: var(--chilli); color: #FFF6EA; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; }
.menu__cta { margin-top: 30px; display: grid; gap: 12px; justify-items: start; }
.menu__cta p { color: var(--soft-cream); font-size: 15px; max-width: 30em; }

/* ---------- the shop */
.place { position: relative; padding: 72px 0 80px; background: var(--cream); background-image: var(--marble); background-size: 1000px; }
.interior { margin-top: 26px; position: relative; }
.interior img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 60% 50%; border-radius: 22px; border: 6px solid var(--paper); box-shadow: 0 0 0 1.5px rgba(42, 102, 72, .5), 0 30px 50px -30px rgba(42, 25, 15, .7); }
.info { display: grid; gap: 14px; margin-top: 22px; }
.info__card { background: var(--paper); border-radius: 16px; padding: 18px 18px 20px; border: 1.5px solid rgba(58, 36, 22, .12); }
.info__card h3 { font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.1; margin-bottom: 8px; color: var(--green); }
.info__card p + p { margin-top: 8px; }
.info__card--park { background: var(--green); color: #F6EEDC; border-color: transparent; }
.info__card--park h3 { color: #F6D9A4; }
.hours div { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed rgba(58, 36, 22, .2); }
.hours div:last-child { border-bottom: 0; }
.hours dt { color: var(--soft-cream); }
.hours dd { font-weight: 700; text-align: right; }
.place__cta { margin-top: 22px; }

/* ---------- reviews */
.reviews { position: relative; background: var(--green-deep); color: var(--cream); padding: 72px 0 84px; overflow: hidden; }
.reviews::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(70% 50% at 85% 10%, rgba(255, 255, 255, .08), rgba(255, 255, 255, 0) 70%); }
.head--rev .rating { grid-column: 1; grid-row: 3; margin-top: 16px; }
.head--rev .dock { grid-row: 3; height: 160px; }
.kicker--chip { justify-self: start; }
.rating { display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; }
.rating__src { line-height: 1.3; }
.rating__num { grid-row: 1 / span 2; font-family: var(--display); font-size: 64px; line-height: .9; color: #F6D9A4; }
.rating__stars { font-size: 15px; letter-spacing: 1px; color: #F0BE5A; white-space: nowrap; }
.rating__src { font-size: 14px; color: #CFE0D2; }
.chits { display: grid; gap: 16px; margin-top: 34px; }
.chit {
  position: relative; background: var(--paper); color: var(--kopi-ink); padding: 26px 20px 20px; border-radius: 4px 4px 12px 12px;
  box-shadow: 0 20px 30px -22px rgba(0, 0, 0, .6);
  -webkit-mask: radial-gradient(circle at 8px 0, transparent 5px, #000 5.5px) -8px 0 / 16px 100% repeat-x;
  mask: radial-gradient(circle at 8px 0, transparent 5px, #000 5.5px) -8px 0 / 16px 100% repeat-x;
}
.chit::before { content: ""; position: absolute; left: 14px; right: 14px; top: 14px; border-top: 1.5px dashed rgba(58, 36, 22, .25); }
.chit__stars { color: #B8862F; letter-spacing: 2px; font-size: 16px; margin-bottom: 8px; }
.chit__stars i { font-style: normal; color: rgba(58, 36, 22, .22); }
.chit p { font-size: 16px; line-height: 1.5; }
.chit__who { margin-top: 12px; font-weight: 800; display: grid; }
.chit__who span { font-weight: 400; font-size: 14px; color: var(--soft-cream); }

/* ---------- close */
.close { position: relative; background: var(--kopi); color: var(--cream); padding: 80px 0 70px; overflow: hidden; }
.close__grid { display: grid; gap: 10px; }
.close__h2 { font-family: var(--display); font-weight: 400; font-size: clamp(46px, 7.6vw, 108px); line-height: .98; margin: 14px 0 16px; max-width: 9em; }
.close__line { color: var(--soft-dark); max-width: 30em; margin-bottom: 26px; }
.close__cup { position: relative; display: grid; place-items: end center; height: 300px; order: -1; margin-bottom: 18px; }
.glow { position: absolute; left: 50%; bottom: 0; width: 120%; height: 120%; transform: translateX(-50%); background: radial-gradient(50% 40% at 50% 70%, rgba(217, 174, 120, .26), rgba(217, 174, 120, 0) 72%); pointer-events: none; }
.dock--close { width: 70%; height: 190px; margin-bottom: 6px; }

/* ---------- footer */
.foot { background: var(--kopi); color: var(--soft-dark); padding: 0 0 110px; }
.mosaic--dark { margin-top: 0; border-color: #4A2E1B; }
.foot__grid { display: grid; gap: 22px; padding-top: 44px; padding-bottom: 20px; font-size: 15px; }
.foot__grid b, .foot__grid span { display: block; color: var(--cream); font-weight: 800; margin-bottom: 4px; }
.foot__grid span { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--crema); }
.foot__grid a { display: block; text-decoration: none; color: var(--cream); padding: 6px 0; }
.foot__grid a:hover { text-decoration: underline; }
.foot__word { font-family: var(--display); color: var(--cream); font-size: clamp(40px, 12.8vw, 196px); line-height: .9; text-align: center; letter-spacing: -.01em; padding: 10px var(--gut) 18px; white-space: nowrap; overflow: hidden; }
.foot__legal { font-size: 13px; color: #BFA98A; }
.foot__legal a { color: var(--cream); }

/* ---------- the fixed pill */
.pill {
  position: fixed; z-index: 30; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border-radius: 99px;
  background: var(--kopi); color: var(--cream); text-decoration: none; font-size: 14px; font-weight: 700; white-space: nowrap;
  box-shadow: 0 0 0 2px rgba(245, 236, 218, .9), 0 14px 26px -10px rgba(0, 0, 0, .55);
}
.pill:hover { background: #3E2617; }

/* ---------- reveals */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .9s cubic-bezier(.2, .8, .2, 1); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js .chit[data-reveal].in:nth-child(odd) { transform: rotate(-.8deg); }
.js .chit[data-reveal].in:nth-child(even) { transform: rotate(.7deg); }

/* ---------- small phones */
@media (max-width: 370px) {
  .shop__line { font-size: 16px; }
  .btn { padding: 12px 16px; font-size: 15px; }
  .rating__num { font-size: 54px; }
  .rating__stars { font-size: 12px; letter-spacing: 0; }
  .head .dock { height: 128px; }
  .head--rev .dock { height: 138px; }
  .head { grid-template-columns: minmax(0, 1fr) 45%; }
  .pill { font-size: 13px; padding: 10px 14px; }
}

/* ---------- tablet and up */
@media (min-width: 761px) {
  :root { --bar-h: 70px; }
  body { font-size: 18px; }
  .bar__mark b { font-size: 26px; }
  .bar__mark span { display: inline; font-size: 15px; }
  .bar .short { display: none; }
  .bar .long { display: inline; }
  .shop__cta .btn { padding: 12px 22px; font-size: 16px; }
  .rating__stars { font-size: 22px; letter-spacing: 3px; }
  .sign { padding: 20px 34px; }
  .sign__zh { font-size: 22px; }
  .bar__links { display: flex; gap: 30px; margin-left: auto; margin-right: 12px; font-weight: 700; font-size: 15px; }
  .bar__links a { text-decoration: none; padding: 10px 2px; }
  .bar__links a:hover { color: var(--green); }

  .hero { padding-top: 28px; }
  .sign { grid-template-columns: auto 1fr auto; align-items: center; padding: 20px 34px; }
  .sign__zh { writing-mode: vertical-rl; letter-spacing: .3em; padding: 0; font-size: 22px; }
  .sign__est { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 12px; }
  .sign__name { font-size: clamp(64px, 9.4vw, 140px); }

  .shop { grid-template-columns: minmax(0, 1.12fr) minmax(0, .8fr) minmax(0, .95fr); gap: 34px; align-items: end; margin-top: 52px; }
  .shop__copy { display: flex; flex-direction: column; gap: 22px; grid-column: 1; grid-row: 1; align-self: center; }
  .chip { align-self: flex-start; }
  .shop__line { font-size: clamp(19px, 1.6vw, 23px); }
    .shop__cta .btn { flex: 0 1 auto; }
  .clock { grid-column: 2; grid-row: 1; align-self: start; margin: 18px auto 0; max-width: 330px; }
  .shop__photo { grid-column: 3; grid-row: 1; margin: 0; }
  .shop__photo img { aspect-ratio: 4 / 5; height: min(52vh, 500px); object-position: 70% 50%; border-radius: 999px 999px 20px 20px; }

  .story { padding: 110px 0 120px; }
  .story__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); column-gap: clamp(32px, 6vw, 100px); row-gap: 60px; align-items: center; }
  .dock--story { height: 280px; }
  .morning { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); }
  .morning li, .morning li:nth-child(odd), .morning li:nth-child(even) { padding: 18px 20px; border-right: 1px solid rgba(245, 236, 218, .18); }
  .morning li:first-child { padding-left: 0; }
  .morning li:last-child { border-right: 0; }
  .morning time { font-size: 30px; }

  .head { grid-template-columns: minmax(0, 1fr) 34%; align-items: end; }
  .head .kicker, .head .display, .head__sub { grid-column: 1; }
  .head .dock { grid-column: 2; grid-row: 1 / span 3; height: 260px; margin: 0; }
  .menu { padding-bottom: 110px; }
  .awning { height: 56px; margin-bottom: 70px; }
  .menu__grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 40px; align-items: start; margin-top: 40px; }
  .board { padding: 34px 34px 28px; }
  .board__cols { grid-template-columns: 1fr 1fr; gap: 40px; }
  .menu__cta { grid-template-columns: auto 1fr; align-items: center; gap: 22px; margin-top: 44px; }

  .place { padding: 110px 0 120px; }
  .interior img { aspect-ratio: 16 / 8; }
  .interior { margin-top: 40px; }
  .info { grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 26px; }

  .reviews { padding: 110px 0 120px; }
  .head--rev { grid-template-columns: minmax(0, 1fr) auto 26%; align-items: end; }
  .head--rev .rating { grid-column: 2; grid-row: 1 / span 2; margin: 0 0 10px; }
  .head--rev .dock { grid-column: 3; grid-row: 1 / span 2; height: 260px; }
  .head--rev .display { grid-column: 1; }
  .rating__num { font-size: 120px; }
  .chits { grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 54px; }

  .close { padding: 130px 0 110px; }
  .close__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; }
  .close__cup { height: 520px; order: 0; margin: 0; }
  .dock--close { height: 330px; }

  .foot__grid { grid-template-columns: 1.4fr 1fr 1fr; padding-top: 60px; }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .shop { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .shop__copy { grid-column: 1 / -1; grid-row: 1; }
  .clock { grid-column: 1; grid-row: 2; max-width: 300px; }
  .shop__photo { grid-column: 2; grid-row: 2; }
  .chits { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- no 3D: the drawn cup stands in each dock */
.no-stage .dock--hero .cupart, html:not(.js) .dock--hero .cupart { height: 82%; margin-top: 18%; }

/* ---------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn { transition: none; }
}

/* ---------- motion redesign: the cup has three places; every other section has its own small motion */
.head--solo { grid-template-columns: minmax(0, 1fr) !important; }
.head--solo .head__sub { grid-column: 1; }

/* since 7:00 am: the wall clock sweeps to seven, then the charcoal glows */
.story__seven { display: grid; justify-items: center; align-content: end; }
.clock2 { width: min(180px, 50vw); height: auto; margin-bottom: 22px; filter: drop-shadow(0 14px 20px rgba(0, 0, 0, .45)); overflow: visible; }
.hand { transform-box: view-box; transform-origin: 100px 100px; }
.js .hand { transition: transform .9s cubic-bezier(.25, .8, .25, 1); }
.js .story__seven:not(.play) .hand--min { transform: rotate(-360deg); }
.js .story__seven:not(.play) .hand--hour { transform: rotate(-30deg); }
.coals { position: relative; display: flex; gap: 4px; width: min(340px, 86%); margin-top: 14px; }
.coals::before { content: ""; position: absolute; left: -12%; right: -12%; top: -90%; bottom: -90%; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 55%, rgba(255, 128, 48, .5), rgba(255, 90, 30, 0) 70%); transition: opacity .9s ease .95s; }
.coals i { flex: 1; height: 18px; border-radius: 50% 50% 42% 42% / 62% 62% 38% 38%; background: #1B100A;
  box-shadow: inset 0 -6px 8px rgba(255, 122, 40, .8), inset 0 2px 2px rgba(255, 255, 255, .06); transition: box-shadow .9s ease .95s; }
.coals i:nth-child(odd) { height: 22px; margin-top: -4px; }
.js .story__seven:not(.play) .coals::before { opacity: .1; }
.js .story__seven:not(.play) .coals i { box-shadow: inset 0 -6px 8px rgba(255, 122, 40, .08), inset 0 2px 2px rgba(255, 255, 255, .06); }

/* menu: the price tags settle onto the board one by one, then steam rises off the rice */
.js .board__list span { transition: opacity .3s ease, transform .45s cubic-bezier(.3, 1.45, .5, 1); }
.js .menu__grid:not(.play) .board__list span { opacity: 0; transform: translateY(-14px) rotate(-5deg); }
.nasi { position: relative; }
.wisps { position: absolute; left: 32%; top: 1%; width: 30%; z-index: 2; pointer-events: none; fill: none; stroke: rgba(255, 252, 244, .95); stroke-width: 3.6; stroke-linecap: round; filter: blur(1.1px) drop-shadow(0 0 2.5px rgba(70, 45, 25, .45)); }
.wisps path { stroke-dasharray: 170; stroke-dashoffset: 0; opacity: .72; }
.js .wisps path { transition: stroke-dashoffset .9s ease-out .25s, opacity .9s ease .25s; }
.js .wisps path:nth-child(2) { transition-delay: .4s; }
.js .wisps path:nth-child(3) { transition-delay: .55s; }

.js .nasi:not(.play) .wisps path { stroke-dashoffset: 170; opacity: 0; }

/* the shop: a ceiling fan turning slowly above the photo */
.interior { margin-top: 84px; }
.fan { position: absolute; left: 50%; top: -76px; width: min(230px, 60%); height: 76px; transform: translateX(-50%); z-index: 2; perspective: 700px; pointer-events: none; }
.fan__rod { position: absolute; left: 50%; top: 0; width: 6px; height: 40px; margin-left: -3px; background: #3A2416; border-radius: 2px; }
.fan__disc { position: absolute; left: 0; right: 0; top: 50px; aspect-ratio: 1; transform: translateY(-50%) rotateX(74deg); }
.fan__spin { width: 100%; height: 100%; }
.fan__spin svg { width: 100%; height: 100%; display: block; }
.js .fan__spin { animation: fanspin 6s linear infinite; animation-play-state: paused; }
.js .fan.spin .fan__spin { animation-play-state: running; }
.fan__hub { position: absolute; left: 50%; top: 34px; width: 30px; height: 22px; margin-left: -15px; border-radius: 50% 50% 46% 46% / 40% 40% 60% 60%; background: radial-gradient(60% 50% at 40% 30%, #7A5232, #2A190F 70%); }
@keyframes fanspin { to { transform: rotate(360deg); } }

/* reviews: the chits only slide a few pixels */
.js .chit[data-reveal] { transform: translateY(8px); }

@media (min-width: 761px) {
  .clock2 { width: 230px; }
  .interior { margin-top: 110px; }
  .fan { top: -96px; height: 96px; width: 280px; }
  .fan__rod { height: 56px; }
  .fan__disc { top: 66px; }
  .fan__hub { top: 50px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .hand, .js .coals::before, .js .coals i, .js .board__list span, .js .wisps path { transition: none !important; }
  .js .story__seven:not(.play) .hand, .js .menu__grid:not(.play) .board__list span { transform: none !important; opacity: 1 !important; }
  .js .story__seven:not(.play) .coals::before { opacity: 1 !important; }
  .js .story__seven:not(.play) .coals i { box-shadow: inset 0 -6px 8px rgba(255, 122, 40, .8) !important; }
  
.js .nasi:not(.play) .wisps path { stroke-dashoffset: 0 !important; opacity: .72 !important; }
  .js .fan__spin { animation: none !important; }
}

@media (min-width: 761px) {
  /* the close cup stands low and right, more than a screen below the reviews cup */
  .close__grid { align-items: start; }
  .close__cup { height: 380px; margin-top: 380px; }
}
/* orchestrator: phone pill is smaller so it covers less of the page */
@media (max-width: 760px) { .pill { font-size: 12px !important; padding: 8px 12px !important; opacity: .94; } }
