:root {
  --ivory: #f8f3e9;
  --cream: #fffaf2;
  --charcoal: #242520;
  --muted: #6f675d;
  --line: #ded4c4;
  --olive: #3f5143;
  --orange: #a76536;
  --gold: #bd9257;
  --shadow: 0 24px 70px rgba(36, 37, 32, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: Arial, Helvetica, sans-serif;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  transform: translateY(-160%);
  background: var(--charcoal);
  color: #fff;
  padding: 10px 12px;
}

.skip-link:focus {
  transform: translateY(0);
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  width: min(1180px, calc(100% - 28px));
  min-height: 76px;
  margin: 14px auto 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 250, 242, 0.32);
  border-radius: 8px;
  background: rgba(36, 37, 32, 0.66);
  color: #fff;
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: 132px;
  height: 54px;
  object-fit: cover;
  object-position: center;
  border-radius: 4px;
}

.desktop-nav {
  display: flex;
  justify-content: center;
  gap: 22px;
  font-size: 0.9rem;
  font-weight: 800;
}

.desktop-nav a,
.nav-cta,
.button,
.floating-order,
.footer a {
  text-decoration: none;
}

.nav-cta,
.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  padding: 0 16px;
  font-weight: 900;
}

.nav-cta,
.button.primary {
  background: var(--cream);
  color: var(--charcoal);
}

.button.secondary {
  border: 1px solid rgba(255, 250, 242, 0.54);
  color: #fff;
}

.button.secondary.dark {
  border-color: var(--line);
  color: var(--charcoal);
}

.hero {
  min-height: 92svh;
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #12120f;
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.08);
  animation: cinematic 24s infinite;
}

.hero-media img:nth-child(2) {
  animation-delay: 6s;
}

.hero-media img:nth-child(3) {
  animation-delay: 12s;
}

.hero-media img:nth-child(4) {
  animation-delay: 18s;
}

@keyframes cinematic {
  0% {
    opacity: 0;
    transform: scale(1.08) translateX(0);
  }
  8%, 25% {
    opacity: 1;
  }
  32% {
    opacity: 0;
    transform: scale(1.18) translateX(-2%);
  }
  100% {
    opacity: 0;
  }
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 42%, rgba(36, 37, 32, 0.22), rgba(36, 37, 32, 0.82)),
    linear-gradient(180deg, rgba(36, 37, 32, 0.2), rgba(36, 37, 32, 0.9));
}

.hero-content {
  position: relative;
  width: min(900px, calc(100% - 32px));
  padding-top: 96px;
  text-align: center;
}

.kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 14vw, 10rem);
  font-weight: 500;
  line-height: 0.88;
}

.hero-line {
  margin: 18px 0 0;
  font-size: clamp(1.2rem, 3vw, 2.2rem);
  font-weight: 900;
}

.hero-copy {
  margin: 14px auto 0;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.05rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-note {
  position: absolute;
  right: 26px;
  bottom: 26px;
  width: 220px;
  border: 1px solid rgba(255, 250, 242, 0.28);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 250, 242, 0.12);
  backdrop-filter: blur(14px);
}

.hero-note span,
.hero-note strong {
  display: block;
}

.hero-note span {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-note strong {
  margin-top: 5px;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 92px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
}

.section-heading.centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.1rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1;
}

.section-heading p,
.builder-copy p,
.interior-copy p,
.signature-card p {
  color: var(--muted);
  line-height: 1.65;
}

.food-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.food-card {
  min-height: 460px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  color: #fff;
  transform-style: preserve-3d;
  box-shadow: var(--shadow);
}

.food-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms ease;
}

.food-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.74));
}

.food-card span,
.food-card small {
  position: relative;
  z-index: 1;
  display: block;
  padding: 0 20px;
}

.food-card span {
  margin-top: 330px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

.food-card small {
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.45;
}

.food-card:hover img {
  transform: scale(1.08) rotate(1deg);
}

.shake-card::before {
  content: "";
  position: absolute;
  right: 24px;
  top: 24px;
  z-index: 2;
  width: 68px;
  height: 68px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: bubble 2.8s ease-in-out infinite;
}

@keyframes bubble {
  50% {
    transform: translateY(-10px) scale(1.08);
    opacity: 0.55;
  }
}

.signatures {
  padding-top: 30px;
}

.signature-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.signature-card {
  overflow: hidden;
  display: grid;
  grid-template-columns: 44% 1fr;
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
  box-shadow: 0 18px 50px rgba(36, 37, 32, 0.08);
}

.signature-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.signature-card div {
  padding: 28px;
}

.badge {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid rgba(167, 101, 54, 0.3);
  border-radius: 8px;
  padding: 0 10px;
  color: var(--orange);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

h3 {
  margin: 16px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.1;
}

.signature-card a {
  display: inline-flex;
  margin-top: 18px;
  color: var(--olive);
  font-weight: 900;
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat {
  min-height: 170px;
  display: grid;
  place-items: center;
  padding: 28px;
  background: var(--charcoal);
  color: #fff;
  text-align: center;
}

.stat strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 500;
}

.stat span {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
}

.builder {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 34px;
  align-items: center;
}

.builder-copy p {
  max-width: 480px;
}

.builder-lab {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background:
    radial-gradient(circle at 20% 10%, rgba(189, 146, 87, 0.18), transparent 28rem),
    var(--cream);
  box-shadow: var(--shadow);
}

.burger-stage {
  min-height: 290px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  perspective: 900px;
}

.layer {
  width: min(360px, 86%);
  min-height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  transform: rotateX(10deg);
  transition: transform 320ms ease, background 320ms ease, height 320ms ease;
}

.bun-top {
  height: 62px;
  border-radius: 90px 90px 22px 22px;
  background: linear-gradient(180deg, #dca665, #a86532);
}

.sauce-layer {
  height: 18px;
  background: #b8402c;
}

.cheese-layer {
  height: 22px;
  background: #e1b94c;
}

.patty-layer {
  height: 46px;
  background: #70422f;
}

.bun-bottom {
  height: 44px;
  border-radius: 22px 22px 60px 60px;
  background: linear-gradient(180deg, #c1844b, #996037);
}

.builder-lab[data-bread="sesame"] .bun-top {
  background: linear-gradient(180deg, #efc282, #b9773e);
}

.builder-lab[data-patty="double"] .patty-layer {
  height: 62px;
  background: #583326;
}

.builder-lab[data-cheese="extra"] .cheese-layer {
  height: 32px;
  background: #f2c85e;
}

.builder-lab[data-sauce="spicy"] .sauce-layer {
  height: 24px;
  background: #d4502c;
}

.builder-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

fieldset {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

legend {
  padding: 0 6px;
  color: var(--orange);
  font-weight: 900;
}

.choice {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 4px 4px 0 0;
  padding: 0 10px;
  background: var(--ivory);
  color: var(--charcoal);
  cursor: pointer;
}

.choice.active {
  background: var(--charcoal);
  color: #fff;
}

.masonry-wall {
  columns: 3 220px;
  column-gap: 14px;
}

.masonry-wall img {
  width: 100%;
  display: block;
  margin: 0 0 14px;
  border-radius: 8px;
  break-inside: avoid;
  box-shadow: 0 12px 30px rgba(36, 37, 32, 0.1);
}

.moment-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.moment-tab {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 14px;
  background: var(--cream);
  cursor: pointer;
  font-weight: 900;
}

.moment-tab.active {
  background: var(--olive);
  color: #fff;
}

.moment-panel {
  max-width: 940px;
  margin: 0 auto;
  overflow: hidden;
  display: grid;
  grid-template-columns: 48% 1fr;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
  box-shadow: var(--shadow);
}

.moment-panel img {
  width: 100%;
  height: 100%;
  min-height: 350px;
  object-fit: cover;
}

.moment-panel div {
  padding: 34px;
}

.interior {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 38px;
  align-items: center;
}

.interior-scene {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.42) 1px, transparent 1px) 0 0 / 80px 100%,
    linear-gradient(180deg, #f4eadb 0 52%, #d8c6af 52% 100%);
  box-shadow: var(--shadow);
}

.glass-front {
  position: absolute;
  inset: 28px 28px auto;
  height: 190px;
  border: 1px solid rgba(63, 81, 67, 0.24);
  background: linear-gradient(120deg, rgba(255,255,255,0.74), rgba(255,255,255,0.18));
}

.counter {
  position: absolute;
  left: 70px;
  right: 70px;
  bottom: 88px;
  height: 90px;
  background: var(--charcoal);
  border-radius: 8px 8px 0 0;
}

.wall-sign {
  position: absolute;
  left: 50%;
  top: 248px;
  transform: translateX(-50%);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4rem;
  color: var(--charcoal);
}

.table-dot {
  position: absolute;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: inset 0 0 0 12px rgba(255,255,255,0.36);
}

.table-dot.one {
  left: 52px;
  bottom: 34px;
}

.table-dot.two {
  left: 46%;
  bottom: 26px;
}

.table-dot.three {
  right: 54px;
  bottom: 40px;
}

.interior-copy p {
  max-width: 520px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

blockquote {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: var(--cream);
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  line-height: 1.5;
}

.insider {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 80px;
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 28px;
  align-items: center;
  border-radius: 8px;
  padding: 34px;
  background: var(--charcoal);
  color: #fff;
}

.insider h2 {
  max-width: 620px;
}

.signup-form {
  display: grid;
  gap: 10px;
}

.signup-form label span {
  display: block;
  margin-bottom: 7px;
  color: rgba(255,255,255,0.72);
  font-weight: 900;
}

.signup-form input {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(255,255,255,0.26);
  border-radius: 8px;
  padding: 0 14px;
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.signup-form button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: var(--gold);
  color: var(--charcoal);
  font-weight: 900;
  cursor: pointer;
}

.form-note {
  margin: 0;
  color: rgba(255,255,255,0.68);
  font-size: 0.85rem;
}

.floating-order {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: grid;
  gap: 1px;
  border-radius: 8px;
  padding: 12px 16px;
  background: var(--olive);
  color: #fff;
  box-shadow: 0 18px 50px rgba(36, 37, 32, 0.26);
}

.floating-order span {
  color: rgba(255,255,255,0.72);
  font-size: 0.78rem;
  font-weight: 900;
}

.footer {
  padding: 42px 16px 52px;
  background: var(--cream);
  text-align: center;
}

.footer img {
  width: 180px;
  height: 74px;
  object-fit: cover;
}

.footer p {
  margin: 10px 0 18px;
  color: var(--muted);
}

.footer div {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  font-weight: 900;
}

.credits-page {
  background: var(--cream);
}

.credits-wrap {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 80px;
}

.credits-wrap h1 {
  margin: 26px 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 7vw, 4rem);
  font-weight: 500;
}

.credits-wrap > p {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.65;
}

.back-link {
  color: var(--olive);
  font-weight: 900;
}

.credits-list {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.credits-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--ivory);
}

.credits-list h2 {
  font-size: 1.35rem;
}

.credits-list p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.reveal-card,
.section-heading,
.builder-copy,
.builder-lab,
.interior-scene,
.interior-copy,
.masonry-wall img,
blockquote {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .topbar {
    grid-template-columns: auto auto;
  }

  .desktop-nav {
    display: none;
  }

  .food-grid,
  .signature-row,
  .builder,
  .interior,
  .testimonial-grid,
  .insider {
    grid-template-columns: 1fr;
  }

  .food-card {
    min-height: 360px;
  }

  .food-card span {
    margin-top: 238px;
  }

  .signature-card,
  .moment-panel {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .topbar {
    width: calc(100% - 20px);
    margin-top: 10px;
    min-height: 64px;
    gap: 10px;
  }

  .brand img {
    width: 106px;
    height: 44px;
  }

  .nav-cta {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.85rem;
  }

  .hero-content {
    padding-top: 78px;
  }

  .hero-note {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
  }

  .section {
    padding: 66px 0;
  }

  .stats-band {
    grid-template-columns: 1fr;
  }

  .builder-controls {
    grid-template-columns: 1fr;
  }

  .moment-panel div,
  .signature-card div,
  .insider {
    padding: 22px;
  }

  .floating-order {
    left: 18px;
    right: 18px;
    grid-template-columns: auto auto;
    align-items: center;
    justify-content: space-between;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
