/* ============================================================
   CELL 3 · House Favorites Worth Leaving Home For (PEAK)
   data-bg=paper · density DENSE · the APPETITE PEAK.

   The biggest, boldest food moment on the page: five LARGE editorial
   plate tickets in a row, teal/marigold alternating, each a tall
   ticket-framed plate with a real notched order-slip frame + icon-chip
   label. This section OWNS the largest plate scale (C5) — plates are
   the hero. Foot: a VARIED order-slip band (C6 — earns variation).

   Scope: EVERY rule is prefixed #cell-3 (shared surfaces are locked).
   Reuses shared primitives: .eyebrow(--lined) .em .display .star-div
   .frame .btn .amb-sun .amb-pulse .amb-perf .lift [data-motion-depth].
   ============================================================ */

/* the section is DENSE — tighten the vertical breathing a touch under
   the global --section-pad so the head + 5 plates + band fit ~1 viewport. */
#cell-3.section { padding-block: clamp(3.75rem, 2.6rem + 5.5vw, 7rem); }

#cell-3 .c3 { display: grid; gap: clamp(1.6rem, 1rem + 2.2vw, 2.75rem); }

/* ---- section head — centered appetite headline signature ---- */
#cell-3 .c3__head {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: var(--space-xs);
}
#cell-3 .c3__eyebrow {
  color: var(--teal-deep);          /* teal eyebrow to echo the tile's lined lead */
  margin-bottom: var(--space-2xs);
}
#cell-3 .c3__title {
  font-family: var(--font-display);
  font-size: var(--step-section);   /* H2A — the shared section size (not a 4th size) */
  line-height: 1.0;
  color: var(--ink);
  display: grid;
  gap: 0.06em;
}
#cell-3 .c3__title-1 { color: var(--ink); }
#cell-3 .c3__title-2 { display: block; }      /* .em handles the marigold italic + period */
#cell-3 .c3__star {
  font-size: 1.05rem;
  margin-block: 0.15rem 0.1rem;
}
#cell-3 .c3__sub {
  max-width: 52ch;
  color: var(--ink-soft);
  font-size: var(--step-0);
  line-height: var(--leading-body);
}

/* ============================================================
   THE FIVE PLATE TICKETS — the appetite wall.
   A warm ambient glow lives on the row (.amb-sun sheen) + a soft radial
   warmth behind the plates so they read glowing at rest (C4/aliveness).
   ============================================================ */
#cell-3 .c3__plates {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(0.9rem, 0.5rem + 1.5vw, 1.75rem);
  align-items: stretch;
  border-radius: calc(var(--radius) + 6px);
}
/* a soft warm bed of light behind the plate row — glowing, at rest */
#cell-3 .c3__plates::before {
  content: "";
  position: absolute;
  inset: -6% -3% -10% -3%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 30%, rgba(255, 236, 205, 0.55), transparent 62%),
    radial-gradient(90% 80% at 50% 92%, var(--marigold-soft), transparent 60%);
  filter: blur(2px);
}

/* ---- one plate ticket ---- */
#cell-3 .c3-plate {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 0.7rem;
  padding: 0.8rem 0.8rem 1rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--paper-line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.5), transparent 44%),
    var(--paper-raised);
  box-shadow: var(--shadow-soft);
  color: var(--ink);
  /* .lift (motion.css, hover-capable only) handles the hover rise+scale;
     add a resting outline shift so the two accent families read designed */
  transition:
    transform 320ms var(--ease-out),
    box-shadow 320ms var(--ease-out),
    border-color 320ms var(--ease-out);
}
/* alternating accent outline — teal / marigold (the ticket motif rhythm) */
#cell-3 .c3-plate--teal { border-color: rgba(76, 181, 200, 0.55); }
#cell-3 .c3-plate--clay { border-color: rgba(201, 114, 59, 0.5); }
#cell-3 .c3-plate--teal:hover { border-color: rgba(76, 181, 200, 0.8); }
#cell-3 .c3-plate--clay:hover { border-color: rgba(201, 114, 59, 0.78); }

/* PEAK layout — 3-over-2 at desktop so each plate is WIDE + mouth-watering.
   5-across crushed each plate narrow (< cell-2 tiles / cell-4 cards); this
   makes the favorites row the page's clear hunger climax (C5 / T2.1). The
   6-col track lets the bottom pair center under the top three. */
#cell-3 .c3-plate { grid-column: span 2; }                    /* 3 per 6-col row */
#cell-3 .c3-plate:nth-child(4) { grid-column: 2 / span 2; }   /* row 2 — centered pair */
#cell-3 .c3-plate:nth-child(5) { grid-column: 4 / span 2; }

/* real punched order-slip perforation notches at the bottom seam — the
   ticket reads as a genuine torn ticket, not a flat bar (kill-gate lesson) */
#cell-3 .c3-plate__notch {
  position: absolute;
  bottom: -2px;
  width: 26px;
  height: 13px;
  background: var(--base);          /* the page canvas, punched out of the ticket */
  border: 2px solid var(--paper-line);
  border-radius: 0 0 26px 26px;
  border-top: 0;
  /* an inner shadow makes each bite read as a CONFIDENT punched half-circle,
     not the timid dirt-speck horns the audit flagged (T2.23) */
  box-shadow: inset 0 3px 5px -2px rgba(59, 46, 40, 0.22);
  z-index: 2;
  pointer-events: none;
}
#cell-3 .c3-plate__notch--l { left: 26%; }
#cell-3 .c3-plate__notch--r { right: 26%; }
/* notch inherits the ticket's accent border tint */
#cell-3 .c3-plate--teal .c3-plate__notch { border-color: rgba(76, 181, 200, 0.55); }
#cell-3 .c3-plate--clay .c3-plate__notch { border-color: rgba(201, 114, 59, 0.5); }

/* ---- icon-chip label at the top of each ticket ---- */
#cell-3 .c3-plate__label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  min-height: 2.1rem;
}
#cell-3 .c3-plate__chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  color: var(--paper-raised);
}
#cell-3 .c3-plate__chip--teal { background: var(--teal-deep); }   /* cream glyph on deep teal — AA-safe */
#cell-3 .c3-plate__chip--clay { background: var(--support-deep); }/* cream glyph on deep marigold — AA-safe */
#cell-3 .c3-plate__label-text {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  line-height: 1.05;
  white-space: nowrap;              /* keep labels one line — wrap parity across peers */
}
#cell-3 .c3-plate__label-text--teal { color: var(--teal-deep); }
#cell-3 .c3-plate__label-text--clay { color: var(--support-deep); }

/* ---- the tall plate photo — the hero, large + editorial ---- */
#cell-3 .c3-plate__frame {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3.35;           /* wide editorial plate — the PEAK dominates (was 3/3.9, too narrow at 5-across) */
  border-radius: calc(var(--radius) - 3px);
  overflow: hidden;
}
#cell-3 .c3-plate__frame > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;         /* keep the plate centered, exclude dark surrounds */
  /* bright daytime grade — warm, edible, glowing (DESIGN.md photo treatment) */
  filter: saturate(1.06) contrast(1.03) brightness(1.03);
  transition: transform 520ms var(--ease-out);
}
/* the latte sits centered in-frame; nudge to the food */
#cell-3 .c3-plate:nth-child(5) .c3-plate__frame > img { object-position: 50% 50%; }
@media (hover: hover) {
  #cell-3 .c3-plate:hover .c3-plate__frame > img { transform: scale(1.045); }
}

/* pointer-following warm "sunlight on the plate" spot (JS sets --spot-x/y,
   .is-spot toggled on pointerenter/leave). Presentational only, hover-gated. */
#cell-3 .c3-plate__frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 260ms var(--ease-out);
  background: radial-gradient(
    120px 120px at var(--spot-x, 50%) var(--spot-y, 40%),
    rgba(255, 244, 222, 0.42),
    transparent 70%);
  mix-blend-mode: screen;
}
@media (hover: hover) {
  #cell-3 .c3-plate.is-spot .c3-plate__frame::after { opacity: 1; }
}

/* ============================================================
   FOOT BAND — a VARIED order-slip band (C6: not the stamped default).
   Left: teal star + Portland stub · center: kitchen note · right: the
   marigold VIEW MENU. A dashed perf rule separates stub from note.
   ============================================================ */
#cell-3 .c3__band {
  position: relative;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: clamp(1rem, 0.5rem + 1.6vw, 2rem);
  padding: clamp(0.9rem, 0.6rem + 0.8vw, 1.4rem) clamp(1.1rem, 0.7rem + 1.2vw, 2rem);
  border-radius: var(--radius);
  border: 1px dashed var(--paper-line-strong);   /* dashed = order-slip band, not a solid bar */
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.4), transparent 46%),
    var(--paper-raised);
  box-shadow: var(--shadow-soft);
}
#cell-3 .c3__band-stub {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  white-space: nowrap;
}
#cell-3 .c3__band-star { color: var(--accent); font-size: 1rem; }
#cell-3 .c3__band-place {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--teal-deep);
}
#cell-3 .c3__band-perf {
  width: 1px;
  align-self: stretch;
  margin-block: 0.15rem;
  background-image: linear-gradient(var(--paper-line-strong) 55%, transparent 0);
  background-size: 1px 8px;         /* vertical dashed perforation */
  background-repeat: repeat-y;
}
#cell-3 .c3__band-note {
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.42;
}
#cell-3 .c3__band-btn { justify-self: end; }

/* ============================================================
   RESPONSIVE — desktop RECOMPOSED, not squished (T2.31 / DESIGN.md).
   ============================================================ */

/* narrower desktop / small laptop — keep 5 across but tighten labels */
@media (max-width: 1180px) {
  #cell-3 .c3-plate__label-text { font-size: 0.72rem; letter-spacing: 0.07em; }
  #cell-3 .c3-plate__chip { width: 1.9rem; height: 1.9rem; }
}

/* tablet — re-grid to a controlled 3+2 on a 6-col track */
@media (max-width: 900px) {
  #cell-3 .c3__plates { grid-template-columns: repeat(6, 1fr); }
  #cell-3 .c3-plate { grid-column: span 2; }
  /* last row of two centered under a 6-col track */
  #cell-3 .c3-plate:nth-child(4) { grid-column: 2 / span 2; }
  #cell-3 .c3-plate:nth-child(5) { grid-column: 4 / span 2; }
  #cell-3 .c3-plate__frame { aspect-ratio: 3 / 3.4; }
  #cell-3 .c3-plate__label-text { font-size: 0.82rem; letter-spacing: 0.09em; }
  #cell-3 .c3-plate__chip { width: 2.1rem; height: 2.1rem; }
  /* band stacks its note + button below the stub */
  #cell-3 .c3__band {
    grid-template-columns: auto 1fr;
    grid-auto-rows: auto;
    row-gap: 0.9rem;
  }
  #cell-3 .c3__band-perf { display: none; }
  #cell-3 .c3__band-note { grid-column: 1 / -1; }
  #cell-3 .c3__band-btn { grid-column: 1 / -1; justify-self: start; }
}

/* phone — the favorites wall re-grids to a clean 2-up (recomposed, not
   stacked to endless scroll); the drink closes the grid centered. */
@media (max-width: 560px) {
  /* headline stays a tight, controlled block (never an incidental 3rd line) */
  #cell-3 .c3__title { font-size: clamp(1.7rem, 1.2rem + 4.4vw, 2.2rem); }

  #cell-3 .c3__plates { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
  #cell-3 .c3-plate,
  #cell-3 .c3-plate:nth-child(4),
  #cell-3 .c3-plate:nth-child(5) { grid-column: auto; }
  #cell-3 .c3-plate:nth-child(5) { grid-column: 1 / -1; max-width: 62%; margin-inline: auto; }
  #cell-3 .c3-plate:nth-child(5) .c3-plate__frame { aspect-ratio: 3 / 2.6; }
  #cell-3 .c3-plate__frame { aspect-ratio: 3 / 3.3; }
  #cell-3 .c3-plate__notch { width: 13px; }

  /* label stacks vertically (chip over text) so nothing clips in a 2-up card;
     every plate does this identically — parity preserved (T2.2). */
  #cell-3 .c3-plate__label {
    flex-direction: column;
    gap: 0.35em;
    min-height: 0;
    padding-block: 0.1rem 0.15rem;
  }
  #cell-3 .c3-plate__label-text {
    white-space: normal;
    text-align: center;
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    line-height: 1.15;
  }
  #cell-3 .c3-plate__chip { width: 1.9rem; height: 1.9rem; }

  #cell-3 .c3__band { padding: 1rem 1.1rem; text-align: left; }
  #cell-3 .c3__band-btn { width: 100%; justify-content: center; }
}

/* ---- reduced-motion floor (belt-and-suspenders; ambient early-returns in JS) ---- */
@media (prefers-reduced-motion: reduce) {
  #cell-3 .c3-plate,
  #cell-3 .c3-plate__frame > img { transition: none; }
}
