/* The Happy Rooster, hand built. Tokens first. */
:root {
  --wall: #0c0a09;
  --wall-2: #1a1512;
  --ink: #15110e;
  --ink-soft: #4a4038;
  --paper: #fbf3e4;
  --cream: #fff6e6;
  --soft: #d8cbb3;
  --red: #e01e1e;
  --deep: #a81218;
  --deep-ink: #b5121b;
  --green: #2e9b3a;
  --yellow: #f5a623;
  --gutter: clamp(16px, 4vw, 56px);
  --wrap: 1240px;
  --nav-h: 68px;
  --display: "Archivo", "Arial Black", system-ui, sans-serif;
  --text: "Archivo", system-ui, Arial, sans-serif;
  --script: "Kaushan Script", "Brush Script MT", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--nav-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--wall);
  color: var(--cream);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--display); }
p { margin: 0 0 1em; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
.skip {
  position: fixed; left: var(--gutter); top: -80px; z-index: 200;
  background: var(--yellow); color: var(--ink); padding: 10px 16px; font-weight: 700;
}
.skip:focus { top: 10px; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.script { font-family: var(--script); font-size: clamp(1.25rem, 2vw, 1.7rem); line-height: 1.2; color: var(--yellow); margin: 0 0 .35em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 14px 26px;
  font-family: var(--display); font-weight: 800; font-size: .95rem;
  letter-spacing: .03em; text-transform: uppercase; text-decoration: none;
  border-radius: 6px; border: 2px solid transparent;
  transition: transform .2s ease, background-color .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-flame { background: var(--yellow); color: var(--ink); }
.btn-flame:hover { background: var(--cream); }
.btn-line { border-color: var(--cream); color: var(--cream); }
.btn-line:hover { background: var(--cream); color: var(--ink); }
.btn-small { min-height: 42px; padding: 9px 16px; font-size: .82rem; }

/* Live open status */
.status { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: .88rem; font-weight: 600; color: var(--soft); }
.status .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--yellow); flex: none; }
.status.is-open .dot { background: #3fbf4f; box-shadow: 0 0 0 4px rgba(63, 191, 79, .22); }
.status.is-closed .dot { background: var(--red); }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
  padding: 0 var(--gutter);
  transition: background-color .3s ease, box-shadow .3s ease;
}
.nav.solid { background: rgba(12, 10, 9, .96); box-shadow: 0 1px 0 rgba(245, 166, 35, .35); }
.nav-logo img { width: 86px; }
.nav-links { display: flex; gap: clamp(14px, 2.2vw, 30px); justify-content: center; }
.nav-links a {
  text-decoration: none; font-family: var(--display); font-weight: 700; font-size: .9rem;
  text-transform: uppercase; letter-spacing: .06em; padding: 8px 0; border-bottom: 2px solid transparent;
}
.nav-links a:hover { border-bottom-color: var(--yellow); }
.nav-right { display: flex; align-items: center; gap: 18px; }

/* Phone dock */
.dock { display: none; }

/* 1. Hero: through the window */
.hero { position: relative; height: 230vh; background: var(--wall); }
.hero-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.layer { position: absolute; inset: 0; width: 100%; height: 100%; }
.sea { overflow: hidden; }
.sea img {
  width: 100%; height: 100%; object-fit: cover; object-position: 55% 62%;
  transform: scale(var(--sea-s, 1.15)); transform-origin: 72% 64%; will-change: transform;
}
.train-layer, .wall { pointer-events: none; }
.train-layer { transform: scale(var(--train-s, 1)); will-change: transform; }
.wall { transform: scale(var(--wall-s, 1)); opacity: var(--wall-o, 1); will-change: transform; }
.wall .tall, .tall { display: none; }
.arch-tiles { fill: none; stroke: var(--yellow); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 0 22; }
.arch-line { fill: none; stroke: var(--red); stroke-width: 3; }
.sill { fill: #2a221d; }
.wall.tall .arch-tiles { stroke-width: 5; stroke-dasharray: 0 12; }
.wall.tall .arch-line { stroke-width: 2; }

.train-run { animation: train-run 15s linear infinite; }
.train-layer.tall .train-run { animation-name: train-run-tall; animation-duration: 11s; }
@keyframes train-run { from { transform: translateX(1700px); } to { transform: translateX(-1500px); } }
@keyframes train-run-tall { from { transform: translateX(420px); } to { transform: translateX(-720px); } }

.embers { opacity: var(--embers-o, 1); }

.hero-copy {
  inset: auto auto auto 0; top: 50%; height: auto;
  width: min(44vw, 900px); margin-left: var(--gutter);
  transform: translateY(calc(-50% + var(--copy-y, 0px))); opacity: var(--copy-o, 1);
}
.hero h1 {
  font-weight: 900; font-size: clamp(2.6rem, 5.3vw, 6rem); line-height: .9;
  letter-spacing: -.02em; text-transform: uppercase; color: var(--cream); margin-bottom: .35em;
}
.hero h1 span { display: block; }
.hero h1 span:last-child { color: var(--yellow); }
.hero-sub { max-width: 32ch; color: var(--soft); font-size: 1.15rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.hero-after {
  inset: auto auto 9vh var(--gutter); width: auto; height: auto;
  opacity: var(--after-o, 0); transform: translateY(var(--after-y, 30px));
}
.hero-after p {
  display: inline-block; margin: 0; background: var(--wall); color: var(--cream);
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(1.8rem, 4.2vw, 4.4rem); line-height: 1; padding: .25em .4em .3em;
}

/* 2. Story */
.story { background: var(--paper); color: var(--ink); padding: 18vh var(--gutter) 14vh; overflow: clip; }
.line {
  font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(2.1rem, 7.2vw, 8.6rem); line-height: .94; letter-spacing: -.025em;
  margin: 0 0 .3em; transform: translateX(var(--x, 0)); will-change: transform;
}
.line em { font-style: normal; color: var(--deep-ink); display: block; }
.line[data-from="right"] { text-align: right; }
.story-foot {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end;
  border-top: 4px solid var(--ink); padding-top: 28px; margin-top: 10vh;
}
.story-foot p:first-child { font-size: 1.25rem; max-width: 38ch; margin: 0; }
.story-prices { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; margin: 0; }
.story-prices span {
  background: var(--ink); color: var(--yellow); font-family: var(--display); font-weight: 800;
  text-transform: uppercase; padding: 10px 14px; font-size: .95rem; letter-spacing: .02em;
}

/* 3. The menu train */
.train-scene { position: relative; height: 420vh; background: var(--wall-2); }
.train-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.train-stage::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 30%, rgba(245, 166, 35, .16), transparent 60%);
}
.train-head { position: absolute; top: calc(var(--nav-h) + 4vh); left: var(--gutter); right: var(--gutter); z-index: 2; }
.train-head h2 {
  font-weight: 900; text-transform: uppercase; font-size: clamp(2.4rem, 6.4vw, 7rem);
  line-height: .9; letter-spacing: -.02em; color: var(--cream);
}
.platform {
  position: absolute; left: 0; right: 0; bottom: 0; height: 12vh;
  background: #221b17; border-top: 8px solid var(--yellow);
}
.platform::before {
  content: ""; position: absolute; left: 0; right: 0; top: -30px; height: 14px;
  background:
    linear-gradient(#7d6c60, #7d6c60) 0 0 / 100% 4px no-repeat,
    linear-gradient(#7d6c60, #7d6c60) 0 10px / 100% 4px no-repeat,
    repeating-linear-gradient(90deg, #3b302a 0 10px, transparent 10px 34px);
}
.train {
  list-style: none; margin: 0; padding: 0 0 0 4vw;
  position: absolute; left: 0; bottom: calc(12vh + 30px);
  display: flex; align-items: flex-end; gap: 22px;
  transform: translateX(var(--train-x, 0px)); will-change: transform; z-index: 1;
}
.carriage, .engine { position: relative; flex: none; padding-bottom: 26px; }
.carriage { width: clamp(300px, 42vw, 620px); }
.engine { width: clamp(240px, 26vw, 400px); }
.carriage::before, .engine + .carriage::before {
  content: ""; position: absolute; left: -22px; bottom: 60px; width: 22px; height: 10px; background: #0c0a09;
}
.car-body {
  background: #efe6d2; color: var(--ink); border-radius: 20px; padding: 16px 16px 12px;
  border-bottom: 16px solid var(--red); box-shadow: 0 30px 50px rgba(0, 0, 0, .45);
}
.car-window { margin: 0; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; border: 8px solid #1c1714; background: #1c1714; }
.car-window img { width: 100%; height: 100%; object-fit: cover; }
.plate { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 12px 4px 4px; }
.plate h3 { font-weight: 800; text-transform: uppercase; font-size: clamp(1rem, 1.45vw, 1.35rem); line-height: 1.1; letter-spacing: .01em; }
.plate b { font-family: var(--display); font-weight: 900; color: var(--deep-ink); font-size: clamp(1.3rem, 2vw, 1.9rem); white-space: nowrap; }
.plate b.ask { font-family: var(--text); font-weight: 600; font-size: .9rem; color: var(--ink-soft); }
.engine-body {
  background: var(--deep); border-radius: 110px 20px 20px 20px; padding: 26px 22px 18px 34px;
  border-bottom: 16px solid #0c0a09; box-shadow: 0 30px 50px rgba(0, 0, 0, .45);
}
.engine-window { width: 72%; margin-left: auto; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 8px solid var(--yellow); background: #000; display: grid; place-items: center; }
.engine-window img { width: 130%; max-width: none; }
.engine-name { margin: 14px 0 0; font-family: var(--display); font-weight: 900; text-transform: uppercase; color: var(--cream); font-size: clamp(1rem, 1.5vw, 1.35rem); text-align: right; }
.wheel {
  position: absolute; bottom: 0; width: 52px; height: 52px; border-radius: 50%;
  background: repeating-conic-gradient(#3a302a 0 12deg, #15110e 12deg 45deg);
  border: 6px solid #15110e; transform: rotate(var(--spin, 0deg));
}
.wheel:first-of-type { left: 14%; }
.wheel:last-of-type { right: 14%; }
.train-skip {
  position: absolute; right: var(--gutter); bottom: 3vh; z-index: 3;
  font-weight: 700; font-size: .9rem; color: var(--cream); text-underline-offset: 4px;
}

/* 4. The whole grill */
.grill { background: var(--wall); padding-bottom: 14vh; }
.tiles { height: 56px; background: radial-gradient(circle, var(--wall) 3px, transparent 3.6px) 0 0 / 16px 16px, var(--yellow); }
.grill-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px; padding: 12vh 0 6vh; }
.grill-head h2 { font-weight: 900; text-transform: uppercase; font-size: clamp(2.6rem, 7vw, 7.4rem); line-height: .9; letter-spacing: -.02em; }
.grill-head p { color: var(--soft); margin: 0; }
.grill-cols { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 40px; }
.course { border-top: 3px solid var(--yellow); padding: 26px 0 40px; }
.course h3 {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between;
  font-weight: 900; text-transform: uppercase; font-size: 1.45rem; color: var(--cream); margin-bottom: 14px;
}
.tag { font-family: var(--text); font-size: .8rem; font-weight: 700; letter-spacing: .04em; background: var(--cream); color: var(--ink); padding: 4px 9px; white-space: nowrap; }
.course ul { list-style: none; margin: 0; padding: 0; }
.course li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dotted #5a4c42; color: var(--cream); }
.course li b { color: var(--yellow); font-family: var(--display); font-weight: 900; white-space: nowrap; }

/* 5. Quotes */
.quotes { background: var(--deep); color: var(--cream); overflow: clip; }
.quote p { max-width: 16ch; overflow-wrap: break-word; }
.quote {
  margin: 0; min-height: 78vh; display: grid; align-content: center; justify-items: start;
  padding: 12vh var(--gutter);
}
.quote + .quote { border-top: 2px solid rgba(255, 246, 230, .25); justify-items: end; text-align: right; }
.quote blockquote { margin: 0 0 24px; max-width: 100%; }
.quote p {
  margin: 0; font-family: var(--display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(2rem, 5.6vw, 5.8rem); line-height: .96; letter-spacing: -.02em;
}
.quote p::before { content: "\201C"; display: block; font-family: var(--script); color: var(--yellow); font-size: 1.3em; line-height: .6; height: .45em; }
.quote figcaption { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .9rem; }
.js .quote blockquote { clip-path: inset(0 100% 0 0); transition: clip-path 1.1s cubic-bezier(.7, 0, .2, 1); }
.js .quote + .quote blockquote { clip-path: inset(0 0 0 100%); }
.js .quote.in blockquote { clip-path: inset(0 0 0 0); }

/* 6. Find us */
.find { background: var(--paper); color: var(--ink); }
.find-photo { position: relative; height: 80vh; min-height: 460px; overflow: hidden; }
.find-photo img {
  position: absolute; inset: -8% 0 0 0; width: 100%; height: 116%; object-fit: cover; object-position: 50% 80%;
  transform: translateY(var(--py, 0px)); will-change: transform;
}
.find-title { position: absolute; left: var(--gutter); top: calc(var(--nav-h) + 8vh); right: var(--gutter); }
.find-title .script { display: table; background: var(--wall); padding: .1em .45em; margin: 0; }
.find-title h2 {
  font-weight: 900; text-transform: uppercase; font-size: clamp(2.4rem, 6.6vw, 7rem); line-height: .92;
  letter-spacing: -.02em; color: var(--cream); max-width: 12ch;
}
.find-title h2 { background: none; }
.find-title h2 span, .find-title h2 { -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.find-title h2 { display: inline; background: var(--wall); padding: .02em .2em .08em; line-height: 1.12; }
.find-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 5vw, 72px); padding: 12vh 0; align-items: start; }
.find-info address { font-style: normal; font-size: 1.2rem; line-height: 1.5; margin-bottom: 18px; }
.find-info address strong { display: block; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 1.6rem; line-height: 1.1; margin-bottom: 6px; }
.hours { border: 3px solid var(--ink); padding: 22px 24px; margin: 28px 0; }
.hours h3 { font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 800; margin-bottom: 6px; }
.hours-big { font-family: var(--display); font-weight: 900; font-size: clamp(2.2rem, 4.6vw, 4rem); line-height: 1; margin: 4px 0 6px; }
.hours p { margin-bottom: 8px; }
.find .status { color: var(--ink); }
.map { border: 3px solid var(--ink); height: 100%; min-height: 460px; background: #e8dcc6; }
.map iframe { display: block; width: 100%; height: 100%; min-height: 454px; border: 0; }

/* 7. Book: the window returns */
.book {
  background: var(--wall); min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr;
  align-items: end; gap: clamp(32px, 6vw, 96px); padding: 16vh var(--gutter) 0;
  overflow: clip;
}
.book-arch {
  position: relative; justify-self: center; width: min(36vw, 520px); aspect-ratio: 520 / 700;
  border-radius: 9999px 9999px 0 0; overflow: hidden; background: #1c1714;
}
.book-arch img { width: 100%; height: 100%; object-fit: cover; object-position: 42% 62%; }
.book-arch::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  box-shadow: inset 0 0 0 10px var(--wall), inset 0 0 0 13px var(--red);
}
.book-train { position: absolute; inset: 0; width: 100%; height: 100%; }
.train-run.slow { animation-duration: 22s; }
.book-copy { padding-bottom: 16vh; }
.book-copy h2 { font-weight: 900; text-transform: uppercase; font-size: clamp(2.4rem, 5.4vw, 6rem); line-height: .92; letter-spacing: -.02em; margin-bottom: .4em; }
.book-copy > p { color: var(--soft); max-width: 40ch; font-size: 1.15rem; }
.book-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 22px; }
.book-mail { font-size: 1rem; }
.book-mail a { color: var(--yellow); text-underline-offset: 4px; overflow-wrap: anywhere; }

/* Footer */
.footer { background: #070605; color: var(--soft); padding: 64px 0 40px; border-top: 6px solid var(--yellow); }
.footer-grid { display: grid; grid-template-columns: 180px 1fr auto; gap: 40px; align-items: start; }
.footer-grid img { width: 180px; }
.footer strong { color: var(--cream); }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-links a { color: var(--cream); font-weight: 600; text-underline-offset: 4px; }
.footer-links a:hover { color: var(--yellow); }
.footer .small { font-size: .85rem; margin-top: 40px; color: #b3a790; }

/* Tablet */
@media (max-width: 1080px) {
  .nav .status { display: none; }
  .grill-cols { grid-template-columns: repeat(2, 1fr); }
}

/* Phone and portrait */
@media (max-width: 760px), (max-aspect-ratio: 4/5) {
  .wall.wide, .train-layer.wide { display: none; }
  .wall.tall, .train-layer.tall { display: block; }
  .hero { height: 190vh; }
  .hero-copy {
    top: auto; bottom: 84px; left: 0; right: 0; width: auto; margin: 0; padding: 0 var(--gutter);
    transform: translateY(var(--copy-y, 0px));
  }
  .hero h1 { font-size: clamp(2.3rem, 10.4vw, 4.4rem); margin-bottom: .3em; }
  .hero-sub { font-size: 1rem; margin-bottom: 0; }
  .hero-actions { display: none; }
  .sea img { object-position: 60% 60%; transform-origin: 50% 40%; }
}

@media (max-width: 760px) {
  :root { --nav-h: 60px; }
  body { font-size: 1rem; padding-bottom: 62px; }
  .nav { grid-template-columns: auto 1fr; }
  .nav-links { display: none; }
  .nav-right { justify-content: flex-end; }
  .nav-logo img { width: 66px; }
  .dock {
    display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; inset: auto 0 0 0; z-index: 60;
    background: var(--wall); border-top: 3px solid var(--yellow);
  }
  .dock a {
    display: flex; align-items: center; justify-content: center; min-height: 58px; text-decoration: none;
    font-family: var(--display); font-weight: 800; font-size: .85rem; text-transform: uppercase; letter-spacing: .05em;
  }
  .dock a + a { border-left: 1px solid #3a302a; }
  .dock a:nth-child(2) { background: var(--yellow); color: var(--ink); }
  .hero-copy { bottom: 80px; }
  .sea img { transform-origin: 50% 100%; }
  .story { padding: 12vh var(--gutter) 10vh; }
  .line { font-size: clamp(2rem, 10.6vw, 3.6rem); }
  .story-foot { grid-template-columns: 1fr; gap: 20px; }
  .story-prices { justify-content: flex-start; }
  .train-scene { height: 520vh; }
  .carriage { width: 84vw; }
  .engine { width: 66vw; }
  .train { bottom: calc(12vh + 30px); padding-left: 6vw; gap: 18px; }
  .plate { flex-direction: column; gap: 4px; }
  .wheel { width: 40px; height: 40px; border-width: 5px; }
  .grill-cols { grid-template-columns: 1fr; }
  .quote { min-height: 64vh; }
  .find-photo { height: 64vh; min-height: 380px; }
  .find-grid { grid-template-columns: 1fr; padding: 10vh 0; }
  .map { min-height: 340px; }
  .map iframe { min-height: 334px; }
  .book { grid-template-columns: 1fr; padding-top: 12vh; gap: 40px; align-items: start; }
  .book-arch { width: min(78vw, 360px); }
  .book-copy { padding-bottom: 10vh; }
  .book-actions .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid img { width: 140px; }
}

/* Short landscape screens */
@media (max-height: 760px) and (min-width: 761px) {
  .hero h1 { font-size: clamp(2.4rem, 4.6vw, 5.4rem); }
  .train { bottom: calc(10vh + 26px); }
  .platform { height: 10vh; }
  .carriage { width: clamp(300px, 36vw, 560px); }
  .engine { width: clamp(220px, 22vw, 340px); }
}

/* Reduced motion: every scene still complete, nothing moves */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero { height: auto; }
  .hero-stage { position: relative; height: 100vh; height: 100svh; }
  .train-layer.wide .train-run { transform: translateX(900px); }
  .train-layer.tall .train-run { transform: translateX(30px); }
  .train-run.slow { transform: translateX(300px); }
  .embers, .hero-after { display: none; }
  .train-scene { height: auto; }
  .train-stage { position: relative; height: auto; padding: calc(var(--nav-h) + 24vh) 0 0; overflow: visible; }
  .train { position: relative; bottom: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter) 34px; margin-bottom: 12vh; }
  .carriage, .engine { scroll-snap-align: start; }
  .train-skip { display: none; }
  .js .quote blockquote { clip-path: none; }
}
.car-window img[src*="prawns"] { object-position: 50% 85%; }
.car-window img[src*="skewer"] { object-position: 50% 70%; }
