/* Chaat Time brand page: a sticker-slap landing on yellow, a scrolling ticker of the brand's lines, the story with a
   plate, a menu board that shows each dish's pack, the marks, colours as plates, packs, the stall, credits. */
:root {
  --red: #CE373A;
  --yellow: #F2E335;
  --tamarind: #852411;
  --orange: #FFA658;
  --cream: #FBF1D2;
  --ink: #1C0F0A;
  --display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --body: 'DM Sans', system-ui, sans-serif;
  --gut: max(clamp(16px, 4vw, 56px), (100vw - 1840px) / 2); /* content stops at 1840px on 27" and ultrawide screens */
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--tamarind); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, ol { margin: 0; }
h1, h2, .sec { font-family: var(--display); font-weight: 900; text-transform: uppercase; line-height: .88; letter-spacing: .005em; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.wrap { padding-inline: var(--gut); }
.sec { font-size: clamp(52px, 9vw, 150px); margin-bottom: clamp(24px, 4vw, 48px); color: var(--red); }

/* Bar */
.bar { position: fixed; inset: 0 0 auto; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 12px var(--gut); color: var(--tamarind); transition: background-color .3s; }
.bar.solid { background: rgba(251, 241, 210, .94); backdrop-filter: blur(8px); box-shadow: 0 1px 0 rgba(133, 36, 17, .15); }
.bar-back { font-weight: 700; text-decoration: none; font-size: 14px; }
.bar-mark img { width: 30px; }
.bar-nav { justify-self: end; display: flex; gap: 22px; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.bar-nav a { text-decoration: none; }
.bar-nav a:hover { color: var(--red); }
@media (max-width: 760px) { .bar-nav { display: none; } .bar { grid-template-columns: 1fr auto; } .bar-mark { justify-self: end; } }

/* 1. Landing */
.land { position: relative; height: 100vh; height: 100svh; background: var(--yellow); overflow: hidden; display: grid; place-items: center; cursor: copy; }
.land::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 45%, rgba(255, 255, 255, .35), transparent 60%); }
.land-board { position: relative; z-index: 1; display: grid; justify-items: center; gap: 22px; }
.land-logo { width: min(52vw, 46vh, 400px); animation: logo-in .9s cubic-bezier(.2, .9, .3, 1.35) both; }
@keyframes logo-in { from { transform: translateY(40px) scale(.7) rotate(-6deg); opacity: 0; } }
.land-hint { font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: var(--tamarind); animation: nudge 2.4s ease-in-out 1.2s infinite; }
@keyframes nudge { 0%, 100% { transform: none; } 50% { transform: translateY(-4px); } }
.sticker-layer { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.sticker { position: absolute; width: clamp(80px, 11vw, 140px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--c); box-shadow: 0 6px 0 rgba(0, 0, 0, .12), 0 14px 24px rgba(0, 0, 0, .18); border: 4px solid #fff;
  transform: translate(-50%, -50%) rotate(var(--r)); animation: slap .35s cubic-bezier(.2, .9, .3, 1.5) both; }
.sticker img { width: 64%; }
@keyframes slap { from { transform: translate(-50%, -50%) rotate(var(--r)) scale(1.8); opacity: 0; } }
.land-cue { position: absolute; z-index: 3; bottom: 20px; left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }

/* 2. Ticker */
.ticker { background: var(--red); color: var(--yellow); overflow: hidden; border-block: 4px solid var(--tamarind); }
.ticker-run { display: flex; width: max-content; animation: run 30s linear infinite; }
.ticker span { font: 900 clamp(26px, 3.4vw, 46px)/1 var(--display); text-transform: uppercase; padding: 16px 28px; white-space: nowrap; }
.ticker span::after { content: "✦"; margin-left: 56px; color: var(--cream); }
@keyframes run { to { transform: translateX(-50%); } }
.ticker:hover .ticker-run { animation-play-state: paused; }

/* 3. Story */
.story { position: relative; padding-block: clamp(80px, 11vw, 170px); overflow: hidden; }
.story-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px clamp(32px, 6vw, 110px); align-items: start; position: relative; z-index: 1; }
.story h1 { font-size: clamp(54px, 7.5vw, 128px); color: var(--red); }
.story h1 em { font-style: normal; color: var(--tamarind); }
.story-text { display: grid; gap: 18px; font-size: clamp(17px, 1.4vw, 20px); max-width: 48ch; }
.story-plate { position: absolute; right: -6%; bottom: -12%; width: min(46vw, 560px); opacity: .95; transform: rotate(-8deg); }
.story-plate.in { animation: plate-spin 14s linear infinite; }
@keyframes plate-spin { to { transform: rotate(352deg); } }
@media (max-width: 860px) { .story-grid { grid-template-columns: minmax(0, 1fr); } .story-plate { position: relative; right: auto; bottom: auto; margin: 40px auto 0; width: 80vw; } }

/* 4. Menu board */
.menu { background: var(--tamarind); color: var(--cream); padding-block: clamp(80px, 10vw, 150px); }
.menu .sec { color: var(--yellow); }
.menu-hint { margin: -16px 0 32px; color: #E6C9A5; font-weight: 500; }
.menu-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.menu-list { list-style: none; padding: 0; border-top: 2px dashed rgba(251, 241, 210, .35); }
.menu-list button { all: unset; box-sizing: border-box; width: 100%; display: flex; align-items: baseline; gap: 12px; padding: 14px 0; border-bottom: 2px dashed rgba(251, 241, 210, .35); cursor: pointer; }
.menu-list span { font: 900 clamp(34px, 4vw, 64px)/1 var(--display); text-transform: uppercase; transition: color .2s, transform .3s cubic-bezier(.2, .9, .3, 1.4); }
.menu-list i { margin-left: auto; font-style: normal; font-weight: 700; font-size: 14px; color: #E6C9A5; }
.menu-list button:is(:hover, :focus-visible, [aria-pressed="true"]) span { color: var(--yellow); transform: translateX(12px); }
.menu-view { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 22px; border: 6px solid var(--cream); transform: rotate(1.5deg); box-shadow: 0 30px 60px rgba(0, 0, 0, .35); }
.menu-view img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s, transform .5s cubic-bezier(.2, .8, .2, 1); }
.menu-view.swap img { opacity: 0; transform: scale(1.05); }
.menu-view figcaption { position: absolute; left: 14px; bottom: 14px; background: var(--yellow); color: var(--tamarind); padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 14px; transform: rotate(-2deg); }
@media (max-width: 860px) { .menu-grid { grid-template-columns: minmax(0, 1fr); } .menu-view { order: -1; } }

/* 5. Marks */
.marks { padding-block: clamp(80px, 10vw, 150px); }
.marks-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 20px); }
.mark { aspect-ratio: 4 / 5; background: var(--bg); border-radius: 18px; display: grid; place-items: center; padding: 18%; transition: transform .4s cubic-bezier(.2, .9, .3, 1.4); }
.mark:nth-child(odd) { transform: rotate(-2deg); }
.mark:nth-child(even) { transform: rotate(2deg); }
.mark:hover { transform: rotate(0) scale(1.04); }
.mark img { max-height: 100%; object-fit: contain; }
.marks-note { margin-top: 32px; max-width: 60ch; font-size: clamp(17px, 1.4vw, 20px); }
@media (max-width: 860px) { .marks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* 6. Colours as plates */
.plates { background: var(--orange); padding-block: clamp(80px, 10vw, 150px); }
.plates .sec { color: var(--tamarind); }
.plate-row { display: flex; flex-wrap: wrap; gap: clamp(12px, 2vw, 28px); }
.plate { width: clamp(140px, 16vw, 220px); aspect-ratio: 1; border-radius: 50%; background: var(--c); color: var(--t); display: grid; place-content: center; text-align: center; gap: 4px;
  box-shadow: inset 0 0 0 10px rgba(255, 255, 255, .55), 0 18px 30px rgba(133, 36, 17, .25); transition: transform .5s cubic-bezier(.2, .9, .3, 1.4); }
.plate:hover { transform: rotate(-20deg) scale(1.06); }
.plate b { font: 900 clamp(20px, 2vw, 28px)/1 var(--display); text-transform: uppercase; }
.plate span { font-size: 13px; font-weight: 700; }

/* 7. Packs */
.packs { padding-block: clamp(80px, 10vw, 150px); }
.pack-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: clamp(170px, 20vw, 320px); gap: 12px; }
.pack-grid figure { overflow: hidden; border-radius: 18px; background: #f3e2b6; }
.pack-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2, .8, .2, 1); }
.pack-grid figure:hover img { transform: scale(1.05) rotate(-1deg); }
.p1 { grid-column: span 3; grid-row: span 2; }
.p2 { grid-column: span 3; }
.p3 { grid-column: span 2; }
.p4 { grid-column: span 1; background: var(--yellow) !important; }
.p4 img { object-fit: contain; padding: 8%; }
@media (max-width: 760px) { .pack-grid { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 66vw; } .pack-grid figure { grid-column: auto !important; grid-row: auto !important; } }

/* 8. Stall */
.stall { background: var(--red); color: var(--cream); }
.full { overflow: hidden; }
.full img { width: 100%; transform: translateY(var(--py, 0px)) scale(1.1); }
.stall-text { padding-block: clamp(70px, 9vw, 130px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px 40px; }
.stall h2 { font-size: clamp(52px, 8vw, 140px); color: var(--yellow); }
.stall-text p { max-width: 36ch; font-size: clamp(17px, 1.4vw, 20px); }

/* 9. Credits */
.credits { padding-block: clamp(64px, 8vw, 120px); }
.credits-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; border-bottom: 3px solid var(--tamarind); padding-bottom: clamp(40px, 6vw, 80px); }
.credits h3 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin-bottom: 12px; }
.outro { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: clamp(40px, 6vw, 80px); }
.outro p { font: 900 clamp(40px, 5.4vw, 88px)/.9 var(--display); text-transform: uppercase; color: var(--red); max-width: 14ch; }
.outro-links { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: 999px; background: var(--red); color: #fff; text-decoration: none; font-weight: 700; border: 3px solid var(--red); transition: background-color .25s, color .25s, border-color .25s; }
.btn:hover { background: var(--yellow); border-color: var(--yellow); color: var(--tamarind); }
.btn.ghost { background: transparent; color: var(--tamarind); border-color: var(--tamarind); }
@media (max-width: 760px) { .credits-grid { grid-template-columns: minmax(0, 1fr); } }

/* Reveal: things arrive on a curve, rising and swinging in from the left. */
.reveal { opacity: 0; transform: translate(-18px, 38px) rotate(2.5deg); transform-origin: 0 100%; transition: opacity .8s ease, transform .8s cubic-bezier(.65, 0, .35, 1); }
.reveal.in { opacity: 1; transform: none; }
.mark.reveal.in:nth-child(odd) { transform: rotate(-2deg); }
.mark.reveal.in:nth-child(even) { transform: rotate(2deg); }

/* Back to Grit Fox: the agency's own chip on every brand page. The fox blinks now and then, and tilts its head and
   glances back when you point at it. */
.bar-back.fox-back {
  justify-self: start; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 15px 0 12px;
  border-radius: 999px; background: #1A1A1A; color: #fff; border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  line-height: 1; text-decoration: none; white-space: nowrap; opacity: 1;
  transition: translate .3s cubic-bezier(.2, 1.4, .4, 1), box-shadow .3s;
}
.bar-back.fox-back:hover { color: #fff; text-decoration: none; opacity: 1; translate: -2px 0; box-shadow: 0 10px 24px rgba(0, 0, 0, .26); }
.bar-back.fox-back:focus-visible { outline: 3px solid #F0AC1D; outline-offset: 3px; }
.fox-back i { font-style: normal; font-weight: 400; font-size: 14px; color: #F0AC1D; transition: translate .3s cubic-bezier(.2, 1.4, .4, 1); }
.fox-back:hover i { translate: -3px 0; }
.fox-back .fx { width: 24px; height: 24px; flex: none; overflow: visible; }
.fox-back .fx-head { transform-box: view-box; transform-origin: 500px 430px; transition: rotate .5s cubic-bezier(.2, 1.6, .4, 1); }
.fox-back:hover .fx-head { rotate: -12deg; }
.fox-back .fx-iris { transition: translate .35s cubic-bezier(.2, .8, .2, 1); }
.fox-back:hover .fx-iris { translate: -24px 6px; }
.fox-back .fx-eye { transform-box: fill-box; transform-origin: center; animation: fxBlink 5.2s ease-in-out infinite; }
.fox-back:active .fx-eye { animation: none; scale: 1 .08; }
@keyframes fxBlink { 0%, 93%, 100% { scale: 1 1; } 96% { scale: 1 .08; } }
/* a wink when pointed at: it stays even with reduced motion, as it is tiny and only follows the pointer */
.fox-back:hover .fx-eye { animation: fxWink .34s ease-in-out; }
@keyframes fxWink { 0%, 100% { scale: 1 1; } 50% { scale: 1 .08; } }
@media (max-width: 760px) { .bar-back.fox-back { gap: 5px; padding: 0 11px 0 10px; } .fox-back span { display: none; } }
@media (prefers-reduced-motion: reduce) { .fox-back .fx-eye { animation: none; } }
