/* ==========================================================================
   PIPPIN'S PANTRY — COMING SOON
   ========================================================================== */

:root {
  /* Brand */
  --plum: #56308b;
  --plum-light: #9d7bd1;
  --plum-deep: #1a0e29;
  --plum-mid: #2b1742;
  --amber: #f78628;
  --amber-light: #ffb067;
  --mint: #4ad6a4;
  --fb: #1877f2;

  /* Ink on dark */
  --ink: #fdf8f4;
  --ink-soft: rgba(253, 248, 244, 0.78);
  --ink-mute: rgba(253, 248, 244, 0.56);

  /* Surfaces */
  --glass: rgba(255, 255, 255, 0.07);
  --glass-strong: rgba(255, 255, 255, 0.11);
  --hairline: rgba(255, 255, 255, 0.14);
  --hairline-soft: rgba(255, 255, 255, 0.08);

  /* Type */
  --font-display: 'Fredoka', 'Quicksand', -apple-system, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Rhythm */
  --shell: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 22px;
  --radius-lg: 30px;

  --lift: 0 24px 60px rgba(0, 0, 0, 0.35);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--plum-deep);
  color: var(--ink-soft);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ol,
ul {
  list-style: none;
}

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

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ==========================================================================
   BACKDROP
   ========================================================================== */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  background: var(--plum-deep);
}

.backdrop-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Framed low so the shelving signage sits out of the sharp zone */
  object-position: 50% 72%;
  /* Scaled past the edges so the blur has no soft border to show */
  transform: scale(1.14);
  filter: saturate(0.88) contrast(1.02) blur(5px);
}

/* Layered scrim: dark at the edges, deep plum wash over the whole frame */
.backdrop-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(26, 14, 41, 0.94) 0%,
      rgba(26, 14, 41, 0.80) 38%,
      rgba(26, 14, 41, 0.92) 78%,
      rgba(26, 14, 41, 0.99) 100%),
    linear-gradient(100deg,
      rgba(43, 23, 66, 0.96) 0%,
      rgba(43, 23, 66, 0.62) 46%,
      rgba(43, 23, 66, 0.30) 100%);
}

.backdrop-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}

.glow-plum {
  top: -18vh;
  left: -12vw;
  width: 58vw;
  height: 58vw;
  background: radial-gradient(circle, rgba(157, 123, 209, 0.30) 0%, transparent 68%);
}

.glow-amber {
  bottom: -22vh;
  right: -14vw;
  width: 62vw;
  height: 62vw;
  background: radial-gradient(circle, rgba(247, 134, 40, 0.26) 0%, transparent 68%);
}

/* ==========================================================================
   TOP BAR
   ========================================================================== */

.topbar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding: clamp(1.1rem, 2.5vw, 1.9rem) var(--gutter);
}

.lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.lockup-mark {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  transition: transform 0.4s cubic-bezier(0.34, 1.4, 0.64, 1);
}

.lockup-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.18);
}

.lockup:hover .lockup-mark {
  transform: scale(1.07) rotate(-4deg);
}

.lockup-text {
  display: flex;
  flex-direction: column;
}

.lockup-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -0.2px;
}

.lockup-name em {
  font-style: normal;
  color: var(--amber-light);
}

.lockup-place {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 0.1rem;
}

.lockup-place i {
  color: var(--amber);
  font-size: 0.72rem;
}

.topbar-right {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--hairline);
  backdrop-filter: blur(10px);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--ink);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 0 rgba(247, 134, 40, 0.6);
  animation: ping 2.4s ease-out infinite;
}

@keyframes ping {
  0% {
    box-shadow: 0 0 0 0 rgba(247, 134, 40, 0.55);
  }

  70% {
    box-shadow: 0 0 0 9px rgba(247, 134, 40, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(247, 134, 40, 0);
  }
}

.icon-link {
  width: 38px;
  height: 38px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: var(--glass);
  border: 1px solid var(--hairline);
  color: var(--ink);
  font-size: 0.9rem;
  transition: background 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

.icon-link:hover {
  background: var(--fb);
  border-color: var(--fb);
  transform: translateY(-2px);
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: calc(100svh - 110px);
  padding: clamp(1.5rem, 4vw, 3.5rem) 0 5.5rem;
}

/* Hero content sits on the same left edge as the top bar lockup */
.hero-shell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 1rem 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(247, 134, 40, 0.14);
  border: 1px solid rgba(247, 134, 40, 0.3);
  color: var(--amber-light);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2px;
  margin-bottom: 1.25rem;
}

.display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 6.4vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -1.4px;
  color: var(--ink);
  margin-bottom: 1.3rem;
  max-width: 16ch;
}

.display-accent {
  background: linear-gradient(100deg, var(--amber-light) 0%, var(--amber) 45%, var(--plum-light) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.lede {
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  color: var(--ink-soft);
  max-width: 54ch;
  margin-bottom: 0.7rem;
}

.lede-sub {
  font-size: 0.97rem;
  color: var(--ink-mute);
  max-width: 54ch;
  margin-bottom: 1.8rem;
}

.lede-sub strong {
  color: var(--ink);
  font-weight: 600;
}

/* --- Countdown --- */

.countdown {
  width: 100%;
  max-width: 620px;
  padding: 1.25rem 1.4rem 1.4rem;
  border-radius: var(--radius);
  background: var(--glass);
  border: 1px solid var(--hairline);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--lift);
  margin-bottom: 1.7rem;
}

.countdown-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-bottom: 0.9rem;
  margin-bottom: 1.1rem;
  border-bottom: 1px solid var(--hairline-soft);
}

.countdown-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
}

.countdown-label i {
  color: var(--amber);
}

.countdown-date {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--amber-light);
  background: rgba(247, 134, 40, 0.14);
  border: 1px solid rgba(247, 134, 40, 0.26);
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
}

.countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
}

/* The author display rule would otherwise beat the UA [hidden] rule */
.countdown-grid[hidden] {
  display: none;
}

.unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.8rem 0.4rem 0.65rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--hairline-soft);
}

.unit-value {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4.2vw, 2.3rem);
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum';
}

.unit-name {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.countdown-done {
  margin-top: 1rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--amber-light);
}

/* --- Buttons --- */

.actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.7rem;
}

.actions-center {
  justify-content: center;
  margin-bottom: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.97rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--amber) 0%, #e8730f 100%);
  color: #22122f;
  font-weight: 600;
  box-shadow: 0 12px 30px rgba(247, 134, 40, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(247, 134, 40, 0.42);
}

.btn-tail {
  font-size: 0.74rem;
  opacity: 0.7;
}

.btn-quiet {
  background: var(--glass);
  border: 1px solid var(--hairline);
  color: var(--ink);
  backdrop-filter: blur(10px);
}

.btn-quiet:hover {
  background: var(--glass-strong);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

/* --- Trust row --- */

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.6rem;
  font-size: 0.86rem;
  color: var(--ink-mute);
}

.trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.trust i {
  color: var(--amber);
  font-size: 0.85rem;
}

/* --- Scroll cue --- */

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.8rem;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--ink-mute);
  transition: color 0.25s ease;
}

.scroll-cue:hover {
  color: var(--ink);
}

.scroll-cue i {
  animation: bob 2.2s ease-in-out infinite;
}

@keyframes bob {

  0%,
  100% {
    transform: translateY(0);
    opacity: 0.6;
  }

  50% {
    transform: translateY(5px);
    opacity: 1;
  }
}

/* ==========================================================================
   PANELS
   ========================================================================== */

.panel {
  position: relative;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
  background: linear-gradient(180deg, rgba(26, 14, 41, 0.55) 0%, rgba(26, 14, 41, 0.9) 100%);
  border-top: 1px solid var(--hairline-soft);
  backdrop-filter: blur(6px);
}

.panel-head {
  text-align: center;
  max-width: 48ch;
  margin: 0 auto clamp(2.2rem, 4vw, 3.2rem);
}

.panel-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.6vw, 2.6rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.6px;
  color: var(--ink);
  margin-bottom: 0.6rem;
}

.panel-sub {
  color: var(--ink-mute);
  font-size: 1rem;
}

/* --- Cards --- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.1rem;
}

.card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--glass);
  border: 1px solid var(--hairline);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.26);
  box-shadow: var(--lift);
}

.card-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--plum-mid);
}

.card-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 14, 41, 0) 45%, rgba(26, 14, 41, 0.6) 100%);
}

.card-media img {
  --zoom: 1;
  --pan-x: 0%;
  --pan-y: 0%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(var(--zoom)) translate(var(--pan-x), var(--pan-y));
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Per-image framing. Each crop zooms onto the subject and pans the stock
   photos' own product branding out of frame. */
.card:nth-child(1) .card-media img {
  --zoom: 2.2;
  --pan-y: -8%;
}

.card:nth-child(2) .card-media img {
  --zoom: 2.2;
  --pan-y: -8%;
}

.card:nth-child(3) .card-media img {
  --zoom: 1.5;
  --pan-x: 4%;
}

.card:hover .card-media img {
  transform: scale(calc(var(--zoom) * 1.06)) translate(var(--pan-x), var(--pan-y));
}

.card-body {
  padding: 1.3rem 1.4rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.card-tag {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.tag-amber {
  background: rgba(247, 134, 40, 0.16);
  color: var(--amber-light);
}

.tag-mint {
  background: rgba(74, 214, 164, 0.15);
  color: var(--mint);
}

.tag-plum {
  background: rgba(157, 123, 209, 0.18);
  color: var(--plum-light);
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.17rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
}

.card p {
  font-size: 0.9rem;
  color: var(--ink-mute);
  line-height: 1.6;
}

.card-feature {
  background:
    linear-gradient(145deg, rgba(86, 48, 139, 0.55) 0%, rgba(43, 23, 66, 0.6) 100%),
    var(--glass);
  justify-content: center;
}

.card-feature .card-body {
  padding: 1.9rem 1.5rem;
  gap: 0.7rem;
}

.card-note {
  margin-top: 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--amber-light);
}

/* --- Closing band --- */

.panel-close {
  text-align: center;
}

.closing {
  max-width: 720px;
}

.quote-mark {
  font-size: 1.5rem;
  color: var(--amber);
  opacity: 0.55;
  margin-bottom: 1rem;
  display: inline-block;
}

.motto {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 400;
  line-height: 1.45;
  color: var(--ink);
  margin-bottom: 1rem;
}

.closing-sub {
  color: var(--ink-mute);
  font-size: 0.97rem;
  margin-bottom: 1.9rem;
}

/* --- Footer --- */

.site-foot {
  position: relative;
  padding: 1.6rem 0 2.2rem;
  background: rgba(16, 8, 26, 0.9);
  border-top: 1px solid var(--hairline-soft);
}

.foot-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-mute);
}

.foot-dot {
  opacity: 0.4;
}

/* ==========================================================================
   REVEAL ON SCROLL
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Staggered entrance for grouped children */
.cards .reveal:nth-child(2) {
  transition-delay: 0.08s;
}

.cards .reveal:nth-child(3) {
  transition-delay: 0.16s;
}

.cards .reveal:nth-child(4) {
  transition-delay: 0.24s;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

/* Short laptop screens: keep the hero inside one viewport */
@media (min-width: 861px) and (max-height: 880px) {
  .hero {
    padding-top: 1rem;
    padding-bottom: 4rem;
  }

  .lede-sub {
    margin-bottom: 1.4rem;
  }

  .countdown {
    margin-bottom: 1.3rem;
  }

  .actions {
    margin-bottom: 1.3rem;
  }
}

@media (max-width: 860px) {
  .hero {
    min-height: auto;
    padding-bottom: 6rem;
  }

  .display {
    max-width: none;
    letter-spacing: -0.8px;
  }

  .countdown {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .topbar {
    padding-top: 1rem;
  }

  .lockup-mark {
    width: 46px;
    height: 46px;
  }

  .lockup-name {
    font-size: 1.22rem;
  }

  .status-pill {
    font-size: 0.7rem;
    padding: 0.35rem 0.7rem;
  }

  .countdown {
    padding: 1.1rem 1rem 1.2rem;
  }

  .countdown-grid {
    gap: 0.4rem;
  }

  .unit {
    padding: 0.65rem 0.2rem 0.55rem;
  }

  .unit-name {
    font-size: 0.56rem;
    letter-spacing: 0.6px;
  }

  .actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .trust {
    flex-direction: column;
    gap: 0.5rem;
  }

  .scroll-cue {
    display: none;
  }

  /* Frame the backdrop on the animals, away from the shelving */
  .backdrop-img {
    object-position: 42% 78%;
    transform: scale(1.3);
    filter: saturate(0.85) contrast(1.02) blur(7px);
  }
}

/* ==========================================================================
   MOTION & PRINT PREFERENCES
   ========================================================================== */

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

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

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