/* Kitchen Command landing page — "Modern Organic Editorial".
   High-contrast serif display, warm paper base, sage accents, generous space. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #F7F5EB;   /* warm cream paper */
  --bg-alt:      #F0EDE1;   /* secondary background */
  --surface:     #FCFBF4;   /* card / raised */
  --ink:         #202A2D;   /* deep charcoal text */
  --ink-soft:    #4B565A;   /* muted charcoal */
  --ink-faint:   #8A938E;   /* sage-gray for fine print */
  --sage:        #CBD0B5;   /* accent fill */
  --sage-deep:   #AAB28C;   /* deeper sage for strokes / hover */
  --border:      #E3DECF;   /* warm hairline */
  --serif:       'DM Serif Display', Georgia, 'Times New Roman', serif;
  --sans:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --hand:        'Reenie Beanie', 'Comic Sans MS', cursive;
  --maxw:        1180px;
  --r-lg:        56px;
  --r-md:        40px;
  --r-pill:      999px;
}

html { scroll-behavior: smooth; }
body {
  position: relative;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
/* Fixed paper-noise overlay so the palette never reads flat / digital. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 2; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* shared bits */
.serif { font-family: var(--serif); font-weight: 400; }
.label {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.hand { font-family: var(--hand); font-size: 30px; line-height: 1; color: var(--ink-soft); }

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: var(--r-pill);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.4s ease, color 0.4s ease, transform 0.4s cubic-bezier(0.22,1,0.36,1), box-shadow 0.4s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover {
  background: var(--sage);
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(32, 42, 45, 0.16);
}
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

/* ── NAV ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  padding: 0 clamp(20px, 4vw, 48px);
  background: rgba(247, 245, 235, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; transition: transform 0.4s ease; }
.brand:hover .brand-logo { transform: rotate(-8deg) scale(1.05); }
.brand-logo.small { width: 26px; height: 26px; }
.brand-name { font-family: var(--serif); font-size: 22px; letter-spacing: 0.01em; }
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links > a:not(.btn) {
  position: relative;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  transition: color 0.3s ease;
}
.nav-links > a:not(.btn):hover { color: var(--ink); }
.nav-links > a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 1.5px;
  background: var(--sage-deep);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.nav-links > a:not(.btn):hover::after { transform: scaleX(1); }
.nav .btn { padding: 12px 26px; }

/* ── HERO ── */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(80px, 13vw, 170px) clamp(20px, 4vw, 48px) clamp(60px, 9vw, 110px);
}
.hero-inner { max-width: 1000px; }
.eyebrow {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 30px;
}
.eyebrow.center { text-align: center; }
.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(52px, 9.5vw, 132px);
  line-height: 0.95;
  letter-spacing: -0.015em;
  margin-bottom: 36px;
}
.hero-title .line-italic { font-style: italic; display: block; }
/* word with the hand-drawn underline */
.underline { position: relative; white-space: nowrap; }
.underline svg {
  position: absolute;
  left: 0; right: 0; bottom: -0.12em;
  width: 100%; height: 0.32em;
  overflow: visible;
}
.hero-sub {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(18px, 2.2vw, 23px);
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 650px;
  margin-bottom: 40px;
}
.hero-annot {
  display: inline-flex;
  align-items: flex-start;
  gap: 6px;
  margin: -8px 0 30px;
  color: var(--ink-soft);
}
.hero-annot .hand { transform: rotate(-4deg); }
.hero-annot svg { width: 26px; height: 26px; margin-top: 6px; color: var(--sage-deep); }

/* ── WAITLIST FORM ── */
.waitlist {
  display: flex;
  gap: 12px;
  max-width: 540px;
  flex-wrap: wrap;
}
.waitlist.center { margin: 0 auto; justify-content: center; }
.waitlist-input {
  flex: 1 1 260px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 15px 24px;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.waitlist-input:focus { border-color: var(--sage-deep); box-shadow: 0 0 0 4px rgba(203, 208, 181, 0.35); }
.waitlist-input::placeholder { color: var(--ink-faint); }
.waitlist-note { font-size: 13px; color: var(--ink-faint); margin-top: 16px; }
.waitlist-note.center { text-align: center; }
.waitlist-note.is-success { color: var(--sage-deep); }
.waitlist-note.is-error { color: #b8503a; }

/* ── HERO IMAGE BLOCK ── */
.hero-image {
  padding: 0 clamp(20px, 4vw, 48px);
  margin-bottom: clamp(100px, 14vw, 180px);
}
.hero-image-frame {
  position: relative;
  height: 80vh;
  max-height: 760px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--ink) url('/kitchen-hero.png') center / cover no-repeat;
}
.hero-image-frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(32,42,45,0.7) 0%, rgba(32,42,45,0) 55%);
}
.hero-image-overlay {
  position: absolute;
  left: clamp(24px, 4vw, 56px);
  bottom: clamp(28px, 4vw, 56px);
  z-index: 1;
  color: #F7F5EB;
}
.hero-image-overlay .rule { width: 48px; height: 2px; background: var(--sage); margin-bottom: 18px; }
.hero-image-overlay .label { color: rgba(247, 245, 235, 0.8); }
.hero-image-overlay .ttl {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(34px, 5vw, 72px);
  line-height: 1.0;
  margin-top: 10px;
  max-width: 16ch;
}

/* ── SECTION BANDS ── */
.band {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 48px) clamp(100px, 14vw, 180px);
}
.band-inner { max-width: var(--maxw); margin: 0 auto; }
.band-inner.narrow { max-width: 820px; }
.center { text-align: center; }
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 5.2vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.01em;
  max-width: 18ch;
  margin: 0 0 26px;
}
.section-title.center { margin-left: auto; margin-right: auto; }
.section-lead {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 64ch;
}
.band-inner.narrow .section-lead { margin: 0 auto 36px; }

/* ── STEPS (process) ── */
.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 64px;
}
.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 40px 34px;
  transition: transform 0.5s cubic-bezier(0.22,1,0.36,1), box-shadow 0.5s ease;
}
.step:hover { transform: translateY(-6px); box-shadow: 0 22px 50px rgba(32,42,45,0.1); }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: var(--r-pill);
  background: var(--sage);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 24px;
  margin-bottom: 24px;
}
.step-title { font-family: var(--serif); font-size: 26px; font-weight: 400; margin-bottom: 12px; }
.step-body { color: var(--ink-soft); font-size: 16px; font-weight: 300; }

/* ── FEATURES ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
}
.feature {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 36px 32px;
  transition: background 0.5s ease, color 0.5s ease, transform 0.5s cubic-bezier(0.22,1,0.36,1);
}
/* Philosophy-card behaviour: invert theme on hover. */
.feature:hover { background: var(--ink); color: #F7F5EB; transform: translateY(-4px); }
.feature:hover .feature-body { color: rgba(247,245,235,0.78); }
.feature-title {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.feature-title::before {
  content: '';
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--sage-deep);
  transition: transform 0.4s ease;
}
.feature:hover .feature-title::before { transform: scale(1.5); background: var(--sage); }
.feature-body { color: var(--ink-soft); font-size: 16px; font-weight: 300; transition: color 0.5s ease; }

/* ── CTA CARD ── */
.cta { padding: 0 clamp(20px, 4vw, 48px) clamp(100px, 14vw, 180px); }
.cta-card {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  background: var(--sage);
  border-radius: var(--r-md);
  padding: clamp(60px, 9vw, 110px) clamp(28px, 5vw, 80px);
  text-align: center;
  overflow: hidden;
}
/* soft white glow at the top */
.cta-card::before {
  content: '';
  position: absolute;
  top: -160px; left: 50%;
  transform: translateX(-50%);
  width: 460px; height: 320px;
  background: rgba(255,255,255,0.6);
  filter: blur(120px);
  pointer-events: none;
}
.cta-card > * { position: relative; }
.cta-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 6vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 20px;
}
.cta-lead { font-weight: 300; font-size: clamp(17px, 2vw, 20px); color: #3c4a3a; max-width: 56ch; margin: 0 auto 40px; }
.cta .waitlist-input { background: rgba(255,255,255,0.85); border-color: rgba(32,42,45,0.12); }
.cta .waitlist-note { color: #3c4a3a; }
.cta-card .btn-primary:hover { background: var(--bg); color: var(--ink); }

/* ── FOOTER ── */
.footer { background: var(--bg-alt); padding: clamp(56px, 8vw, 90px) clamp(20px, 4vw, 48px) 40px; border-top: 1px solid var(--border); }
.footer-top {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 30px;
  flex-wrap: wrap;
  padding-bottom: 48px;
}
.footer-brand-block { max-width: 460px; }
.footer-logo-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo-row .brand-name { font-size: 26px; }
.footer-tagline { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 3vw, 34px); line-height: 1.15; color: var(--ink-soft); }
.footer-links { display: flex; flex-direction: column; gap: 14px; }
.footer-links a { font-size: 10px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-soft); transition: color 0.3s ease; }
.footer-links a:hover { color: var(--ink); }
.footer-bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  border-top: 1px solid var(--border);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .steps, .feature-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 18px; }
  .nav-links > a:not(.btn) { display: none; }
  .hero-image-frame { height: 60vh; }
}

/* ── ANIMATIONS ── */
@media (prefers-reduced-motion: no-preference) {
  body.anim-ready .reveal { opacity: 0; transform: translateY(20px); }
  body.anim-ready .reveal.in {
    opacity: 1;
    transform: none;
    transition: opacity 0.8s ease-out, transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  }
  body.anim-ready .reveal[data-delay="1"].in { transition-delay: 0.1s; }
  body.anim-ready .reveal[data-delay="2"].in { transition-delay: 0.2s; }

  .hero-inner > * { animation: hero-in 0.8s ease-out both; }
  .hero-inner > *:nth-child(1) { animation-delay: 0.05s; }
  .hero-inner > *:nth-child(2) { animation-delay: 0.15s; }
  .hero-inner > *:nth-child(3) { animation-delay: 0.25s; }
  .hero-inner > *:nth-child(4) { animation-delay: 0.35s; }
  .hero-inner > *:nth-child(5) { animation-delay: 0.45s; }
  @keyframes hero-in {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: none; }
  }
  /* grayscale "archival" images that bloom on hover */
  .grayscale-img { filter: grayscale(100%); transition: filter 2000ms ease-out, transform 2000ms ease-out; }
  .grayscale-img:hover { filter: grayscale(0%); transform: scale(1.05); }
}
