:root {
  --red: #a91632;
  --red-dark: #8f102a;
  --orange: #ffa719;
  --cream: #f6f0df;
  --ink: #282522;
  --pink: #ef3d81;
  --yellow: #fed900;
  --blue: #45bce8;
  --max: 1180px;
  --display: "Bebas Neue", Impact, sans-serif;
  --body: "Poppins", "Trebuchet MS", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--body); overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.container { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }
.page { display: none; }
.page.active { display: block; animation: pageIn .35s ease both; }
.panel-red { background: var(--red); color: var(--cream); }
.panel-orange { background: var(--orange); color: var(--red); }
.panel-cream { background: var(--cream); color: var(--red); }

.site-header { height: 112px; background: var(--cream); position: relative; z-index: 100; border-bottom: 3px solid var(--orange); }
.nav-shell { width: min(1240px, calc(100% - 48px)); height: 100%; margin: auto; display: grid; grid-template-columns: 1fr 246px 1fr; align-items: center; position: relative; }
.nav-group { display: flex; align-items: center; gap: clamp(28px, 4vw, 70px); }
.nav-right { justify-content: flex-end; }
.nav-group a { font-size: 15px; font-weight: 500; position: relative; white-space: nowrap; }
.nav-group a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -8px; height: 2px; background: var(--red); transition: right .25s ease; }
.nav-group a:hover::after, .nav-group a.active::after { right: 0; }
.brand-mark { align-self: start; justify-self: center; width: 246px; height: 162px; background: var(--cream); border: 4px solid var(--orange); border-top: 0; border-radius: 0 0 125px 125px; display: grid; place-items: center; z-index: 5; }
.brand-mark img { width: 155px; height: 142px; object-fit: contain; }
.menu-toggle, .mobile-menu { display: none; }

.line-panel { position: relative; isolation: isolate; }
.section-line { position: absolute; z-index: 1; left: 0; bottom: 0; width: 100%; height: auto; pointer-events: none; }
.zig-bottom, .zig-top { position: relative; }
/* Repeat fixed 44px-wide teeth; narrow screens show fewer, equally sized teeth. */
.zig-bottom::after, .zig-top::before {
  content: ""; position: absolute; z-index: 4; left: 0; width: 100%; height: 22px; background: inherit; pointer-events: none;
  --zig-tooth: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='22' viewBox='0 0 44 22'%3E%3Cpath d='M0 0H44L22 22Z' fill='white'/%3E%3C/svg%3E");
  -webkit-mask-image: var(--zig-tooth); mask-image: var(--zig-tooth);
  -webkit-mask-size: 44px 22px; mask-size: 44px 22px;
  -webkit-mask-repeat: repeat-x; mask-repeat: repeat-x;
}
.zig-bottom::after { bottom: -21px; }
.zig-top::before { top: -21px; transform: rotate(180deg); }

.home-hero { height: 650px; overflow: hidden; }
.hero-grid { height: 100%; display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; padding-top: 42px; }
.hero-copy { position: relative; padding-left: 30px; }
.hero-copy h1 { position: relative; z-index: 2; margin: 0 0 28px; font: 72px/.88 var(--display); letter-spacing: .5px; text-transform: uppercase; color: #fff; }
.hero-copy h1 em { color: var(--orange); font-style: normal; }
.hero-copy p { margin: -135px 0 0 210px; font-size: 24px; line-height: 1.4; white-space: nowrap; }
.gate-small { width: 210px; height: 290px; object-fit: contain; }
.hero-mascot { align-self: end; justify-self: center; width: min(600px, 100%); height: 590px; object-fit: contain; object-position: center bottom; filter: drop-shadow(0 12px 12px rgba(51,0,0,.12)); }

.story-teaser { padding: 110px 0 130px; }
.split-story { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; align-items: center; }
.street-card { width: 440px; justify-self: center; filter: drop-shadow(2px 10px 8px rgba(42,35,22,.22)); transform: rotate(-4deg); }
.story-copy { max-width: 540px; }
.story-copy p { color: var(--ink); font-size: 17px; line-height: 1.8; margin: 34px 0; }
.circle-title { width: 285px; aspect-ratio: 1; border-radius: 50%; display: grid; place-content: center; padding: 24px; font: 54px/.95 var(--display); position: relative; isolation: isolate; }
.circle-title::after { content: ""; position: absolute; inset: 10px; border: 2px dashed currentColor; border-radius: inherit; opacity: .18; pointer-events: none; animation: haloSpin 24s linear infinite; }
.small-circle { background: var(--orange); color: var(--ink); width: 315px; font: 30px/1.25 var(--body); }
.small-circle strong { font: 54px/.9 var(--display); color: var(--red); }
.red-circle { background: var(--red); color: var(--orange); }
.orange-circle { background: var(--orange); color: var(--red); }
.button, .submit-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 24px; border: 0; background: var(--red); color: white; cursor: pointer; transition: transform .2s ease, background .2s ease; }
.button:hover, .submit-button:hover { transform: translateY(-2px); background: var(--red-dark); }

.food-intro { padding: 90px 0 105px; }
.compact-row { display: flex; align-items: center; justify-content: center; gap: 100px; }
.compact-row .circle-title { width: 245px; font-size: 56px; }
.compact-row p { margin: 8px 0; font-size: 22px; line-height: 1.6; }
.compact-row h2 { margin: 0 0 14px; font-size: 36px; }
.compact-row .button { margin-top: 16px; }

.signature { position: relative; overflow: hidden; padding: 100px 0 120px; }
.dishes-grid { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(2, 1fr); align-items: center; row-gap: 10px; }
.dish-copy { text-align: center; max-width: 430px; justify-self: center; }
.dish-copy h2, .menu-item h2 { font: 58px/1 var(--display); margin: 0 0 18px; }
.dish-copy p, .menu-item p { font-size: 17px; line-height: 1.75; margin: 0; }
.dish-media { position: relative; }
.chole-media > img:first-child { width: 570px; }
.dish-media .badge { position: absolute; width: 150px; top: 0; right: 4%; }
.lassi-media img { width: 370px; margin-inline: auto; }
.monument-line { position: absolute; z-index: 1; left: 0; bottom: 0; width: 100%; height: 285px; object-fit: cover; object-position: bottom; opacity: .75; }

.social-strip { padding: 110px 0 120px; }
.social-heading { display: flex; justify-content: flex-start; align-items: center; gap: 70px; margin: 0 auto 60px; max-width: 990px; }
.social-heading .circle-title { width: 260px; color: white; font-size: 47px; }
.social-heading .circle-title small { font: 18px var(--body); }
.social-heading h2 { font-size: 32px; line-height: 1.4; }
.social-grid { max-width: 860px; margin: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.social-grid img { width: 100%; height: 330px; object-fit: cover; }

.story-page { min-height: 930px; padding: 170px 0 130px; overflow: hidden; }
.story-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; align-items: end; }
.story-gate { max-height: 620px; width: 100%; object-fit: contain; object-position: bottom; }
.story-page-copy { padding-bottom: 35px; }
/* The subtitle crosses the lower circle, below the Our Story lettering. */
.title-with-tag { position: relative; min-height: 300px; padding: 210px 0 45px 90px; margin-bottom: 30px; }
.title-with-tag .circle-title { position: absolute; top: 0; left: 0; width: 300px; padding-bottom: 100px; color: white; }
.title-with-tag > p { position: relative; z-index: 1; margin: 0; font-size: 38px; line-height: 1.3; color: white !important; white-space: normal; overflow-wrap: break-word; }
.story-page-copy > p { color: var(--orange); font-size: 18px; line-height: 1.75; margin: 10px 0; }

.menu-hero { padding: 90px 0 70px; min-height: 700px; overflow: hidden; }
.menu-hero-grid { min-height: 530px; display: grid; grid-template-columns: 1.05fr .55fr 1.1fr; gap: 25px; align-items: center; }
.menu-mascot { width: 430px; max-height: 540px; object-fit: contain; justify-self: end; }
.menu-hero .circle-title { width: 250px; }
.menu-intro p { font-size: 22px; line-height: 1.6; margin: 0 0 12px; }
.menu-intro h1 { font-size: 44px; margin: 0 0 16px; }
.menu-classics { padding: 120px 0 100px; }
.menu-specials { padding: 100px 0 135px; color: var(--orange); }
.menu-list { display: grid; gap: 45px; }
.menu-item { display: grid; grid-template-columns: .85fr 1.15fr; align-items: center; gap: 55px; min-height: 390px; }
.menu-item > img, .menu-item .dish-media > img:first-child { width: 100%; max-height: 470px; object-fit: contain; }
.menu-item > div:not(.dish-media) { text-align: center; max-width: 470px; justify-self: center; }
.menu-item .dish-media .badge { width: 140px; right: 3%; }
.menu-item.copy-right { grid-template-columns: 1fr 1fr; }

.franchise-hero { min-height: 720px; padding: 110px 0 40px; overflow: hidden; }
.franchise-grid { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; min-height: 560px; }
.franchise-copy .circle-title { width: 380px; color: white; align-content: center; }
.franchise-copy .circle-title strong { font-size: 54px; }
.franchise-copy .circle-title span { font: 26px/1.25 var(--body); margin-top: 10px; }
.franchise-copy > p { max-width: 650px; font-size: 25px; line-height: 1.8; margin: 45px 0 0 80px; }
.franchise-mascot { height: 570px; justify-self: center; object-fit: contain; }
.franchise-details { padding: 120px 0 140px; }
.franchise-details-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 70px; align-items: center; }
.contact-form { display: grid; gap: 18px; }
.contact-form label { border: 2px solid var(--orange); display: grid; }
.contact-form label span { position: absolute; padding: 9px 16px; color: rgba(246,240,223,.55); pointer-events: none; }
.contact-form input, .contact-form textarea { width: 100%; border: 0; outline: 0; background: transparent; color: white; padding: 11px 16px; }
.contact-form input { height: 48px; }
.contact-form input:focus, .contact-form textarea:focus { background: rgba(255,255,255,.05); }
.contact-form label:focus-within span, .contact-form label:has(input:not(:placeholder-shown)) span { opacity: 0; }
.submit-button { justify-self: start; min-height: 38px; padding-inline: 18px; background: var(--orange); color: var(--red); font-weight: 600; }
.investment { position: relative; padding-top: 180px; }
.investment .circle-title { position: absolute; z-index: 2; left: -10px; top: -30px; width: 300px; color: white; font-size: 48px; }
.investment-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1px; padding: 1px; background: var(--orange); margin-left: 30px; }
.investment-grid > div { min-height: 105px; padding: 16px; display: flex; align-items: center; background: var(--red); font-size: 24px; line-height: 1.3; color: white; overflow-wrap: break-word; }
.investment-grid .orange-cell { background: var(--orange); color: var(--red); }

.contact-page { min-height: 900px; padding: 180px 0 120px; position: relative; overflow: hidden; }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.map-card { border: 3px solid var(--orange); background: var(--cream); padding: 10px; color: var(--red); transition: transform .25s ease, box-shadow .25s ease; }
.map-card:hover { transform: translateY(-4px); box-shadow: 0 18px 45px rgba(45, 0, 10, .25); }
.map-card iframe { display: block; width: 100%; height: 490px; border: 0; }
.map-card > a { display: block; padding: 12px 6px 2px; text-align: right; font-weight: 600; }
.contact-copy .circle-title { width: 310px; font-size: 58px; }
.contact-copy address { font-style: normal; font-size: 18px; line-height: 1.65; }
.contact-copy .contact-form { margin-top: 25px; }

.site-footer { background: var(--cream); padding: 100px 0 28px; color: var(--ink); position: relative; }
.footer-grid { display: grid; grid-template-columns: .7fr 1.2fr .45fr .55fr; gap: 45px; align-items: end; }
.footer-logo img { width: 230px; max-height: 230px; object-fit: contain; }
.footer-contact { font-size: 14px; line-height: 1.6; }
.footer-links { display: grid; gap: 8px; font-size: 14px; }
.footer-links a:hover { color: var(--red); }
.footer-gate { max-height: 210px; margin-left: auto; object-fit: contain; }
.copyright { text-align: center; margin: 45px 0 0; font-size: 14px; }
.toast { position: fixed; z-index: 200; left: 50%; bottom: 28px; transform: translate(-50%, 130px); opacity: 0; background: var(--ink); color: white; padding: 14px 24px; border-radius: 6px; box-shadow: 0 8px 30px rgba(0,0,0,.25); transition: .3s ease; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(34px) scale(.985); transition: opacity .7s ease var(--delay, 0ms), transform .7s cubic-bezier(.2,.8,.2,1) var(--delay, 0ms); }
.js .reveal.in-view { opacity: 1; transform: translateY(0) scale(1); }
.hero-mascot.in-view, .menu-mascot.in-view, .franchise-mascot.in-view { animation: mascotFloat 5s ease-in-out .7s infinite; }
.dish-media img, .menu-item > img, .social-grid img { transition: transform .4s cubic-bezier(.2,.8,.2,1), filter .4s ease; }
.dish-media:hover > img:first-child, .menu-item > img:hover { transform: translateY(-8px) scale(1.025); filter: drop-shadow(0 16px 14px rgba(50, 20, 0, .16)); }
.social-grid img:hover { transform: translateY(-10px) rotate(-1deg); box-shadow: 0 18px 35px rgba(35, 0, 6, .25); }
.street-card { transition: transform .4s cubic-bezier(.2,.8,.2,1), filter .4s ease; }
.street-card:hover { transform: rotate(0deg) translateY(-7px); filter: drop-shadow(3px 18px 13px rgba(42,35,22,.25)); }

@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes haloSpin { to { transform: rotate(360deg); } }
@keyframes mascotFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }

@media (max-width: 1000px) {
  .site-header { height: 90px; }
  .nav-shell { grid-template-columns: 1fr auto; }
  .nav-group { display: none; }
  .brand-mark { grid-column: 1; justify-self: start; width: 160px; height: 115px; border-radius: 0 0 80px 80px; }
  .brand-mark img { width: 105px; height: 102px; }
  .menu-toggle { display: grid; grid-column: 2; gap: 5px; width: 45px; height: 45px; place-content: center; border: 0; background: transparent; cursor: pointer; }
  .menu-toggle span { display: block; width: 25px; height: 2px; background: var(--red); transition: .25s; }
  .menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .mobile-menu { display: grid; position: absolute; top: 90px; right: 0; width: min(340px, 88vw); padding: 28px; gap: 8px; background: var(--cream); box-shadow: 0 15px 30px rgba(0,0,0,.16); opacity: 0; visibility: hidden; transform: translateY(-12px) scale(.98); transform-origin: top right; transition: opacity .2s ease, transform .2s ease, visibility .2s; pointer-events: none; }
  .mobile-menu.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); pointer-events: auto; }
  .mobile-menu a { padding: 11px 6px; border-bottom: 1px solid rgba(169,22,50,.15); }
  .hero-copy p { margin-left: 170px; }
  .split-story, .story-layout, .contact-layout { gap: 45px; }
  .compact-row { gap: 60px; }
  .franchise-copy > p { margin-left: 0; }
  .franchise-details-grid { gap: 35px; }
  .footer-grid { grid-template-columns: .7fr 1.3fr .5fr; }
  .footer-gate { display: none; }
}

@media (max-width: 1000px) {
  .container, .nav-shell { width: min(100% - 30px, var(--max)); }

  .home-hero { height: auto; padding: 70px 0 50px; }
  .hero-grid { grid-template-columns: 1fr; padding-top: 0; text-align: center; }
  .hero-copy { padding: 0; }
  .hero-copy h1 { font-size: 58px; }
  .gate-small { margin: auto; width: 170px; height: 230px; }
  .hero-copy p { margin: 18px 0 20px; font-size: 18px; }
  .hero-mascot { height: 420px; }
  .story-teaser, .signature, .menu-classics, .menu-specials { padding: 80px 0; }
  .split-story, .dishes-grid, .story-layout, .menu-hero-grid, .menu-item, .menu-item.copy-right, .franchise-grid, .franchise-details-grid, .contact-layout { grid-template-columns: 1fr; }
  .split-story { gap: 60px; }
  .street-card { width: min(85%, 390px); }
  .story-copy { text-align: center; }
  .circle-title, .small-circle { margin-inline: auto; width: 235px; }
  .small-circle { font-size: 22px; }
  .small-circle strong { font-size: 42px; }
  .compact-row { flex-direction: column; gap: 35px; text-align: center; }
  .compact-row .circle-title { width: 210px; }
  .compact-row p { font-size: 18px; }
  .dishes-grid { row-gap: 42px; }
  .chole-media { grid-row: 1; }
  .chole-copy { grid-row: 2; }
  .lassi-media { grid-row: 3; }
  .lassi-copy { grid-row: 4; }
  .dish-copy h2, .menu-item h2 { font-size: 46px; }
  .social-heading { flex-direction: column; gap: 28px; text-align: center; }
  .social-grid { grid-template-columns: 1fr; max-width: 340px; }
  .social-grid img { height: auto; }
  .story-page { padding: 100px 0 80px; }
  .story-gate { max-height: 420px; }
  .title-with-tag { min-height: 0; padding: 0; }
  .title-with-tag .circle-title { position: relative; width: 235px; padding: 24px; }
  .title-with-tag > p { margin: 20px 0 0; white-space: normal; text-align: center; font-size: 29px; }
  .story-page-copy > p { font-size: 16px; text-align: center; }
  .menu-hero { padding: 70px 0; }
  .menu-hero-grid { text-align: center; gap: 35px; }
  .menu-mascot { justify-self: center; max-height: 420px; }
  .menu-hero .circle-title { width: 215px; }
  .menu-intro p { font-size: 18px; }
  .menu-item { min-height: 0; gap: 25px; }
  .menu-item.copy-right > img { grid-row: 1; }
  .menu-specials .menu-item > div { color: var(--orange); }
  .franchise-hero { padding: 85px 0 45px; }
  .franchise-copy .circle-title { width: 300px; }
  .franchise-copy > p { font-size: 19px; text-align: center; }
  .franchise-mascot { height: 480px; }
  .investment { padding-top: 325px; }
  .investment .circle-title { left: 50%; top: 0; transform: translateX(-50%); width: 300px; font-size: 46px; }
  .investment-grid { margin-left: 0; }
  .investment-grid > div { font-size: 17px; min-height: 105px; padding: 16px; }
  .contact-page { padding: 100px 0 80px; }
  .map-card { grid-row: 2; }
  .map-card iframe { height: 340px; }
  .contact-copy .circle-title { width: 245px; font-size: 48px; }
  .contact-copy address { font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .footer-logo img { width: 190px; }
  .footer-links { grid-template-columns: repeat(3, 1fr); width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Designer-supplied lines: preserve their original proportions and transparency.
   Banner widths reproduce the loop positions in the 1920px design reference. */
.section-line { position: absolute; z-index: 1; left: 0; bottom: var(--line-bottom, 0); width: var(--line-width, 100%); height: auto; object-fit: contain; pointer-events: none; opacity: 1; }
.home-hero { --line-width: 64%; --line-bottom: clamp(18px, 1.8vw, 35px); }
.menu-hero { --line-width: 90%; --line-bottom: clamp(18px, 1.8vw, 35px); }
.franchise-hero { --line-width: 67%; --line-bottom: clamp(24px, 3.2vw, 62px); }
.contact-page { --line-width: 90%; --line-bottom: clamp(28px, 5vw, 96px); }
/* Continue the homepage stroke to the edge, behind the foreground mascot. */
.home-hero::before { content: ""; position: absolute; z-index: 1; right: 0; bottom: calc(var(--line-bottom) + 2.85vw); width: 36%; border-top: 1px solid var(--orange); pointer-events: none; }
.hero-grid, .menu-hero-grid, .franchise-grid, .contact-layout { position: relative; z-index: 2; }
.footer-grid { position: relative; z-index: 2; }
.footer-line { width: 100%; height: auto; margin-top: -9.88vw; pointer-events: none; }
.copyright { position: relative; margin-top: 24px; }

@media (max-width: 1000px) {
  .section-line { height: auto; }
  .home-hero { --line-bottom: 18px; }
  .menu-hero { --line-bottom: 18px; }
  .franchise-hero { --line-bottom: 24px; }
  .contact-page { --line-bottom: 28px; }
  .footer-line { margin-top: 24px; }
}


/* Menu uses the shared content width and fixed CSS sizes so browser zoom works normally. */
.standalone-menu-hero { padding: 110px 0 250px; --line-bottom: 35px; }
.menu-artwork-layout { position: relative; z-index: 2; width: min(var(--max), calc(100% - 48px)); margin-inline: auto; display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 14px; align-items: start; }
.standalone-menu-copy { position: relative; width: 285px; height: 285px; border-radius: 50%; background: var(--red); color: white; padding: 76px 0 0 64px; }
.standalone-menu-copy h1 { margin: 0 0 12px; font: 64px/1 var(--display); white-space: nowrap; }
.standalone-menu-copy p { margin: 0; font-size: 25px; line-height: 1.2; width: 250px; }
.menu-sheets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; padding-top: 49px; scroll-margin-top: 30px; }
.menu-sheet { display: block; box-shadow: 0 5px 14px rgba(75, 43, 0, .3); }
.menu-sheet img { width: 100%; height: auto; }
.menu-sheet:focus-visible { outline: 3px solid var(--red); outline-offset: 6px; }
.standalone-menu-hero > .section-line { left: max(24px, calc((100% - 1180px) / 2)); width: min(1320px, calc(100% - 48px)); }
body:has(#menu.page.active) .site-header, body:has(#menu.page.active) .brand-mark { border-color: var(--red); }
@media (max-width: 1000px) {
  .standalone-menu-hero { padding: 85px 0 120px; --line-bottom: 25px; }
  .menu-artwork-layout { width: calc(100% - 40px); margin: 0 auto; grid-template-columns: 1fr; gap: 35px; }
  .standalone-menu-copy { justify-self: center; width: 250px; height: 250px; padding: 65px 0 0 45px; }
  .standalone-menu-copy h1 { margin-bottom: 12px; font-size: 56px; }
  .standalone-menu-copy p { width: 215px; font-size: 23px; }
  .menu-sheets { padding-top: 0; gap: 18px; }
}
@media (max-width: 600px) {
  .menu-sheets { grid-template-columns: 1fr; gap: 28px; }
  .standalone-menu-hero { padding-bottom: 90px; }
}

/* Keep the cream teeth inside the panel so the following footer cannot cover them. */
.standalone-menu-hero::after { bottom: -1px; background: var(--cream); transform: rotate(180deg); }


/* Keep the supplied line loops in the gaps around the footer content. */
@media (min-width: 1001px) {
  .footer-grid { width: 76%; grid-template-columns: 24fr 35fr 11fr 17fr; gap: 4.333%; }
  .footer-logo img { width: min(230px, 14.5vw); }
  .footer-links { padding-bottom: 18px; }
  .footer-gate { max-width: 100%; }
  /* The tall franchise loop sits beyond the copy; its baseline sits below it. */
  .franchise-copy { width: calc(55.2vw - max(24px, (100vw - 1180px) / 2) - 24px); max-width: 100%; }
  .franchise-copy > p { max-width: none; margin-left: max(80px, calc(12.2vw - max(24px, (100vw - 1180px) / 2) + 24px)); }
  .franchise-hero { padding-bottom: calc(var(--line-bottom) + 2.94vw + 28px); }
}

/* Homepage artwork is cropped at the waist, as in the design reference. */
.home-hero::after { bottom: -1px; background: var(--cream); transform: rotate(180deg); }
.hero-mascot-frame { overflow: hidden; }
.hero-mascot-frame .hero-mascot { width: 100%; height: auto; max-width: none; object-fit: contain; object-position: center top; }
@media (min-width: 1001px) {
  .home-hero { height: 650px; }
  .home-hero .hero-grid { width: 76%; max-width: 1460px; display: block; padding: 0; }
  .home-hero .hero-copy { position: absolute; left: 0; top: 90px; bottom: calc(var(--line-bottom) + 2.85vw); width: 48%; padding: 0; }
  .home-hero .hero-copy h1 { margin: 0; font-size: 84px; }
  .home-hero .gate-small { position: absolute; bottom: 0; left: 0; width: 250px; height: auto; }
  .home-hero .hero-copy p { position: absolute; left: 270px; bottom: 140px; margin: 0; font-size: 24px; }
  .hero-mascot-frame { position: absolute; left: 55%; top: 28px; width: 672px; height: calc(100% - 28px); }
}
@media (min-width: 1001px) and (max-width: 1400px) {
  .home-hero { height: 540px; }
  .home-hero .hero-copy { top: 70px; }
  .home-hero .hero-copy h1 { font-size: 72px; }
  .home-hero .gate-small { width: 210px; }
  .home-hero .hero-copy p { left: 230px; bottom: 115px; font-size: 22px; }
  .hero-mascot-frame { width: 550px; }
}
@media (max-width: 1000px) {
  .hero-mascot-frame { position: relative; justify-self: center; width: min(440px, 100%); aspect-ratio: 1140 / 1100; }
}

/* Keep lower teeth inside their banners, clear of clipping and the next panel.
   The social strip retains its existing red teeth along the upper edge. */
.social-strip::after,
.story-page::after,
.menu-specials::after,
.franchise-details::after,
.contact-page::after {
  bottom: -1px;
  background: var(--cream);
  transform: rotate(180deg);
}
.menu-hero::after {
  bottom: -1px;
  background: var(--cream);
  transform: rotate(180deg);
}

/* Our Story now uses the updated gold artwork at its natural proportions. */
.story-page {
  --line-width: min(64vw, 1229px);
  --line-bottom: 28px;
  padding-bottom: calc(min(12.407vw, 238px) + 68px);
}
.story-page .section-line { height: auto; object-fit: contain; }

/* Contact has a separate artwork row below the map and form. Capping it at
   the 1920px design size keeps zoomed-out loops from growing into the fields. */
.contact-page {
  --line-width: min(90vw, 1728px);
  --line-bottom: 28px;
  padding-bottom: calc(min(14.523vw, 279px) + 68px);
}
.contact-page > .section-line {
  left: max(0px, calc((100% - 1920px) / 2));
}
body:has(#contact.page.active) .footer-line {
  width: min(100%, 1920px);
  margin: 24px auto 0;
}
@media (min-width: 1001px) {
  body:has(#contact.page.active) .footer-grid { max-width: 1460px; }
}
