/* ============================================================
   MISS NOODLES — MAIN STYLESHEET
   Cream #F4EFE5 | Orange #E85A2A | Blue #7BC4E0
   ============================================================ */

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

:root {
  --cream:  #F4EFE5;
  --orange: #E85A2A;
  --blue:   #7BC4E0;
  --dark:   #1a1210;

  --pad-v: clamp(5rem, 10vw, 9rem);
  --pad-h: clamp(1.5rem, 6vw, 7rem);
  --ease:  cubic-bezier(0.16, 1, 0.3, 1);
  --font:  'Inter', system-ui, -apple-system, sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
ol, ul { list-style: none; }

.screen {
  position: relative;
  width: 100%;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--pad-v) var(--pad-h);
  overflow: hidden;
}

.screen--cream { background: var(--cream); }
.screen--blue  { background: var(--blue);  color: #fff; }
.screen--dark  { background: var(--dark);  color: var(--cream); }

.btn {
  display: inline-block;
  padding: 1rem 2.75rem;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.btn--cream {
  background: var(--cream);
  color: var(--dark);
  border-color: var(--cream);
}
.btn--cream:hover {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
}

/* ============================================================
   NAV
   ============================================================ */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease), background 0.5s var(--ease),
              backdrop-filter 0.5s var(--ease);
}
.site-nav.is-visible { opacity: 1; pointer-events: auto; }
.site-nav.is-scrolled {
  background: rgba(255,248,225,0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.site-nav__logo {
  height: 144px;
  width: auto;
  margin: -28px 0;
  display: block;
}
.site-nav__cta {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--dark);
  text-decoration: none;
  padding: 0.5rem 1.25rem;
  background: var(--cream);
  border: 1.5px solid rgba(26,18,16,0.18);
  border-radius: 100px;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.site-nav__cta:hover {
  background: var(--dark);
  color: var(--cream);
  border-color: var(--dark);
}

/* ============================================================
   SCREEN 1 — HERO (mascot video only, no text)
   ============================================================ */
.screen--hero {
  background: var(--dark);
  padding: 0;
  min-height: 100svh;
  display: block;
}
.hero__video-wrap {
  position: absolute;
  inset: 0;
}
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center,
    rgba(26,18,16,0.05) 20%,
    rgba(26,18,16,0.65) 100%);
}
.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}
.scroll-hint__line {
  display: block;
  width: 1px;
  height: 3.5rem;
  background: rgba(255,255,255,0.3);
  margin: 0 auto;
  animation: scrollPulse 2.2s ease-in-out infinite;
}

/* ============================================================
   SCREEN 2 — BRAND TRANSITION
   Staged: plain squares → partial mascot → full mascot → logo
   ============================================================ */
.screen--transition {
  padding: 0;
  background: var(--cream);
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Full-bleed image layers */
.tb__layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.tb__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Checkerboard: scales in from slight blur on entry */
.tb__mascot {
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.4s var(--ease), transform 1.8s var(--ease);
}
#screen-2.is-entered .tb__mascot {
  opacity: 1;
  transform: scale(1);
}

/* Cream bleed top and bottom — softens hard edges */
.tb__edge {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    #fff8e1 0%,
    transparent 18%,
    transparent 82%,
    #fff8e1 100%
  );
  pointer-events: none;
  z-index: 2;
}

/* Transparent animated cell overlay — individual squares feel alive */
.tb__cells {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(5, 1fr);
  pointer-events: none;
  z-index: 1;
}
.tb__cell {
  transition: transform 2.2s cubic-bezier(0.16,1,0.3,1),
              box-shadow 2.2s cubic-bezier(0.16,1,0.3,1);
  transform-origin: center center;
  will-change: transform;
}
.tb__cell.is-active {
  transform: scale(1.028) translateY(-7px) translateZ(0);
  box-shadow: 0 10px 28px rgba(26,18,16,0.24), 0 3px 8px rgba(26,18,16,0.14);
  z-index: 3;
  position: relative;
}

/* ============================================================
   SCREEN 3 — COMFORT FOOD IN 3 MINUTES (typography only)
   ============================================================ */
.screen--type { text-align: center; }
.type__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
}
.type__headline {
  font-size: clamp(3.5rem, 10vw, 8.5rem);
  font-weight: 800;
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: #fff;
}
.type__rule {
  width: 56px;
  height: 2px;
  background: rgba(255,255,255,0.28);
}
.type__body {
  font-size: clamp(1.2rem, 3vw, 2rem);
  font-weight: 300;
  letter-spacing: 0.2em;
  color: #fff;
}

/* ============================================================
   SCREEN 4 — WHEREVER PEOPLE NEED COMFORT (lifestyle rows)
   ============================================================ */
.screen--lifestyle {
  padding: 0;
  min-height: auto;
  display: block;
}
.lifestyle__rows { display: flex; flex-direction: column; }
.lifestyle__row {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  min-height: 52svh;
}
.lifestyle__row--flip { grid-template-columns: 1.4fr 1fr; }
.lifestyle__word {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2rem, 5vw, 5rem);
  font-size: clamp(2.4rem, 6vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--orange);
  background: var(--cream);
  line-height: 1;
}
.lifestyle__visual { overflow: hidden; }
.lifestyle__img {
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Closing statement after lifestyle rows */
.lifestyle__statement {
  padding: clamp(5rem, 11vw, 9rem) var(--pad-h);
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.lifestyle__statement-text {
  font-size: clamp(3rem, 8vw, 7rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--cream);
}
@media (max-width: 600px) {
  .lifestyle__row,
  .lifestyle__row--flip { grid-template-columns: 1fr; }
  .lifestyle__row--flip .lifestyle__visual { order: -1; }
  .lifestyle__word { min-height: 28svh; }
}

/* ============================================================
   SCREEN 5 — ZURICH HB REVEAL (standalone emotional payoff)
   ============================================================ */
.screen--zurich {
  padding: 0;
  min-height: 100svh;
  display: block;
  position: relative;
  overflow: hidden;
}
.zurich__img {
  width: 100%;
  height: 100%;
  min-height: 100svh;
  object-fit: cover;
  object-position: center;
  display: block;
  animation: kenBurns 20s ease-in-out infinite alternate;
  transform-origin: center center;
}

/* Zurich overlay — text anchored to lower third of image */
.zurich__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(26,18,16,0.78) 0%,
    rgba(26,18,16,0.18) 38%,
    transparent 58%
  );
  display: flex;
  align-items: flex-end;
  padding: clamp(3rem, 7vw, 6rem) var(--pad-h);
}
.zurich__text {
  font-size: clamp(2.4rem, 5.5vw, 5rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

/* ============================================================
   SCREEN 6 — MEET THE MACHINE
   ============================================================ */
.screen--machine { flex-direction: column; padding: var(--pad-v) var(--pad-h); }
.machine__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 60% at 50% 60%,
    rgba(123,196,224,0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.machine__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 900px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}
.machine__caption { text-align: center; }
.machine__headline {
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--cream);
  margin-bottom: 1rem;
}
.machine__sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300;
  color: rgba(244,239,229,0.92);
  letter-spacing: 0.02em;
}
.machine__wrap { width: 100%; }
.machine__img {
  width: 100%;
  border-radius: 16px;
  filter: drop-shadow(0 32px 80px rgba(123,196,224,0.12));
}

/* ============================================================
   SCREEN 7 — HOW IT WORKS (timeline)
   ============================================================ */
.screen--how { align-items: flex-start; }
.how__inner {
  width: 100%;
  max-width: 880px;
  margin: 0 auto;
}
.how__title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 3rem;
}
.how__steps-wrap {
  position: relative;
  padding-left: 2rem;
}
.how__line {
  position: absolute;
  left: 1.35rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1px;
  background: linear-gradient(to bottom, var(--orange), rgba(232,90,42,0.12));
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 1.8s var(--ease);
}
.how__steps-wrap.is-visible .how__line { transform: scaleY(1); }

.how__steps { display: flex; flex-direction: column; }
.how__step {
  display: grid;
  grid-template-columns: 3rem 10rem 1fr;
  align-items: baseline;
  gap: 0 2rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid rgba(26,18,16,0.08);
  transition: background 0.2s ease;
}
.how__step:first-child { border-top: 1px solid rgba(26,18,16,0.08); }
.how__step:hover { background: rgba(232,90,42,0.03); }
.how__num {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--orange);
  position: relative;
}
.how__num::before {
  content: '';
  position: absolute;
  left: -2.35rem;
  top: 50%;
  transform: translateY(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 3px rgba(232,90,42,0.15);
}
.how__verb {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.how__desc {
  font-size: 1rem;
  font-weight: 400;
  color: rgba(26,18,16,0.82);
  line-height: 1.6;
}
@media (max-width: 600px) {
  .how__steps-wrap { padding-left: 1.5rem; }
  .how__step { grid-template-columns: 2.5rem 1fr; }
  .how__desc { grid-column: 2; margin-top: -0.5rem; }
}

/* ============================================================
   SCREEN 8 — BEFORE / MISS NOODLES (cards)
   ============================================================ */
.screen--pvs { min-height: auto; padding: clamp(5rem, 10vw, 8rem) var(--pad-h); }
.pvs__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  width: 100%;
  max-width: 1100px;
}
@media (max-width: 640px) {
  .pvs__cards { grid-template-columns: 1fr; }
}

.pvs__card {
  border-radius: 20px;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.pvs__card--before {
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.14);
}
.pvs__card--solution {
  background: var(--cream);
  color: var(--dark);
}

.pvs__card-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.pvs__card-indicator--before {
  border: 1.5px solid rgba(255,255,255,0.4);
}
.pvs__card-indicator--solution {
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(232,90,42,0.18);
}

.pvs__heading {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}
.pvs__card--before .pvs__heading { color: rgba(255,255,255,0.85); }
.pvs__card--solution .pvs__heading { color: var(--orange); }

.pvs__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.pvs__list li {
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  line-height: 1.5;
  padding-left: 1.4rem;
  position: relative;
}
.pvs__card--before .pvs__list li { color: rgba(255,255,255,0.9); }
.pvs__list li::before {
  position: absolute;
  left: 0;
}
.pvs__card--before .pvs__list li::before {
  content: '—';
  color: rgba(255,255,255,0.55);
}
.pvs__list--solution li { color: var(--dark); font-weight: 500; }
.pvs__list--solution li::before {
  content: '✓';
  color: var(--orange);
  font-weight: 700;
}

/* ============================================================
   SCREEN 9 — WHERE MISS NOODLES FITS (editorial bento)
   Large cards: Airports, Train Stations
   Standard: Universities, Hospitals, Hotels, Commercial, Festival, Ski
   ============================================================ */
.screen--locations {
  flex-direction: column;
  gap: 3.5rem;
  padding-bottom: var(--pad-v);
}
.locations__header { text-align: center; }
.locations__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}
.locations__sub {
  font-size: clamp(1rem, 1.8vw, 1.15rem);
  font-weight: 300;
  opacity: 0.8;
}

.locations__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 260px;
  gap: 0.75rem;
  width: 100%;
  max-width: 1280px;
}
/* First two cards (Airports + Train Stations) are wide */
.location-card--hero { grid-column: span 2; }

@media (max-width: 1024px) {
  .locations__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 240px;
  }
  .location-card--hero { grid-column: span 2; }
}
@media (max-width: 540px) {
  .locations__grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 220px;
  }
  .location-card--hero { grid-column: span 1; }
}

.location-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #ddd7cd;
}
.location-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.6s var(--ease);
}
.location-card:hover .location-card__img { transform: scale(1.04); }
.location-card__label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2.5rem 1.25rem 1.25rem;
  background: linear-gradient(transparent, rgba(26,18,16,0.72));
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.location-card__name {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: block;
}
.location-card__desc {
  color: rgba(255,255,255,0.55);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  display: block;
}

/* ============================================================
   SCREEN 10 — LET'S TALK
   ============================================================ */
.screen--contact { text-align: center; }
.contact__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  max-width: 560px;
}
.contact__eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.48);
}
.contact__headline {
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #fff8e1;
}
.contact__body {
  font-size: clamp(1rem, 2vw, 1.1rem);
  font-weight: 300;
  line-height: 1.75;
  color: rgba(255,255,255,0.92);
}
.contact__tagline {
  font-size: 0.92rem;
  font-weight: 400;
  color: rgba(255,255,255,0.72);
  letter-spacing: 0.02em;
}
.contact__details {
  width: 100%;
  padding-top: 2rem;
  margin-top: 0.5rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
}
.contact__name {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255,255,255,0.92);
  letter-spacing: 0.01em;
}
.contact__role {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.4rem;
}
.contact__email,
.contact__location {
  font-size: 0.88rem;
  font-weight: 400;
  color: rgba(255,255,255,0.88);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact__icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: rgba(255,255,255,0.88);
}

/* Contact screen CTA — cream button, orange text */
.screen--contact .btn--cream {
  background: #fff8e1;
  border-color: #fff8e1;
  color: var(--orange);
}
.screen--contact .btn--cream:hover {
  background: transparent;
  color: #fff8e1;
  border-color: #fff8e1;
}

/* ============================================================
   SCREEN 11 — FAREWELL (logo only, steam, no text)
   Background tuned to match logo PNG backing colour
   ============================================================ */
.screen--farewell {
  background: #fff8e1;
  gap: 0;
}
.farewell__wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  position: relative;
}
/* Large logo — brand signature */
.farewell__logo {
  width: min(575px, 90vw);
}

/* ============================================================
   STEAM
   ============================================================ */
.steam {
  position: absolute;
  top: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  pointer-events: none;
}
.steam--farewell { top: -1rem; }
.steam__puff {
  display: block;
  border-radius: 100px;
  background: rgba(26,18,16,0.1);
  filter: blur(2px);
  animation: steamRise 2.6s ease-in-out infinite;
}
.steam__puff--1 { width: 10px; height: 32px; animation-delay: 0s; }
.steam__puff--2 { width: 16px; height: 48px; animation-delay: 0.45s; }
.steam__puff--3 { width: 10px; height: 26px; animation-delay: 0.9s; }
