/* SS Bucket Biryani website: How SS Cooks. Loaded after site.css, whose tokens, header, footer and motion it uses.
   Desktop values match the Figma at 1512 px. --u is one of its pixels: 1px from 1512 px up, less below, so the
   art and the big headings keep their proportions as the window narrows. */

.cooks-page {
  --panel: #FBE4C2;
  --ink-copy: #3B0A0D;
  --gold-light: #F2C46B;
  --dark: #2A0508;
  --night: #3A0A0E;
  --night-line: #5D1A1E;
  --arch-dark: #5F090C;
  --stop-dot: #831618;
  --ice: #CFE9F3;
  --scale-ok: #7BE08A;
  --pop-edge: #FFDF7B;
  /* the site's red is 4.1:1 on the panel colour; this deeper one is 4.9:1, for small red text there */
  --red-deep: #C5061F;
  /* the gold ring round the dum's arch and the wheel's lock */
  --gold-ring: linear-gradient(90deg, #C9890E 0%, #FFDC98 21%, #FAD286 47%, #FFC556 61%, #FFDB97 72%, #CAA459 85%, #BD7C00 100%);
}
.cooks-page main { --u: min(1px, calc(100cqw / 1512)); }
/* the reset in site.css covers ul, not ol or figure */
:where(.cooks-page) :where(ol, figure) { margin: 0; padding: 0; list-style: none; }

/* ---------- Shared pieces ---------- */
.ck-eyebrow { font-family: var(--font-serif); font-size: 12px; line-height: 14px; letter-spacing: .2em; text-transform: uppercase; color: var(--red); }
.ck-eyebrow--gold { color: var(--gold-light); }
.ck-eyebrow--deep { color: var(--red-deep); }

.ck-wrap { width: calc(885 * var(--u)); margin-inline: auto; }
.ck-head { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.ck-h2 { font-family: var(--font-condensed); font-weight: 400; font-size: max(44px, calc(76 * var(--u))); line-height: .921; text-transform: uppercase; }
.ck-lead { max-width: 488px; padding-top: 4px; font-size: 15px; line-height: 24px; }

/* A row of toggles: outlined, and filled when on. Each row says which ink it is drawn in. The visible pill is
   32 px; its tap area reaches 44. */
.ck-seg { --seg-ink: var(--maroon); --seg-on-ink: var(--cream); display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.ck-seg--start { justify-content: flex-start; }
.ck-seg__btn { position: relative; min-height: 32px; padding: 6px 14px; border: 1.6px solid var(--seg-ink); border-radius: var(--radius-pill); font-weight: 500; font-size: 12px; line-height: 15px; color: var(--seg-ink); transition: background-color .3s var(--tap), color .3s var(--tap); }
.ck-seg__btn::after { content: ""; position: absolute; inset: -7px -4px; }
.ck-seg__btn:hover { background: color-mix(in srgb, var(--seg-ink) 12%, transparent); }
.ck-seg__btn[aria-pressed="true"] { background: var(--seg-ink); color: var(--seg-on-ink); }

/* The ticked lists in the laws' boxes */
.ck-checks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px 7px; width: 100%; }
.ck-checks li { display: flex; align-items: flex-start; gap: 5px; font-size: 12px; line-height: 16px; }
.ck-checks__tick { flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--gold-light); fill: none; stroke: var(--dark); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 1. The opening: spices, masala, process ---------- */
.ck-hero { position: relative; isolation: isolate; overflow: hidden; min-height: calc(896 * var(--u)); padding: calc(209 * var(--u)) var(--gutter) calc(158 * var(--u)) max(var(--gutter), calc(163 * var(--u))); background: radial-gradient(50% 50% at 50% 50%, #7A0F16 0%, var(--dark) 62%); color: var(--cream); }
.ck-hero__photo { position: absolute; left: 0; top: 0; z-index: -2; width: 100%; height: calc(100% - 24px) !important; object-fit: cover; }
/* the Figma's shade over the photo, dark where the words are */
.ck-hero::before { content: ""; position: absolute; inset: 0 0 24px; z-index: -1; background: linear-gradient(90deg, var(--dark) 0%, rgba(42, 5, 8, .73) 27%, rgba(42, 5, 8, 0) 100%); }
.ck-hero__copy { display: flex; flex-direction: column; align-items: flex-start; max-width: 452px; }
.ck-hero__title { margin-top: 10px; font-family: var(--font-condensed); font-weight: 400; font-size: max(64px, calc(107 * var(--u))); line-height: .925; text-transform: uppercase; }
.ck-hero__title em { font-style: normal; color: var(--red-on-dark); }
.ck-hero__line { max-width: 410px; margin-top: 19px; font-family: var(--font-serif); font-size: max(21px, calc(25 * var(--u))); line-height: 1.2; color: var(--gold-light); }
/* one sentence to a line */
.ck-hero__line span { display: block; }
.ck-hero__text { max-width: 410px; margin-top: 8px; font-size: 15px; line-height: 24px; }
.ck-hero__actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 25px; }
.ck-check { position: absolute; left: 0; right: 0; bottom: 0; display: flex; overflow: hidden; height: 24px; }
.ck-check img { flex: none; width: auto; max-width: none; height: 100% !important; }

/* ---------- 2. Five laws ---------- */
.ck-std { padding: calc(149 * var(--u)) var(--gutter) calc(76 * var(--u)); background: var(--dark); color: var(--cream); }
.ck-laws { display: grid; gap: calc(27 * var(--u)); margin-top: calc(40 * var(--u)); padding-bottom: calc(27 * var(--u)); }
.ck-law { display: grid; grid-template-columns: minmax(0, 1fr) calc(371 * var(--u)); column-gap: calc(35 * var(--u)); align-items: center; min-height: calc(504 * var(--u)); padding: 40px calc(35 * var(--u)); border-radius: max(20px, calc(28 * var(--u))); box-shadow: 0 -11px 31px rgba(0, 0, 0, .28); }
.ck-law__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.ck-law__tag { padding: 4px 13px; border: 1.6px solid currentColor; border-radius: var(--radius-pill); font-family: var(--font-display); font-weight: 700; font-size: 12px; line-height: 15px; text-transform: uppercase; font-synthesis: none; }
.ck-law__tag--serif { font-family: var(--font-serif); font-weight: 400; line-height: 14px; letter-spacing: .17em; }
.ck-law__title { font-family: var(--font-condensed); font-weight: 400; font-size: max(40px, calc(57 * var(--u))); line-height: .912; text-transform: uppercase; }
.ck-law__red { color: var(--red); }
.ck-law__text { max-width: 410px; font-size: 15px; line-height: 24px; }

.ck-law--rice { background: var(--panel); color: var(--maroon); }
.ck-law--chicken { background: var(--red); color: var(--cream); }
.ck-law--mutton { background: var(--maroon); color: var(--cream); }
.ck-law--firewood { border: 1.6px solid var(--night-line); background: var(--night); color: var(--cream); }
.ck-law--companions { grid-template-columns: minmax(0, 1fr) calc(454 * var(--u)); column-gap: 0; padding-inline: calc(30 * var(--u)); background: var(--gold-light); color: var(--dark); }
.ck-law--companions .ck-law__text { max-width: 305px; }

/* Each law's box: what it lets you try */
.ck-box { display: flex; flex-direction: column; align-items: center; gap: 11px; padding: 17px; border-radius: 20px; }
.ck-law--rice .ck-box, .ck-law--companions .ck-box { background: rgba(126, 13, 18, .1); }
.ck-law--chicken .ck-box, .ck-law--mutton .ck-box, .ck-law--firewood .ck-box { background: rgba(0, 0, 0, .18); }
.ck-law--firewood .ck-box { --seg-ink: var(--cream); }
.ck-box .ck-seg { width: 100%; }
.ck-law--firewood .ck-seg { --seg-ink: var(--cream); --seg-on-ink: var(--maroon); }
.ck-law--companions .ck-seg { --seg-ink: var(--dark); --seg-on-ink: var(--gold-light); }
.ck-box__caption { min-height: 18px; font-family: var(--font-serif); font-size: 14px; line-height: 18px; text-align: center; }

/* Law 01: fresh or aged rice. The photos share one place, so the box never changes size. */
.ck-rice__photos { position: relative; width: 100%; aspect-ratio: 336 / 217; }
.ck-rice__photo { position: absolute; inset: 0; margin: auto; opacity: 0; visibility: hidden; transition: opacity .3s var(--tap), visibility .3s; }
.ck-rice__photo[data-on] { opacity: 1; visibility: visible; }
.ck-rice__photo--fresh { width: 100%; height: 100% !important; object-fit: cover; border-radius: 0 0 50px 50px; }
.ck-rice__photo--aged { width: auto; height: 100% !important; aspect-ratio: 1; }
.ck-rice .ck-box__caption { min-height: 36px; }

/* Law 02: the bird's weight */
.ck-bird { gap: 11px; padding-bottom: 8px; }
.ck-bird__photos { position: relative; width: 100%; aspect-ratio: 336 / 147; }
.ck-bird__photo { position: absolute; left: 50%; bottom: 0; width: auto; height: 100% !important; translate: -50% 0; opacity: 0; visibility: hidden; transition: opacity .3s var(--tap), visibility .3s; }
.ck-bird__photo[data-band="light"] { height: 85% !important; }
.ck-bird__photo[data-band="heavy"] { height: 98.6% !important; }
.ck-bird__photo[data-on] { opacity: 1; visibility: visible; }
/* the slider: a 9 px track with the SS window in gold, a 24 px thumb, and a 44 px tall place to press. The window's
   edges sit where the thumb's centre is at 1.2 and 1.7 kg on the 0.8 to 2.2 kg scale. */
.ck-bird__range { width: 100%; height: 44px; margin: -15.5px 0; background: none; cursor: pointer; -webkit-appearance: none; appearance: none; }
.ck-bird__range::-webkit-slider-runnable-track { height: 9px; border-radius: 78px; background: linear-gradient(90deg, rgba(255, 255, 255, .25) calc(28.57% + 5.14px), var(--gold-light) calc(28.57% + 5.14px) calc(64.29% - 3.43px), rgba(255, 255, 255, .25) calc(64.29% - 3.43px)); }
.ck-bird__range::-moz-range-track { height: 9px; border-radius: 78px; background: linear-gradient(90deg, rgba(255, 255, 255, .25) calc(28.57% + 5.14px), var(--gold-light) calc(28.57% + 5.14px) calc(64.29% - 3.43px), rgba(255, 255, 255, .25) calc(64.29% - 3.43px)); }
.ck-bird__range::-webkit-slider-thumb { width: 24px; height: 24px; margin-top: -7.5px; border: 3.1px solid var(--red); border-radius: 50%; background: var(--cream); -webkit-appearance: none; appearance: none; }
.ck-bird__range::-moz-range-thumb { box-sizing: border-box; width: 24px; height: 24px; border: 3.1px solid var(--red); border-radius: 50%; background: var(--cream); }
.ck-bird__range:focus-visible { outline: none; box-shadow: none; }
.ck-bird__range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--maroon-ink), 0 0 0 6px var(--gold-solid); }
.ck-bird__range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px var(--maroon-ink), 0 0 0 6px var(--gold-solid); }
.ck-bird__read { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; width: 100%; }
.ck-bird__kg { flex: none; font-family: var(--font-condensed); font-size: 31px; line-height: 31px; }
.ck-bird__verdict { font-family: var(--font-serif); font-size: 13px; line-height: 17px; text-align: right; }

/* Law 03: the scale, its limit and the cold chain */
.ck-gauge { width: 236px; max-width: 100%; }
.ck-gauge__svg { display: block; width: 100%; height: auto; overflow: visible; }
.ck-gauge__ok, .ck-gauge__over { fill: none; stroke-width: 22; }
.ck-gauge__ok { stroke: var(--scale-ok); }
.ck-gauge__over { stroke: var(--red); }
.ck-gauge__needle { fill: none; stroke: var(--cream); stroke-width: 6; stroke-linecap: round; }
.ck-gauge__pin { fill: var(--cream); }
/* the labels are 12 px on the 236 px scale */
.ck-gauge__end { fill: var(--cream); font-family: var(--font-text); font-size: 15.25px; }
.ck-gauge__max { fill: var(--gold-light); font-family: var(--font-display); font-size: 38px; text-transform: uppercase; }
/* Outfit has no snowflake: the system font draws it, rather than the stand-in kept for while Outfit loads */
.ck-snow { display: flex; justify-content: space-evenly; width: 100%; height: 30px; font-family: system-ui, sans-serif; font-size: 13px; line-height: 21px; color: var(--ice); }

/* Law 04: gas or firewood */
.ck-fire__pot { width: 82.7%; transition: filter .3s var(--tap); }
.ck-fire[data-fuel="gas"] .ck-fire__pot { filter: grayscale(1) brightness(.85); }

/* Law 05: the seesaw. Every piece is placed as the Figma's three states place it, in hundredths of the scene. */
.ck-seesaw__scene { position: relative; width: 96.2%; aspect-ratio: 404 / 278; }
.ck-seesaw__scene > * { position: absolute; max-width: none; transition: opacity .35s var(--tap), visibility .35s, rotate .5s var(--ease-out); }
.ck-seesaw__plank--tilted { left: 3.47%; top: 29.86%; width: 96.53%; }
.ck-seesaw__plank--level { left: 0; top: 37.41%; width: 101.98%; opacity: 0; visibility: hidden; }
.ck-seesaw__shadow { border-radius: 50%; background: #000; filter: blur(5px); }
.ck-seesaw__shadow--bucket { left: 14.11%; top: 71.58%; width: 35.4%; height: 6.47%; transform-origin: 0 0; rotate: -13deg; }
.ck-seesaw__shadow--cup { left: 74.75%; top: 64.03%; width: 17.82%; height: 3.24%; background: rgba(0, 0, 0, .7); filter: blur(2px); opacity: 0; visibility: hidden; }
.ck-seesaw__bucket { left: 0; top: 13.67%; width: 46.78%; transform-origin: 0 0; rotate: -12deg; }
.ck-seesaw__cup { left: 72.03%; top: 42.09%; width: 23.51%; opacity: 0; visibility: hidden; }
.ck-seesaw__note { left: 54.95%; top: 32.01%; width: 17.08%; opacity: 0; visibility: hidden; }
.ck-seesaw[data-curry] .ck-seesaw__plank--tilted { opacity: 0; visibility: hidden; }
.ck-seesaw[data-curry] :is(.ck-seesaw__plank--level, .ck-seesaw__cup, .ck-seesaw__shadow--cup) { opacity: 1; visibility: visible; }
.ck-seesaw[data-curry] .ck-seesaw__shadow--bucket { left: 9.16%; top: 62.23%; width: 38.12%; height: 7.55%; rotate: 0deg; }
.ck-seesaw[data-curry] .ck-seesaw__bucket { left: 3.47%; top: 0; width: 49.01%; rotate: 0deg; }
.ck-seesaw[data-halwa] .ck-seesaw__note { opacity: 1; visibility: visible; }

/* ---------- 3. The spice wheel ---------- */
.ck-spice { padding: calc(76 * var(--u)) var(--gutter) calc(67 * var(--u)); background: var(--cream); color: var(--maroon); }
.ck-spice__inner { width: calc(999 * var(--u)); margin-left: calc(50% - 482 * var(--u)); }
.ck-spice__row { display: grid; grid-template-columns: minmax(0, 1fr) calc(477 * var(--u)); column-gap: calc(77 * var(--u)); align-items: center; margin-top: 12px; }
.ck-spice__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.ck-spice .ck-lead { max-width: 445px; color: var(--ink-copy); }
.ck-spice__card { display: flex; flex-direction: column; gap: 5px; width: min(100%, 410px); padding: 26px 20px 27px; border-radius: 20px; background: var(--maroon); }
.ck-spice__name { font-family: var(--font-serif); font-weight: 400; font-size: 22px; line-height: 25px; color: var(--gold-light); }
.ck-spice__line { font-size: 13px; line-height: 21px; color: var(--cream); }

/* The wheel turns by --spin; each spice turns back by as much, so it stays upright. */
.ck-wheel { --spin: 0deg; --wheel: calc(477 * var(--u)); position: relative; width: var(--wheel); aspect-ratio: 477 / 461; }
.ck-wheel__turn { position: absolute; left: 0; top: 0; width: 95.6%; aspect-ratio: 1; rotate: var(--spin); transition: rotate .7s var(--ease-out); }
.ck-wheel__wedges { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ck-wedge { stroke: var(--cream); stroke-width: 3; stroke-linejoin: round; transition: scale .4s var(--ease-out), stroke .4s; }
.ck-wedge--mid { fill: #A20811; }
.ck-wedge--bright { fill: #F60227; }
.ck-wedge--deep { fill: #55050E; }
/* the slice at the pointer stands out from the rim, edged in gold */
.ck-wedge[data-on] { scale: 1.092; stroke: var(--pop-edge); stroke-width: 1.2; }
.ck-wheel__spices { position: absolute; inset: 0; }
.ck-wheel__spice { --a: calc(var(--i) * 24deg); position: absolute; left: calc(50% + 34.4% * cos(var(--a))); top: calc(50% + 34.4% * sin(var(--a))); width: 17.1%; aspect-ratio: 3 / 2; translate: -50% -50%; rotate: calc(-1 * var(--spin)); transition: rotate .7s var(--ease-out); }
.ck-wheel__pick { display: grid; place-items: center; width: 100%; height: 100%; min-width: 44px; min-height: 44px; border-radius: 12px; transition: scale var(--dur-hover) var(--ease-out); }
@media (hover: hover) {
  .ck-wheel__pick:hover { scale: 1.08; }
}
.ck-wheel__pick img { width: 100%; height: 100% !important; object-fit: contain; }
.ck-wheel__lock { position: absolute; left: 32.08%; top: 33.19%; width: 31.45%; aspect-ratio: 1; overflow: hidden; border: 2.5px solid transparent; border-radius: 50%; background: linear-gradient(var(--cream), var(--cream)) padding-box, var(--gold-ring) border-box; }
.ck-wheel__lock img { position: absolute; left: -35.3%; top: -1.3%; width: 159.3%; max-width: none; }
/* the lock's words are part of the picture: they grow and shrink with the wheel */
.ck-wheel__lock span { position: absolute; left: 0; right: 0; top: 64%; font-family: var(--font-display); font-size: calc(var(--wheel) * 12 / 477); line-height: 1.17; text-align: center; text-transform: uppercase; color: var(--maroon); }
.ck-wheel__next { position: absolute; left: 94.34%; top: 48.81%; display: grid; place-items: center; width: 40px; height: 40px; translate: -50% -50%; border-radius: 50%; background: var(--red); color: var(--cream); font-size: 20px; box-shadow: 0 7px 15px rgba(0, 0, 0, .3); transition: background-color var(--dur-hover); }
.ck-wheel__next::after { content: ""; position: absolute; inset: -2px; }
.ck-wheel__next:hover { background: var(--maroon); }

/* ---------- 4. The dum, step by step ---------- */
.ck-dum { padding: calc(76 * var(--u)) var(--gutter); background: var(--maroon); color: var(--cream); }
.ck-dum__grid { display: grid; grid-template-columns: calc(443 * var(--u)) minmax(0, 1fr); column-gap: calc(44 * var(--u)); margin-top: 32px; }
/* the arch stays in view while the steps go by; its caption names the step beside it */
.ck-dum__stage { position: sticky; top: max(96px, calc(50vh - 230 * var(--u))); align-self: start; }
.ck-dum__arch { aspect-ratio: 443 / 460; padding: 2.4px; border-radius: 999px 999px 0 0; background: var(--gold-ring); }
.ck-dum__arch img { width: 100%; height: 100% !important; object-fit: cover; border-radius: 999px 999px 0 0; background: var(--arch-dark); }
.ck-dum__cap { position: absolute; left: 50%; bottom: calc(17 * var(--u)); display: flex; align-items: center; gap: 9px; padding: 6px 17px 6px 6px; translate: -50% 0; border-radius: var(--radius-pill); background: var(--cream); white-space: nowrap; box-shadow: 0 8px 19px rgba(0, 0, 0, .3); }
.ck-dum__cap b { display: grid; place-items: center; width: 30px; height: 30px; padding-top: 2px; border-radius: 50%; background: var(--red); font-family: var(--font-condensed); font-weight: 400; font-size: 17px; line-height: 16px; letter-spacing: .035em; color: var(--cream); }
.ck-dum__cap span { font-family: var(--font-serif); font-size: 13px; line-height: 16px; letter-spacing: .046em; text-transform: uppercase; color: var(--maroon); }
.ck-dum__step { display: grid; grid-template-columns: calc(94 * var(--u)) minmax(0, 1fr); align-items: center; align-content: center; min-height: calc(586 * var(--u)); }
.ck-dum__num { align-self: start; padding-left: calc(21 * var(--u)); font-family: var(--font-condensed); font-size: max(40px, calc(57 * var(--u))); line-height: .912; color: var(--gold-light); }
.ck-dum__words { display: flex; flex-direction: column; gap: 6px; max-width: 305px; }
.ck-dum__words h3 { font-family: var(--font-serif); font-weight: 400; font-size: 25px; line-height: 28px; }
.ck-dum__words p { font-size: 15px; line-height: 24px; }

/* ---------- 5. The journey, field to table ---------- */
.ck-journey { padding: calc(110 * var(--u)) var(--gutter) calc(91 * var(--u)); background: var(--panel); color: var(--maroon); }
.ck-journey__wrap { width: calc(1212 * var(--u)); margin-inline: auto; }
.ck-journey .ck-head { gap: 11px; }
.ck-journey .ck-h2 { padding-top: 1px; }
.ck-journey .ck-lead { padding-top: 5px; color: var(--ink-copy); }
.ck-journey .ck-seg { padding-top: 9px; }
.ck-journey__path { margin-top: calc(55 * var(--u)); }
/* the line runs down the middle; each stop sits on it, its photo on one side and its words beyond */
.ck-stops { position: relative; display: grid; gap: calc(47 * var(--u)); }
.ck-stops[hidden] { display: none; }
.ck-stops::before { content: ""; position: absolute; left: 50%; top: calc(-16 * var(--u)); bottom: calc(-62 * var(--u)); width: 5px; translate: -50% 0; border-radius: 2px; background: rgba(126, 13, 18, .18); }
.ck-stop { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) calc(229 * var(--u)) calc(18 * var(--u)) calc(36 * var(--u)) calc(18 * var(--u)) calc(229 * var(--u)) minmax(0, 1fr); align-items: center; min-height: calc(142 * var(--u)); }
.ck-stop__dot { grid-column: 4; grid-row: 1; display: grid; place-items: center; width: calc(36 * var(--u)); min-width: 28px; aspect-ratio: 1; padding-top: 2px; border: 1.5px solid var(--maroon); border-radius: 50%; background: var(--cream); font-family: var(--font-condensed); font-size: max(16px, calc(20 * var(--u))); line-height: 1; color: var(--maroon); }
.ck-stop__dot--first { border-color: var(--stop-dot); background: var(--stop-dot); color: var(--panel); }
.ck-stop__photo { grid-row: 1; }
.ck-stop__photo img { width: 100%; aspect-ratio: 229 / 142; height: auto !important; object-fit: cover; border-radius: max(16px, calc(25 * var(--u))); transition: transform .45s var(--ease-out); }
.ck-stop__words { grid-row: 1; display: flex; flex-direction: column; gap: 3px; }
.ck-stop__words h3 { font-family: var(--font-serif); font-weight: 400; font-size: 22px; line-height: 25px; }
.ck-stop__words p { max-width: 220px; font-size: 13px; line-height: 21px; color: var(--ink-copy); }
.ck-stop--left .ck-stop__photo { grid-column: 2; }
.ck-stop--left .ck-stop__words { grid-column: 1; align-items: flex-end; padding-right: calc(16 * var(--u)); text-align: right; }
.ck-stop--right .ck-stop__photo { grid-column: 6; }
.ck-stop--right .ck-stop__words { grid-column: 7; padding-left: calc(16 * var(--u)); }
/* a stop still waiting for its photo keeps its words beside the line */
.ck-stop--left.ck-stop--bare .ck-stop__words { grid-column: 1 / 3; }
.ck-stop--right.ck-stop--bare .ck-stop__words { grid-column: 6 / 8; }
@media (hover: hover) {
  .ck-stop:hover .ck-stop__photo img { transform: translateY(calc(32 * var(--u))) rotate(-15deg); }
}
.ck-approved { display: flex; flex-direction: column; align-items: center; gap: calc(30 * var(--u)); padding-top: calc(124 * var(--u)); }
.ck-approved__stamp { width: max(112px, calc(160 * var(--u))); }
.ck-approved__words { font-family: var(--font-condensed); font-size: max(40px, calc(66 * var(--u))); line-height: .924; text-align: center; text-transform: uppercase; }

/* ---------- 6. The people ---------- */
.ck-people { padding: calc(76 * var(--u)) var(--gutter); background: var(--maroon); color: var(--cream); }
.ck-people__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: calc(15.75 * var(--u)); margin-top: calc(36 * var(--u)); }
/* a card turns over to show who it is and what they keep: on a press, and under a pointer that can hover */
.ck-person__card { position: relative; display: block; width: 100%; aspect-ratio: 209.5 / 279.3; border-radius: max(14px, calc(19.7 * var(--u))); perspective: 900px; }
.ck-person__front, .ck-person__back { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; backface-visibility: hidden; transition: transform .6s var(--ease-in-out); }
.ck-person__front img { width: 100%; height: 100% !important; object-fit: cover; }
.ck-person__back { display: flex; flex-direction: column; justify-content: center; gap: 9px; padding: 19px; transform: rotateY(180deg); background: var(--cream); text-align: center; }
.ck-person__back strong { font-family: var(--font-serif); font-weight: 400; font-size: max(18px, calc(22 * var(--u))); line-height: 1.25; color: var(--red); }
.ck-person__back span { font-family: var(--font-serif); font-size: max(14px, calc(15.75 * var(--u))); line-height: 1.35; color: var(--maroon); }
.ck-person__card[aria-pressed="true"] .ck-person__front { transform: rotateY(-180deg); }
.ck-person__card[aria-pressed="true"] .ck-person__back { transform: rotateY(0deg); }
@media (hover: hover) {
  .ck-person__card:hover .ck-person__front { transform: rotateY(-180deg); }
  .ck-person__card:hover .ck-person__back { transform: rotateY(0deg); }
}

/* ---------- 7. Rules you can taste ---------- */
.ck-end { padding: calc(87 * var(--u)) var(--gutter); background: var(--red); color: var(--cream); text-align: center; }
.ck-end__title { font-family: var(--font-condensed); font-weight: 400; font-size: max(56px, calc(118 * var(--u))); line-height: .924; text-transform: uppercase; }
.ck-end__text { margin-top: 16px; font-size: 16px; line-height: 25px; }
.ck-end__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 11px; margin-top: 25px; }
.ck-diamonds { display: flex; overflow: hidden; height: clamp(22px, calc(32 * var(--u, 1px)), 32px); background: var(--cream); }
.ck-diamonds img { flex: none; width: auto; max-width: none; height: 100% !important; }

/* ---------- Narrower windows ---------- */
@container page (max-width: 1100px) {
  /* the content takes the room the scaled design would leave empty */
  .ck-wrap { width: min(100%, 885px); }
  .ck-journey__wrap { width: min(100%, 1212px); }
  /* each law's words, then its box */
  .ck-law, .ck-law--companions { grid-template-columns: minmax(0, 1fr); row-gap: 28px; min-height: 0; padding: 48px max(24px, calc(56 * var(--u))); }
  .ck-law .ck-box { justify-self: center; width: min(100%, 454px); }
}
@container page (max-width: 1000px) {
  .ck-wrap, .ck-journey__wrap { width: auto; }
  .ck-spice__inner { width: auto; margin-left: 0; }
  .ck-spice__row { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  .ck-wheel { --wheel: min(477px, 100cqw - 2 * var(--gutter)); justify-self: center; }
}
@container page (max-width: 900px) {
  .ck-hero { min-height: 0; padding-top: 132px; padding-bottom: 96px; }
  .ck-std { padding-top: 88px; padding-bottom: 64px; }
  .ck-laws { gap: 20px; margin-top: 32px; padding-bottom: 0; }
  /* the arch leads the steps instead of riding beside them */
  .ck-dum__grid { grid-template-columns: minmax(0, 1fr); row-gap: 24px; }
  .ck-dum__stage { position: relative; top: auto; justify-self: center; width: min(100%, 443px); }
  .ck-dum__cap { display: none; }
  .ck-dum__step { grid-template-columns: 64px minmax(0, 1fr); min-height: 0; padding: 22px 0; }
  /* the line runs down the left; each stop's photo and words follow it */
  .ck-journey { padding-top: 88px; padding-bottom: 72px; }
  .ck-journey__path { margin-top: 40px; }
  .ck-stops { gap: 36px; }
  .ck-stops::before { left: 17px; top: -12px; bottom: -40px; }
  .ck-stop, .ck-stop--left, .ck-stop--right { grid-template-columns: 34px minmax(0, 1fr); column-gap: 18px; align-items: start; min-height: 0; }
  .ck-stop__dot { grid-column: 1; grid-row: 1 / span 2; width: 34px; }
  .ck-stop--left .ck-stop__photo, .ck-stop--right .ck-stop__photo { grid-column: 2; grid-row: 1; width: min(100%, 320px); }
  .ck-stop--left .ck-stop__words, .ck-stop--right .ck-stop__words,
  .ck-stop--left.ck-stop--bare .ck-stop__words, .ck-stop--right.ck-stop--bare .ck-stop__words { grid-column: 2; grid-row: 2; align-items: flex-start; padding: 12px 0 0; text-align: left; }
  .ck-stop--bare .ck-stop__words { grid-row: 1; padding-top: 4px; }
  .ck-approved { padding-top: 56px; gap: 24px; }
  .ck-people { padding-top: 72px; padding-bottom: 72px; }
  .ck-people__grid { gap: 12px; margin-top: 28px; }
  .ck-end { padding-top: 72px; padding-bottom: 72px; }
}
@container page (max-width: 760px) {
  .ck-hero::before { background: linear-gradient(90deg, rgba(42, 5, 8, .92) 0%, rgba(42, 5, 8, .78) 60%, rgba(42, 5, 8, .5) 100%); }
  .ck-hero__title { font-size: clamp(56px, 15cqw, 96px); }
  .ck-people__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container page (max-width: 480px) {
  .ck-hero__actions .btn-compact, .ck-end__actions .btn-compact { padding-inline: 18px; }
  .ck-law, .ck-law--companions { padding: 36px 20px; }
  .ck-box { padding-inline: 14px; }
  .ck-checks { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   Motion (see the motion notes in site.css: everything hangs off data-motion="on")
   ========================================================================== */

/* The opening's photo is there from the first frame and eases back (settle). The spice wheel turns into place
   about its own hub, the approval is stamped onto the page, and each stop's number lands once its stop has risen. */
[data-motion="on"] .ck-wheel { --from-turn: -24deg; --from-scale: .94; transform-origin: 47.8% 49.5%; }
[data-motion="on"] .ck-stop[data-seen]:not([data-rested]) .ck-stop__dot { animation: grow var(--dur-short) var(--ease-overshoot) calc(var(--reveal-start) + 200ms) backwards; }

/* On the seesaw the bucket and its shadow take their new place at once and are carried to it from the old one, so
   they are only ever moved, never laid out along the way (cooks.ts measures from where; they turn about their top
   left corner, and are shifted and scaled about it). */
[data-motion="on"] .ck-seesaw__scene > [data-nudged="carried"] { animation: carried .5s var(--ease-out); }
@keyframes carried { from { translate: var(--carry-x) var(--carry-y); scale: var(--carry-scale); } }

/* ---------- Motion: scroll-linked ---------- */
/* The line down the middle of a journey is drawn as the reader follows it, and stays drawn behind them. The page's
   script gives how much of it stands (--drawn, 0 to 1) while it is being drawn; before and after, and whenever
   motion is off, the line is whole, as on the static page. */
[data-motion="on"] .ck-journey__path[data-drawing] .ck-stops::before { transform-origin: 50% 0; transform: scaleY(var(--drawn, 1)); }

/* ---------- Motion: hover and press ---------- */
@media (prefers-reduced-motion: no-preference) {
  .ck-seg__btn { transition: background-color .3s var(--tap), color .3s var(--tap), transform var(--dur-hover) var(--ease-out); }
  .ck-wheel__next { transition: background-color var(--dur-hover), transform var(--dur-hover) var(--ease-out); }
  .ck-seg__btn:active { transform: scale(.97); transition-duration: var(--dur-press); }
  .ck-wheel__pick:active { scale: .96; transition-duration: var(--dur-press); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .ck-wheel__next:hover { transform: scale(1.08); }
}
/* after the hover rule, so a press wins while the pointer is still over the button */
@media (prefers-reduced-motion: no-preference) {
  .ck-wheel__next:active { transform: scale(.9); transition-duration: var(--dur-press); }
}
