/* ==========================================================================
   American Burger — style.css
   One stylesheet for every page. Sections:
     1  Fonts + design tokens (colours, sizes) — change the look here
     2  Base, background video, grain
     3  Header + mobile menu
     4  Buttons and small parts
     5  Home: hero, marquee, anatomy, steps, call to action
     6  Menu ticket cards + menu page
     7  About, contact, FAQ
     8  Cart drawer, cart page, checkout, order tracker
     9  Footer
    10 Motion helpers (reveal, page wipe, toast), reduced motion
    11 Responsive
   ========================================================================== */

/* ---------- 1. Fonts + tokens ------------------------------------------ */
@font-face { font-family: 'Anton'; src: url('../fonts/anton-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Archivo'; src: url('../fonts/archivo-latin-wght-normal.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  /* colour: one dark ground, one cream ink, one fire accent */
  --ink:    #0b0605;   /* page ground */
  --coal:   #150d0b;   /* panels one step up from the ground */
  --ash:    #211613;   /* rows inside panels */
  --cream:  #f6ecd9;   /* text on dark */
  --paper:  #efe1c4;   /* menu tickets, receipt */
  --paper-2:#e4d2ae;   /* a step darker than paper */
  --paper-ink: #1c110d;
  --flame:  #ff5a1f;   /* accent text on dark */
  --hot:    #cc2a0a;   /* accent fills (buttons, red field) — cream text passes contrast on it */
  --leaf:   #1f8a3b;   /* veg mark */
  --muted:  #cdbfa8;   /* secondary text on dark (still readable) */

  --f-display: 'Anton', 'Impact', 'Arial Narrow', sans-serif;
  --f-body: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --gutter: clamp(1.25rem, 4.2vw, 4rem);   /* the same left/right margin everywhere */
  --maxw: 84rem;
  --header-h: 5.4rem;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --scrim: 0;          /* darkness laid over the video, set per page below */
}
body[data-page="menu"], body[data-page="about"], body[data-page="contact"], body[data-page="cart"] { --scrim: .62; }
body[data-page="home"] { --scrim: 0; }

/* ---------- 2. Base ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0; background: var(--ink); color: var(--cream);
  font: 400 1.0625rem/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
[hidden] { display: none !important; }
img, svg, video, canvas { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--flame); outline-offset: 3px; }
::selection { background: var(--hot); color: var(--cream); }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 300; background: var(--cream); color: var(--ink); padding: .75rem 1rem; font-weight: 700; }
.skip:focus { top: 1rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* fire video sits behind everything */
.bg { position: fixed; inset: 0; z-index: -2; background: #000; }
.bg video, .bg img { width: 100%; height: 100%; object-fit: cover; }
.bg::after { content: ''; position: absolute; inset: 0; background: rgba(8, 4, 3, var(--scrim)); transition: background .6s; }

/* a touch of film grain so black doesn't look digital */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .085;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* type scale: big display, readable body. Headlines never go past two lines. */
.display { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; line-height: .92; letter-spacing: .005em; }
h1, h2 { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; line-height: .92; letter-spacing: .005em; }
h1 { font-size: clamp(3.2rem, 11vw, 9.5rem); }
h2 { font-size: clamp(2.4rem, 6.2vw, 5.6rem); }
h3 { font-family: var(--f-display); font-weight: 400; text-transform: uppercase; line-height: 1; font-size: clamp(1.6rem, 2.4vw, 2.1rem); }
.lead { font-size: clamp(1.15rem, 1.5vw, 1.45rem); line-height: 1.5; max-width: 34rem; color: var(--cream); }
.accent { color: var(--flame); }

.wrap { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
main { position: relative; z-index: 2; }
.section { padding-block: clamp(5rem, 11vw, 9.5rem); }

/* ---------- 3. Header ------------------------------------------------------ */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 70; transition: background-color .35s, transform .5s var(--ease); }
.site-header.is-solid { background: var(--ink); }
.site-header.is-hidden { transform: translateY(-100%); }
.nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; height: var(--header-h); padding-inline: var(--gutter); max-width: calc(var(--maxw) + var(--gutter) * 2 + 8rem); margin-inline: auto; }
.nav-side { display: flex; align-items: center; gap: clamp(1.25rem, 2.6vw, 2.75rem); }
.nav-right { justify-content: flex-end; }
.nav-link { position: relative; font: 600 1rem/1 var(--f-body); letter-spacing: .05em; text-transform: uppercase; text-decoration: none; padding-block: .6rem; color: var(--cream); transition: color .25s; }
.nav-link::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--flame); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.nav-link:hover { color: var(--flame); }
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }
.nav-link[aria-current="page"] { color: var(--cream); }

.brand { display: grid; justify-items: center; line-height: .8; text-decoration: none; transition: transform .4s var(--ease); }
.brand:hover { transform: scale(1.04) rotate(-1.5deg); }
.brand-top { font: 400 1.35rem/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--cream); }
.brand-bottom { font: 400 2.55rem/.9 var(--f-display); text-transform: uppercase; color: var(--flame); transform: skewX(-9deg); letter-spacing: .02em; margin-top: .05rem; }

.icon-btn { display: inline-grid; place-items: center; width: 2.9rem; height: 2.9rem; position: relative; border-radius: 50%; transition: background-color .25s, transform .25s var(--ease); }
.icon-btn:hover { background: rgba(246, 236, 217, .12); }
.icon-btn:active { transform: scale(.92); }
.icon-btn svg { width: 1.55rem; height: 1.55rem; }
.cart-count { position: absolute; top: .05rem; right: -.1rem; min-width: 1.35rem; height: 1.35rem; padding-inline: .3rem; display: grid; place-items: center; border-radius: 1rem; background: var(--hot); color: var(--cream); font: 700 .78rem/1 var(--f-body); transform: scale(0); transition: transform .45s var(--ease); }
.cart-count.has-items { transform: scale(1); }
.cart-count.bump { animation: bump .5s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.55); } 100% { transform: scale(1); } }
.nav-toggle { display: none; }

/* phone menu */
.mobile-nav { position: fixed; inset: 0; z-index: 65; background: var(--ink); display: grid; align-content: center; gap: .4rem; padding: var(--header-h) var(--gutter) 3rem; clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .6s var(--ease-io), visibility 0s .6s; }
.mobile-nav.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .6s var(--ease-io); }
.mobile-nav a { font: 400 clamp(3rem, 15vw, 5rem)/1.02 var(--f-display); text-transform: uppercase; text-decoration: none; color: var(--cream); }
.mobile-nav a:hover, .mobile-nav a[aria-current="page"] { color: var(--flame); }
.mobile-nav p { margin-top: 1.5rem; color: var(--muted); }

/* ---------- 4. Buttons + small parts ---------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .7rem; min-height: 3.5rem; padding: .9rem 1.9rem; border-radius: 3px; background: var(--hot); color: var(--cream); font: 700 1rem/1 var(--f-body); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; transition: background-color .25s, color .25s, transform .25s var(--ease); }
.btn:hover { background: var(--flame); color: var(--ink); transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(.985); }
.btn svg { width: 1.2rem; height: 1.2rem; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--ghost { background: transparent; color: var(--cream); box-shadow: inset 0 0 0 2px var(--cream); }
.btn--ghost:hover { background: var(--cream); color: var(--ink); }
.btn--ink { background: var(--ink); color: var(--cream); }
.btn--ink:hover { background: var(--cream); color: var(--ink); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.link-arrow { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; text-decoration: none; padding-block: .5rem; }
.link-arrow svg { width: 1.2rem; height: 1.2rem; transition: transform .35s var(--ease); }
.link-arrow:hover { color: var(--flame); }
.link-arrow:hover svg { transform: translateX(6px); }

.flames { display: inline-flex; gap: 2px; }
.flame { width: 1rem; height: 1.15rem; fill: currentColor; color: var(--paper-2); }
.flame.on { color: var(--hot); }
.vegmark { display: inline-grid; place-items: center; width: 1.05rem; height: 1.05rem; border: 2px solid var(--leaf); flex: none; }
.vegmark::after { content: ''; width: .5rem; height: .5rem; border-radius: 50%; background: var(--leaf); }
.vegmark.nonveg { border-color: #b3261a; }
.vegmark.nonveg::after { background: #b3261a; }

/* ---------- 5. Home ---------------------------------------------------------- */
.stage { position: fixed; inset: 0; z-index: 1; pointer-events: none; transition: opacity .3s; }
.stage canvas { width: 100%; height: 100%; }

.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 2.5rem) var(--gutter) 4rem; z-index: 5; }
.hero-copy { position: relative; z-index: 5; width: 100%; max-width: 70rem; margin-inline: auto; }
.hero-inner { width: min(100%, var(--maxw)); margin-inline: auto; }
.hero h1 { font-size: clamp(3.3rem, 9.4vw, 9.2rem); line-height: .88; }
.hero h1 .ln { display: block; overflow: clip; padding-top: .06em; }
.hero h1 .ln > span { display: block; }
.hero h1 .l1 { color: var(--cream); }
.hero h1 .l2 { color: var(--flame); text-shadow: 0 0 .2em rgba(255, 80, 20, .7), 0 0 .55em rgba(255, 40, 10, .45); animation: flicker 3.4s steps(1) infinite; }
@keyframes flicker { 0%,100% { text-shadow: 0 0 .2em rgba(255,80,20,.7), 0 0 .55em rgba(255,40,10,.45); } 18% { text-shadow: 0 0 .17em rgba(255,80,20,.6), 0 0 .5em rgba(255,40,10,.38); } 24% { text-shadow: 0 0 .24em rgba(255,90,25,.8), 0 0 .62em rgba(255,40,10,.5); } 61% { text-shadow: 0 0 .18em rgba(255,80,20,.62), 0 0 .52em rgba(255,40,10,.4); } }
.hero .lead { margin-top: clamp(1.4rem, 3vw, 2.4rem); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 2rem; margin-top: clamp(1.6rem, 3.2vw, 2.6rem); }
.hero-note { margin-top: clamp(2.2rem, 5vw, 4rem); color: var(--muted); font-size: 1rem; }
.hero-note b { color: var(--cream); font-weight: 600; }

.marquee { position: relative; z-index: 6; background: var(--cream); color: var(--ink); overflow: hidden; padding-block: 1.1rem; transform: rotate(-1.6deg) scale(1.04); margin-block: -1.2rem 3rem; }
.marquee-track { display: flex; width: max-content; animation: marq 34s linear infinite; }
.marquee-track span { font: 400 clamp(1.9rem, 3.4vw, 3rem)/1 var(--f-display); text-transform: uppercase; padding-inline: 1.4rem; white-space: nowrap; display: inline-flex; align-items: center; gap: 2.8rem; }
.marquee-track i { font-style: normal; color: var(--hot); font-size: .7em; }
@keyframes marq { to { transform: translateX(-50%); } }

/* scroll-driven burger section */
.anatomy { position: relative; z-index: 3; height: 480vh; }
.anatomy-sticky { position: sticky; top: 0; height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, 1fr); align-items: center; gap: 2rem; padding: calc(var(--header-h) + 1rem) var(--gutter) 2rem; max-width: calc(var(--maxw) + var(--gutter) * 2 + 8rem); margin-inline: auto; }
.anatomy-text h2 { font-size: clamp(2.6rem, 5.4vw, 5.2rem); }
.anatomy-detail { margin-top: 1.5rem; max-width: 22rem; min-height: 7.5rem; }
.anatomy-detail b { display: block; font: 400 clamp(1.7rem, 2.6vw, 2.3rem)/1 var(--f-display); text-transform: uppercase; color: var(--flame); margin-bottom: .6rem; }
.anatomy-detail p { font-size: 1.1rem; color: var(--cream); }
.anatomy-detail .swap { animation: swapIn .6s var(--ease); }
@keyframes swapIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.anatomy-list { justify-self: end; display: grid; gap: .35rem; width: min(100%, 19rem); }
.anatomy-list li { font: 400 clamp(1.4rem, 2vw, 1.9rem)/1.1 var(--f-display); text-transform: uppercase; color: rgba(246, 236, 217, .38); padding: .45rem 0 .45rem 1.1rem; position: relative; transition: color .35s, transform .5s var(--ease); }
.anatomy-list li::before { content: ''; position: absolute; left: 0; top: 50%; width: .5rem; height: .5rem; margin-top: -.25rem; background: var(--flame); transform: scale(0) rotate(45deg); transition: transform .45s var(--ease); }
.anatomy-list li.is-active { color: var(--cream); transform: translateX(-.5rem); }
.anatomy-list li.is-active::before { transform: scale(1) rotate(45deg); }

.favs-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem 3rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.favs-head h2 { max-width: 14ch; }
.favs-head p { max-width: 24rem; color: var(--muted); }

/* the red field: how ordering works */
.field-red { background: var(--hot); color: var(--cream); position: relative; z-index: 4; }
.field-red h2 { max-width: 12ch; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 4rem); margin-top: clamp(2.5rem, 6vw, 5rem); }
.steps li h3 { font-size: clamp(2.2rem, 4.4vw, 4.2rem); line-height: .95; margin-bottom: 1rem; }
.steps li p { max-width: 20rem; font-size: 1.15rem; color: #fff0dc; }

.cta { position: relative; z-index: 4; text-align: left; }
.cta h2 { font-size: clamp(3.2rem, 10.5vw, 9.5rem); line-height: .88; }
.cta-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: end; }
.cta-meta { display: grid; gap: 1.6rem; justify-items: start; }
.cta-meta p { color: var(--muted); max-width: 22rem; }

/* ---------- 6. Menu tickets + menu page ---------------------------------------- */
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19.5rem), 1fr)); gap: clamp(1.25rem, 2.4vw, 2rem); }
.ticket { --tooth: 11px; position: relative; display: flex; flex-direction: column; gap: .9rem; padding: 1.4rem 1.4rem calc(1.5rem + var(--tooth)); background: var(--paper); color: var(--paper-ink);
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--tooth) + 1px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--tooth) * 2) var(--tooth) repeat-x;
          mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--tooth) + 1px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--tooth) * 2) var(--tooth) repeat-x;
  transition: transform .5s var(--ease); }
.ticket:hover { transform: translateY(-6px) rotate(-.4deg); }
.ticket-top { display: flex; align-items: center; justify-content: space-between; min-height: 1.6rem; font-weight: 700; font-size: .95rem; }
.ticket-badge { background: var(--ink); color: var(--cream); padding: .25rem .6rem; font-size: .9rem; font-weight: 700; letter-spacing: .02em; }
.ticket-media { position: relative; aspect-ratio: 1 / 0.92; display: grid; place-items: center; margin-block: -.2rem .1rem; }
.ticket-media::before { content: ''; position: absolute; left: 20%; right: 20%; bottom: 6%; height: 9%; border-radius: 50%; background: rgba(70, 36, 14, .17); }
.ticket-media img { position: relative; width: 94%; height: 94%; object-fit: contain; transition: transform .7s var(--ease); }
.ticket:hover .ticket-media img { transform: scale(1.06) rotate(-3deg); }
.ticket-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.ticket-name { font: 400 clamp(1.7rem, 2.2vw, 2rem)/1 var(--f-display); text-transform: uppercase; }
.ticket-price { font: 400 clamp(1.7rem, 2.2vw, 2rem)/1 var(--f-display); color: var(--hot); white-space: nowrap; }
.ticket-desc { font-size: 1rem; line-height: 1.5; color: #43302a; flex: 1; }
.ticket-opts { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.seg { display: inline-grid; grid-auto-flow: column; background: var(--paper-2); padding: 3px; border-radius: 5px; }
.seg button { padding: .5rem .8rem; border-radius: 3px; font: 600 .9rem/1 var(--f-body); color: #4b362c; transition: background-color .25s, color .25s; }
.seg button[aria-pressed="true"] { background: var(--paper-ink); color: var(--cream); }
.seg button:hover:not([aria-pressed="true"]) { background: rgba(28, 17, 13, .1); }
.ticket .btn { min-height: 3.2rem; }
.btn.is-added { background: var(--paper-ink); color: var(--cream); }

.page-hero { padding: calc(var(--header-h) + clamp(3rem, 7vw, 6rem)) var(--gutter) clamp(2rem, 4vw, 3.5rem); }
.page-hero .wrap { padding-inline: 0; }
.page-hero h1 { max-width: 14ch; }
.page-hero .lead { margin-top: 1.6rem; }

.menu-bar { position: sticky; top: var(--header-h); z-index: 40; background: var(--ink); }
.menu-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: .9rem; }
.tabs { position: relative; display: flex; gap: clamp(1rem, 3vw, 2.5rem); }
.tab { font: 400 clamp(1.4rem, 2.4vw, 2rem)/1 var(--f-display); text-transform: uppercase; padding: .6rem .1rem; color: rgba(246, 236, 217, .5); transition: color .3s; }
.tab:hover { color: var(--cream); }
.tab[aria-selected="true"] { color: var(--cream); }
.tabs-indicator { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--flame); width: 0; transition: transform .5s var(--ease), width .5s var(--ease); }
.switch { display: inline-flex; align-items: center; gap: .75rem; font-weight: 600; cursor: pointer; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .track { width: 3rem; height: 1.7rem; border-radius: 1rem; background: var(--ash); position: relative; transition: background-color .3s; flex: none; }
.switch .track::after { content: ''; position: absolute; top: .22rem; left: .25rem; width: 1.26rem; height: 1.26rem; border-radius: 50%; background: var(--cream); transition: transform .4s var(--ease), background-color .3s; }
.switch input:checked + .track { background: var(--leaf); }
.switch input:checked + .track::after { transform: translateX(1.3rem); }
.switch input:focus-visible + .track { outline: 3px solid var(--flame); outline-offset: 3px; }

.menu-group { padding-top: clamp(3rem, 6vw, 5rem); }
.menu-group-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.75rem; }
.menu-group-head h2 { font-size: clamp(2.6rem, 6vw, 5rem); }
.menu-group-head p { color: var(--muted); }
.menu-empty { padding: 4rem 0; color: var(--muted); font-size: 1.2rem; }
.heat-note { margin-top: clamp(4rem, 8vw, 7rem); display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: center; padding: clamp(1.75rem, 4vw, 3.5rem); background: var(--coal); }
.heat-note h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
.heat-note p { color: var(--muted); max-width: 28rem; }

/* ---------- 7. About + contact + FAQ ---------------------------------------- */
.about-story { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.statement { font: 600 clamp(1.5rem, 2.5vw, 2.25rem)/1.25 var(--f-body); letter-spacing: -.01em; max-width: 30ch; }
.about-story .prose { display: grid; gap: 1.1rem; margin-top: 2rem; color: var(--muted); max-width: 34rem; font-size: 1.1rem; }
.about-story .prose p:first-child { color: var(--cream); }
.about-art { position: relative; display: grid; place-items: center; background: var(--paper); aspect-ratio: 1; padding: 6%; }
.about-art img { width: 100%; height: 100%; object-fit: contain; transition: transform 1s var(--ease); }
.about-art:hover img { transform: rotate(-4deg) scale(1.04); }
.process { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(2rem, 5vw, 5rem) clamp(2rem, 6vw, 6rem); margin-top: clamp(2.5rem, 6vw, 5rem); }
.process li h3 { font-size: clamp(2.2rem, 4vw, 3.6rem); margin-bottom: .8rem; }
.process li p { font-size: 1.15rem; color: #fff0dc; max-width: 27rem; }
.heat-guide { display: grid; gap: .5rem; margin-top: 2.5rem; }
.heat-row { display: grid; grid-template-columns: 11rem 1fr auto; gap: 1rem 2rem; align-items: center; padding: 1.6rem 1.8rem; background: var(--coal); transition: background-color .35s, transform .5s var(--ease); }
.heat-row:hover { background: var(--ash); transform: translateX(8px); }
.heat-row h3 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
.heat-row p { color: var(--muted); font-size: 1.1rem; }
.heat-row .flames .flame { color: #4a3128; }
.heat-row .flames .flame.on { color: var(--flame); }

.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.info-list { display: grid; gap: 2rem; }
.info-list h3 { color: var(--flame); margin-bottom: .5rem; font-size: 1.7rem; }
.info-list p, .info-list address { font-style: normal; font-size: 1.15rem; line-height: 1.5; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: .35rem 2rem; font-size: 1.1rem; }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; font-variant-numeric: tabular-nums; }
.open-now { display: inline-flex; align-items: center; gap: .6rem; margin-top: 1rem; font-weight: 700; }
.open-now::before { content: ''; width: .7rem; height: .7rem; border-radius: 50%; background: var(--muted); }
.open-now.is-open::before { background: #3ddc6a; animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .4; } }

.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .45rem; }
.field label { font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; min-height: 3.5rem; padding: .85rem 1rem; border: 0; border-radius: 3px; background: var(--ash); color: var(--cream); font: inherit; box-shadow: inset 0 0 0 2px transparent; transition: box-shadow .25s, background-color .25s; }
.field textarea { min-height: 8.5rem; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #8f7f70; }
.field input:hover, .field textarea:hover, .field select:hover { background: #2a1c17; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--flame); background: #2a1c17; }
.field.has-error input, .field.has-error textarea { box-shadow: inset 0 0 0 2px #ff6a4a; }
.field .err { color: #ff8a6a; font-size: .95rem; min-height: 0; display: none; }
.field.has-error .err { display: block; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-ok { display: none; padding: 1.4rem; background: var(--leaf); color: #fff; font-weight: 600; font-size: 1.1rem; }
.form-ok.is-shown { display: block; animation: swapIn .6s var(--ease); }
.radio-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.radio-cards label { position: relative; cursor: pointer; }
.radio-cards input { position: absolute; opacity: 0; }
.radio-cards span { display: grid; place-items: center; text-align: center; min-height: 3.5rem; padding: .6rem; background: var(--ash); font-weight: 600; transition: background-color .25s, color .25s; }
.radio-cards input:checked + span { background: var(--cream); color: var(--ink); }
.radio-cards--2 { grid-template-columns: 1fr 1fr; }
fieldset { min-width: 0; }
.radio-cards span small { display: block; font-weight: 400; font-size: .85rem; opacity: .75; margin-top: .15rem; }
.pay-error { padding: .9rem 1.1rem; background: #3a1410; color: #ffb39e; font-weight: 600; }
.btn.is-busy { opacity: .7; pointer-events: none; }
.radio-cards input:focus-visible + span { outline: 3px solid var(--flame); outline-offset: 3px; }

.faq { margin-top: clamp(3rem, 6vw, 5rem); display: grid; gap: .5rem; }
.faq details { background: var(--coal); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.4rem 1.6rem; cursor: pointer; list-style: none; font: 400 clamp(1.4rem, 2.2vw, 1.9rem)/1.1 var(--f-display); text-transform: uppercase; transition: color .25s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--flame); }
.faq summary svg { width: 1.5rem; height: 1.5rem; flex: none; transition: transform .45s var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding: 0 1.6rem 1.6rem; color: var(--muted); max-width: 46rem; font-size: 1.1rem; }

/* ---------- 8. Cart drawer + cart page --------------------------------------- */
.overlay { position: fixed; inset: 0; z-index: 110; background: rgba(5, 2, 1, .66); opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s .4s; }
.overlay.is-open { opacity: 1; visibility: visible; transition: opacity .4s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 120; width: min(27rem, 100%); background: var(--coal); display: flex; flex-direction: column; transform: translateX(102%); transition: transform .55s var(--ease), visibility 0s .55s; visibility: hidden; }
.drawer.is-open { transform: none; visibility: visible; transition: transform .55s var(--ease); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1.3rem 1.4rem 1rem 1.6rem; }
.drawer-head h2 { font-size: 2.4rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: .5rem 1.4rem 1rem; display: grid; align-content: start; gap: .6rem; overscroll-behavior: contain; }
.drawer-foot { padding: 1.2rem 1.4rem 1.5rem; background: var(--ash); display: grid; gap: 1rem; }
.free-bar { display: grid; gap: .5rem; font-size: .98rem; color: var(--muted); }
.free-bar .bar { height: .5rem; background: var(--coal); border-radius: 1rem; overflow: hidden; }
.free-bar .bar i { display: block; height: 100%; width: 0; background: var(--flame); transition: width .7s var(--ease); }
.row-total { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.1rem; }
.row-total strong { font: 400 2rem/1 var(--f-display); }
.empty { padding: 2.5rem 0; color: var(--muted); display: grid; gap: 1.2rem; justify-items: start; }
.empty p { font-size: 1.15rem; max-width: 20rem; }

.line { display: grid; grid-template-columns: 4.6rem 1fr auto; gap: .5rem 1rem; align-items: center; padding: .8rem; background: var(--ash); animation: swapIn .5s var(--ease) both; }
.line img { width: 4.6rem; height: 4.6rem; object-fit: contain; }
.line-name { font: 400 1.35rem/1.05 var(--f-display); text-transform: uppercase; display: flex; align-items: center; gap: .5rem; }
.line-sub { color: var(--muted); font-size: .95rem; margin-top: .2rem; }
.line-price { font: 400 1.35rem/1 var(--f-display); text-align: right; }
.line-ctrl { grid-column: 2 / -1; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.stepper { display: inline-flex; align-items: center; background: var(--coal); }
.stepper button { width: 2.5rem; height: 2.5rem; display: grid; place-items: center; font-size: 1.3rem; transition: background-color .2s, color .2s; }
.stepper button:hover { background: var(--cream); color: var(--ink); }
.stepper button:active { transform: scale(.9); }
.stepper output { min-width: 2.2rem; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.remove { color: var(--muted); font-size: .95rem; text-decoration: underline; text-underline-offset: 3px; padding: .5rem; }
.remove:hover { color: var(--flame); }

.checkout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.checkout h2 { font-size: clamp(2rem, 3.6vw, 3rem); margin-bottom: 1.25rem; }
.cart-lines { display: grid; gap: .6rem; }
.cart-lines .line { grid-template-columns: 6rem 1fr auto; padding: 1rem; }
.cart-lines .line img { width: 6rem; height: 6rem; }
.cart-lines .line-name { font-size: 1.7rem; }
.cart-lines .line-price { font-size: 1.7rem; }
.checkout-form { margin-top: clamp(2.5rem, 5vw, 4rem); }
.fine-print { color: var(--muted); font-size: .98rem; }

.receipt { --tooth: 12px; position: sticky; top: calc(var(--header-h) + 1.25rem); padding: 1.8rem 1.8rem calc(2rem + var(--tooth)); background: var(--paper); color: var(--paper-ink); display: grid; gap: 1.1rem;
  -webkit-mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--tooth) + 1px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--tooth) * 2) var(--tooth) repeat-x;
          mask: linear-gradient(#000 0 0) top / 100% calc(100% - var(--tooth) + 1px) no-repeat, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--tooth) * 2) var(--tooth) repeat-x; }
.receipt h2 { font-size: 2.6rem; margin: 0; }
.receipt dl { margin: 0; display: grid; gap: .6rem; }
.receipt dl div { display: flex; justify-content: space-between; gap: 1rem; font-size: 1.1rem; }
.receipt dt { color: #5a463b; }
.receipt dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 600; }
.receipt .discount dd { color: var(--leaf); }
.receipt .grand { align-items: baseline; padding: 1rem 1.1rem; margin: .3rem -1.1rem 0; background: var(--paper-2); }
.receipt .grand dt { font: 400 1.5rem/1 var(--f-display); text-transform: uppercase; color: var(--paper-ink); }
.receipt .grand dd { font: 400 2.8rem/1 var(--f-display); color: var(--hot); }
.promo { display: grid; grid-template-columns: 1fr auto; gap: .5rem; }
.promo input { min-height: 3.1rem; padding: 0 1rem; border: 0; background: var(--paper-2); color: var(--paper-ink); font: inherit; text-transform: uppercase; letter-spacing: .06em; }
.promo input::placeholder { color: #85705f; text-transform: none; letter-spacing: 0; }
.promo input:focus { outline: 3px solid var(--paper-ink); outline-offset: 0; }
.promo button { padding: 0 1.2rem; background: var(--paper-ink); color: var(--cream); font-weight: 700; transition: background-color .25s; }
.promo button:hover { background: var(--hot); }
.promo-msg { font-size: .95rem; min-height: 1.3rem; color: #5a463b; }
.promo-msg.ok { color: var(--leaf); font-weight: 600; }
.promo-msg.bad { color: #b3261a; }
.receipt .free-bar { color: #5a463b; }
.receipt .free-bar .bar { background: var(--paper-2); }
.receipt .free-bar .bar i { background: var(--hot); }
.receipt .fine-print { color: #5a463b; }

.done { display: none; text-align: left; }
.done.is-shown { display: block; }
.done-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 6rem); align-items: start; }
.done h2 { font-size: clamp(2.6rem, 6vw, 5.4rem); }
.done .order-no { margin-top: 1rem; font: 400 clamp(1.6rem, 3vw, 2.4rem)/1 var(--f-display); color: var(--flame); }
.tracker { display: grid; gap: .5rem; }
.tracker li { display: grid; grid-template-columns: 2.4rem 1fr; gap: 1.1rem; align-items: center; padding: 1.1rem 1.3rem; background: var(--coal); color: rgba(246, 236, 217, .45); font: 400 clamp(1.4rem, 2.2vw, 1.9rem)/1.1 var(--f-display); text-transform: uppercase; transition: background-color .5s, color .5s, transform .6s var(--ease); }
.tracker li span.dot { width: 1.4rem; height: 1.4rem; border-radius: 50%; background: var(--ash); transition: background-color .5s, transform .5s var(--ease); }
.tracker li.is-now { background: var(--ash); color: var(--cream); transform: translateX(10px); }
.tracker li.is-now .dot { background: var(--flame); animation: pulse 1.4s infinite; }
.tracker li.is-done { color: var(--cream); }
.tracker li.is-done .dot { background: #3ddc6a; }
.tracker small { display: block; font: 400 .98rem/1.4 var(--f-body); text-transform: none; color: var(--muted); margin-top: .35rem; }

/* ---------- 9. Footer ----------------------------------------------------------- */
.site-footer { position: relative; z-index: 4; background: var(--ink); overflow: hidden; padding-top: clamp(4rem, 8vw, 7rem); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: clamp(3rem, 6vw, 5rem); }
.footer-grid h3 { font-size: 1.5rem; color: var(--flame); margin-bottom: .9rem; }
.footer-grid p, .footer-grid li, .footer-grid address { color: var(--muted); font-style: normal; font-size: 1.05rem; }
.footer-grid a { text-decoration: none; transition: color .2s; }
.footer-grid a:hover { color: var(--flame); }
.footer-grid ul { display: grid; gap: .45rem; }
.footer-about p { max-width: 22rem; }
.footer-mark { font: 400 clamp(3rem, 13.6vw, 14rem)/.82 var(--f-display); text-transform: uppercase; color: var(--hot); text-align: center; white-space: nowrap; margin-bottom: -.12em; user-select: none; letter-spacing: -.005em; }
.footer-legal { position: relative; z-index: 2; padding-block: 1.1rem; background: var(--hot); color: var(--cream); font-size: .98rem; }
.footer-legal .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 2rem; }

/* ---------- 10. Motion helpers ------------------------------------------------------- */
/* hero + page-title lines slide up from behind a mask once the page is uncovered */
.js .hero h1 .ln > span, .js .page-hero h1 .ln > span { transform: translateY(110%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 140ms + 120ms); }
.js.is-ready .hero h1 .ln > span, .js.is-ready .page-hero h1 .ln > span { transform: none; }
.js.is-ready .hero h1 .ln { animation: unclip 0s 1.9s forwards; }   /* let the glow spill out once the line has slid in */
@keyframes unclip { to { overflow: visible; } }
.js .rise { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 3) * 140ms + 160ms); }
.js.is-ready .rise { opacity: 1; transform: none; }

.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0ms); }
.js [data-reveal="left"] { transform: translateX(-36px); }
.js [data-reveal="right"] { transform: translateX(36px); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

.wipe { position: fixed; inset: 0; z-index: 200; background: var(--ink); pointer-events: none; transform: translateY(100%); will-change: transform; }
.wipe::before { content: ''; position: absolute; left: 0; right: 0; top: -1.1rem; height: 1.1rem; background: var(--hot); }
.js .wipe { transform: translateY(0); }

.toast { position: fixed; left: 50%; bottom: 1.5rem; z-index: 150; transform: translate(-50%, 160%); background: var(--cream); color: var(--ink); padding: .95rem 1.4rem; font-weight: 600; display: flex; align-items: center; gap: .9rem; max-width: calc(100% - 2rem); transition: transform .55s var(--ease); }
.toast.is-shown { transform: translate(-50%, 0); }
.toast a { color: var(--hot); font-weight: 700; }
.fly { position: fixed; z-index: 140; width: 4.5rem; height: 4.5rem; object-fit: contain; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal], .js .rise { opacity: 1; transform: none; }
  .js .hero h1 .ln > span, .js .page-hero h1 .ln > span { transform: none; }
  .marquee-track { animation: none; }
  .hero h1 .l2 { animation: none; }
}

/* ---------- 11. Responsive ------------------------------------------------------------------ */
@media (max-width: 62rem) {
  :root { --header-h: 4.6rem; }
  .nav { grid-template-columns: 1fr auto 1fr; }
  .nav-left .nav-link, .nav-right .nav-link { display: none; }
  .nav-toggle { display: inline-grid; margin-left: -.6rem; }
  .brand-top { font-size: 1.1rem; }
  .brand-bottom { font-size: 2.1rem; }

  .anatomy-sticky { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; align-content: stretch; align-items: start; padding-block: calc(var(--header-h) + .5rem) 1.5rem; }
  .anatomy-text { order: 1; }
  .anatomy-list { order: 3; justify-self: stretch; width: 100%; grid-template-columns: repeat(2, 1fr); gap: 0 1rem; }
  .anatomy-list li { font-size: 1.15rem; padding-block: .3rem; }
  .anatomy-list li.is-active { transform: none; }
  .anatomy-detail { min-height: 5.5rem; margin-top: 1rem; }
  .anatomy-detail p { font-size: 1rem; }
  .steps { grid-template-columns: 1fr; gap: 2.5rem; }
  .cta-row { grid-template-columns: 1fr; gap: 2rem; }
  .about-story, .contact-grid, .done-grid, .checkout, .heat-note { grid-template-columns: minmax(0, 1fr); }
  .receipt { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .heat-row { grid-template-columns: 1fr auto; }
  .heat-row p { grid-column: 1 / -1; order: 3; }
}
@media (max-width: 40rem) {
  body { font-size: 1.025rem; }
  .hero { align-items: flex-start; padding-top: calc(var(--header-h) + 2rem); }
  .hero-note { display: none; }
  .process { grid-template-columns: 1fr; }
  .form-row, .radio-cards { grid-template-columns: 1fr; }
  .menu-bar .wrap { flex-wrap: wrap; gap: .4rem 1rem; }
  .tabs { gap: 1.1rem; }
  .marquee { transform: rotate(-2.2deg) scale(1.08); }
  .line-ctrl { flex-wrap: wrap; }
  .cart-lines .line { grid-template-columns: 4.6rem 1fr auto; }
  .cart-lines .line img { width: 4.6rem; height: 4.6rem; }
  .cart-lines .line-name { font-size: 1.4rem; }
  .cart-lines .line-price { font-size: 1.4rem; }
  .footer-grid { grid-template-columns: 1fr; }
}
