/* SS Bucket Biryani website: tokens, shared components and Home sections.
   Desktop values match the Figma at 1512 px; clamp() and cqw (1% of the page's width) scale them down so the
   same markup works on tablets and phones. The screen-size rules are container queries on .page, so they
   follow the page's width: on the site that is the window's width, and on the design canvas a frame can
   show a whole page drawn smaller and still get the layout of the width it shows. */

:root {
  /* Colour: the Figma's 20+ near-duplicates folded into these */
  --cream: #FFF2DE;
  --cream-deep: #FCE4C3;
  --red: #DF0724;          /* 4.5:1 with cream, so small text may sit on it */
  --red-on-dark: #FF2830;  /* large text on maroon and near-black grounds */
  --maroon: #7E0D12;
  --maroon-deep: #590608;
  --maroon-ink: #2C0707;
  --ink: #170D0E;
  --white: #FFFFFF;
  --black: #000000;
  --gold: linear-gradient(90deg, #B57D30 0%, #D0A24D 17%, #F6DB88 35%, #F5F3CD 49%, #F6DB88 64%, #D0A24D 82%, #B57D30 100%);
  --gold-solid: #D0A24D;

  /* Type: three families instead of seven. Tamil MN is the brand's display face
     (Apple devices only until the client licenses a web file); Marcellus stands in elsewhere. */
  --font-display: "Tamil MN", var(--font-marcellus);
  --font-serif: var(--font-marcellus);
  --font-condensed: var(--font-league-gothic);
  --font-text: var(--font-outfit);

  --fs-xs: 14px;
  --fs-sm: 16px;
  --fs-md: 18px;
  --fs-lg: 20px;
  --fs-xl: clamp(18px, 1.59cqw, 24px);
  --fs-2xl: clamp(20px, 1.85cqw, 28px);
  --fs-3xl: clamp(24px, 2.38cqw, 36px);
  --fs-4xl: clamp(30px, 3.17cqw, 48px);
  --fs-5xl: clamp(36px, 4.23cqw, 64px);
  --fs-6xl: clamp(40px, 5.69cqw, 86px);
  --fs-7xl: clamp(48px, 7.14cqw, 108px);
  --fs-8xl: clamp(56px, 9.52cqw, 144px);
  --fs-9xl: clamp(64px, 11.64cqw, 176px);
  --fs-mega: clamp(72px, 15.87cqw, 240px);

  /* Space: 8-point steps */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;
  --gutter: clamp(16px, 4.2cqw, 64px);

  --radius-sm: 11px;
  --radius-md: 15px;
  --radius-lg: clamp(24px, 3.3cqw, 50px);
  --radius-pill: 999px;
  --tap: cubic-bezier(0, 0, .58, 1);   /* the Figma's own easing for its 0.3 s changes */

  /* Wide screens: art stays in the same centred 1512 px frame as the content. The % resolve against
     the box that uses them, which is always a full-width section here. */
  --frame: min(100%, 1512px);
  --side: calc((100% - min(100%, 1512px)) / 2);

  /* Motion: one small set for the whole site. The rules that use it are in "Motion", at the end of this file. */
  --dur-press: 160ms;   /* a press, a colour change */
  --dur-hover: 240ms;   /* hover lifts and nudges */
  --dur-short: 400ms;   /* small things popping in */
  --dur-enter: 700ms;   /* the standard entrance */
  --dur-long: 1000ms;   /* headlines and large art */
  --ease-out: cubic-bezier(.16, 1, .3, 1);          /* expressive: leaves fast, lands softly */
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);      /* standard: for wipes and anything that turns round */
  --ease-overshoot: cubic-bezier(.34, 1.4, .64, 1); /* a gentle overshoot, for small pops only */
  --stagger: 80ms;      /* the gap between neighbours in a group */
  --rise: 32px;         /* how far a block travels as it enters */
  --breath: 6s;         /* the tempo of the ambient loops: each one lasts a multiple of it */
}

/* ---------- Base ---------- */
.page { container: page / inline-size; font-family: var(--font-text); color: var(--maroon-deep); background: var(--cream); line-height: 1.5; overflow-x: clip; -webkit-font-smoothing: antialiased; }
.page *, .page *::before, .page *::after { box-sizing: border-box; }
/* :where() keeps these resets at zero specificity, so any component class overrides them */
:where(.page) img { display: block; max-width: 100%; height: auto; }
/* `hidden` always hides, even where a rule above gives the element a display of its own */
[hidden] { display: none !important; }
:where(.page) :where(h1, h2, h3, p, ul, address) { margin: 0; padding: 0; font-style: normal; }
:where(.page) ul { list-style: none; }
/* While the page arrives nothing fades (the layout's first script sets data-loading and takes it off once the page
   has loaded): otherwise a browser that styled the page before its stylesheets came in fades every button from
   plain colours into its own. */
[data-loading] *, [data-loading] *::before, [data-loading] *::after { transition: none !important; }
:where(.page) a { color: inherit; text-decoration: none; }
:where(.page) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
/* Two rings, so focus shows on every ground: the dark inner ring stands out on cream and red, the gold outer one on
   the maroons. Gold alone is 2.1:1 on cream and on red, under the 3:1 a focus indicator needs. */
.page :focus-visible { outline: 3px solid var(--gold-solid); outline-offset: 3px; box-shadow: 0 0 0 3px var(--maroon-ink); }
/* A landing that a jump within the page focuses (the main content, a section's heading) carries no ring: it is not a
   control, and the jump has already shown where it went. */
.page :is(main, h2, h3)[tabindex="-1"]:focus { outline: none; box-shadow: none; }
.wrap { position: relative; width: 100%; max-width: 1512px; margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* "Skip to content": the first thing Tab reaches on every page, so the header's links can be passed over. It shows
   only while it has focus. It sits outside .page, so it draws its own focus ring. */
.skip-link { position: fixed; left: 12px; top: 12px; z-index: 100; display: inline-flex; align-items: center; min-height: 46px; padding: 0 22px; border-radius: var(--radius-pill); background: var(--cream); color: var(--maroon); font: 500 15px/1 var(--font-text); text-decoration: none; box-shadow: 0 8px 17px rgba(0, 0, 0, .28); }
.skip-link:not(:focus) { clip-path: inset(50%); }
.skip-link:focus { outline: 3px solid var(--gold-solid); outline-offset: 3px; }

/* Headings break into lines of even length and running text avoids ending on one word, at every width.
   Neither changes how many lines a block takes, so nothing below moves. */
:where(.page) :where(h1, h2, h3, h4, .display, .heading-line, .eyebrow) { text-wrap: balance; }
:where(.page) :where(p, li) { text-wrap: pretty; }

.display { font-family: var(--font-display); font-weight: 700; line-height: 1; text-transform: uppercase; font-synthesis: none; }
.condensed { font-family: var(--font-condensed); font-weight: 400; line-height: .93; text-transform: uppercase; letter-spacing: .01em; }
.eyebrow { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-xl); line-height: 1; text-transform: uppercase; color: var(--red); font-synthesis: none; }
.section-title { font-size: var(--fs-4xl); }
.gold-text { background: var(--gold); -webkit-background-clip: text; background-clip: text; color: transparent; }

.icon { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }

/* ---------- Shared components ---------- */
.motif { display: flex; overflow: hidden; height: clamp(30px, 3.77cqw, 57px); }
.motif img { height: 100% !important; width: auto; max-width: none; flex: none; }

.checker { height: 36px; background: repeating-conic-gradient(var(--red) 0 25%, var(--cream) 0 50%) 0 0 / 36px 36px; }
.gold-rule { height: 4px; background: var(--gold); }
.gold-rule--thick { height: 7px; }

.btn-pill { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 56px; padding: 8px 36px; border: 2px solid var(--cream); border-radius: var(--radius-pill); color: var(--cream); font-size: var(--fs-xl); line-height: 1.5; white-space: nowrap; transition: background-color .2s; }
.btn-pill:hover { background: rgba(255, 242, 222, .14); }
.btn-pill--solid { border-color: var(--maroon); background: var(--maroon); }
.btn-pill--solid:hover { background: var(--maroon-deep); border-color: var(--maroon-deep); }
.btn-pill .icon { font-size: 1.1em; }

/* inline so a long label wraps as one sentence on small phones */
/* The compact pill button of the later pages (Contact Us, How SS Cooks, Careers): cream, red or outlined */
.btn-compact { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border: 1.6px solid transparent; border-radius: var(--radius-pill); font-weight: 500; font-size: 13.5px; line-height: 17px; white-space: nowrap; text-decoration: none; transition: background-color .3s var(--tap), box-shadow .3s var(--tap), color .3s var(--tap), transform var(--dur-hover) var(--ease-out); }
.btn-compact .icon { font-size: 15px; }
.btn-compact:hover { box-shadow: 0 8px 17px rgba(0, 0, 0, .28); }
.btn-compact--cream { background: var(--cream); color: var(--maroon); }
.btn-compact--red { background: var(--red); color: var(--cream); }
.btn-compact--red:hover { background: #C8061F; }
.btn-compact--outline { border-color: var(--cream); color: var(--cream); }
.btn-compact--outline:hover { background: rgba(255, 242, 222, .12); }

/* Every dropdown has the site's own arrow and is drawn alike in every browser: Safari would otherwise keep its own
   small control. A page sets the colours and the size; it sets background-color, as the background shorthand would
   take the arrow away. */
.page select { -webkit-appearance: none; appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237E0D12' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 16px; }
.text-link { display: inline-block; padding-block: 10px; margin-block: -10px; text-align: center; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-2xl); line-height: 1.15; color: var(--maroon); font-synthesis: none; }
.text-link span { color: var(--red); white-space: nowrap; }
.text-link .icon { display: inline-block; margin-left: 6px; vertical-align: -0.1em; color: var(--red); font-size: .9em; transition: transform .2s; }
.text-link:hover .icon { transform: translateX(4px); }

.carousel-nav { display: flex; gap: var(--space-3); }
.round-btn { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 225, 185, .22); color: var(--cream); font-size: 22px; transition: background-color .2s; }
.round-btn:hover { background: rgba(255, 225, 185, .38); }
.round-btn--red { background: var(--red); color: var(--white); }
.round-btn--red:hover { background: var(--maroon); }

.store-badges { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.store-badges img { height: clamp(52px, 5.8cqw, 88px) !important; width: auto; }

.scroller { display: flex; gap: var(--gap, 0px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.scroller > * { flex: none; scroll-snap-align: start; }
/* Every row that scrolls sideways is marked data-lenis-prevent-horizontal: smooth scrolling (smooth-scroll.ts) leaves
   a sideways swipe over it to the browser, and still moves the page for one up or down. The smooth scroller's own
   stylesheet would also keep every scroll that starts on such a row from reaching the page, so a finger moving up
   or down over its photos would move nothing. Only sideways is held here: a flick past either end of a row stops
   there, and never sends the browser back a page. The second selector outranks the smooth scroller's rule. */
[data-lenis-prevent-horizontal],
html.lenis [data-lenis-prevent-horizontal] { overscroll-behavior: contain auto; }
/* An element that scrolls up and down on its own (Home's story box) is marked data-lenis-prevent, so the wheel over it
   is the browser's: it reads the element first, and once its end is reached the page carries on. The smooth
   scroller's own stylesheet would keep the page from ever moving under the pointer there. */
html.lenis [data-lenis-prevent] { overscroll-behavior: auto; }

.dots { display: flex; gap: var(--space-2); }
.dots span { width: 10px; height: 10px; border-radius: 50%; background: rgba(89, 6, 8, .25); }
.dots span[aria-current="true"] { width: 28px; border-radius: 5px; background: var(--red); }

/* ---------- Header ---------- */
/* The header stays with the visitor on every page. It sits in the page's flow with no height of its own, so it
   lies over the opening as designed, and from there it sticks to the top of the window. While the visitor scrolls
   down it slides out of the way, and it comes back as soon as they scroll up (data-hidden, set by the page's
   script). Keyboard focus inside its bar, or its open menu, keeps it in view. */
.site-header { position: sticky; top: 0; z-index: 20; height: 0; }
.site-header > .wrap { padding-top: clamp(12px, 2.4cqw, 36px); }
.site-header[data-hidden]:not([data-menu-open]) > .wrap:not(:has(:focus-visible)) { translate: 0 calc(-100% - 24px); }
.site-header__bar { position: relative; display: flex; align-items: center; gap: var(--space-5); min-height: 58px; padding: 0 clamp(12px, 2cqw, 30px) 0 clamp(128px, 13.6cqw, 206px); border-radius: var(--radius-md); background: var(--red); }
.site-header__logo { position: absolute; left: clamp(12px, 2cqw, 30px); top: 50%; translate: 0 -50%; }
.site-header__logo img { width: clamp(104px, 10.9cqw, 165px); }
.site-nav ul { display: flex; align-items: center; gap: clamp(18px, 2.45cqw, 37px); }
.site-nav { margin-left: auto; }
.site-nav a { display: block; padding-block: 19px 17px; border-bottom: 2px solid transparent; white-space: nowrap; font-family: var(--font-display); font-weight: 700; font-size: var(--fs-lg); line-height: 1; color: var(--cream); font-synthesis: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--cream-deep); }
.site-header__order { flex: none; padding: 9px 18px; border-radius: var(--radius-pill); background: var(--cream); color: var(--red); font-weight: 700; font-size: var(--fs-sm); line-height: 1.2; }
.site-header__order:hover { background: var(--white); }
.site-header__menu { display: none; width: 44px; height: 44px; place-items: center; color: var(--cream); font-size: 26px; }
.site-header__menu[aria-expanded="false"] [data-shows="open"], .site-header__menu[aria-expanded="true"] [data-shows="closed"] { display: none; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; display: grid; place-items: center; min-height: clamp(560px, 54.5cqw, 824px); overflow: hidden; text-align: center; color: var(--white); }
.hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100% !important; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0, 0, 0, .3); }
.hero__inner { display: grid; justify-items: center; gap: clamp(16px, 1.45cqw, 22px); padding: clamp(96px, 7.3cqw, 110px) var(--gutter) 0; }
.hero__coin { width: clamp(56px, 6.15cqw, 93px); }
.hero__title { font-size: var(--fs-6xl); }

/* ---------- The essence of quality ---------- */
.essence { position: relative; overflow: hidden; padding-top: clamp(12px, 1.45cqw, 22px); text-align: center; }
.essence__art { position: relative; max-width: 1512px; height: clamp(300px, 52cqw, 786px); margin-inline: auto; }
.essence__art > img { position: absolute; }
.essence__bucket { left: 50%; top: 46%; width: clamp(240px, 48.3cqw, 731px); translate: -50% -50%; rotate: 30deg; }
.essence__drum { left: -5.8%; top: 31%; width: 24.7%; }
.essence__leg { z-index: 2; right: -5%; bottom: -4.6cqw; width: 32.3%; }
.essence__title { position: relative; z-index: 1; padding-inline: var(--space-3); font-size: clamp(36px, 6.88cqw, 104px); color: var(--maroon); }
.essence__motto { display: inline-flex; align-items: center; gap: 11px; margin-top: clamp(40px, 5.3cqw, 80px); padding: clamp(12px, 1.4cqw, 21px) 14px clamp(12px, 1.4cqw, 21px) clamp(22px, 2.5cqw, 38px); border-radius: 48px; background: var(--red); color: var(--cream); font-size: var(--fs-4xl); }
.essence__motto img { width: 1em; height: 1em !important; }
.essence__link { display: flex; justify-content: center; margin-top: var(--space-5); }
.essence > .motif:last-child { margin-top: clamp(56px, 7.3cqw, 110px); }

/* ---------- Order on the app ---------- */
.app-band { position: relative; overflow: hidden; min-height: 497px; padding-block: clamp(40px, 3.8cqw, 58px) 120px; }
.app-band__copy { position: relative; z-index: 2; display: grid; justify-items: start; gap: 20px; max-width: 640px; margin-left: clamp(0px, 5.8cqw, 88px); }
.app-band__title { font-size: var(--fs-6xl); color: var(--maroon-deep); }
.app-band__title span { display: block; color: var(--red); }
.app-band__lead { font-size: var(--fs-lg); color: var(--black); }
.app-band__wave { position: absolute; left: -7.7%; width: 107.7%; max-width: none !important; }
.app-band__wave--back { bottom: -3.3cqw; }
.app-band__wave--front { z-index: 1; bottom: -5.2cqw; }
.app-band__phone { position: absolute; z-index: 1; right: var(--side); bottom: -8.7cqw; width: clamp(260px, 47.4cqw, 716px); }

/* ---------- Why biryani arrives in a bucket ---------- */
.why { position: relative; overflow: hidden; min-height: min(65cqw, 982px); background: var(--maroon-deep); color: var(--cream); }
.why__copy { position: relative; z-index: 1; display: grid; gap: var(--space-4); max-width: calc(var(--side) + 820px); padding-block: clamp(56px, 8.8cqw, 133px) var(--space-8); padding-left: max(var(--gutter), 6.6cqw, calc(var(--side) + 100px)); }
.why__kicker { display: block; font-size: var(--fs-4xl); }
.why__title { display: block; margin-top: var(--space-4); font-size: var(--fs-6xl); color: var(--red-on-dark); }
.why__body { display: grid; gap: 33px; max-width: 420px; margin-top: var(--space-6); font-size: var(--fs-lg); line-height: 1.65; }
/* The story reads in a window of its own: the wheel, a swipe or "Scroll down" moves the text, not the page. The
   window fades out at the bottom while there is more to read, and at the top once it has been scrolled. */
.why__body { max-height: 13lh; overflow-y: auto; scrollbar-width: none; --story-fade: linear-gradient(#000 6.6lh, rgba(0, 0, 0, .7) 7.2lh, transparent); -webkit-mask-image: var(--story-fade); mask-image: var(--story-fade); }
.why__body::-webkit-scrollbar { display: none; }
.why__body[data-scrolled] { --story-fade: linear-gradient(transparent, #000 2lh, #000 calc(100% - 4lh), transparent); }
.why__body[data-end] { --story-fade: linear-gradient(transparent, #000 2lh); }
.why__scroll[data-up] .icon { rotate: 180deg; }
.why__scroll { justify-self: start; display: grid; justify-items: center; gap: 6px; margin-left: clamp(0px, 8cqw, 121px); color: var(--cream); }
.why__scroll span { padding: 6px 14px; border: 1px solid rgba(255, 242, 222, .25); border-radius: 80px; background: rgba(255, 255, 255, .06); font-size: var(--fs-xs); line-height: 1.6; }
.why__scroll .icon { font-size: 40px; stroke-width: 1.4; }
.why__art { position: absolute; top: 0; right: var(--side); width: min(55.2cqw, 834px); aspect-ratio: 834 / 982; }
.why__art > * { position: absolute; }
.why__circle { left: 0; top: 47%; width: 102.4%; aspect-ratio: 1; border-radius: 50%; background: var(--maroon); }
.why__arch { left: 8%; top: 17.4%; width: 86.5%; }
.why__steam { left: 19.3%; top: 13.5%; width: 63.2%; }
.why__shadow { left: 27.1%; top: 76.9%; width: 47.7%; aspect-ratio: 398 / 188; border-radius: 50%; background: linear-gradient(#370102, #9D0306); filter: blur(24px); }
.why__bucket { left: 13.8%; top: 30%; width: 74.6%; }
/* The art follows the story, as the Figma's states do: while the paragraph about the packets is read
   (data-show="packets"), the bucket gives way to the packets; at the story's end the section turns to the packs
   (data-show="packs"). Inside the art, 1 Figma px (of the 834 px art) is --fx, so every piece keeps its place. */
.why__art { container-type: inline-size; --fx: calc(100cqw / 834); }
.why__bucket, .why__shadow { transition: opacity .6s var(--ease-out); }
.why:is([data-show="packets"], [data-show="packs"]) :is(.why__bucket, .why__shadow) { opacity: 0; }
.why:is([data-show="packets"], [data-show="packs"]) .why__steam { visibility: hidden; }
.why__packets { left: 28.18%; top: 39.82%; width: 45.92%; }
.why__packets-shadow { left: 31.41%; top: 90.53%; width: 39.57%; aspect-ratio: 330 / 65; border-radius: 50%; background: linear-gradient(#370102, #9D0306); filter: blur(calc(27 * var(--fx))); }
.why__packets, .why__packets-shadow { opacity: 0; translate: 0 calc(24 * var(--fx)); transition: opacity .6s var(--ease-out), translate .6s var(--ease-out); }
.why[data-show="packets"] :is(.why__packets, .why__packets-shadow) { opacity: 1; translate: none; }

/* The packs: the circle settles lower, a rope hangs across the arch with a tag for each pack, the one chosen
   (data-pack) in the middle, and how many it serves stands above it. */
.why__circle { transition: translate .7s var(--ease-out), scale .7s var(--ease-out); }
.why[data-show="packs"] .why__circle { translate: .76% 33.08%; scale: .821; }
.why__line, .why__seal, .why__serves { display: none; opacity: 0; transition: opacity .5s var(--ease-out), translate .7s var(--ease-out), top .3s var(--ease-out); }
.why :is(.why__line, .why__seal)[data-shown] { display: block; }
.why[data-show="packs"] :is(.why__line, .why__seal, .why__serves) { display: block; opacity: 1; translate: none; }
@starting-style {
  .why[data-show="packs"] :is(.why__line, .why__seal, .why__serves) { opacity: 0; }
}
.why__line { left: 8.03%; top: 17.41%; width: 86.45%; aspect-ratio: 721 / 966; overflow: hidden; border-radius: calc(360 * var(--fx)) calc(360 * var(--fx)) 0 0; translate: 0 calc(-48 * var(--fx)); }
.why__track { position: absolute; inset: 0; transition: translate .3s var(--ease-out); }
.why__track::before { content: ""; position: absolute; left: calc(-68 * var(--fx)); top: calc(145 * var(--fx)); width: calc(2652 * var(--fx)); height: calc(8 * var(--fx)); background: url("/images/why-rope.webp") repeat-x 0 0 / auto 100%; }
.why[data-pack="smart"] .why__track { translate: calc(-485 * var(--fx)) 0; }
.why[data-pack="super"] .why__track { translate: calc(-966 * var(--fx)) 0; }
.why[data-pack="standard"] .why__track { translate: calc(-1502 * var(--fx)) 0; }
.why__tag { position: absolute; top: calc(128 * var(--fx)); width: calc(356 * var(--fx)); }
.why__tag[data-pack="smile"] { left: calc(181 * var(--fx)); --card: 328; --panel: 163; --px: 87; --py: 109; --pw: 185; --sx: 112; --sy: 252; --sw: 132; --sh: 59; }
.why__tag[data-pack="smart"] { left: calc(666 * var(--fx)); --card: 386; --panel: 205; --px: 57; --py: 109; --pw: 248; --sx: 96; --sy: 294; --sw: 162; --sh: 72; }
.why__tag[data-pack="super"] { left: calc(1147 * var(--fx)); --card: 424; --panel: 210; --px: -7; --py: 61; --pw: 371; --sx: 79; --sy: 300; --sw: 201; --sh: 99; }
.why__tag[data-pack="standard"] { left: calc(1683 * var(--fx)); --card: 557; --panel: 210; --panel-top: 132; --px: -66; --py: 143; --pw: 488; --sx: 48; --sy: 423; --sw: 259; --sh: 115; }
.why__hole { position: absolute; left: calc(145 * var(--fx)); top: 0; z-index: 1; width: calc(59 * var(--fx)); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 51% 44%, var(--maroon-deep) 0 22%, #FCE3C2 23%); }
.why__ring { position: absolute; left: calc(175 * var(--fx)); top: 0; z-index: 2; width: calc(30 * var(--fx)); }
.why__card { position: relative; margin-top: calc(28 * var(--fx)); height: calc(var(--card) * var(--fx)); border-radius: calc(33 * var(--fx)); background: #FCE3C2; }
.why__name { position: absolute; inset: calc(25 * var(--fx)) 0 auto; font-family: var(--font-display); font-weight: 700; font-size: calc(46 * var(--fx)); line-height: 1; text-transform: uppercase; text-align: center; color: var(--maroon-deep); font-synthesis: none; }
.why__name span { color: #ED1D24; }
.why__tag[data-pack="standard"] .why__name span { display: block; }
.why__panel { position: absolute; left: calc(9 * var(--fx)); right: calc(9 * var(--fx)); top: calc(var(--panel-top, 89) * var(--fx)); height: calc(var(--panel) * var(--fx)); border-radius: calc(33 * var(--fx)); background: linear-gradient(var(--maroon-deep) 50%, #831618 50%); }
.why__photo-shadow { position: absolute; left: calc(var(--sx) * var(--fx)); top: calc(var(--sy) * var(--fx)); width: calc(var(--sw) * var(--fx)); height: calc(var(--sh) * var(--fx)); border-radius: 50%; background: linear-gradient(#370102, #9D0306); filter: blur(calc(11 * var(--fx))); }
.why__photo { position: absolute; left: calc(var(--px) * var(--fx)); top: calc(var(--py) * var(--fx)); width: calc(var(--pw) * var(--fx)); max-width: none; }
.why__seal { left: 42.45%; top: 77.49%; width: 17.63%; }
/* as in the Figma, the seal sits lower under the Super pack's taller card, and the Standard pack's card takes its place */
.why[data-pack="super"] .why__seal { top: 80.24%; }
.why[data-show="packs"][data-pack="standard"] .why__seal { opacity: 0; }
.why__serves { left: 51.26%; top: 9.88%; transform: translateX(-50%); padding: calc(10 * var(--fx)) calc(14 * var(--fx)) calc(8 * var(--fx)); border-radius: calc(30 * var(--fx)); background: linear-gradient(90deg, #DEB763, #F5D77F 15%, #F2EFCC 35%, #F4E09D 58%, #EBCA73 79%, #D8AF5C); font-family: var(--font-display); font-weight: 700; font-size: max(13px, calc(24 * var(--fx))); line-height: 1.1; text-transform: uppercase; white-space: nowrap; color: var(--maroon-deep); font-synthesis: none; }

/* The packs' words, in the story's place: the heading steps aside, as in the Figma, but still names the section */
.why[data-show="packs"] #why-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.why__packs { display: grid; justify-items: start; max-width: 480px; }
.why[data-show="packs"] .why__copy { padding-top: clamp(48px, 6.8cqw, 103px); }
.why__lead { max-width: 402px; font-size: var(--fs-lg); line-height: 1.7; }
.why__chips { display: flex; flex-wrap: wrap; gap: clamp(12px, 1.72cqw, 26px) 26px; max-width: 470px; margin-top: clamp(24px, 3.3cqw, 50px); }
.why__chip { min-height: 42px; padding: 6px 18px 4px; border: 2px solid transparent; border-radius: 30px; background: rgba(223, 8, 36, .2); font-family: var(--font-display); font-weight: 700; font-size: clamp(16px, 1.46cqw, 22px); line-height: 1.1; text-transform: uppercase; color: var(--cream); font-synthesis: none; transition: background-color .3s var(--tap), border-color .3s var(--tap); }
.why__chip:hover { background: rgba(223, 8, 36, .45); }
.why__chip[aria-pressed="true"] { border-color: #FFF0DB; background: var(--red); }
.why__rule { width: min(515px, 100%); height: 1px; margin-top: clamp(24px, 3cqw, 45px); background: #FF0A12; }
.why__contents { display: grid; margin-top: clamp(18px, 2cqw, 30px); }
.why__contents > * { grid-area: 1 / 1; }
.why__contents > :not([data-on]) { visibility: hidden; }
.why__contains { font-weight: 700; font-size: var(--fs-lg); line-height: 1.7; }
.why__items { columns: 2 180px; column-gap: 31px; margin-top: 11px; font-size: var(--fs-sm); line-height: 1.5; }
.why__sides { width: min(585px, 100%); margin: clamp(24px, 3.4cqw, 51px) 0 0 clamp(-19px, -1.26cqw, 0px); }

/* ---------- Three laws ---------- */
.laws { padding-top: 25px; }
.laws > .motif { margin-bottom: clamp(32px, 5.4cqw, 81px); }
.laws__head { display: grid; gap: 10px; }
/* A swipe across the slide turns to the next law on a touch screen (home.ts); up and down still scroll the page */
.laws__slide { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 33px; margin: clamp(24px, 2.4cqw, 36px) 0 -62px; padding: 0 calc(var(--gutter) + 7.4cqw) 0 var(--gutter); touch-action: pan-y; }
.laws__num { font-size: var(--fs-7xl); color: var(--red); transition: color .7s var(--ease-out); }
/* The frame carries the border, so Safari gives the photo the same height before and after it arrives
   (it measures a bordered picture's ratio inside the border once the picture is there). */
.laws__img { position: relative; display: block; flex: none; width: clamp(240px, 45.9cqw, 694px); aspect-ratio: 694 / 448; overflow: hidden; border: clamp(5px, .66cqw, 10px) solid var(--cream); border-radius: var(--radius-pill); }
/* One law's photo shows (data-on). Another is only fetched once someone reaches for the pager (data-shown), then
   fades in over the last, as The Bucket's occasions do. */
.laws__photo { position: absolute; inset: 0; display: none; width: 100%; height: 100% !important; object-fit: cover; opacity: 0; transition: opacity .3s var(--tap); }
.laws__photo:is([data-on], [data-shown]) { display: block; }
.laws__photo[data-on] { z-index: 1; opacity: 1; }
.laws__band { padding: clamp(36px, 3.4cqw, 51px) var(--gutter) clamp(16px, 1.5cqw, 23px); background: var(--red); color: var(--cream); text-align: center; transition: background-color .7s var(--ease-out); }
/* Each law has its colour, as in the Figma: the second is maroon, its number, band and checker alike */
.laws[data-tone="maroon"] .laws__num { color: var(--maroon); }
.laws[data-tone="maroon"] .laws__band { background-color: var(--maroon); }
.laws[data-tone="maroon"] > .checker { background-image: repeating-conic-gradient(var(--maroon) 0 25%, var(--cream) 0 50%); }
.laws__band h3 { font-size: var(--fs-6xl); line-height: 1.36; }
.laws__desc { max-width: 320px; margin: var(--space-5) auto 0; font-size: var(--fs-xl); line-height: 1.42; text-align: center; }
.laws__pager { display: flex; justify-content: center; align-items: center; gap: var(--space-4); margin-top: var(--space-5); padding-bottom: var(--space-8); }
.laws__pager .round-btn { background: rgba(89, 6, 8, .08); color: var(--maroon); }

/* ---------- Our story ---------- */
.story { padding-inline: clamp(12px, 3.37cqw, 51px); }
.story__card { position: relative; overflow: hidden; max-width: 1410px; margin-inline: auto; display: grid; grid-template-columns: minmax(0, 932fr) minmax(0, 478fr); min-height: clamp(560px, 58.7cqw, 888px); border-radius: var(--radius-lg); background: var(--maroon-deep); color: var(--cream-deep); }
.story__card > .motif { position: absolute; top: 23px; left: 0; right: 0; height: 45px; }
.story__circle { position: absolute; left: 68.4%; top: 62px; width: 56.7%; aspect-ratio: 1; border-radius: 50%; background: var(--maroon); }
/* out of flow so the arch runs off the card's bottom edge without making the card taller */
.story__art { position: absolute; left: 10.1%; top: 9.5cqw; width: 47.5%; aspect-ratio: 716 / 959; }
.story__art > * { position: absolute; }
.story__fill { left: 2.4%; top: 3.6%; width: 95.3%; height: 96%; overflow: hidden; border-radius: 500px 500px 0 0; background: #ED1D24; }
/* The years' drawings stand in one column inside the arch, as in the Figma, each where the Figma puts it (--x, --y,
   --w). A turn slides the next one up into the arch while the last leaves through its top (data-gone), and the
   other way going back. Another year's drawing is only fetched once someone reaches for the pager (data-shown). */
.story__drawing { position: absolute; left: var(--x); top: var(--y); width: var(--w); display: none; translate: 0 200%; transition: translate var(--dur-long) var(--ease-out); }
.story__drawing:is([data-on], [data-shown]) { display: block; }
.story__drawing[data-gone] { translate: 0 -200%; }
.story__drawing[data-on] { translate: none; }
.story__frame { inset: 0; width: 100%; }
.story__copy { position: relative; z-index: 1; grid-column: 2; align-self: start; display: grid; justify-items: start; gap: var(--space-5); padding: clamp(48px, 15.5cqw, 235px) var(--space-5) var(--space-8) 0; }
.story__title { font-size: var(--fs-6xl); }
.story__rule { width: min(313px, 100%); height: 3px; background: var(--gold); }
.story__year { display: flex; align-items: center; gap: 14px; margin-top: var(--space-6); font-size: var(--fs-5xl); }
.story__year::before { content: ""; width: .47em; aspect-ratio: 1; border-radius: 50%; background: var(--gold); }
.story__tag { padding: 7px 16px; border-radius: 22px; background: var(--cream-deep); color: var(--maroon-deep); font-family: var(--font-display); font-weight: 700; font-size: var(--fs-lg); line-height: 1.1; font-synthesis: none; }
.story__text { max-width: 402px; font-size: var(--fs-xl); line-height: 1.42; }
/* The years' tags and words each share one place, so the pager below them never moves under a finger; only the
   year showing is seen. */
:is(.story__tags, .story__texts) { display: grid; }
:is(.story__tags, .story__texts) > * { grid-area: 1 / 1; }
:is(.story__tags, .story__texts) > :not([data-on]) { visibility: hidden; }
.story__tags > * { justify-self: start; align-self: start; }
.story__pager { display: flex; align-items: center; gap: var(--space-4); }
.story__pager .dots span { background: rgba(255, 225, 185, .3); }
.story__pager .dots span[aria-current="true"] { background: var(--cream); }
.story__more { display: flex; justify-content: center; margin-top: var(--space-5); padding-bottom: 12px; }

/* ---------- Since 1998 ---------- */
.since { padding-top: clamp(96px, 19cqw, 287px); text-align: center; }
.since__lead { padding-inline: var(--gutter); font-size: var(--fs-3xl); color: var(--maroon); text-transform: none; }
.since__title { margin-top: var(--space-6); font-size: var(--fs-8xl); color: var(--maroon-deep); text-transform: none; }
.since__title span { color: var(--red); }
.since__fire { width: 109.3%; max-width: none !important; max-height: 560px; margin-left: -2.1%; aspect-ratio: 1653 / 482; object-fit: cover; }

/* ---------- Served around 50,000,000 plates ---------- */
.served { position: relative; }
.served__top { min-height: clamp(360px, 35.8cqw, 541px); padding-top: clamp(32px, 4.6cqw, 70px); text-align: center; }
.served__stats { display: grid; justify-items: center; gap: 4px; }
.served__stats .display { text-transform: none; }
.served__lead { font-size: var(--fs-4xl); color: var(--maroon); }
.served__number { font-size: var(--fs-7xl); color: var(--red); }
.served__unit { font-size: var(--fs-4xl); color: var(--red); }
.served__note { font-size: var(--fs-xl); }
.served__bottom { position: relative; min-height: clamp(380px, 44.9cqw, 679px); background: var(--red); }
.served__heading { position: relative; z-index: 2; padding: clamp(200px, 25.5cqw, 385px) 0 var(--space-8) max(var(--gutter), 5cqw, calc(var(--side) + 76px)); font-size: var(--fs-7xl); color: var(--cream); text-transform: none; }
/* the arrow artwork points left; Figma mirrors it across the diagonal so it curves right, then down */
.served__arrow { position: absolute; z-index: 3; left: calc(var(--side) + 0.341 * var(--frame)); bottom: 1.1cqw; width: clamp(56px, 7.4cqw, 112px); transform: matrix(0, -1, -1, 0, 0, 0); }
.served__frame { position: absolute; inset: 0; max-width: 1512px; margin-inline: auto; }
.served__hands { position: absolute; z-index: 1; left: -1%; top: clamp(28px, 3.5cqw, 53px); width: 37%; }
.served__map { position: absolute; z-index: 1; left: 45.9%; top: clamp(200px, 22.7cqw, 343px); width: 49.1%; }
.pin { position: absolute; width: 5%; aspect-ratio: 1; }
.pin::before { content: ""; position: absolute; left: 31%; bottom: 3%; width: 38%; height: 9%; border-radius: 50%; background: #2F0007; filter: blur(2px); }
.pin svg { position: absolute; left: 16.7%; top: 9.3%; width: 66.7%; height: auto; fill: var(--red); }
.pin img { position: absolute; left: 31.5%; top: 22.2%; width: 37%; }
.pin--md { width: 5.7%; }
.pin--lg { width: 7.3%; }

/* ---------- Branches: Dubai, then Chennai and Coimbatore ---------- */
.branches { position: relative; overflow: hidden; }
.dubai { position: relative; min-height: clamp(640px, 71.8cqw, 1085px); background: var(--maroon-ink); color: var(--cream); }
.dubai__inner { display: grid; gap: 19px; width: fit-content; margin-inline: auto; padding: clamp(48px, 7.7cqw, 117px) 0 0 clamp(0px, 10.6cqw, 160px); }
.dubai__actions { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); }
.dubai__actions .round-btn { width: 60px; height: 60px; font-size: 26px; }
.branch { display: grid; grid-template-columns: auto minmax(0, 502px); justify-content: start; align-items: center; gap: 31px; }
.branch__arch { position: relative; overflow: hidden; display: grid; align-items: end; width: clamp(220px, 27.6cqw, 418px); aspect-ratio: 418 / 382; border: 6px solid var(--cream); border-bottom-width: 0; border-radius: 385px 385px 0 0; background: #ED1D24; }
.branch__arch img { width: 96%; margin-inline: auto; }
.branch__info { display: grid; justify-items: start; gap: 18px; }
.branch__pin { font-size: 36px; color: var(--red); }
.branch__name { font-size: var(--fs-3xl); color: var(--cream); text-transform: none; }
.branch__address { font-size: var(--fs-lg); line-height: 1.25; color: var(--cream-deep); }
.branch__phones { display: block; margin-top: 1.25em; }
.branch__phones a { display: inline-block; padding-block: 4px; white-space: nowrap; }
.ssbb-uae { position: absolute; z-index: 2; left: 0; bottom: 0; width: clamp(240px, 32.5cqw, 491px); padding: 30px 0 26px clamp(16px, 3.6cqw, 55px); border-radius: 0 82px 0 0; background: var(--maroon); }
.ssbb-uae > img { width: min(368px, 92%); }
/* The Dubai skyline (DubaiSkyline.astro): here it stands on the banner, as in the Figma */
.skyline { position: absolute; aspect-ratio: 336 / 419; overflow: hidden; pointer-events: none; }
.skyline__building { position: absolute; left: var(--x); top: var(--y); width: var(--w); max-width: none !important; }
.skyline--uae { left: 5.1%; bottom: 100%; width: 86.97%; }
.chennai { position: relative; min-height: clamp(760px, 75.3cqw, 1138px); background: var(--maroon); color: var(--cream); }
.chennai__clip { position: absolute; inset: 0; overflow: hidden; }
.chennai__glow { position: absolute; left: 45.6%; top: -38.5cqw; width: 60%; aspect-ratio: 1; border-radius: 50%; background: #6E050A; }
.chennai__head { position: relative; z-index: 2; display: grid; justify-items: start; gap: 18px; padding-top: clamp(40px, 5cqw, 76px); padding-left: clamp(0px, 4.2cqw, 64px); }
.chennai__title { font-size: var(--fs-7xl); text-transform: none; }
.chennai__pill { padding: 18px 39px; border-radius: 0 60px 0 60px; background: var(--red); font-size: var(--fs-3xl); text-transform: none; }
.chennai__connector { position: absolute; left: 47.2%; top: clamp(60px, 9.5cqw, 143px); width: 20.7%; }
.chennai__branch { position: relative; z-index: 2; margin-top: clamp(48px, 7.5cqw, 114px); padding-left: clamp(0px, 5cqw, 76px); }
.chennai__branch .branch__arch { background: var(--maroon-deep); }
.chennai__branch .branch__arch img { width: 107%; max-width: none !important; margin-left: -5%; }
.chennai__branch.branch { grid-template-columns: auto minmax(0, 502px) auto; }
.chennai__next { margin-left: 26px; }
.chennai__next .round-btn { width: 80px; height: 80px; font-size: 34px; background: rgba(255, 225, 185, .1); backdrop-filter: blur(6px); }
.chennai__skyline { position: absolute; left: 0; bottom: -1.7%; width: min(61.3%, 927px); }
.chennai__cta { position: absolute; z-index: 2; right: calc(var(--side) + clamp(16px, 9cqw, 135px)); bottom: clamp(32px, 5cqw, 76px); display: grid; justify-items: start; gap: 30px; }
.chennai__cta img { width: clamp(220px, 26cqw, 394px); }
.tn-map { position: absolute; z-index: 1; left: 56.3%; top: -26.8cqw; width: 36.5%; aspect-ratio: 552 / 841; }
.tn-map > * { position: absolute; }
.tn-map__c1 { left: 0; top: 0; width: 100%; aspect-ratio: 1; border-radius: 50%; background: #ED1D24; }
.tn-map__c2 { left: 13.2%; top: 8.9%; width: 73.6%; aspect-ratio: 1; border-radius: 50%; background: #FF4147; }
.tn-map__c3 { left: 27.4%; top: 16.4%; width: 45.3%; aspect-ratio: 1; border-radius: 50%; background: #FF7378; }
.tn-map__shadow { left: 11.4%; top: 8.7%; width: 72.6%; }
.tn-map__land { left: 13%; top: 9.5%; width: 68.7%; }
.tn-dot { width: 2.7%; aspect-ratio: 1; border: 2px solid var(--cream); border-radius: 50%; background: var(--red); }
.tn-dot--lg { width: 5.4%; }

/* ---------- Brand promises ---------- */
.promises { background: var(--red); color: var(--cream); }
.promises ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); max-width: 980px; margin-inline: auto; padding: 20px var(--gutter); }
.promises li { display: grid; justify-items: center; gap: var(--space-2); font-size: var(--fs-xs); font-weight: 700; line-height: 1.2; letter-spacing: .02em; text-align: center; text-transform: uppercase; }
.promises .icon { width: 46px; height: 46px; padding: 9px; border: 2px solid var(--cream); border-radius: 50%; stroke-width: 1.6; }

/* ---------- SS HFC ---------- */
.hfc { position: relative; overflow: hidden; background: var(--maroon-ink); color: var(--white); text-align: center; }
.hfc__frame { position: absolute; inset: 0; max-width: 1512px; margin-inline: auto; }
.hfc__chicken { position: absolute; right: -18.5%; top: max(-23.9cqw, -361px); width: 52.4%; }
.hfc__logo { position: absolute; left: 3.8%; top: clamp(24px, 4cqw, 60px); width: clamp(96px, 12.2cqw, 184px); }
.hfc__title { position: relative; z-index: 1; padding-top: clamp(24px, 6.4cqw, 97px); font-size: var(--fs-9xl); line-height: .93; }
.hfc__title span { display: block; color: var(--red-on-dark); }
.hfc__stage { position: relative; max-width: 1512px; aspect-ratio: 1512 / 441; margin: clamp(12px, 2.6cqw, 39px) auto 0; }
.hfc__stage > img { position: absolute; }
.hfc__astronaut { left: 39.3%; top: 3%; width: 21.1%; }
.hfc__boxes { left: 5.9%; top: 17.7%; width: 90.7%; }

.hfc-strip { position: relative; overflow: hidden; background: var(--red); color: var(--cream); }
.hfc-strip .scroller img { width: clamp(260px, 45.2cqw, 684px); aspect-ratio: 3 / 2; object-fit: cover; }
.hfc-strip__row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--space-5); padding-top: clamp(24px, 2.1cqw, 32px); }
.hfc-strip__text { max-width: 1137px; padding-top: 22px; font-size: var(--fs-lg); line-height: 1.2; }
.hfc-strip__text strong { display: block; }
.hfc-strip__side { display: grid; justify-items: end; gap: var(--space-3); margin-left: auto; }
.hfc-strip__more { display: flex; align-items: flex-end; gap: var(--space-4); }
.hfc-strip__more img { width: clamp(72px, 7.7cqw, 116px); }
.hfc-strip__more a { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 52px; font-size: var(--fs-lg); font-weight: 800; color: var(--cream-deep); }
.hfc-strip__more a .icon { font-size: 30px; stroke-width: 1.6; }

.halal__row { display: flex; align-items: center; justify-content: center; max-width: 1512px; margin: -14px auto 0; padding-bottom: 20px; }
.halal__word { font-size: clamp(40px, 17.3cqw, 262px); color: var(--maroon); }
.halal__word--red { color: #ED1D24; }
/* The bucket opens, as in the Figma: a pointer resting on it, a tap, or the keyboard reaching its link splits it, the
   front going left and its back ("Crispy, juicy, spicy") right, and "Explore more about HFC" shows between them. */
.halal__pair { position: relative; z-index: 1; flex: none; width: 36.5%; margin-inline: -5% -2.7%; --front: -70.8%; --back: 61.9%; }
.halal__bucket { position: relative; z-index: 2; width: 100%; transition: translate .4s var(--ease-out); }
.halal__back { position: absolute; left: 0; top: 4.7%; width: 104.2%; max-width: none !important; transition: translate .4s var(--ease-out); }
.halal__more { position: absolute; left: 40.2%; top: 46.6%; z-index: 1; display: flex; align-items: center; gap: 2px; font-family: var(--font-display); font-weight: 700; font-size: clamp(12px, 1.72cqw, 26px); line-height: 1.15; text-align: center; color: #831618; font-synthesis: none; opacity: 0; pointer-events: none; transition: opacity .3s var(--ease-out); }
.halal__more > span { width: 5.4em; }
.halal__more > span > span { color: #FF0A12; }
.halal__more .icon { flex: none; color: #ED1D24; font-size: .92em; }
.halal:is([data-open], :focus-within) .halal__bucket { translate: var(--front) 0; }
.halal:is([data-open], :focus-within) .halal__back { translate: var(--back) 0; }
.halal:is([data-open], :focus-within) .halal__more { opacity: 1; pointer-events: auto; }
@media (hover: hover) and (pointer: fine) {
  .halal__pair:hover .halal__bucket { translate: var(--front) 0; }
  .halal__pair:hover .halal__back { translate: var(--back) 0; }
  .halal__pair:hover .halal__more { opacity: 1; pointer-events: auto; }
}

/* ---------- SS Wedding Caterers ---------- */
.catering-bar { background: var(--ink); color: var(--cream); }
.catering-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); min-height: 120px; }
.catering-bar h2 { font-size: var(--fs-4xl); }
.catering-bar img { width: clamp(48px, 4.6cqw, 69px); }
.catering-hero { position: relative; isolation: isolate; display: grid; align-content: start; justify-items: center; min-height: clamp(440px, 60.2cqw, 910px); padding-top: clamp(120px, 30cqw, 455px); overflow: hidden; color: var(--white); text-align: center; }
.catering-hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100% !important; object-fit: cover; }
.catering-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(0, 0, 0, .3); }
.catering-hero__title { padding: 0 var(--gutter); font-size: var(--fs-6xl); }
.catering-hero__badge { position: absolute; left: calc(var(--side) + 0.035 * var(--frame)); bottom: clamp(16px, 4.5cqw, 68px); width: clamp(220px, 31.1cqw, 470px); }
.catering-intro { display: grid; justify-items: start; gap: 26px; padding-block: clamp(28px, 2.5cqw, 37px) clamp(36px, 3.6cqw, 54px); }
.catering-intro p { max-width: 1200px; font-size: var(--fs-lg); line-height: 1.5; }

.gallery { padding-block: clamp(40px, 4.8cqw, 73px) clamp(40px, 4cqw, 60px); background: var(--ink); color: var(--cream); }
.gallery--maroon { background: var(--maroon-deep); }
.gallery__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-5); margin-bottom: clamp(24px, 3.7cqw, 56px); }
/* a photo comes to rest at the row's own start, after its padding, not flush with the screen's edge */
.gallery .scroller { --gap: 11px; --row-start: max(clamp(16px, 2.25cqw, 34px), calc(var(--side) + 34px)); padding-left: var(--row-start); scroll-padding-left: var(--row-start); }
.gallery .scroller img { height: clamp(220px, 25.3cqw, 382px) !important; width: auto; object-fit: cover; }

.catered { position: relative; background: var(--red); color: var(--cream); text-align: center; }
.catered__tab { position: absolute; z-index: 3; left: 50%; top: 0; translate: -50% 0; display: grid; place-items: end center; width: clamp(96px, 9.1cqw, 138px); aspect-ratio: 138 / 192; padding-bottom: 14px; border-radius: 0 0 150px 150px; background: var(--maroon); }
.catered__tab img { width: 83%; }
.catered__copy { position: relative; z-index: 2; padding-top: clamp(150px, 12.6cqw, 190px); }
.catered__lead { display: block; font-size: var(--fs-5xl); }
.catered__number { display: block; margin-top: var(--space-2); font-size: var(--fs-9xl); }
/* The heading answers a dish the visitor opens, as the Figma's states do: "Order without limits", then, once its steam
   has risen, "Feel the authentic taste in every bite" (data-headline); it comes back as the dishes close. The lines
   are for the eye: the heading still names the section. */
.catered__copy { transition: opacity .3s var(--ease-out), translate .3s var(--ease-out); }
.catered[data-headline] .catered__copy { opacity: 0; translate: 0 -12px; }
.catered__line { position: absolute; inset: clamp(150px, 12.6cqw, 190px) var(--gutter) auto; z-index: 2; max-width: 1111px; margin-inline: auto; font-size: var(--fs-5xl); line-height: 1; opacity: 0; translate: 0 12px; pointer-events: none; transition: opacity .3s var(--ease-out), translate .3s var(--ease-out); }
.catered[data-headline="open"] .catered__line[data-line="open"],
.catered[data-headline="steam"] .catered__line[data-line="steam"] { opacity: 1; translate: none; }
.catered__art { position: relative; z-index: 1; max-width: 1512px; margin: var(--space-5) auto 0; }
.catered__steel { width: 99.1%; margin-left: .9%; aspect-ratio: 1499 / 502; object-fit: fill; }
.catered__lid { position: absolute; z-index: 1; left: 12.3%; top: 0; width: 30.6%; aspect-ratio: 462 / 271; object-fit: fill; }
.catered__lid[data-dish="2"] { left: 38.37%; top: 3.98%; width: 23.54%; aspect-ratio: 534 / 334; }
.catered__lid[data-dish="3"] { left: 60.99%; top: 4.12%; width: 23.85%; aspect-ratio: 541 / 333; }
/* A dish opens when it is pointed at or tapped: its lid lifts and steam leaves it. Those rules are in
   src/styles/dishes.css. */
.catered__base { position: relative; height: 185px; margin-top: -185px; background: var(--maroon); }
.catered__base .motif { position: absolute; left: 0; right: 0; bottom: 29px; height: 45px; }

/* ---------- Awards ---------- */
.awards { position: relative; overflow: hidden; background: var(--maroon-deep); color: var(--cream); }
.awards__panel { position: relative; width: calc(var(--side) + 0.827 * var(--frame) + 16px); min-height: clamp(560px, 55.4cqw, 837px); margin: clamp(56px, 6.7cqw, 102px) 0 0 -16px; padding: clamp(40px, 4.2cqw, 64px) 0 var(--space-8) calc(var(--side) + clamp(40px, 5.8cqw, 87px)); border: 8px solid transparent; border-bottom: 0; border-radius: 0 100% 0 0 / 0 100% 0 0; background: linear-gradient(var(--cream), var(--cream)) padding-box, var(--gold) border-box; color: var(--maroon-deep); overflow: hidden; }
.awards__title { font-size: var(--fs-6xl); }
.awards__medal { position: absolute; z-index: 2; left: calc(var(--side) + 0.33 * var(--frame)); top: -24px; width: clamp(120px, 15.4cqw, 233px); }
.awards__list { display: flex; gap: 41px; margin-top: clamp(72px, 7.8cqw, 118px); padding-right: 22%; overflow-x: auto; scrollbar-width: none; }
.award { flex: none; display: grid; justify-items: center; align-content: start; gap: 10px; width: 280px; color: var(--black); font-size: var(--fs-xs); font-weight: 700; line-height: 1.15; text-align: center; }
.award img { height: 220px !important; width: auto; max-width: 100%; object-fit: contain; border-radius: var(--radius-sm); }
.award__date { padding: 6px 14px; border-radius: 28px; background: var(--red); color: var(--cream); white-space: nowrap; }
.awards__side { position: absolute; right: calc(var(--side) + clamp(16px, 4.6cqw, 70px)); top: -5px; display: grid; justify-items: center; gap: var(--space-7); text-align: center; }
.awards__side img { width: clamp(150px, 16.2cqw, 245px); }
.awards__count { font-size: var(--fs-5xl); text-transform: none; }

/* ---------- SS menu ---------- */
.menu { padding-top: clamp(40px, 3.8cqw, 57px); }
.menu__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--space-5); }
.menu__titles { display: grid; gap: 10px; }
.menu__tabs { display: flex; flex-wrap: wrap; gap: 20px; }
.menu__tab { min-height: 53px; padding: 7px 36px; border: 3px solid var(--maroon); border-radius: var(--radius-pill); color: var(--maroon); font-size: var(--fs-lg); font-weight: 700; }
.menu__tab[aria-selected="true"] { background: var(--maroon); color: var(--cream); }
/* the dish slider under the tabs has a stylesheet of its own: menu.css */

/* ---------- Explore our content ---------- */
.content { position: relative; overflow: hidden; padding-block: clamp(40px, 4.8cqw, 73px) 8px; background: var(--maroon); color: var(--cream); }
.content::before, .content::after { content: ""; position: absolute; left: -18.6%; width: 147.7%; aspect-ratio: 1; border-radius: 50%; }
.content::before { top: 28%; background: #9F171D; }
.content::after { top: 52.6%; background: #ED1D24; }
.content > * { position: relative; z-index: 1; }
.content__head { margin-bottom: clamp(24px, 2.6cqw, 40px); }
.content .scroller { --gap: 30px; --row-start: max(clamp(16px, 3.4cqw, 52px), calc(var(--side) + 52px)); padding-left: var(--row-start); scroll-padding-left: var(--row-start); }
.reel { position: relative; display: block; width: clamp(200px, 22.2cqw, 335px); aspect-ratio: 335 / 597; overflow: hidden; border-radius: var(--radius-md); }
.reel img { width: 100%; height: 100% !important; object-fit: cover; }
.reel .icon { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 56px; height: 56px; padding: 16px 14px 16px 18px; border-radius: 50%; background: rgba(23, 13, 14, .55); color: var(--white); }

/* ---------- Footer ---------- */
.footer-top { position: relative; min-height: clamp(300px, 28.7cqw, 434px); background: var(--red); color: var(--cream); }
.footer-top__handles { display: grid; justify-items: start; gap: 10px; padding-top: 40px; }
.footer-top__handle { display: inline-flex; align-items: center; gap: 10px; font-size: var(--fs-lg); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.footer-top__handle .icon { font-size: 25px; }
.footer-top__astronaut { position: absolute; right: calc(var(--side) + 0.077 * var(--frame)); bottom: 0; width: clamp(180px, 25.2cqw, 381px); }
.footer-top__logo { position: absolute; z-index: 2; left: calc(var(--side) + 0.015 * var(--frame)); bottom: -113px; width: clamp(280px, 45.3cqw, 685px); }
/* The other look (HFC, Catering, The Bucket): the name across the band, standing on its gold rule, and no names in
   three scripts at the foot */
.footer--wordmark .footer-top { min-height: clamp(200px, 28.7cqw, 434px); }
.footer-top__wordmark { position: absolute; left: var(--side); bottom: -.6cqw; width: min(100%, 1512px); }
.footer--wordmark .site-footer__langs ul { visibility: hidden; }
.site-footer { background: var(--maroon); color: var(--cream); }
.site-footer__main { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: var(--space-7); padding-top: 143px; padding-bottom: var(--space-7); }
.site-footer__contact { display: grid; align-content: start; justify-items: start; gap: 17px; padding-left: clamp(0px, 1.7cqw, 25px); }
.socials { display: flex; gap: 13px; margin-bottom: 8px; }
.socials a { display: grid; place-items: center; width: 32px; height: 32px; margin: -4px; font-size: 22px; }
.site-footer__contact .line { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; font-size: var(--fs-lg); color: #EFEFEF; overflow-wrap: anywhere; }
.site-footer__contact .line .icon { font-size: 22px; }
.site-footer__contact .store-badges { flex-direction: column; margin-top: 10px; }
.site-footer__contact .store-badges img { height: 74px !important; }
.footer-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--space-6); padding-top: var(--space-2); }
.footer-nav h2 { margin-bottom: 24px; padding-bottom: 14px; border-bottom: 1px solid var(--cream); font-size: var(--fs-xl); font-weight: 700; line-height: 1.4; text-transform: uppercase; }
.footer-nav section:not(:first-child) h2 { margin-left: calc(var(--space-6) * -1); padding-left: var(--space-6); }
.footer-nav ul { display: grid; gap: 25px; font-size: var(--fs-md); line-height: 1.45; }
/* 44 px tap area without changing the visible spacing */
.footer-nav a { display: inline-block; padding-block: 10px; margin-block: -10px; }
.footer-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 40px; padding-block: var(--space-4) clamp(64px, 6.3cqw, 96px); font-size: var(--fs-md); }
.site-footer__policies { display: flex; flex-wrap: wrap; gap: 20px 32px; }
/* each a full-height target (44 px) without moving the line; on a phone too narrow for both on one line, the second
   line keeps clear of the first one's target */
.site-footer__policies a { display: inline-block; padding-block: 10px; margin-block: -10px; }
.site-footer__policies a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer__langs { position: relative; background: var(--red); }
.site-footer__langs::before { content: ""; position: absolute; inset: 0 0 50%; background: var(--maroon); }
.site-footer__langs ul { position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--space-5); max-width: 1290px; margin-inline: auto; padding-inline: var(--gutter); }
.site-footer__langs img { height: clamp(48px, 6cqw, 91px) !important; width: auto; }
.site-footer__credit { display: flex; justify-content: flex-end; padding-block: 19px 17px; background: var(--cream); }
.site-footer__credit a { display: inline-flex; align-items: center; gap: 8px; padding: 2px 30px 3px 13px; background: #1D1D1D; color: var(--white); font-size: var(--fs-xs); }
.site-footer__credit strong { font-size: var(--fs-xl); }

/* ---------- Narrow laptops ---------- */
@container page (max-width: 1439px) {
  .site-nav a { font-size: 18px; }
  .site-nav ul { gap: clamp(14px, 2.2cqw, 37px); }
}

/* ---------- Tablets in landscape and below: the nav moves behind the menu button ---------- */
@container page (max-width: 1199px) {
  /* The nav opens under the bar from the menu button (data-menu-open on the header) */
  .site-nav { position: absolute; top: calc(100% + 8px); left: 0; right: 0; max-height: calc(100dvh - 120px); overflow-y: auto; margin: 0; padding: 8px var(--space-4); border-radius: var(--radius-md); background: var(--red); box-shadow: 0 18px 40px rgba(44, 7, 7, .35); visibility: hidden; opacity: 0; translate: 0 -10px; }
  .site-header[data-menu-open] .site-nav { visibility: visible; opacity: 1; translate: none; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav li + li { border-top: 1px solid rgba(255, 242, 222, .22); }
  .site-nav a { padding: 15px 12px; border: 0; border-radius: var(--radius-sm); font-size: 20px; }
  .site-nav a:hover, .site-nav a[aria-current="page"] { background: rgba(44, 7, 7, .22); }
  .site-header__order { margin-left: auto; }
  .site-header__menu { display: grid; }
}

/* ---------- Tablet ---------- */
@container page (max-width: 1100px) {
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--space-7); }
  .footer-nav section:not(:first-child) h2 { margin-left: 0; padding-left: 0; }
  .site-footer__main { grid-template-columns: 1fr; }
  .dubai__inner { width: auto; padding-inline: var(--gutter); }
  .branch { grid-template-columns: auto minmax(0, 1fr); }
  /* the address is too wide here for the arrow to float beside it */
  .chennai { padding-bottom: 20cqw; }
  .chennai__branch.branch { grid-template-columns: auto minmax(0, 1fr); }
  .chennai__next { grid-column: 2; margin: var(--space-4) 0 0; }
  .chennai__next .round-btn { width: 60px; height: 60px; font-size: 26px; }
  /* the bucket art takes more of the width here, so the copy stays clear of the arch */
  .why__copy { padding-left: var(--gutter); }
  .why__body { max-width: min(420px, calc(45cqw - 32px)); }
}

/* ---------- Tablets in portrait: side-by-side sections stack ---------- */
@container page (max-width: 900px) {
  .why { min-height: 0; }
  .why__copy { max-width: none; padding-inline: var(--gutter); padding-bottom: 0; }
  .why__body { max-width: 420px; }
  .why__art { position: relative; right: auto; width: min(100%, 560px); margin: var(--space-5) auto 0; }
  .awards__panel { width: calc(100% + 16px); padding-right: 16px; border-radius: 0 60% 0 0 / 0 24% 0 0; }
  .awards__medal { left: auto; right: 6%; top: -10px; }
  .awards__side { position: relative; right: auto; top: auto; margin-inline: auto; padding-block: var(--space-7); }
}

/* ---------- Phone ---------- */
@container page (max-width: 760px) {
  .site-header__bar { min-height: 56px; }

  .essence__art { height: 92cqw; }
  .essence__bucket { width: 64cqw; }
  .essence__drum { top: 40%; left: -10%; width: 30%; }
  .essence__leg { right: -8%; bottom: 2cqw; width: 38%; }
  .essence__motto { padding-left: 22px; font-size: 26px; }

  .app-band { padding-bottom: 300px; }
  .app-band__phone { right: -10cqw; bottom: -110px; width: 92cqw; }

  .why { min-height: 0; }
  .why__copy { padding-inline: var(--gutter); padding-bottom: 0; }
  .why__art { position: relative; width: 100%; margin-top: var(--space-5); }

  .laws__slide { gap: 14px; margin-bottom: -28px; padding-inline: var(--gutter); }

  .story__card { grid-template-columns: minmax(0, 1fr); }
  .story__copy { grid-column: auto; order: -1; padding: 96px var(--gutter) 0; }
  .story__art { position: relative; left: auto; top: auto; width: 88%; margin: 48px auto -24%; }
  .story__circle { left: 40%; top: 30%; width: 110%; }

  .since__fire { width: 160%; margin-left: -30%; }

  .served__top { padding-bottom: 170px; }
  .served__hands { top: auto; bottom: calc(34cqw + 116px); width: 46%; }
  .served__map { left: 38%; top: auto; bottom: calc(34cqw + 40px); width: 62%; }
  .served__bottom { min-height: 0; }
  .served__heading { padding: 34cqw var(--gutter) 80px; }
  .served__arrow { left: auto; right: 10%; bottom: 24px; }

  .dubai { min-height: 0; padding-bottom: 150px; }
  .skyline--uae { display: none; }
  .dubai__inner { grid-template-columns: minmax(0, 1fr); width: auto; padding-inline: var(--gutter); }
  .dubai__actions { flex-wrap: wrap; }
  .branch { grid-template-columns: minmax(0, 1fr); }
  .chennai { min-height: 0; padding-bottom: 0; }
  .chennai__glow, .chennai__connector { display: none; }
  .tn-map { position: relative; left: auto; top: auto; width: 70%; margin: 32px auto 0; }
  .chennai__branch { margin-top: var(--space-7); padding-inline: var(--gutter); }
  .chennai__branch.branch { grid-template-columns: minmax(0, 1fr); }
  .chennai__next { grid-column: auto; }
  .chennai__cta { position: relative; right: auto; bottom: auto; margin: var(--space-6) var(--gutter) 0; }
  .chennai__skyline { position: relative; bottom: auto; width: 100%; margin-top: var(--space-6); }

  .promises ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .hfc__chicken { right: -30%; top: -40px; width: 70%; }
  .hfc__frame { position: relative; }
  .hfc__logo { position: relative; left: auto; top: auto; margin: 24px 0 0 var(--gutter); }
  .hfc__stage { aspect-ratio: 1512 / 760; }

  .hfc-strip__side { justify-items: start; margin-left: 0; }

  .catering-hero__badge { left: 16px; }

  .catered__lead, .catered__line { font-size: 32px; }
  /* on a phone the bucket parts wider, so its link's small words fit between the halves */
  .halal__pair { --front: -85%; --back: 75%; }
  .halal__more { left: 46.5%; translate: -50% 0; }
  .catered__base { height: 120px; margin-top: -90px; }

  .awards__panel { width: calc(100% + 16px); padding-right: 16px; border-radius: 0 60% 0 0 / 0 24% 0 0; }
  .awards__medal { left: auto; right: 4%; top: -10px; width: clamp(76px, 22cqw, 120px); }
  .awards__title { font-size: clamp(32px, 9.5cqw, 40px); }
  .awards__list { padding-right: 16px; }
  .awards__side { position: relative; right: auto; top: auto; margin-inline: auto; padding-block: var(--space-7); }

  .menu { overflow: hidden; }
  /* both tabs stay on one row */
  .menu__tabs { flex-wrap: nowrap; gap: 10px; }
  .menu__tab { flex: none; padding-inline: 16px; font-size: 16px; }
  .site-footer__contact .store-badges img { height: 56px !important; }

  .footer-top { min-height: 380px; }
  .footer-top__astronaut { right: 4%; width: 44%; }
  .footer-top__logo { bottom: -70px; width: 88%; }
  .site-footer__main { padding-top: 110px; }
  .site-footer__langs ul { gap: 12px; }
  .site-footer__langs img { height: 40px !important; }
  .footer-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- Small phones (iPhone SE, 360 px Androids) ---------- */
@container page (max-width: 400px) {
  .btn-pill { padding-inline: 20px; font-size: 16px; }
  .site-footer__contact .line { font-size: 16px; }
  .footer-nav { column-gap: var(--space-4); }
  .site-header__logo img { width: 92px; }
  .site-header__bar { padding-left: 112px; gap: var(--space-3); }
  .site-header__order { padding: 8px 14px; font-size: 14px; }
  /* the three logos keep their shape: below 360 px they no longer fit side by side at 40 px tall */
  .site-footer__langs img { height: min(40px, 11cqw) !important; }
}

/* ==========================================================================
   Motion
   ==========================================================================
   The page's script puts data-motion="on" on .page only where the page really scrolls: never in the tall
   canvas frames, never when the visitor asks for reduced motion. Every entrance, loop and scroll-linked effect
   hangs off that attribute. Without it, or without the script, the page is the static design.

   How an entrance works
   - data-reveal names how an element comes in. On its own, the element plays when it comes on screen.
   - data-scene marks a group: the data-reveal elements inside it play together, each in its data-step turn.
   - Once enough of an element or group is on screen, the script adds data-seen to it and to every
     data-reveal element in it. Until then those elements are transparent, and nothing else about them changes.
   - Entrance keyframes have no end state of their own: they finish on the element's normal styles and are
     then gone, so a settled page is the static page.
   - When a group's entrances are over, the script adds data-rested and every rule here lets go of its
     animation: a browser keeps an element whose finished animation is still named on a layer of its own, and
     draws its pictures a little softer than on a page that never moved.

   Two parts are not behind the attribute: the three rules that keep the markup added for motion out of the
   static layout, and the feedback to hover, focus, press and swipe, which only answers the person using
   the page. */

/* ---------- Motion: markup added for it ---------- */

/* Each line of a heading is its own block, so motion can move one line at a time. Two headings colour every
   <span> they hold, so there the plain lines take the heading's own colour back. */
.heading-line { display: block; }
.app-band__title .heading-line, .hfc__title .heading-line { color: inherit; }

/* A photo sits in a frame so it can grow on hover without growing out of its box. The frame takes over the
   photo's place in the row, including the cap that keeps a wide photo inside a narrow screen. */
.frame { overflow: hidden; max-width: 100%; }

/* Extra copies of art that only motion uses. The static design has none of them. */
.why__steam--echo { display: none; }

/* ---------- Motion: hover, focus, press and swipe ---------- */

/* Award cards come to rest on a card when swiped, like the photo rows */
.awards__list { scroll-snap-type: x proximity; }
.award { scroll-snap-align: start; }

.btn-pill, .site-header__order, .site-header__menu, .menu__tab, .round-btn, .store-badges a, .socials a, .reel .icon, .why__scroll span {
  transition: background-color var(--dur-hover), border-color var(--dur-hover), color var(--dur-hover), transform var(--dur-hover) var(--ease-out);
}
.menu__tab[aria-selected="false"]:hover { background: rgba(126, 13, 18, .08); }
.why__scroll:hover span { background: rgba(255, 255, 255, .14); }

/* The footer's phone number and address answer a pointer as the links in its lists do */
.site-footer__contact .line:hover { text-decoration: underline; text-underline-offset: 4px; }

/* The nav underline fades in instead of blinking on. It stays the link's own border: an underline drawn as a
   separate, scaled-to-nothing element made the static page render differently from one load to the next. */
.site-nav a { transition: border-color var(--dur-hover); }

@media (prefers-reduced-motion: no-preference) {
  .btn-pill .icon, .btn-compact .icon, .text-link .icon, .hfc-strip__more .icon, .site-footer__credit .icon, .footer-top__handle .icon { transition: transform var(--dur-hover) var(--ease-out); }
  .frame img, .reel img, .branch__arch img { transition: transform var(--dur-enter) var(--ease-out); }
}
/* Hover moves things only for a real pointer: on a touch screen a hover state sticks after the tap */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .btn-pill:hover, .btn-compact:hover, .site-header__order:hover, .store-badges a:hover, .socials a:hover { transform: translateY(-2px); }
  .btn-pill:hover .icon, .btn-compact:hover .icon, .hfc-strip__more a:hover .icon { transform: translateX(4px); }
  .site-footer__credit a:hover .icon { transform: translate(2px, -2px); }
  .footer-top__handle:hover .icon { transform: translateY(-2px); }
  .round-btn:hover { transform: scale(1.08); }
  .frame:hover img, .reel:hover img { transform: scale(1.05); }
  .reel:hover .icon { transform: scale(1.12); }
  .branch:hover .branch__arch img { transform: scale(1.04); }
}

/* The design's one hover movement, the arrow of a text link, also stays still for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .text-link:hover .icon { transform: none; }
}

/* For anyone who asks for reduced motion, a hover, a press or a change of state still shows, but nothing is eased
   into place: on every page only colours and fades keep their transitions, and whatever a transition would move,
   turn, resize or wipe is in its new place at once. */
@media (prefers-reduced-motion: reduce) {
  .page *, .page *::before, .page *::after { transition-property: color, background-color, border-color, outline-color, text-decoration-color, fill, stroke, box-shadow, opacity, filter, visibility !important; }
}

/* The header slides out quickly and back in softly; its menu drops open. For reduced motion both simply appear. */
@media (prefers-reduced-motion: no-preference) {
  .site-header > .wrap { transition: translate .45s var(--ease-out); }
  .site-header[data-hidden]:not([data-menu-open]) > .wrap:not(:has(:focus-visible)) { transition: translate .3s var(--ease-in-out); }
  .site-nav { transition: opacity .2s, translate .3s var(--ease-out), visibility 0s linear .3s; }
  .site-header[data-menu-open] .site-nav { transition-delay: 0s; }
}

/* Press feedback, after the hover rules so a press wins while the pointer is still over the control */
@media (prefers-reduced-motion: no-preference) {
  .btn-pill:active, .btn-compact:active, .site-header__order:active, .menu__tab:active, .store-badges a:active { transform: scale(.97); transition-duration: var(--dur-press); }
  .round-btn:active, .socials a:active, .site-header__menu:active { transform: scale(.9); transition-duration: var(--dur-press); }
  .why__scroll:active span { transform: scale(.96); transition-duration: var(--dur-press); }
}

/* ---------- Motion: entrances ---------- */

/* Scroll anchoring keeps the reader's place when something above the screen changes size, but it also follows
   an entrance as it starts: a line rising in at the top of the screen once pulled the page 220 px down with it.
   Every picture holds its place before it arrives, so the page has nothing for anchoring to correct. */
[data-motion="on"] { overflow-anchor: none; }

/* Every entrance is described by these few values. Each element resets them, so nothing leaks from a parent. */
[data-motion="on"] [data-reveal] {
  --from-x: 0px;
  --from-y: 0px;
  --from-turn: 0deg;
  --from-scale: 1;
  --mask-drop: 25%;   /* how far below its box a rising line is still hidden: room for descenders */
  --reveal: enter;
  --reveal-time: var(--dur-enter);
  --reveal-ease: var(--ease-out);
  --reveal-wait: 0ms;
  --step: 0;
  --reveal-start: calc(var(--scene-wait, 0ms) + var(--reveal-wait) + var(--step) * var(--stagger));
  --entrance: var(--reveal) var(--reveal-time) var(--reveal-ease) var(--reveal-start) backwards;
}

/* The base rhythm */
[data-motion="on"] [data-reveal="rise"] { --from-y: var(--rise); }
[data-motion="on"] [data-reveal="pop"] { --from-scale: .6; --reveal-time: var(--dur-short); --reveal-ease: var(--ease-overshoot); }
[data-motion="on"] [data-reveal="drop"] { --from-y: -140%; }
[data-motion="on"] [data-reveal="glide"] { --reveal-time: var(--dur-long); }   /* art: each piece says where it comes from, below */
[data-motion="on"] [data-reveal="lift"] { --reveal: lift; --reveal-time: var(--dur-long); }
[data-motion="on"] [data-reveal="emerge"] { --reveal: lift; --reveal-time: var(--dur-long); --mask-drop: 0%; }
[data-motion="on"] [data-reveal="draw"] { --reveal: draw; --reveal-time: var(--dur-long); transform-origin: 0 50%; }
[data-motion="on"] [data-reveal="wipe"] { --reveal: wipe; --reveal-time: var(--dur-long); --reveal-ease: var(--ease-in-out); }
[data-motion="on"] [data-reveal="wipe-back"] { --reveal: wipe-back; --reveal-time: var(--dur-long); --reveal-ease: var(--ease-in-out); }
[data-motion="on"] [data-reveal="curtain"] { --reveal: curtain; --reveal-time: var(--dur-long); --reveal-ease: var(--ease-in-out); }
/* An opening's own picture is never hidden: hiding it would hold back the largest thing the page has to show. It
   is on screen from the first frame and arrives by one of Home's two moves. A photo that fills its section starts
   a little too close and eases back, as Home's first photo does (the section clips it). A picture in a frame
   stands in low light, and the light comes up, as on Home's banquet hall. */
[data-motion="on"] [data-reveal="settle"] { --reveal: ease-back; --from-scale: 1.16; --reveal-time: calc(var(--dur-long) * 1.8); --reveal-ease: cubic-bezier(.2, .6, .2, 1); }
[data-motion="on"] [data-reveal="lit"] { --reveal: lights-up; --reveal-time: calc(var(--dur-long) * 1.6); --reveal-ease: var(--ease-in-out); }

/* Signature moves */
[data-motion="on"] [data-reveal="coin"] { --reveal: coin; --reveal-time: var(--dur-long); }
[data-motion="on"] [data-reveal="lens"] { --reveal: lens; --reveal-time: var(--dur-long); }
[data-motion="on"] [data-reveal="pin"] { --reveal: pin-drop; --reveal-ease: linear; --reveal-wait: 250ms; --stagger: 90ms; transform-origin: 50% 100%; }
[data-motion="on"] [data-reveal="trace"] { --reveal: trace; --reveal-ease: var(--ease-in-out); --reveal-wait: 250ms; }
[data-motion="on"] [data-reveal="punch"] { --reveal: punch; --reveal-time: var(--dur-short); --reveal-ease: linear; }
[data-motion="on"] [data-reveal="peek"] { --reveal: peek; --reveal-time: var(--dur-long); --reveal-ease: linear; }
[data-motion="on"] [data-reveal="plunge"] { --reveal: plunge; --reveal-time: var(--dur-long); --reveal-ease: linear; transform-origin: 50% 100%; }
[data-motion="on"] [data-reveal="unfurl"] { --reveal: unfurl; }
[data-motion="on"] [data-reveal="swing"] { --reveal: swing; --reveal-time: calc(var(--dur-long) * 2); --reveal-ease: var(--ease-in-out); transform-origin: 50% 0; }

[data-motion="on"] [data-step="1"] { --step: 1; }
[data-motion="on"] [data-step="2"] { --step: 2; }
[data-motion="on"] [data-step="3"] { --step: 3; }
[data-motion="on"] [data-step="4"] { --step: 4; }
[data-motion="on"] [data-step="5"] { --step: 5; }
[data-motion="on"] [data-step="6"] { --step: 6; }

/* Groups that come into view in the same moment follow each other down the page. The script numbers them. */
[data-motion="on"] [data-order="1"] { --scene-wait: 120ms; }
[data-motion="on"] [data-order="2"] { --scene-wait: 240ms; }
[data-motion="on"] [data-order="3"] { --scene-wait: 360ms; }
[data-motion="on"] [data-order="4"] { --scene-wait: 480ms; }

/* Arrived: the entrance is let go, wherever a rule names it (loops name it beside their own animation) */
[data-motion="on"] [data-reveal][data-rested] { --entrance: none; }

/* Whatever holds keyboard focus does not wait its turn: it starts to appear the moment its group is seen.
   Two rules, so a browser without :has() still reads the first. */
[data-motion="on"] [data-reveal]:focus-visible { --reveal-start: 0ms; }
[data-motion="on"] [data-reveal]:has(:focus-visible) { --reveal-start: 0ms; }

/* Where each piece of art comes from */
[data-motion="on"] .essence__drum { --from-x: -42%; --from-y: 10%; --from-turn: -14deg; }
[data-motion="on"] .essence__leg { --from-x: 38%; --from-y: 12%; --from-turn: 12deg; }
[data-motion="on"] .app-band__wave { --from-y: 34%; }
[data-motion="on"] .app-band__phone { --from-y: 24%; --from-turn: 5deg; }
[data-motion="on"] .why__circle { --from-scale: .72; }
[data-motion="on"] .why__arch { --reveal-ease: var(--ease-out); }
[data-motion="on"] .why__bucket { --from-y: 12%; --from-scale: .93; }
[data-motion="on"] .story__art { --from-y: 14%; }
[data-motion="on"] .story__drawing { --from-scale: .95; }
[data-motion="on"] .since__hearth { --from-y: 16%; }
[data-motion="on"] .served__hands { --from-x: -16%; --from-y: 3%; --from-turn: -5deg; transform-origin: 0 50%; }
[data-motion="on"] .served__map > img { --from-scale: .94; }
[data-motion="on"] .branch__pin { --from-y: -60%; }
[data-motion="on"] .ssbb-uae { --from-x: -100%; }
/* each building rises from its own depth out of what it stands on, all together, as the Figma's skyline does */
[data-motion="on"] .skyline__building { --reveal: skyline-rise; --from-y: var(--drop); --reveal-time: calc(var(--dur-long) * 1.2); }
@keyframes skyline-rise { from { transform: translateY(var(--from-y)); } }
[data-motion="on"] .tn-map > div { --from-scale: .5; --reveal-ease: var(--ease-overshoot); }
[data-motion="on"] .tn-map > img { --from-y: 4%; }
[data-motion="on"] .tn-dot { --from-scale: 0; --reveal-wait: 300ms; --stagger: 40ms; }
[data-motion="on"] .hfc__chicken { --from-x: 14%; --from-y: -12%; --from-turn: 12deg; --from-scale: .9; }
[data-motion="on"] .hfc__logo { --from-turn: -12deg; }
[data-motion="on"] .hfc__boxes { --from-y: 14%; }
[data-motion="on"] .hfc-strip__more img { --from-turn: -16deg; }
[data-motion="on"] .halal__word { --from-x: -16%; }
[data-motion="on"] .halal__word--red { --from-x: 16%; }
[data-motion="on"] .catering-bar img { --from-turn: -90deg; --reveal-time: var(--dur-enter); }
[data-motion="on"] .catering-hero__badge { --from-x: -24%; }
[data-motion="on"] .catered__art { --from-y: 10%; }
/* the big name only fades in here: its letters rise out of the band one by one (menu.css) */
[data-motion="on"] .menu__word { --reveal-time: var(--dur-short); }
/* the dish turns as it lands, and the plates are dealt out from it to either side */
[data-motion="on"] .menu__dish[data-slot="0"] { --from-y: 14%; --from-turn: -10deg; --from-scale: .8; }
[data-motion="on"] .menu__dish[data-slot="-2"] { --from-x: 120%; --from-turn: -24deg; --from-scale: .5; }
[data-motion="on"] .menu__dish[data-slot="-1"] { --from-x: 60%; --from-turn: -18deg; --from-scale: .5; }
[data-motion="on"] .menu__dish[data-slot="1"] { --from-x: -60%; --from-turn: 18deg; --from-scale: .5; }
[data-motion="on"] .menu__dish[data-slot="2"] { --from-x: -120%; --from-turn: 24deg; --from-scale: .5; }
[data-motion="on"] .footer-top__logo { --from-x: -12%; }

/* Waiting to be seen. Only on a screen: on paper nothing scrolls into view, so everything is simply there. */
@media screen {
  [data-motion="on"] [data-reveal]:not([data-seen]) { opacity: 0; }
  [data-motion="on"] [data-reveal="settle"]:not([data-seen]) { opacity: 1; scale: var(--from-scale); }
  [data-motion="on"] [data-reveal="lit"]:not([data-seen]) { opacity: 1; filter: brightness(.5); }
  /* one more piece is never hidden; it waits in the pose its entrance starts from */
  [data-motion="on"] .essence__art:not([data-seen]) .essence__bucket { rotate: 4deg; scale: .88; }
}
/* Then playing */
[data-motion="on"] [data-reveal][data-seen] { animation: var(--entrance); }

@keyframes enter {
  from { opacity: 0; transform: translate(var(--from-x), var(--from-y)) rotate(var(--from-turn)) scale(var(--from-scale)); }
}
/* A line rises from behind a fixed edge just below its own box. The clip moves against the transform, so the
   edge stays still on screen: a mask without a wrapper. */
@keyframes lift {
  from { transform: translateY(calc(100% + var(--mask-drop))); clip-path: inset(0 -5% 100% -5%); }
  to { transform: translateY(0); clip-path: inset(-20% -5% calc(var(--mask-drop) * -1) -5%); }
}
@keyframes ease-back { from { scale: var(--from-scale); } }
@keyframes draw { from { transform: scaleX(0); } }
@keyframes wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes wipe-back { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0); } }
@keyframes curtain { from { clip-path: inset(100% 0 0); } to { clip-path: inset(0); } }
@keyframes grow { from { scale: 0; } }

/* The S medallion spins like a flipped coin and settles face on */
@keyframes coin {
  from { opacity: 0; transform: perspective(600px) rotateY(-540deg) scale(.5); }
  30% { opacity: 1; }
}
/* The photo opens from its middle, inside its own pill shape */
@keyframes lens {
  from { clip-path: inset(0 50% round 999px); }
  to { clip-path: inset(0 0 round 999px); }
}
/* A pin falls, lands with a little squash and bounces once */
@keyframes pin-drop {
  from { opacity: 0; transform: translateY(-160%) scaleY(1); animation-timing-function: cubic-bezier(.5, 0, .9, .5); }
  20% { opacity: 1; }
  52% { transform: translateY(0) scaleY(.86); animation-timing-function: cubic-bezier(.2, .7, .3, 1); }
  72% { transform: translateY(-18%) scaleY(1); animation-timing-function: cubic-bezier(.5, 0, .8, .5); }
  90% { transform: translateY(0) scaleY(.95); animation-timing-function: var(--ease-out); }
  to { transform: translateY(0) scaleY(1); }
}
/* The arrow image is drawn from its tail. The clip is set in the image's own space, before the mirror
   transform, where the tail is the bottom right corner. */
@keyframes trace {
  from { clip-path: polygon(100% 100%, 100% 100%, 100% 100%); }
  to { clip-path: polygon(100% 100%, -120% 100%, 100% -120%); }
}
/* A headline line arrives from in front of the page and hits it */
@keyframes punch {
  from { opacity: 0; transform: scale(1.45); animation-timing-function: cubic-bezier(.5, 0, .9, .4); }
  45% { opacity: 1; transform: scale(.955); animation-timing-function: var(--ease-out); }
}
/* The astronaut comes up from behind the boxes, a little too far, and sinks back. It stays unseen until it
   moves: the boxes in front of it are still fading in, and it would show through them. */
@keyframes peek {
  from { opacity: 0; transform: translateY(75%); animation-timing-function: var(--ease-out); }
  1% { opacity: 1; }
  60% { transform: translateY(-7%); animation-timing-function: var(--ease-in-out); }
}
/* The bucket drops between the two words, squashes and settles */
@keyframes plunge {
  from { opacity: 0; transform: translateY(-60%) rotate(-8deg) scaleY(1); animation-timing-function: cubic-bezier(.45, 0, .9, .55); }
  18% { opacity: 1; }
  55% { transform: translateY(0) rotate(0deg) scaleY(.95); animation-timing-function: cubic-bezier(.2, .7, .3, 1); }
  74% { transform: translateY(-4.5%) rotate(0deg) scaleY(1); animation-timing-function: cubic-bezier(.5, 0, .8, .5); }
  90% { transform: translateY(0) rotate(0deg) scaleY(.985); animation-timing-function: var(--ease-out); }
  to { transform: translateY(0) rotate(0deg) scaleY(1); }
}
/* The catering tab drops from the top edge of its section; the edge is the mask */
@keyframes unfurl {
  from { transform: translateY(-100%); clip-path: inset(100% -10% -10%); }
  to { transform: translateY(0); clip-path: inset(0 -10% -10%); }
}
/* The medal swings on its ribbon and comes to rest */
@keyframes swing {
  from { opacity: 0; transform: rotate(-22deg); }
  12% { opacity: 1; }
  30% { transform: rotate(13deg); }
  50% { transform: rotate(-7deg); }
  68% { transform: rotate(3.5deg); }
  84% { transform: rotate(-1.5deg); }
}

/* ---------- Motion: changes of tab, filter and slide ---------- */
/* What a control has just brought into view (the next slide, a tab's panel, the cards a filter leaves, the words
   of a new choice) arrives with one short move, the same on every page: it comes up a little as it fades in. The
   page's script marks it (data-arriving, by arrive() in swap.ts) and takes the mark off when the move is over.
   Elements that arrive together follow each other: --arrival is each one's place among them. Marked "parts", an
   element stays put and its children arrive one after another. Whatever is inside sits still meanwhile. */
[data-motion="on"] :is([data-arriving="whole"], [data-arriving="whole"][data-reveal][data-seen]) { animation: swap-in var(--dur-short) var(--ease-out) calc(var(--arrival, 0) * var(--stagger) / 2) backwards; }
[data-motion="on"] [data-arriving] [data-reveal][data-seen] { animation: none; }
[data-motion="on"] [data-arriving="parts"] > :is(*, [data-reveal][data-seen]) { animation: swap-in var(--dur-short) var(--ease-out) backwards; }
[data-motion="on"] [data-arriving="parts"] > :is(:nth-child(2), :nth-child(2)[data-reveal][data-seen]) { animation-delay: calc(var(--stagger) / 2); }
[data-motion="on"] [data-arriving="parts"] > :is(:nth-child(3), :nth-child(3)[data-reveal][data-seen]) { animation-delay: var(--stagger); }
[data-motion="on"] [data-arriving="parts"] > :is(:nth-child(n + 4), :nth-child(n + 4)[data-reveal][data-seen]) { animation-delay: calc(var(--stagger) * 1.5); }
@keyframes swap-in { from { opacity: 0; transform: translateY(8px); } }
/* And what a control has changed in place answers with a move of its own (data-nudged, by nudge() in swap.ts):
   a figure that is new swells for a moment, so the eye finds it. */
[data-motion="on"] [data-nudged="bump"] { animation: bump var(--dur-short) var(--ease-out); }
@keyframes bump { 30% { transform: scale(1.08); } }

/* Things that move when their group is seen, but were never hidden or belong to a piece that is entering.
   Where one of them waits in a pose, that pose is with the other waiting states above. */

/* The hero photo starts a little too close and eases back (settle), and the lights come up on the banquet hall
   (lit). Both are on screen from the first frame. */
@keyframes lights-up { from { filter: brightness(.5); } }

/* The bucket is never hidden: it waits almost upright, then swings past its 30 degree tilt and comes back to
   rest on it. (Its tilted box reaches well above its group, so hiding it would hide something "in view".) */
[data-motion="on"] .essence__art[data-seen]:not([data-rested]) .essence__bucket { animation: settle calc(var(--dur-long) * 1.2) linear var(--scene-wait, 0ms) backwards; }
@keyframes settle {
  from { rotate: 4deg; scale: .88; animation-timing-function: cubic-bezier(.3, .7, .2, 1); }
  58% { rotate: 33deg; scale: 1; animation-timing-function: var(--ease-in-out); }
  80% { rotate: 29deg; animation-timing-function: var(--ease-in-out); }
}

/* A photo slides up into place inside its frame while the frame opens. It arrives before the opening reaches
   the frame's top edge, so the gap it leaves there is never shown. */
[data-motion="on"] :is(.frame, .branch__arch)[data-seen]:not([data-rested]) img { animation: slide-up calc(var(--reveal-time) * .8) var(--ease-out) var(--reveal-start) backwards; }
[data-motion="on"] .frame { --slide: 8%; }
[data-motion="on"] .branch__arch { --slide: 14%; --reveal-time: var(--dur-long); }
@keyframes slide-up { from { translate: 0 var(--slide); } }

/* The small S in "Quality is law" repeats the hero's coin */
[data-motion="on"] .essence__motto[data-seen]:not([data-rested]) img { animation: coin var(--dur-long) var(--ease-out) calc(var(--reveal-start) + 250ms) backwards; }

[data-motion="on"] .story__year[data-seen]:not([data-rested])::before { animation: grow var(--dur-short) var(--ease-overshoot) calc(var(--reveal-start) + 250ms) backwards; }

/* A pin's shadow waits on the map and shows as the pin lands */
[data-motion="on"] .pin[data-seen]:not([data-rested])::before { animation: enter var(--dur-short) linear calc(var(--reveal-start) + var(--dur-enter) * .5) backwards; }

/* The dishes arrive closed. Then the script (src/scripts/dishes.ts) opens the first one for a moment: its lid
   lifts, the steam leaves, and the lid comes back down. */

/* While a count-up runs, the real text stays in the page for screen readers and for copying. A copy of it
   with the running figure, which the script keeps in an attribute, is drawn in the same box on top. The
   "/" gives that drawing an empty text alternative where the browser supports it. */
[data-motion="on"] [data-count-now] { position: relative; -webkit-text-fill-color: transparent; }
[data-motion="on"] [data-count-now]::after {
  content: attr(data-count-now);
  content: attr(data-count-now) / "";
  position: absolute; inset: 0; -webkit-text-fill-color: currentColor;
}

/* ---------- Motion: ambient loops ---------- */
/* A loop only exists while its section is on screen or just about to be: the script marks that section with
   data-live. Each loop starts and ends on the design position, so starting or stopping one never shows. */

/* Steam: two copies of the same wisps, half a cycle apart, each rising through the design position while one
   fades out and the other in. The picture ends in the rim of a pan, which the bucket hides in the design;
   the clip keeps it hidden while the picture moves. */
[data-motion="on"] .why__steam { transform-origin: 50% 100%; }
[data-motion="on"] .why__steam--echo { display: block; opacity: 0; clip-path: inset(0 0 13%); }
[data-motion="on"] .why[data-live] .why__steam[data-seen]:not(.why__steam--echo) { clip-path: inset(0 0 13%); animation: var(--entrance), steam-out calc(var(--breath) * 1.2) linear calc(var(--scene-wait, 0ms) + 1500ms) infinite; }
[data-motion="on"] .why[data-live] .why__steam[data-seen] + .why__steam--echo { animation: steam-in calc(var(--breath) * 1.2) linear calc(var(--scene-wait, 0ms) + 1500ms) infinite; }
@keyframes steam-out {
  0%, 100% { opacity: 1; translate: 0 0; scale: 1 1; }
  50% { opacity: 0; translate: 0 -10%; scale: 1 1; }
  50.01% { opacity: 0; translate: 0 9%; scale: .94 .9; }
}
@keyframes steam-in {
  0% { opacity: 0; translate: 0 9%; scale: .94 .9; }
  50% { opacity: 1; translate: 0 0; scale: 1 1; }
  100% { opacity: 0; translate: 0 -10%; scale: 1 1; }
}

/* The wheel in the "Scroll down" mouse rolls */
[data-motion="on"] .why[data-live] .why__scroll .icon path:first-of-type { animation: wheel calc(var(--breath) * .35) var(--ease-in-out) infinite; }
@keyframes wheel {
  0%, 20% { opacity: 1; translate: 0 0; }
  65% { opacity: 0; translate: 0 3px; }
  66% { opacity: 0; translate: 0 0; }
}

/* Fire: the script lays a canvas over the firewood photo and burns real flames on it. Its rules are in
   src/styles/fire.css. */
/* The fried chicken and the moon astronaut float */
[data-motion="on"] .hfc[data-live] :is(.hfc__chicken, .hfc__astronaut)[data-seen] { animation: var(--entrance), float var(--breath) var(--ease-in-out) calc(var(--reveal-start) + var(--reveal-time)) infinite; }
[data-motion="on"] .hfc__astronaut { --float-rise: -7px; --float-turn: 1.2deg; }
@keyframes float { 50% { translate: 0 var(--float-rise, -10px); rotate: var(--float-turn, -1.5deg); } }

/* A ribbon of words runs along itself without end (Our Branches and Careers): its track holds the words more than
   once, and --run is how far one round takes it. */
@keyframes ribbon-run { to { translate: var(--run, -50%) 0; } }

/* Chennai's dot on the map sends out a ring */
[data-motion="on"] .tn-dot--lg::after { content: ""; position: absolute; inset: -2px; border: 2px solid var(--cream); border-radius: 50%; opacity: 0; }
[data-motion="on"] .tn-map[data-live] .tn-dot--lg[data-seen]::after { animation: ping calc(var(--breath) * .4) var(--ease-out) 1200ms infinite; }
@keyframes ping { from { opacity: .8; scale: 1; } 75%, to { opacity: 0; scale: 2.8; } }

/* ---------- Motion: scroll-linked ---------- */
/* Light parallax, run by the browser from the scroll position (no script). It needs view timelines, so other
   browsers simply do without. The timeline is named on the section because several sections clip their
   overflow, and a clipped box would otherwise be taken for the scroller. Unlike the loops, these effects are
   never switched on or off as a section comes and goes: an offset that arrived as its section came into view
   would show as a jump. Phones skip them. */
@supports (animation-timeline: view()) {
  @container page (min-width: 761px) {
    [data-motion="on"] :is(.hero, .essence, .why, .laws, .story, .catered) { view-timeline: --passage block; }

    /* On every page that opens on a photo filling its section (data-reveal="settle"), the photo falls behind as
       the opening leaves. The gap this opens at its top is already off screen, and the section clips its foot. */
    [data-motion="on"] :has(> [data-reveal="settle"]) { view-timeline: --passage block; }
    [data-motion="on"] [data-reveal="settle"] { animation: sink linear both; animation-timeline: --passage; animation-range: exit-crossing 0% exit-crossing 100%; }
    [data-motion="on"] [data-reveal="settle"][data-seen] { animation: var(--entrance), sink linear both; animation-timeline: auto, --passage; animation-range: normal, exit-crossing 0% exit-crossing 100%; }

    /* Drumsticks and the bucket move a little against the page. Each is on its design position when its
       section is centred in the window. */
    [data-motion="on"] :is(.essence__drum, .essence__leg, .why__bucket) { animation: parallax linear both; animation-timeline: --passage; }
    [data-motion="on"] :is(.essence__drum, .essence__leg, .why__bucket)[data-seen] { animation: var(--entrance), parallax linear both; animation-timeline: auto, --passage; }
    [data-motion="on"] .essence__drum { --shift: 36px; }
    [data-motion="on"] .essence__leg { --shift: 60px; }
    [data-motion="on"] .why__bucket { --shift: 24px; }
  }

  /* The motif strips slide sideways as their section passes. Only where the strip is longer than the screen,
     so the slide never uncovers its end. */
  @container page (min-width: 761px) and (max-width: 1700px) {
    [data-motion="on"] .motif img { animation: drift linear both; animation-timeline: --passage; }
  }
}
@keyframes sink { to { translate: 0 14%; } }
@keyframes parallax { from { translate: 0 var(--shift); } to { translate: 0 calc(var(--shift) * -1); } }
@keyframes drift { to { translate: -64px 0; } }

/* ---------- Motion: between pages ---------- */
/* A link to another page of the site is answered with one short move, the same everywhere: the page being left
   fades away over the page arriving, and the header, which is the same on both, holds still, so only the page
   beneath it changes. The browser does it (a view transition between two documents): every page still loads in
   full, a browser that has none of this simply opens the next page, and nobody who asks for reduced motion gets
   it. The move never touches the page arriving: that one comes in by its own entrances, as it does when it is
   opened directly, so nothing arrives twice. The header alone has arrived already (the layout's first script
   marks the page data-carried before its first frame): it is there at once and is not dropped in again.
   The header wears the name it is carried by only while a move lasts (the same script marks both pages
   data-between for that long): a browser draws a named piece by itself, a touch differently, and at rest the
   header has to be drawn exactly as on a page that never moves. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  [data-between] .site-header__bar { view-transition-name: site-header; }
}
::view-transition-group(*) { animation-duration: var(--dur-hover); animation-timing-function: var(--ease-out); }
/* the old page lies over the new one and fades; the new one is simply under it */
::view-transition-old(root) { z-index: 1; mix-blend-mode: normal; animation: page-leaves var(--dur-hover) var(--tap) both; }
::view-transition-new(root) { mix-blend-mode: normal; animation: none; }
@keyframes page-leaves { to { opacity: 0; } }
[data-motion="on"][data-carried] .site-header__bar[data-reveal] { --entrance: none; opacity: 1; }

/* ---------- Motion: phones ---------- */
/* Shorter travel and a tighter rhythm on a small screen. The two values are set on the page's sections, not on
   :root, so this rule can sit beside the page's other screen-size rules whatever they measure: a container
   query on .page could not reach :root. */
@container page (max-width: 760px) {
  .page > * { --rise: 20px; --stagger: 60ms; }
}
body {
    margin: 0;
  }