/* ==========================================================================
   2sday — editorial landing page
   ========================================================================== */

:root {
  --ink: #0b0b0b;
  --paper: #f4f2ee;
  --white: #ffffff;
  --mute: #6f6c66;
  --line: #0b0b0b;
  --pink: #ff2d87;
  --pink-deep: #c80f5c; /* accent on light-pink surfaces, where --pink is too faint */
  --pink-wash: #ffe4ef;

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --section-y: clamp(70px, 10vw, 144px); /* space above/below each content section; hero + video card are full-height and don't use it */
  --ease: cubic-bezier(.2, .7, .1, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, iframe { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }

::selection { background: var(--pink); color: var(--white); }

.accent { color: var(--pink); }

em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  padding: 18px 34px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .01em;
  text-decoration: none;
  border: 1.5px solid currentColor;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn--solid { background: var(--pink); border-color: var(--pink); color: var(--white); }
.btn--solid:hover { background: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); border-color: var(--ink); color: var(--white); }
.btn--sm { padding: 12px 20px; font-size: 13px; }

:focus-visible { outline: 2px solid var(--pink); outline-offset: 3px; }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px var(--gutter);
  color: var(--ink);
  transition: color .25s var(--ease);
}
.nav.is-on-dark { color: var(--white); }
.nav__logo {
  font-weight: 900;
  font-size: 20px;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.nav__links { display: flex; gap: clamp(16px, 3vw, 36px); }
.nav__links a {
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  text-decoration: none;
}
.nav__links a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 1. Hero ---------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 120px var(--gutter) clamp(48px, 8vw, 96px);
  color: var(--white);
  background: var(--ink);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  /* Photo is already blurred; position keeps the faces in frame as `cover` crops */
  background: #111 url("assets/hero.jpg") 50% 30% / cover no-repeat;
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  /* Clear over the faces, darker behind the headline and buttons */
  background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.6) 100%);
}
.hero__inner { position: relative; width: 100%; }
.hero__inner > .label { opacity: .7; margin-bottom: 28px; }
.hero__title {
  margin: 0 0 clamp(32px, 5vw, 56px);
  font-weight: 900;
  font-size: clamp(52px, 11vw, 188px);
  line-height: .88;
  letter-spacing: -0.055em;
  text-transform: lowercase;
}
.hero__title em {
  color: var(--pink);
  font-size: 1.08em;
  letter-spacing: -0.03em;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__actions .btn--ghost { color: var(--white); }
.hero__actions .btn--ghost:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.hero__scroll {
  position: absolute;
  right: var(--gutter);
  bottom: clamp(48px, 8vw, 96px);
  opacity: .6;
  writing-mode: vertical-rl;
}

/* ---------- 2. Video card ---------- */

.vcard {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-columns: min(504px, 100%);
  place-content: center;
  justify-items: start;
  row-gap: clamp(20px, 3vw, 32px);
  padding: var(--gutter);
  overflow: hidden;
  isolation: isolate;
  background: var(--paper);
  --hint-dur: 2.2s; /* one-shot timeline shared by the hint cursor, tap ripple and button press */
}
/* Layers, bottom to top: footage, paper wash, pink wash, card */
.vcard__video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vcard::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(244, 242, 238, .28);
}
.vcard__bg {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  /* Square larger than the section's diagonal so corners stay covered while it rotates */
  width: 160vmax;
  height: 160vmax;
  background:
    conic-gradient(from 0deg,
      rgba(255,45,135,.4), rgba(255,45,135,0) 22%,
      rgba(255,45,135,.18) 45%, rgba(255,45,135,0) 65%,
      rgba(255,45,135,.3) 85%, rgba(255,45,135,.4));
  mix-blend-mode: multiply;
  filter: blur(60px);
  transform: translate(-50%, -50%);
  animation: spin 18s linear infinite;
}
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.vcard__card {
  position: relative;
  width: min(504px, 100%);
  aspect-ratio: 1.75 / 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 26px 29px;
  text-align: left;
  z-index: 3;
  /* Warm fibrous grain (SVG noise, stretched horizontally) over ink = craft-paper feel */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.6 .16' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .96 0 0 0 0 .9 0 0 0 0 .82 .22 0 0 0 -.07'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E") 0 0 / 240px 240px, var(--ink);
  color: var(--paper);
  border: 0;
  cursor: pointer;
  /* Layered shadow: tight contact shadow + wide soft lift */
  box-shadow:
    0 2px 4px rgba(11,11,11,.14),
    0 16px 32px -10px rgba(11,11,11,.32),
    0 44px 80px -24px rgba(11,11,11,.38);
  transform: rotate(-3deg);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.vcard__card .label { color: rgba(244,242,238,.6); font-size: 13px; }
.vcard__card .vcard__hint {
  color: var(--paper);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .18em;
}
.vcard__top, .vcard__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.vcard__name {
  font-weight: 900;
  font-size: clamp(53px, 10.8vw, 86px);
  letter-spacing: -0.06em;
  line-height: 1;
}
/* Play button + its effects. While .vcard.is-hinting, one --hint-dur timeline
   drives the hint cursor, the tap ripple and the button "press" (press at 60%). */
.vcard__cta {
  position: relative;
  width: 53px;
  height: 53px;
}
.vcard__play {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 53px;
  height: 53px;
  border-radius: 50%;
  background: var(--pink);
  color: var(--white);
}
/* Ping: two staggered rings expanding out of the button, always on */
.vcard__play::before,
.vcard__play::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
  background: var(--pink);
  animation: ping 2.4s cubic-bezier(0, 0, .2, 1) infinite;
}
.vcard__play::after { animation-delay: 1.2s; }
@keyframes ping {
  0%        { transform: scale(1);   opacity: .45; }
  80%, 100% { transform: scale(2.1); opacity: 0; }
}
@keyframes ping-strong {
  0%        { transform: scale(1);   opacity: .7; }
  80%, 100% { transform: scale(2.5); opacity: 0; }
}
@keyframes press {
  0%, 58%, 68%, 100% { transform: scale(1); }
  61%                { transform: scale(.88); }
}

/* Pixel tap-hint cursor. Lives on the section, not the card: its top-left
   (the arrow tip) is placed on the play button's center by JS, which also sets
   --dx/--dy = offset to the start point just off the card's right edge. */
.vcard__cursor {
  position: absolute;
  z-index: 4;
  left: var(--end-x, 50%);
  top: var(--end-y, 50%);
  color: var(--pink);
  filter: drop-shadow(0 2px 0 rgba(11,11,11,.18));
  transform-origin: 0 0;
  pointer-events: none;
  opacity: 0;
}
.vcard.is-hinting .vcard__cursor { animation: ghost var(--hint-dur) both; }
@keyframes ghost {
  /* appear off the card's edge, pause, glide to the button */
  0%        { opacity: 0; transform: translate(var(--dx, 0), var(--dy, 0)); }
  10%       { opacity: 1; transform: translate(var(--dx, 0), var(--dy, 0)); animation-timing-function: cubic-bezier(.5, 0, .2, 1); }
  50%       { color: var(--pink); }
  /* over the pink button: flip to paper so it doesn't vanish */
  53%       { color: var(--paper); }
  55%       { transform: translate(0, 0); }
  60%       { transform: translate(0, 0) scale(.82); }
  67%       { transform: translate(0, 0) scale(1); }
  75%       { opacity: 1; transform: translate(0, 0); color: var(--paper); }
  100%      { opacity: 0; transform: translate(6px, 6px); color: var(--paper); }
}
/* Tap ripple: a thin paper ring bursting from the button on the "click" */
.vcard__tap {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--paper);
  pointer-events: none;
  opacity: 0;
}
.vcard.is-hinting .vcard__tap  { animation: tap var(--hint-dur) both; }
.vcard.is-hinting .vcard__play { animation: press var(--hint-dur) both; }
@keyframes tap {
  0%, 59%   { opacity: 0;  transform: scale(.6); }
  60%       { opacity: .9; transform: scale(.7); }
  85%, 100% { opacity: 0;  transform: scale(1.9); }
}

/* Live: after the (fake or real) click the card straightens, then the muted
   preview fades in over the card face, then the sound cue appears */
.vcard__card.is-live {
  transform: none;
  transition: transform .6s var(--ease), box-shadow .5s var(--ease);
}
.vcard__card.is-live .vcard__play::before,
.vcard__card.is-live .vcard__play::after { animation: none; opacity: 0; }
.vcard__screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--ink);
  opacity: 0;
  transition: opacity .7s var(--ease);
  pointer-events: none;
}
.vcard__screen.is-shown { opacity: 1; }
.vcard__sound {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px 7px 10px;
  background: rgba(11,11,11,.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 1s var(--ease), transform 1s var(--ease), background .25s var(--ease);
  pointer-events: none;
}
.vcard__card.has-cue .vcard__sound { opacity: .85; transform: none; }

/* Keyboard focus gets the lift too; hover only where a real pointer exists.
   Once live the card stays upright, so the lift drops the rotation. */
.vcard__card:focus-visible {
  transform: rotate(-1deg) translateY(-6px) scale(1.03);
}
.vcard__card.is-live:focus-visible { transform: translateY(-4px) scale(1.02); }
@media (hover: hover) {
  .vcard__card:hover {
    transform: rotate(-1deg) translateY(-6px) scale(1.03);
    box-shadow:
      0 4px 8px rgba(11,11,11,.14),
      0 26px 44px -12px rgba(11,11,11,.36),
      0 60px 110px -24px rgba(255,45,135,.45);
  }
  .vcard__card:hover .vcard__play::before,
  .vcard__card:hover .vcard__play::after { animation-name: ping-strong; animation-duration: 1.6s; }
  .vcard__card:hover .vcard__play::after { animation-delay: .8s; }
  /* The visitor is already there, so retire the onboarding hint */
  .vcard:has(.vcard__card:hover) .vcard__cursor,
  .vcard__card:hover .vcard__tap { visibility: hidden; }
  .vcard__card.is-live:hover { transform: translateY(-4px) scale(1.02); }
  .vcard__card.has-cue:hover .vcard__sound { opacity: 1; background: var(--pink); }
}

/* ---------- Section scaffolding ---------- */

.section { padding: var(--section-y) var(--gutter); }
.section__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  padding-bottom: 20px;
  margin-bottom: clamp(40px, 6vw, 72px);
  border-bottom: 1.5px solid var(--line);
}
.section__title {
  margin: 0;
  font-weight: 900;
  font-size: clamp(48px, 9vw, 140px);
  line-height: .9;
  letter-spacing: -0.055em;
}
.section__title em { color: var(--pink); }

/* ---------- 3. Portfolio ---------- */

.tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 20px clamp(24px, 4vw, 52px);
  margin-bottom: clamp(32px, 5vw, 56px);
}
.tabs__item { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
/* Descriptive line under each category name: plain text, not part of the button */
.tab__sub {
  margin: 0;
  font-size: 13px;
  line-height: 1.35;
  color: var(--mute);
}
.tab {
  position: relative;
  padding: 0 0 6px;
  border: 0;
  background: none;
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 44px);
  font-style: italic;
  line-height: 1;
  color: var(--mute);
  cursor: pointer;
  transition: color .2s var(--ease);
}
.tab::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--pink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--ink); }
.tab.is-active::after { transform: scaleX(1); }

.grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(32px, 4vw, 56px) clamp(12px, 1.4vw, 20px);
}
.tile {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  animation: rise .6s var(--ease) both;
}
.tile__thumb {
  position: relative;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  background: var(--ink);
  container-type: inline-size;
}
.tile__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Zoom happens inside the frame (.tile__thumb clips it), so the card never changes size */
.tile__thumb img,
.tile__placeholder { transition: transform .4s ease; }
.tile__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.18);
  font-weight: 900;
  font-size: 64px;
  font-size: 42cqi;
  letter-spacing: -0.06em;
}
/* Center play icon, shown on hover (pointer devices) or keyboard focus */
.tile__play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin: -23px 0 0 -23px;
  border-radius: 50%;
  background: var(--pink);
  color: var(--white);
  opacity: 0;
  transform: scale(.85);
  transition: opacity .3s ease, transform .4s ease;
  pointer-events: none;
}
.tile__play svg { margin-left: 2px; } /* optically center the triangle */
.tile__meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 12px;
}
.tile__brand {
  align-self: flex-start; /* underline spans the name, not the column */
  padding-bottom: 2px;
  /* Thin pink underline, drawn in from the left on hover/focus */
  background: linear-gradient(var(--pink), var(--pink)) 0 100% / 0 1.5px no-repeat;
  transition: background-size .4s ease;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.tile__details {
  font-size: 12.5px;
  line-height: 1.35;
  color: var(--mute);
}

.tile:focus-visible .tile__play { opacity: 1; transform: none; }
.tile:focus-visible .tile__brand { background-size: 100% 1.5px; }
@media (hover: hover) {
  .tile:hover .tile__thumb img,
  .tile:hover .tile__placeholder { transform: scale(1.04); }
  .tile:hover .tile__play { opacity: 1; transform: none; }
  .tile:hover .tile__brand { background-size: 100% 1.5px; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- 4. Offer ---------- */

.offer { background: var(--white); }

/* Cards share row tracks via subgrid (head, 9 list rows, foot) so the same
   line sits at the same height in every card, even when text wraps. */
.menu {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1.5px solid var(--line);
}
.dish {
  display: grid;
  grid-row: span 11;
  grid-template-rows: subgrid;
  row-gap: 0;
  padding: clamp(28px, 3vw, 44px) clamp(20px, 2.4vw, 36px);
  border-bottom: 1.5px solid var(--line);
}
.dish + .dish { border-left: 1.5px solid var(--line); }
.dish__head { margin-bottom: 36px; }
/* Numeral + heat level share the top row, so the peppers line up across
   cards even when a package name wraps */
.dish__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.dish__num {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--pink);
}
.dish__heat { display: inline-flex; gap: 2px; }
.dish__name {
  margin: 0 0 8px;
  font-weight: 900;
  font-size: clamp(40px, 4.6vw, 72px);
  letter-spacing: -0.055em;
  line-height: .95;
}
.dish__chili {
  display: block;
  width: 22px;
  height: 22px;
  color: var(--pink); /* hot pink on every card, so the heat builds across the row */
  transform: rotate(-8deg);
}
.dish__tag {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--mute);
}
.dish__blurb {
  grid-column: 1 / -1;
  max-width: 30ch;
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  font-style: italic;
  color: var(--mute);
}
.dish__list {
  display: grid;
  grid-row: span 9;
  grid-template-rows: subgrid;
  row-gap: 0;
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
}
.dish__list li {
  display: flex;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid rgba(11,11,11,.15);
  font-size: 15px;
}
/* ✓ / ✗ markers, drawn as masked SVG so they share one stroke style */
.dish__list li::before {
  content: "";
  content: "" / "Included: ";
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 4px;
  background: var(--pink);
  -webkit-mask: var(--mark) center / contain no-repeat;
  mask: var(--mark) center / contain no-repeat;
  --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 8.5l3.5 3.5 7.5-8' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='square'/%3E%3C/svg%3E");
}
.dish__list li.is-out { color: rgba(11,11,11,.38); }
.dish__list li.is-out::before {
  content: "";
  content: "" / "Not included: ";
  background: rgba(11,11,11,.3);
  --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 3.5l9 9M12.5 3.5l-9 9' fill='none' stroke='black' stroke-width='2' stroke-linecap='square'/%3E%3C/svg%3E");
}
/* Tagline on top, price + button below; space-between keeps prices level
   across cards even if taglines wrap to different line counts */
.dish__foot {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  align-content: space-between;
  gap: 24px 16px;
}
.dish__price {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(40px, 4vw, 56px);
  line-height: 1;
}
.dish__price .label { display: block; margin-bottom: 6px; color: var(--mute); }

.dish--pink { background: var(--pink-wash); }
.dish--pink .dish__num { color: var(--pink-deep); }
.dish--pink .dish__tag,
.dish--pink .dish__blurb,
.dish--pink .dish__price .label { color: #6b4a57; }
.dish--pink .dish__list li { border-top-color: rgba(120, 20, 60, .14); }
.dish--pink .dish__list li::before { background: var(--pink-deep); }
.dish--pink .dish__list li.is-out { color: rgba(60, 20, 36, .42); }
.dish--pink .dish__list li.is-out::before { background: rgba(60, 20, 36, .32); }

.dish--feature { background: var(--ink); color: var(--white); }
.dish--feature .dish__blurb,
.dish--feature .dish__tag,
.dish--feature .dish__price .label { color: rgba(255,255,255,.55); }
.dish--feature .dish__list li { border-top-color: rgba(255,255,255,.18); }
.dish--feature .dish__name { color: var(--pink); }

/* ---------- 5. Social proof ---------- */

.proof { padding-bottom: calc(var(--section-y) * .75); }
.proof .section__head { margin-bottom: 0; border-bottom: 0; padding-bottom: 24px; }

.logos {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  margin: 0 0 clamp(64px, 10vw, 140px);
  padding: 0;
  border-top: 1.5px solid var(--line);
  border-bottom: 1.5px solid var(--line);
}
/* Every logo sits in the same-size cell, vertically centered */
.logos li {
  display: grid;
  place-items: center;
  --cell-h: clamp(96px, 9vw, 124px);
  height: var(--cell-h);
  padding: 0 clamp(10px, 1.6vw, 22px);
  --logo-scale: 1;
}
.logos li + li { border-left: 1px solid rgba(11,11,11,.15); }
/* One soft-black treatment for the whole row; scaled by height (--h), never stretched */
.logo {
  display: block;
  /* never closer than 12px to the cell's top/bottom edge */
  height: min(calc(var(--h) * var(--logo-scale)), calc(var(--cell-h) - 24px));
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: brightness(0);
  opacity: .72;
  transition: filter .35s ease, opacity .35s ease;
}
.logo--knockout { filter: url(#logo-knockout); }
@media (hover: hover) {
  .logos li:hover .logo { filter: none; opacity: 1; }
}

/* All slides share one grid cell, so the box is always as tall as the longest
   review and the height never jumps; shorter ones sit centered in it */
.quotes {
  position: relative;
  display: grid;
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
  touch-action: pan-y; /* horizontal swipes go to the slider, vertical scroll to the page */
}
.quote {
  grid-area: 1 / 1;
  align-self: center;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 1s ease, transform 1s ease, visibility 0s 1s;
}
.quote.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 1s ease, transform 1s ease, visibility 0s;
}
.quote blockquote {
  margin: 0 0 28px;
  font-family: var(--serif);
  font-size: clamp(21px, 2.6vw, 34px);
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
/* Attribution reads like a signature: small, muted, secondary (mono) face */
.quote figcaption {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .04em;
  color: var(--mute);
}
.quote__brand { color: var(--pink); }
.quotes__dots {
  display: flex;
  justify-content: center;
  gap: 4px;
  margin-top: 36px;
}
/* 24px hit area around an 8px dot */
.quotes__dots button {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.quotes__dots button::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(11,11,11,.2);
  transition: background .4s ease;
}
.quotes__dots button[aria-selected="true"]::before { background: var(--pink); }

/* ---------- 6. Contact ---------- */

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(48px, 8vw, 120px);
  background: var(--ink);
  color: var(--white);
}
.contact__intro .label { margin-bottom: 24px; }
.contact__lede {
  max-width: 28ch;
  margin: 28px 0 48px;
  font-family: var(--serif);
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.2;
  color: rgba(255,255,255,.75);
}
.contact__links { list-style: none; margin: 0; padding: 0; }
.contact__links li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,.2);
}
.contact__links li:last-child { border-bottom: 1px solid rgba(255,255,255,.2); }
.contact__links .label { color: rgba(255,255,255,.5); }
.contact__links a {
  font-weight: 700;
  font-size: clamp(16px, 1.6vw, 20px);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.contact__links a:hover { color: var(--pink); }

.form { display: flex; flex-direction: column; gap: 28px; align-self: end; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field .label { color: rgba(255,255,255,.5); }
.field input,
.field textarea {
  width: 100%;
  padding: 10px 0 14px;
  font: inherit;
  font-size: 22px;
  color: var(--white);
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid rgba(255,255,255,.35);
  border-radius: 0;
  resize: vertical;
  transition: border-color .2s var(--ease);
}
.field input:focus,
.field textarea:focus { outline: none; border-bottom-color: var(--pink); }
.field.is-invalid input,
.field.is-invalid textarea { border-bottom-color: var(--pink); }
.form__foot { display: flex; align-items: center; flex-wrap: wrap; gap: 20px; }
.form__status {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.form__status--error { color: var(--pink); }
/* Sentences (like the send-failure message with an email address) keep their case */
.form__status--sentence { text-transform: none; letter-spacing: .02em; line-height: 1.5; }
.form__status a { color: inherit; text-underline-offset: 3px; }
.form__trap { display: none; }
.form .btn:disabled { opacity: .6; cursor: progress; }
.form .btn:disabled:hover { background: var(--pink); border-color: var(--pink); }
/* Shown in place of the form after a successful send */
.form-done { align-self: end; outline: none; }
.form-done__title {
  margin: 0 0 14px;
  font-weight: 900;
  font-size: clamp(44px, 6vw, 80px);
  line-height: .95;
  letter-spacing: -0.05em;
}
.form-done__line {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(22px, 2.2vw, 30px);
  color: rgba(255,255,255,.75);
}

/* ---------- Footer ---------- */

.footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  padding: 32px var(--gutter);
  background: var(--ink);
  color: rgba(255,255,255,.55);
  border-top: 1px solid rgba(255,255,255,.2);
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.footer a { text-decoration: none; }
.footer a:hover { color: var(--pink); }
.footer__big {
  font-family: var(--sans);
  font-weight: 900;
  font-size: clamp(28px, 4vw, 48px);
  letter-spacing: -0.05em;
  text-transform: none;
  white-space: nowrap; /* never break "stay saucy." across lines */
  color: var(--white);
}

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 88px var(--gutter);
  background: rgba(11,11,11,.94);
  cursor: pointer; /* the backdrop closes the modal */
  animation: fade .3s var(--ease);
}
.lightbox[hidden] { display: none; }
.lightbox__frame {
  /* Also capped by viewport height so the 16:9 frame never overflows short screens */
  width: min(1200px, 100%, (100vh - 176px) * 16 / 9);
  aspect-ratio: 16 / 9;
  background: #000;
  cursor: auto;
}
.lightbox__frame iframe,
.lightbox__frame video { display: block; width: 100%; height: 100%; border: 0; background: #000; }
.lightbox__close {
  position: absolute;
  top: 20px;
  right: var(--gutter);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding: 0 16px 0 20px;
  border: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .08em;
  cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.lightbox__close:hover { background: var(--pink); color: var(--white); }
@keyframes fade { from { opacity: 0; } }

body.no-scroll { overflow: hidden; }

/* ---------- Responsive ---------- */

/* Portfolio columns stay divisors of 6 so each category fills complete rows */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 960px) {
  .menu { grid-template-columns: 1fr; }
  .dish + .dish { border-left: 0; }
  .logos { grid-template-columns: repeat(3, 1fr); }
  .logos li:nth-child(4) { border-left: 0; }
  .logos li:nth-child(n+4) { border-top: 1px solid rgba(11,11,11,.15); }
  .logos li { --logo-scale: .8; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .nav__links { gap: 14px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .logos li { --logo-scale: .66; --cell-h: 84px; } /* phones keep the 3x2 grid from above */
  .hero__scroll { display: none; }
  .hero__bg { background-position: 66% 30%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
