@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700;9..144,900&family=Dancing+Script:wght@600;700&family=Nunito:wght@400;600;700;800&display=swap");

:root {
  --rose: #f3d7d1;
  --rose-soft: #f9e9e5;
  --blush: #fdf1ec;
  --rose-strong: #c97777;
  --rose-deep: #b05f5f;
  --cream: #fbf2ec;
  --card: #fffdfb;
  --cocoa: #7a5348;
  --ink: #523f37;
  --gold: #e3b07a;
  --accent: #c97777;
  --accent-light: #f6ded8;
  --serif: "Fraunces", Georgia, serif;
  --script: "Dancing Script", cursive;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 10% 16%, rgba(243, 215, 209, 0.55) 0%, transparent 26%),
    radial-gradient(circle at 90% 10%, rgba(227, 176, 122, 0.22) 0%, transparent 24%),
    radial-gradient(circle at 82% 80%, rgba(243, 215, 209, 0.4) 0%, transparent 28%),
    radial-gradient(circle at 16% 88%, rgba(255, 241, 236, 0.6) 0%, transparent 24%),
    linear-gradient(160deg, #fdf6f0 0%, #faf0ea 55%, #f8e9e3 100%);
  background-attachment: fixed;
  color: var(--ink);
  line-height: 1.8;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* --- Header (info pages) --- */

header {
  background: linear-gradient(150deg, #f7ddd7, #f0c8c0);
  color: #6d4439;
  text-align: center;
  padding: 3.4rem 1rem 2.8rem;
  position: relative;
  overflow: hidden;
}

header::before,
header::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(176, 95, 95, 0.25);
}

header::before {
  width: 300px;
  height: 300px;
  top: -140px;
  left: -90px;
}

header::after {
  width: 380px;
  height: 380px;
  bottom: -200px;
  right: -120px;
}

header h1 {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 6vw, 3.2rem);
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #7d4b3e;
  position: relative;
  text-shadow: 0 2px 10px rgba(176, 95, 95, 0.18);
}

header p {
  margin-top: 0.6rem;
  font-family: var(--script);
  font-weight: 700;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  color: #9a5a4e;
  position: relative;
}

header p::after {
  content: "✦ ✦";
  display: block;
  margin-top: 0.8rem;
  font-size: 0.75rem;
  letter-spacing: 0.6em;
  text-indent: 0.6em;
  opacity: 0.5;
}

/* --- Navigation --- */

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
  padding: 1.2rem 1rem;
  background: rgba(255, 253, 251, 0.85);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--rose);
  box-shadow: 0 4px 18px rgba(176, 95, 95, 0.06);
}

nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.45rem 1.15rem;
  border-radius: 999px;
  background: transparent;
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

nav a:hover {
  background: var(--rose-soft);
  border-color: var(--rose);
  color: var(--rose-deep);
  transform: translateY(-2px);
}

nav a:active {
  background: var(--rose-strong);
  border-color: var(--rose-strong);
  color: #fff;
  transform: translateY(1px);
}

nav .home {
  background: var(--rose-strong);
  border-color: var(--rose-strong);
  color: #fff;
}

nav .home:hover {
  background: var(--rose-deep);
  border-color: var(--rose-deep);
}

nav a.active {
  background: var(--rose-strong);
  border-color: var(--rose-strong);
  color: #fff;
}

nav a.active:hover {
  background: var(--rose-deep);
  border-color: var(--rose-deep);
}

/* --- Main layout --- */

main {
  margin: 0 auto;
  padding: 3.5rem 1rem 5rem;
  width: 100%;
  flex: 1;
}

main.narrow {
  max-width: 1200px;
}

section {
  position: relative;
  padding: 0.5rem 1.5rem 1rem;
}

section::before {
  content: "✦";
  position: absolute;
  top: 1.1rem;
  right: 1.4rem;
  color: var(--rose-strong);
  opacity: 0.4;
  font-size: 0.8rem;
}

section::after {
  content: "";
  display: table;
  clear: both;
}

/* --- Typography --- */

h1,
h2,
h3 {
  font-family: var(--serif);
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.15rem);
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--cocoa);
}

h2 span {
  margin-right: 0.4rem;
}

h2::after {
  content: "";
  display: block;
  width: 76px;
  height: 4px;
  margin: 0.7rem 0 1.4rem;
  background: linear-gradient(90deg, var(--rose-strong), var(--gold), var(--rose));
  border-radius: 4px;
}

h3 {
  margin: 1.4rem 0 0.4rem;
  font-weight: 700;
  color: var(--rose-deep);
}

ol,
ul {
  padding-left: 1.6rem;
}

ol li,
ul li {
  margin: 0.5rem 0;
}

ul li::marker {
  content: "✦";
  color: var(--rose-strong);
  font-size: 0.9em;
}

ul ul li::marker {
  content: "◦";
}

ol li::marker {
  color: var(--rose-deep);
  font-weight: 700;
}

main p,
main li {
  max-width: 72ch;
}

main strong {
  color: var(--rose-deep);
}

em {
  color: var(--rose-strong);
}

.script {
  font-family: var(--script);
  font-weight: 700;
}

.signature {
  margin-top: 1.4rem;
  font-family: var(--script);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--rose-strong);
}

section a {
  display: inline-block;
  color: var(--rose-strong);
  text-decoration: none;
  font-weight: 700;
  padding: 0.45rem 1.2rem;
  margin-top: 0.4rem;
  border: 1.5px solid var(--rose-strong);
  border-radius: 999px;
  background: transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

section a:hover {
  background: var(--rose-strong);
  color: #fff;
  border-color: var(--rose-strong);
  transform: translateY(-2px);
}

section a:active {
  transform: translateY(0);
}

.tag {
  display: inline-block;
  background: var(--rose-soft);
  border: 1px solid var(--rose);
  border-radius: 999px;
  padding: 0.3rem 1.1rem;
  margin: 0.25rem 0.35rem 0.25rem 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--rose-deep);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.tag:hover {
  background: var(--rose-strong);
  border-color: var(--rose-strong);
  color: #fff;
  transform: translateY(-2px);
}

.fact-box {
  overflow: hidden;
  background: linear-gradient(135deg, #fdeee9, #fbdfd9);
  border-left: 4px solid var(--rose-strong);
  border-radius: 14px;
  padding: 1.2rem 1.5rem;
  margin-top: 1.6rem;
  box-shadow: 0 8px 22px rgba(176, 95, 95, 0.12);
  position: relative;
}

.fact-box::before {
  content: "✦";
  position: absolute;
  top: 0.8rem;
  right: 1rem;
  color: var(--rose-strong);
  opacity: 0.45;
  font-size: 0.8rem;
}

.fact-box strong {
  color: var(--rose-deep);
}

/* --- Homepage hero --- */

.hero {
  text-align: center;
  padding: 5rem 2rem 6rem;
  background: linear-gradient(180deg, #fff7f2 0%, #fcebe5 100%);
  position: relative;
  overflow: hidden;
  animation: fade-down 0.8s ease both;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.hero::before {
  width: 300px;
  height: 300px;
  border: 1.5px dashed rgba(176, 95, 95, 0.3);
  top: -110px;
  left: -100px;
}

.hero::after {
  width: 380px;
  height: 380px;
  border: 1.5px dashed rgba(227, 176, 122, 0.35);
  bottom: -150px;
  right: -120px;
}

.hero-kicker {
  display: inline-block;
  font-family: var(--script);
  font-size: clamp(1.3rem, 3vw, 1.6rem);
  font-weight: 700;
  color: var(--rose-strong);
  margin-bottom: 0.8rem;
}

.hero-title {
  font-family: var(--serif);
  font-weight: 900;
  color: var(--cocoa);
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.12;
  max-width: 22ch;
  margin: 0 auto;
}

.hero-title .script {
  color: var(--rose-strong);
  font-size: 1.18em;
  line-height: 1;
}

.hero-title::after {
  content: "";
  display: block;
  width: 120px;
  height: 5px;
  margin: 1.4rem auto 0;
  background: linear-gradient(90deg, var(--rose-strong), var(--gold), var(--rose));
  border-radius: 999px;
}

.hero-sub {
  max-width: 560px;
  margin: 1.4rem auto 0;
  color: var(--cocoa);
  font-size: 1.05rem;
}

.hero-cta {
  display: inline-block;
  margin-top: 2rem;
  padding: 1rem 2.4rem;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--rose-strong), var(--rose-deep));
  color: #fff;
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
  box-shadow: 0 14px 30px rgba(176, 95, 95, 0.35);
  transition: transform 0.25s, box-shadow 0.25s;
}

.hero-cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 42px rgba(176, 95, 95, 0.45);
}

.hero-cta:active {
  transform: translateY(0);
}

.sparkle {
  position: absolute;
  font-size: 1.1rem;
  color: var(--rose-strong);
  animation: twinkle 4s ease-in-out infinite;
}

.sparkle:nth-child(1) { top: 2.6rem; left: 14%; }
.sparkle:nth-child(2) { top: 4.2rem; right: 15%; animation-delay: 1s; }
.sparkle:nth-child(3) { bottom: 4.5rem; left: 18%; animation-delay: 2s; }
.sparkle:nth-child(4) { bottom: 5.2rem; right: 13%; animation-delay: 3s; }

@keyframes twinkle {
  0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.6; }
  50% { transform: scale(1.3) rotate(20deg); opacity: 0.15; }
}

.hero-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 44% 56% 55% 45% / 46% 42% 58% 54%;
  box-shadow: 0 26px 60px rgba(176, 95, 95, 0.28);
  border: 10px solid #fff;
  animation: float 5s ease-in-out infinite;
}

.hero-frame {
  position: relative;
  display: inline-block;
  width: min(360px, 82%);
  margin-top: 2.6rem;
}

.hero-frame::before {
  content: "";
  position: absolute;
  inset: 4%;
  background: radial-gradient(circle, rgba(227, 176, 122, 0.5), transparent 70%);
  filter: blur(22px);
  z-index: -1;
  animation: pulse 4s ease-in-out infinite;
}

.hero-frame::after {
  content: "";
  position: absolute;
  inset: -16px;
  border: 2px dashed rgba(176, 95, 95, 0.35);
  border-radius: 50%;
  animation: spin 40s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.5;
    transform: scale(0.98);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.05);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-9px);
  }
}

.wave {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 90px;
  pointer-events: none;
}

/* --- Homepage cards --- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.6rem;
  margin-top: 3rem;
  scroll-margin-top: 4rem;
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: 22px;
  padding: 0;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--rose);
  box-shadow: 0 10px 26px rgba(176, 95, 95, 0.1);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--rose-strong), var(--gold));
  opacity: 0;
  transition: opacity 0.25s;
}

.card:hover {
  transform: translateY(-6px);
  border-color: var(--rose-strong);
  box-shadow: 0 24px 50px rgba(176, 95, 95, 0.18);
}

.card:hover::before {
  opacity: 1;
}

.card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.6) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s;
  pointer-events: none;
}

.card:hover::after {
  transform: translateX(100%);
}

.card:active {
  transform: translateY(1px) scale(0.98);
  background: var(--rose-soft);
  border-color: var(--rose-deep);
}

.card-img {
  display: block;
  overflow: hidden;
}

.card-img img {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: cover;
  transition: transform 0.35s;
}

.card:hover .card-img img {
  transform: scale(1.07);
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.5rem 1.75rem 1.9rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.card p {
  font-size: 0.95rem;
  flex: 1;
  color: var(--cocoa);
}

.card .go {
  margin-top: 1.1rem;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--rose-strong);
  letter-spacing: 0.3px;
  transition: color 0.25s;
}

.card:hover .go {
  color: var(--rose-deep);
}

/* --- Info page: back link & photo --- */

.back-link {
  display: inline-block;
  margin-bottom: 1.6rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--rose-strong);
  text-decoration: none;
  padding: 0.4rem 1.1rem;
  border: 1.5px solid var(--rose);
  border-radius: 999px;
  background: rgba(255, 253, 251, 0.8);
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s;
}

.back-link:hover {
  color: var(--rose-deep);
  border-color: var(--rose-strong);
  background: var(--rose-soft);
  transform: translateX(-3px);
}

.page-img {
  float: right;
  width: min(340px, 42%);
  height: auto;
  margin: 0.4rem 0 1.5rem 2.5rem;
  border-radius: 20px;
  box-shadow: 0 14px 34px rgba(176, 95, 95, 0.16);
  border: 6px solid #fff;
  transition: transform 0.25s;
}

.page-img:hover {
  transform: scale(1.02);
  border-color: var(--rose-soft);
  box-shadow: 0 18px 40px rgba(176, 95, 95, 0.3);
}

/* --- Footer --- */

footer {
  text-align: center;
  padding: 3rem 1rem;
  background: linear-gradient(150deg, #d99a94, #c97777);
  color: #fff8f4;
  margin-top: auto;
  font-size: 0.95rem;
  position: relative;
  overflow: hidden;
}

footer::before {
  content: "✦ ✦ ✦";
  display: block;
  margin-bottom: 0.7rem;
  font-size: 0.75rem;
  letter-spacing: 0.8em;
  text-indent: 0.8em;
  opacity: 0.7;
}

footer::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 1px solid rgba(255, 248, 244, 0.2);
  bottom: -160px;
  right: -90px;
}

.footer-script {
  font-family: var(--script);
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
}

footer p {
  max-width: 520px;
  margin: 0.4rem auto 0;
  opacity: 0.92;
}

footer .love {
  display: inline-block;
  animation: heartbeat 1.8s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
  }
  12% {
    transform: scale(1.3);
  }
  24% {
    transform: scale(1);
  }
  36% {
    transform: scale(1.22);
  }
  48% {
    transform: scale(1);
  }
}

/* --- Responsive --- */

@media (max-width: 900px) {
  nav {
    gap: 0.45rem;
    padding: 1rem 0.8rem;
  }

  nav a {
    padding: 0.35rem 0.9rem;
    font-size: 0.88rem;
  }

  main {
    padding: 2.5rem 0.8rem 4rem;
  }

  section {
    padding: 0.5rem 1rem 0.9rem;
  }

  .page-img {
    width: min(300px, 45%);
    margin-left: 1.8rem;
  }

  .card-img img {
    height: 150px;
  }
}

@media (max-width: 560px) {
  main {
    padding: 2rem 0.8rem 3.5rem;
  }

  section {
    padding: 1.8rem;
  }

  .hero {
    padding: 3.5rem 1.2rem 4.5rem;
  }

  .hero-title {
    font-size: clamp(2rem, 9vw, 2.6rem);
  }

  .page-img {
    float: none;
    display: block;
    width: min(320px, 100%);
    margin: 0 auto 1.5rem;
  }
}

/* --- Polish --- */

@keyframes fade-down {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

::selection {
  background: var(--rose-strong);
  color: #fff;
}

html {
  scrollbar-width: thin;
  scrollbar-color: var(--rose-strong) var(--cream);
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--cream);
}

::-webkit-scrollbar-thumb {
  background: var(--rose-strong);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--rose-deep);
}

:focus-visible {
  outline: 3px solid var(--rose-strong);
  outline-offset: 2px;
  border-radius: 6px;
}

.js .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .reveal.revealed {
  opacity: 1;
  transform: none;
}

#to-top {
  position: fixed;
  bottom: 1.4rem;
  right: 1.4rem;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--rose);
  background: var(--card);
  color: var(--rose-strong);
  font-size: 1.25rem;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(176, 95, 95, 0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s, color 0.2s;
  z-index: 50;
}

#to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

#to-top:hover {
  background: var(--rose-strong);
  color: #fff;
}

#progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 4px;
  width: 0;
  background: linear-gradient(90deg, var(--rose-strong), var(--gold), var(--rose));
  border-radius: 0 999px 999px 0;
  z-index: 60;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Centered feature sections --- */

.fact-section,
.builder-section,
.world-section,
.gallery-section,
.cta-section,
.timeline-section,
.ingredients-section,
.delicious-section {
  text-align: center;
}

.fact-section h2::after,
.builder-section h2::after,
.world-section h2::after,
.gallery-section h2::after,
.cta-section h2::after,
.timeline-section h2::after,
.ingredients-section h2::after,
.delicious-section h2::after {
  margin-left: auto;
  margin-right: auto;
}

/* --- Burger fact card --- */

.fact-card {
  max-width: 740px;
  margin: 1.8rem auto 0;
  background: linear-gradient(135deg, #fff, #fdeee9);
  border: 2px solid var(--rose);
  border-radius: 24px;
  padding: 2.2rem 2.4rem 2rem;
  box-shadow: 0 14px 34px rgba(176, 95, 95, 0.14);
  position: relative;
}

.fact-card::before {
  content: "“";
  font-family: var(--script);
  font-size: 4rem;
  line-height: 1;
  color: var(--rose-strong);
  opacity: 0.45;
  display: block;
}

.fact-card p {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.18rem;
  color: var(--cocoa);
  max-width: 60ch;
  margin: 0.2rem auto 0;
}

.fact-pop {
  animation: fact-pop 0.5s ease;
}

@keyframes fact-pop {
  0% {
    opacity: 0.2;
    transform: translateY(8px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}

.fact-btn,
.build-btn {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.75rem 1.9rem;
  border: none;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--rose-strong), var(--rose-deep));
  color: #fff;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(176, 95, 95, 0.3);
  transition: transform 0.2s, box-shadow 0.2s;
}

.fact-btn:hover,
.build-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px rgba(176, 95, 95, 0.42);
}

.fact-btn:active,
.build-btn:active {
  transform: translateY(0);
}

/* --- History timeline --- */

.timeline {
  position: relative;
  max-width: 960px;
  margin: 2.8rem auto 1rem;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 50%;
  width: 3px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, var(--rose-strong), var(--gold), var(--rose));
  border-radius: 999px;
}

.tl-item {
  position: relative;
  width: 50%;
  margin-bottom: 2rem;
}

.tl-item:nth-child(odd) {
  left: 0;
  padding-right: 2.6rem;
  text-align: right;
}

.tl-item:nth-child(even) {
  left: 50%;
  padding-left: 2.6rem;
}

.tl-dot {
  position: absolute;
  top: 0;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fff, var(--rose-soft));
  border: 2px solid var(--rose-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 6px 16px rgba(176, 95, 95, 0.2);
}

.tl-item:nth-child(odd) .tl-dot {
  right: -26px;
}

.tl-item:nth-child(even) .tl-dot {
  left: -26px;
}

.tl-card {
  background: var(--card);
  border: 1px solid var(--rose);
  border-radius: 18px;
  padding: 1.2rem 1.5rem;
  box-shadow: 0 10px 26px rgba(176, 95, 95, 0.1);
  transition: transform 0.25s, box-shadow 0.25s;
}

.tl-item:hover .tl-card {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(176, 95, 95, 0.16);
}

.tl-year {
  display: inline-block;
  font-family: var(--script);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--rose-deep);
  background: var(--rose-soft);
  border-radius: 999px;
  padding: 0.15rem 0.9rem;
}

.tl-card h3 {
  margin: 0.5rem 0 0.3rem;
}

.tl-card p {
  margin: 0;
}

/* --- Build your burger --- */

.builder-wrap {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2.6rem;
  align-items: start;
  margin-top: 2.4rem;
  text-align: left;
}

.burger-stage {
  text-align: center;
}

.burger-stack {
  position: relative;
  width: 180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  filter: drop-shadow(0 16px 22px rgba(176, 95, 95, 0.25));
}

.b-layer {
  width: 100%;
  border-radius: 10px;
}

.bun-top {
  height: 58px;
  border-radius: 999px 999px 28px 28px;
  background: #e8b35a;
  position: relative;
  z-index: 1;
}

.bun-bottom {
  height: 32px;
  border-radius: 22px 22px 999px 999px;
  background: #e8b35a;
  margin-top: 2px;
}

.burger-stack[data-bun="brioche"] .bun-top,
.burger-stack[data-bun="brioche"] .bun-bottom {
  background: #f0c574;
}

.burger-stack[data-bun="wheat"] .bun-top,
.burger-stack[data-bun="wheat"] .bun-bottom {
  background: #c9995b;
}

.sesame {
  position: absolute;
  width: 7px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 251, 240, 0.85);
}

.sesame.s1 { top: 16px; left: 30px; }
.sesame.s2 { top: 24px; left: 92px; }
.sesame.s3 { top: 34px; left: 62px; }
.sesame.s4 { top: 12px; left: 120px; }
.sesame.s5 { top: 32px; left: 16px; }

.sauce {
  height: 8px;
  margin-top: -3px;
  border-radius: 6px;
}

.burger-stack[data-sauce="ketchup"] .sauce { background: #d84a3a; }
.burger-stack[data-sauce="mustard"] .sauce { background: #f2c14e; }
.burger-stack[data-sauce="bbq"] .sauce { background: #8a4a2f; }
.burger-stack[data-sauce="none"] .sauce { display: none; }

.topping {
  display: none;
  height: 11px;
  margin-top: -3px;
  border-radius: 7px;
}

.topping.on {
  display: block;
}

.topping[data-topping="lettuce"] {
  background: #86a94e;
  border-radius: 50% 50% 45% 45% / 55% 55% 45% 45%;
}

.topping[data-topping="tomato"] { background: #d84a3a; }
.topping[data-topping="pickle"] { background: #7fa554; }
.topping[data-topping="onion"] { background: #f0dfd2; border: 1px dashed #c9a87f; }

.cheese {
  height: 14px;
  margin-top: -5px;
  width: 108%;
  margin-left: -4%;
  background: #f2c14e;
  border-radius: 5px 5px 60% 60%;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.12);
}

.burger-stack[data-cheese="off"] .cheese { display: none; }

.patty {
  height: 28px;
  margin-top: -5px;
  border-radius: 9px;
  background: #6b4a2f;
}

.burger-stack[data-patty="chicken"] .patty { background: #d8a468; }
.burger-stack[data-patty="veggie"] .patty { background: #8f9f56; }

.burger-stack.built {
  animation: build-pop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes build-pop {
  0% { transform: scale(1); }
  45% { transform: scale(1.06) translateY(-4px); }
  100% { transform: scale(1); }
}

.build-msg {
  font-family: var(--script);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--rose-deep);
  margin: 1.5rem auto 0;
  max-width: 48ch;
  min-height: 3.4rem;
}

.builder-controls fieldset {
  border: 1.5px solid var(--rose);
  border-radius: 18px;
  padding: 0.9rem 1.2rem 1.1rem;
  background: var(--card);
  margin: 0 0 1.1rem;
  box-shadow: 0 6px 16px rgba(176, 95, 95, 0.07);
}

.builder-controls legend {
  font-family: var(--serif);
  font-weight: 700;
  color: var(--rose-deep);
  padding: 0 0.5rem;
}

.opt {
  border: 1.5px solid var(--rose);
  background: #fff;
  color: var(--rose-deep);
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  margin: 0.3rem 0.3rem 0 0;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}

.opt:hover {
  background: var(--rose-soft);
  border-color: var(--rose-strong);
  transform: translateY(-2px);
}

.opt.picked {
  background: var(--rose-strong);
  border-color: var(--rose-strong);
  color: #fff;
}

.build-row {
  text-align: center;
  margin-top: 0.4rem;
}

/* --- Burgers around the world --- */

.world-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 1.6rem;
  margin-top: 2.4rem;
  text-align: left;
}

.world-card {
  background: var(--card);
  border: 1px solid var(--rose);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 10px 26px rgba(176, 95, 95, 0.1);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.world-card:hover {
  transform: translateY(-6px);
  border-color: var(--rose-strong);
  box-shadow: 0 22px 46px rgba(176, 95, 95, 0.18);
}

.world-flag {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.world-img {
  display: block;
  overflow: hidden;
}

.world-img img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s;
}

.world-card:hover .world-img img {
  transform: scale(1.07);
}

.world-body {
  padding: 1.2rem 1.4rem 1.5rem;
}

.world-body h3 {
  margin: 0 0 0.15rem;
}

.world-name {
  font-family: var(--script);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--rose-strong);
  margin-bottom: 0.5rem;
}

.world-body p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--cocoa);
}

/* --- Gallery & lightbox --- */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 130px;
  grid-auto-flow: dense;
  gap: 0.9rem;
  margin-top: 2.4rem;
}

.g-item {
  position: relative;
  padding: 0;
  border: none;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: var(--rose-soft);
  box-shadow: 0 8px 20px rgba(176, 95, 95, 0.12);
  transition: transform 0.25s, box-shadow 0.25s;
}

.g-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 34px rgba(176, 95, 95, 0.2);
}

.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s;
}

.g-item:hover img {
  transform: scale(1.06);
}

.g-tall {
  grid-row: span 2;
}

.g-wide {
  grid-column: span 2;
}

.g-tag {
  position: absolute;
  left: 0.7rem;
  bottom: 0.7rem;
  z-index: 2;
  background: rgba(255, 255, 255, 0.85);
  color: var(--rose-deep);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  letter-spacing: 0.4px;
}

#lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(82, 63, 55, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  padding: 2rem;
}

#lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lb-body {
  max-width: 860px;
  max-height: 88vh;
  text-align: center;
  margin: 0;
}

.lb-body img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: 18px;
  border: 6px solid #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  display: block;
  margin: 0 auto;
}

.lb-body figcaption {
  color: #ffe9e0;
  margin-top: 0.8rem;
  font-weight: 700;
  font-size: 1.05rem;
  font-family: var(--serif);
}

.lb-close {
  position: absolute;
  top: 1.2rem;
  right: 1.6rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
}

.lb-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

/* --- Final call-to-action --- */

.cta-section {
  margin-top: 3rem;
  background: linear-gradient(150deg, #fdeee9, #f7d7d0);
  border: 2px dashed var(--rose-strong);
  border-radius: 30px;
  padding: 3.5rem 2rem;
  position: relative;
  overflow: hidden;
}

.cta-section h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--rose-deep);
}

.cta-section p {
  max-width: 60ch;
  margin: 0.8rem auto 0;
  font-size: 1.05rem;
  color: var(--cocoa);
}

.cta-section .hero-cta {
  margin-top: 2rem;
}

/* --- Section subtitle --- */

.section-sub {
  max-width: 62ch;
  margin: 0.4rem auto 0;
  color: var(--cocoa);
  font-size: 1.02rem;
}

/* --- Hamburger ingredients diagram --- */

.ingredients-wrap {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 3rem;
  align-items: center;
  margin-top: 2.4rem;
  text-align: left;
}

.burger-diagram {
  display: flex;
  justify-content: center;
}

.diagram-stack {
  position: relative;
  width: 200px;
  display: flex;
  flex-direction: column;
  filter: drop-shadow(0 16px 22px rgba(176, 95, 95, 0.22));
}

.d-layer {
  width: 100%;
  border-radius: 10px;
  transition: transform 0.25s, box-shadow 0.25s;
}

.d-bun-top {
  height: 62px;
  border-radius: 999px 999px 30px 30px;
  background: #e8b35a;
  position: relative;
  z-index: 1;
}

.d-bun-bottom {
  height: 34px;
  border-radius: 24px 24px 999px 999px;
  background: #e8b35a;
  margin-top: 2px;
}

.d-sauce {
  height: 8px;
  margin-top: -3px;
  border-radius: 6px;
  background: #d84a3a;
}

.d-lettuce {
  height: 14px;
  margin-top: -4px;
  border-radius: 50% 50% 45% 45% / 60% 60% 40% 40%;
  background: #86a94e;
}

.d-tomato {
  height: 11px;
  margin-top: -4px;
  border-radius: 7px;
  background: #d84a3a;
}

.d-onion {
  height: 10px;
  margin-top: -4px;
  border-radius: 7px;
  background: #f0dfd2;
  border: 1px dashed #c9a87f;
}

.d-pickles {
  height: 10px;
  margin-top: -4px;
  border-radius: 7px;
  background: #7fa554;
}

.d-cheese {
  height: 14px;
  margin-top: -6px;
  width: 110%;
  margin-left: -5%;
  background: #f2c14e;
  border-radius: 5px 5px 60% 60%;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.12);
}

.d-patty {
  height: 30px;
  margin-top: -6px;
  border-radius: 10px;
  background: #6b4a2f;
}

.d-layer.hit {
  transform: scale(1.07);
  box-shadow: 0 0 0 3px var(--rose-strong), 0 8px 18px rgba(176, 95, 95, 0.35);
  z-index: 3;
}

.ingredient-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem;
}

.ingredient-list li {
  margin: 0;
}

.ingredient-list button {
  width: 100%;
  text-align: left;
  background: var(--card);
  border: 1.5px solid var(--rose);
  border-radius: 14px;
  padding: 0.7rem 1rem;
  font-family: inherit;
  color: var(--ink);
  cursor: pointer;
  display: block;
  transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.ingredient-list button span {
  display: block;
  font-family: var(--serif);
  font-weight: 800;
  font-size: 1rem;
  color: var(--rose-deep);
}

.ingredient-list button small {
  display: block;
  font-size: 0.85rem;
  color: var(--cocoa);
  line-height: 1.45;
  margin-top: 0.15rem;
}

.ingredient-list button:hover,
.ingredient-list button:focus-visible {
  background: var(--rose-soft);
  border-color: var(--rose-strong);
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(176, 95, 95, 0.15);
}

.ingredient-list button.picked {
  background: var(--rose-strong);
  border-color: var(--rose-strong);
}

.ingredient-list button.picked span {
  color: #fff;
}

.ingredient-list button.picked small {
  color: #fdeee9;
}

/* --- What makes a delicious burger --- */

.delicious-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.2rem;
  margin-top: 2.4rem;
  text-align: left;
}

.delicious-card {
  background: var(--card);
  border: 1px solid var(--rose);
  border-radius: 18px;
  padding: 1.4rem 1.5rem;
  box-shadow: 0 8px 20px rgba(176, 95, 95, 0.1);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.delicious-card:hover {
  transform: translateY(-5px);
  border-color: var(--rose-strong);
  box-shadow: 0 18px 36px rgba(176, 95, 95, 0.16);
}

.delicious-emoji {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--rose-soft);
  border: 1px solid var(--rose);
  font-size: 1.5rem;
}

.delicious-card h3 {
  margin: 0.8rem 0 0.3rem;
  font-size: 1.1rem;
}

.delicious-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--cocoa);
}

/* --- Feature responsive --- */

@media (max-width: 900px) {
  .builder-wrap {
    grid-template-columns: 1fr;
  }

  .builder-controls {
    max-width: 640px;
    margin: 0 auto;
  }

  .timeline {
    max-width: 560px;
  }

  .timeline::before {
    left: 24px;
    transform: none;
  }

  .tl-item,
  .tl-item:nth-child(even),
  .tl-item:nth-child(odd) {
    width: auto;
    left: 0;
    padding: 0 0 0 3.6rem;
    text-align: left;
  }

  .tl-item:nth-child(odd) .tl-dot,
  .tl-item:nth-child(even) .tl-dot {
    right: auto;
    left: -2px;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 120px;
  }

  .ingredients-wrap {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }
}

@media (max-width: 560px) {
  .fact-card {
    padding: 1.6rem 1.4rem 1.5rem;
  }

  .builder-wrap {
    gap: 1.6rem;
  }

  .opt {
    padding: 0.55rem 1.15rem;
    font-size: 0.95rem;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 100px;
    gap: 0.6rem;
  }

  .ingredient-list {
    grid-template-columns: 1fr;
  }

  .ingredients-wrap {
    gap: 1.6rem;
  }

  .cta-section {
    padding: 2.6rem 1.2rem;
  }
}

@media print {
  nav,
  #to-top,
  #progress {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  header,
  footer {
    background: none;
    color: #000;
  }

  header h1,
  h2 {
    color: #000;
    text-shadow: none;
  }

  main {
    padding: 1rem 0.5rem;
  }

  section,
  .hero,
  .fact-box,
  .card {
    box-shadow: none;
    background: #fff;
    border: 1px solid #ddd;
  }

  .page-img {
    float: right;
    width: 42%;
    border: 2px solid #ddd;
  }

  a {
    color: #000;
    text-decoration: none;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
  }
}
