@font-face {
  font-family: 'PPNeueMontreal';
  src: url('PPNeueMontreal-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: 'Migra';
  src: url('Migra-Extralight.woff2') format('woff2'),
       url('Migra-Extralight.woff')  format('woff');
  font-weight: 200;
  font-style: normal;
  font-display: block;
}

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

html, body {
  height: 100%;
  background: #FCF9ED;
  font-family: 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ── Header ── */
.site-header {
  padding: 2rem 2.5rem;
}

.logo-link {
  display: inline-block;
  line-height: 0;
}

.logo {
  width: 180px;
  height: auto;
}

/* ── Top-right editorial text ── */
.top-right-text {
  position: fixed;
  top: 2rem;
  right: 2.5rem;
  text-align: right;
  z-index: 10;
}

.trtext-block {
  display: flex;
  flex-direction: column;
}

.trtext-block + .trtext-block {
  margin-top: 0.9rem;
}

.trtext-line {
  overflow: hidden;
  line-height: 1.55;
}

.trtext-line span {
  display: block;
  font-family: 'PPNeueMontreal', 'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #121714;
  letter-spacing: 0.01em;
}

.trtext-sub .trtext-line span {
  opacity: 0.45;
}

/* ── Main ── */
.main {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

/* ── Headline ── */
.headline {
  font-family: 'Migra', Georgia, serif;
  font-weight: 200;
  font-size: clamp(3rem, 15vw, 200px);
  color: #EE3508;
  letter-spacing: -0.01em;
  line-height: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 0.25em;
}

/* Each word gets overflow:hidden so chars slide up inside it */
.word {
  display: inline-flex;
  overflow: hidden;
  line-height: 1.1;
}

/* Each character — starts translated down, GSAP brings it up */
.char {
  display: inline-block;
  will-change: transform;
}

/* ── Custom cursor ── */
body.cursor-active {
  cursor: none;
}

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0;
}

.cursor-img {
  display: block;
  height: 160px;
  width: auto;
  transform: translateX(-50%);
  mix-blend-mode: multiply;
}

/* ── Pan ── */
.pan-wrap {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 500;
  opacity: 0;
  cursor: grab;
  user-select: none;
  will-change: transform;
}

.pan {
  display: block;
  width: 480px;
  height: auto;
  -webkit-user-drag: none;
}

.pan-egg {
  position: absolute;
  width: 200px;
  height: auto;
  top: 42%;
  left: 50%;
  /* position set via GSAP (xPercent/yPercent) to allow x/y parallax */
  opacity: 0;
  pointer-events: none;
  -webkit-user-drag: none;
}

#pepperEgg {
  width: 190px;
}

/* ── Fire circle ── */
.fire-circle {
  position: fixed;
  top: 40%;
  left: 45%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 160, 50, 1)    0%,
    rgba(238, 70,  15, 0.65) 38%,
    rgba(220, 45,  10, 0.18) 62%,
    transparent              76%
  );
  pointer-events: none;
  z-index: 50;
}

/* ── Intensity dial ── */
.dial-wrap {
  position: fixed;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 600;
  user-select: none;
  opacity: 0;
  cursor: ew-resize;
  display: none;
}

#dialSvg {
  display: block;
  overflow: visible;
}

.lvl-dot {
  fill: rgba(0,0,0,0.15);
  cursor: pointer;
  transition: none;
}

.lvl-num {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  font-size: 11px;
  font-weight: 400;
  fill: rgba(0,0,0,0.28);
  text-anchor: middle;
  dominant-baseline: middle;
  cursor: pointer;
}

/* ── Follow block ── */
.follow-block {
  position: fixed;
  bottom: 2rem;
  left: 2.5rem;
  z-index: 10;
}

.follow-line {
  overflow: hidden;
  line-height: 1.4;
}

.follow-label {
  display: block;
  font-family: 'Migra', Georgia, serif;
  font-weight: 200;
  font-size: 11px;
  color: #121714;
  opacity: 0.4;
  text-transform: lowercase;
}

.follow-handle {
  display: block;
  font-family: 'Migra', Georgia, serif;
  font-weight: 200;
  font-size: 18px;
  color: #EE3508;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.follow-handle span {
  display: block;
  transition: opacity 0.3s ease;
}

.follow-handle:hover span {
  opacity: 0.6;
}

.follow-handle .follow-handle-short {
  display: none;
}

/* ── Bottom-left items ── */
.bottom-left-items {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  z-index: 400;
}

.item-img {
  display: block;
  height: auto;
  user-select: none;
  -webkit-user-drag: none;
}

#whisk {
  display: none;
}

#olive-oil {
  display: none;
}

/* ── Sound toggle ── */
.sound-btn {
  position: fixed;
  bottom: 2rem;
  right: 2.5rem;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: 'PPNeueMontreal', 'Helvetica Neue', Arial, sans-serif;
  font-size: 11px;
  font-weight: 400;
  color: #121714;
  opacity: 0.45;
  letter-spacing: 0.06em;
  text-transform: lowercase;
  transition: opacity 0.25s ease;
}

.sound-btn:hover {
  opacity: 1;
}

.sound-btn.muted {
  opacity: 0.3;
}

.sound-btn.muted:hover {
  opacity: 0.7;
}

/* ── Mobile tap hint ── */
.cursor-tap-hint {
  display: none;
}

@media (hover: none) and (pointer: coarse) {
  .cursor-tap-hint {
    display: block;
    font-family: 'PPNeueMontreal', 'Helvetica Neue', Arial, sans-serif;
    font-size: 10px;
    color: rgba(0, 0, 0, 0.5);
    letter-spacing: 0.12em;
    text-transform: lowercase;
    text-align: center;
    transform: translateX(-50%);
    margin-top: 10px;
    animation: tapHintFade 1.8s ease-in-out infinite;
  }

  @keyframes tapHintFade {
    0%, 100% { opacity: 0.25; }
    50%       { opacity: 1; }
  }
}

/* ── Steam puffs ── */
.steam-puff {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  pointer-events: none;
  z-index: 490;
  filter: blur(9px);
  will-change: transform, opacity;
}

/* ── Match ignition spark ── */
.match-spark {
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,225,80,1) 0%, rgba(255,110,20,0.7) 45%, transparent 70%);
  pointer-events: none;
  z-index: 9998;
  will-change: transform, opacity;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .site-header {
    padding: 1.25rem 1.5rem;
  }

  .logo {
    width: 140px;
  }

  /* Pan scales down to fit screen */
  .pan {
    width: min(320px, 84vw);
  }

  /* Egg images scale with pan */
  .pan-egg {
    width: min(140px, 37vw);
    top: 40%;
  }

  #pepperEgg {
    width: min(130px, 34vw);
  }

  /* Fire repositioned to stay near pan center */
  .fire-circle {
    top: 43%;
    left: 40%;
  }

  /* Top-right text — smaller and tighter */
  .top-right-text {
    top: auto;
    bottom: 1.5rem;
    right: 1.25rem;
  }

  .trtext-line span {
    font-size: 12px;
  }

  .trtext-block + .trtext-block {
    margin-top: 0.6rem;
  }

  /* Bottom-left items */
  .bottom-left-items {
    left: 1rem;
    bottom: 1rem;
    gap: 0.5rem;
  }

  .follow-block {
    top: 2rem;
    right: 1.25rem;
    bottom: auto;
    left: auto;
    text-align: right;
  }

  .sound-btn {
    bottom: 1.5rem;
    left: 1.5rem;
    right: auto;
  }

  .follow-handle {
    font-size: 14px;
  }

  .follow-handle .follow-handle-full  { display: none; }
  .follow-handle .follow-handle-short { display: block; }
}
