/* =========================================================
   Fat Cat Dumplings
   Direction C — "Split Rail"
   ========================================================= */

:root {
  --ink:        #0C1A18;
  --jade:       #12332F;
  --jade-deep:  #0C1A18;
  --cream:      #F4EFE2;
  --cream-warm: #FBF7EC;
  --red:        #C6362B;
  --red-deep:   #A82A20;

  --rail-w: 336px;
  --gut: clamp(18px, 4vw, 56px);

  --display: Anton, Haettenschweiler, "Arial Narrow", Impact, sans-serif;
  --body: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --dur: .9s;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--jade-deep);
  color: var(--cream);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a { color: var(--red); text-decoration: none; }
a:hover { color: var(--cream); }

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

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--red); color: var(--cream);
  padding: 14px 22px; font-weight: 700;
}
.skip:focus { left: 0; }

/* ---------- type ---------- */
.display {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .004em;
  line-height: .86;
  margin: 0;
}
.display--hero { font-size: clamp(58px, 10.5vw, 152px); }
.display--lg   { font-size: clamp(48px, 7vw, 92px); }
.display--md   { font-size: clamp(36px, 4.6vw, 62px); }
.display--sm   { font-size: clamp(24px, 2.4vw, 34px); line-height: .92; }
.accent { color: var(--red); }

.tag {
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0;
  color: var(--red);
}
.tag--ghost { color: inherit; opacity: .75; }
.tag--red   { color: var(--red); }
.tag--rule {
  position: relative;
  padding-bottom: 11px;
  margin-bottom: 4px;
}
.tag--rule::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px; background: var(--red); transform-origin: left;
}

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--red);
  --btn-fg: var(--cream);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 54px;
  padding: 0 30px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 700 14px/1 var(--body);
  letter-spacing: .16em;
  text-transform: uppercase;
  overflow: hidden;
  isolation: isolate;
  transition: color .35s var(--ease), transform .35s var(--ease);
}
.btn svg {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
/* wipe fill on hover */
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--btn-fg);
  transform: scaleY(0); transform-origin: bottom;
  transition: transform .4s var(--ease);
}
.btn:hover { color: var(--btn-bg); }
.btn:hover::after { transform: scaleY(1); }
.btn:active { transform: translateY(1px); }

.btn--red     { --btn-bg: var(--red);  --btn-fg: var(--cream); }
.btn--dark    { --btn-bg: var(--ink);  --btn-fg: var(--cream); }
.btn--ghost   { --btn-bg: transparent; --btn-fg: var(--cream); border: 1px solid rgba(244,239,226,.42); }
.btn--ghost:hover { color: var(--ink); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--ink);   border: 1px solid rgba(12,26,24,.32); }
.btn--outline:hover { color: var(--cream); }
.btn--outline::after { background: var(--ink); }
.btn--wide { width: 100%; }

/* =========================================================
   SHELL + RAIL
   ========================================================= */
.shell { display: flex; align-items: stretch; }

.rail {
  width: var(--rail-w);
  flex: none;
  background: var(--jade);
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 3;
}

.rail__brand { padding: 30px 26px 0; }
.brand { display: block; color: var(--cream); }
.brand:hover { color: var(--cream); }
.brand__mark { width: 54px; height: auto; margin-bottom: 22px; }
.brand__name {
  font-family: var(--display); text-transform: uppercase;
  font-size: 30px; line-height: .92;
  display: flex; flex-direction: column;
}
.brand__area {
  margin: 14px 0 0; font-size: 11px; letter-spacing: .24em;
  text-transform: uppercase; font-weight: 700; opacity: .5;
}

/* the booking card follows you down the rail */
.rail__book { padding: 0 22px; flex: 1 1 auto; min-height: 0; }
.bookcard {
  position: sticky; top: 26px;
  margin-top: 38px;
  background: var(--red);
  padding: 26px 24px 24px;
  box-shadow: 0 22px 48px rgba(0,0,0,.36);
}
.bookcard__title {
  font-family: var(--display); text-transform: uppercase;
  font-size: 44px; line-height: .88; margin: 12px 0 0;
}
.sittings, .hours { margin: 18px 0 0; font-size: 13px; }
.sittings div, .hours div {
  display: flex; justify-content: space-between; gap: 10px; padding: 4px 0;
}
.sittings dt, .hours dt { opacity: .8; }
.sittings dd, .hours dd { margin: 0; font-variant-numeric: tabular-nums; }
.hours .is-closed { opacity: .55; }
.bookcard .btn {
  width: 100%; margin-top: 20px; min-height: 50px; padding: 0 14px;
  font-size: 12.5px; letter-spacing: .1em; white-space: nowrap;
}
.bookcard__num {
  margin: 12px 0 0; text-align: center;
  font-family: var(--display); font-size: 21px; letter-spacing: .02em;
}
.bookcard__num a { color: var(--cream); }
.bookcard__num a:hover { color: var(--ink); }
.bookcard__alt { margin: 6px 0 0; text-align: center; font-size: 12px; opacity: .85; }
.bookcard__alt a { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }

/* vertical ticker fills the rail */
.rail__mark {
  position: absolute; inset: 132px 0 250px; z-index: 0;
  overflow: hidden; pointer-events: none;
}
.rail__brand, .rail__book, .rail__info { position: relative; z-index: 1; }
.ticker {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  animation: ticker 34s linear infinite;
}
.ticker span {
  font-family: var(--display); text-transform: uppercase;
  writing-mode: vertical-rl;
  font-size: 112px; line-height: 1; letter-spacing: .06em;
  color: rgba(244,239,226,.085);
  white-space: nowrap;
}
@keyframes ticker { to { transform: translateY(-50%); } }

.rail__info { padding: 0 26px 38px; display: grid; gap: 28px; }
.info h2 { margin: 0 0 13px; }
.info address { font-style: normal; font-size: 13px; line-height: 1.85; opacity: .84; }
.info address a { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }
.info address a:hover { color: var(--red); }

/* =========================================================
   MAIN
   ========================================================= */
main { flex: 1 1 auto; min-width: 0; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: min(94vh, 900px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(90px, 12vh, 150px) var(--gut) clamp(80px, 10vh, 120px);
  overflow: hidden;
  background: var(--ink);
}
.hero__media { position: absolute; inset: -6% 0 0; z-index: 0; }
.hero__media img {
  width: 100%; height: 106%; object-fit: cover; object-position: 52% 50%;
  will-change: transform;
  animation: heroIn 1.9s var(--ease) both;
}
@keyframes heroIn { from { transform: scale(1.1); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(102deg, rgba(12,26,24,.94) 0%, rgba(12,26,24,.84) 26%, rgba(12,26,24,.5) 52%, rgba(12,26,24,.08) 80%, rgba(12,26,24,0) 100%),
    linear-gradient(0deg, rgba(12,26,24,.86) 0%, rgba(12,26,24,0) 34%);
}
.hero__steam { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero__steam i {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(244,239,226,.2) 0%, rgba(244,239,226,0) 68%);
  filter: blur(6px);
  animation: drift 13s ease-in-out infinite;
}
.hero__steam i:nth-child(1) { width: 340px; height: 340px; left: 46%; bottom: 12%; }
.hero__steam i:nth-child(2) { width: 220px; height: 220px; left: 62%; bottom: 30%; animation-delay: -4s; animation-duration: 17s; }
.hero__steam i:nth-child(3) { width: 160px; height: 160px; left: 38%; bottom: 34%; animation-delay: -8s; animation-duration: 21s; }
@keyframes drift {
  0%, 100% { transform: translate3d(0,0,0) scale(1); opacity: .55; }
  50%      { transform: translate3d(14px,-46px,0) scale(1.16); opacity: .9; }
}

.hero__body { position: relative; z-index: 2; max-width: 720px; }
.hero__body .tag--red { margin-bottom: 24px; }
.hero__lede { max-width: 430px; margin: 30px 0 0; font-size: clamp(16px, 1.3vw, 19px); opacity: .88; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__phone { margin: 18px 0 0; font-size: 14px; opacity: .72; }
.hero__phone a { color: var(--cream); text-decoration: underline; text-underline-offset: 4px; }
.hero__phone a:hover { color: var(--red); }

.hero__scroll {
  position: absolute; z-index: 2; left: var(--gut); bottom: 26px;
  width: 26px; height: 44px; border: 1px solid rgba(244,239,226,.4); border-radius: 14px;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 9px; width: 3px; height: 8px; border-radius: 2px;
  background: var(--cream); margin-left: -1.5px;
  animation: wheel 1.9s var(--ease) infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(16px); } }

/* ---------- statement ---------- */
.statement {
  position: relative; overflow: hidden;
  background: var(--ink);
  padding: clamp(42px, 6vw, 66px) var(--gut);
  display: flex; flex-wrap: wrap; align-items: center; gap: clamp(20px, 4vw, 46px);
}
.statement::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: var(--red); transform-origin: left;
}
.statement > * { position: relative; z-index: 1; }
.statement h2 { flex: 1 1 380px; }
.statement p { flex: 0 1 340px; margin: 0; font-size: 16px; opacity: .93; }

/* ---------- menu ---------- */
.menu {
  background: var(--cream);
  color: var(--ink);
  padding: clamp(54px, 7vw, 88px) var(--gut);
}
.menu__head {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: 24px; margin-bottom: 46px;
}
.menu__head p { max-width: 300px; margin: 0; font-size: 14px; opacity: .62; text-align: right; }
.menu__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 4vw, 56px); }
.menu__col > .tag--rule { margin-top: 42px; }
.menu__col > .tag--rule:first-child { margin-top: 0; }

.dishes { list-style: none; margin: 0; padding: 0; }
.dish {
  display: flex; align-items: center; gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(12,26,24,.14);
  transition: background .3s var(--ease), padding .3s var(--ease);
}
.dish:last-child { border-bottom: none; }
.dish:hover { background: rgba(198,54,43,.05); padding-left: 10px; padding-right: 10px; }
.dish__no {
  font-family: var(--display); font-size: 38px; line-height: .8;
  color: var(--red); width: 62px; flex: none;
  transition: transform .35s var(--ease);
}
.dish:hover .dish__no { transform: translateX(3px); }
.dish__body { flex: 1 1 auto; min-width: 0; }
.dish__name { font-size: 20px; font-weight: 500; letter-spacing: -.01em; display: block; }
.dish__note { font-size: 12.5px; opacity: .55; display: block; margin-top: 2px; }
.dish__price {
  font-family: var(--display); font-size: 27px; white-space: nowrap;
  font-variant-numeric: tabular-nums;
  transition: color .3s var(--ease);
}
.dish:hover .dish__price { color: var(--red); }

.feedme {
  margin-top: 38px; background: var(--jade); color: var(--cream);
  padding: 26px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.feedme__title { font-family: var(--display); text-transform: uppercase; font-size: 28px; line-height: .95; margin: 0; }
.feedme__sub { margin: 6px 0 0; font-size: 13px; opacity: .7; }
.feedme__price { font-family: var(--display); font-size: 30px; color: var(--red); margin: 0; }

/* ---------- gallery ---------- */
.gallery { display: flex; background: var(--ink); }
.shot { position: relative; margin: 0; overflow: hidden; height: clamp(280px, 34vw, 486px); }
.shot:nth-child(1) { flex: 1.5; }
.shot:nth-child(2) { flex: 1; }
.shot:nth-child(3) { flex: 1; }
.shot--card {
  flex: .7; background: var(--red);
  display: flex; align-items: flex-end; padding: 26px;
}
.shot img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 1.1s var(--ease), filter .6s var(--ease);
  filter: saturate(.94);
}
.shot:hover img { transform: scale(1.07); filter: saturate(1.06); }

/* ---------- reviews ---------- */
.reviews { background: var(--jade); padding: clamp(52px, 6vw, 82px) var(--gut); }
.reviews h2 { margin-bottom: 42px; }
.quotes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px; }
.quote { position: relative; padding-left: 22px; }
.quote::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--red); transform-origin: top;
}
.quote blockquote { margin: 0; }
.quote blockquote p { margin: 0; font-size: 20px; line-height: 1.4; font-weight: 500; }
.quote blockquote p::before { content: "\201C"; }
.quote blockquote p::after  { content: "\201D"; }
.quote__by {
  margin: 18px 0 0; font-size: 10.5px; letter-spacing: .2em;
  text-transform: uppercase; font-weight: 700; opacity: .58;
}

/* ---------- closing ---------- */
.closing {
  background: var(--cream); color: var(--ink);
  padding: clamp(52px, 6vw, 80px) var(--gut);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: clamp(28px, 4vw, 54px);
}
.closing > div:first-child { flex: 1 1 400px; }
.closing p { margin: 22px 0 0; font-size: 16px; opacity: .72; max-width: 420px; }
.closing__act { flex: 0 1 330px; display: grid; gap: 12px; }
.closing__note { margin: 4px 0 0 !important; font-size: 13px; opacity: .6 !important; text-align: center; }
.closing__note span { white-space: nowrap; }

.colophon {
  background: var(--ink);
  padding: 24px var(--gut);
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
  font-size: 12px; letter-spacing: .07em; opacity: .5;
}
.colophon p { margin: 0; }

/* ---------- pinned dock (phones) ---------- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: var(--red);
  padding: 11px 16px calc(11px + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  box-shadow: 0 -10px 26px rgba(12,26,24,.42);
  transform: translateY(110%);
  transition: transform .5s var(--ease);
}
.dock[hidden] { display: none; }
.dock.is-up { transform: translateY(0); }
.dock__title { font-family: var(--display); font-size: 21px; margin: 3px 0 0; line-height: 1.05; }
.dock .btn { min-height: 46px; padding: 0 18px; font-size: 12.5px; letter-spacing: .1em; white-space: nowrap; }
.dock__txt .tag { white-space: nowrap; font-size: 10px; }

/* =========================================================
   ANIMATION SYSTEM
   Nothing is hidden unless JS is present to bring it back.
   ========================================================= */

/* masked line reveal, used on every display heading */
.line { display: block; overflow: hidden; }
.js .line > span {
  display: block;
  transform: translateY(105%);
  transition: transform 1s var(--ease);
  transition-delay: calc(var(--n, 0) * 90ms);
}
.js .is-in .line > span, .js .line.is-in > span { transform: translateY(0); }

/* base reveal: rise + fade */
.js [data-reveal], .js .anim {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.js [data-reveal].is-in, .js .anim.is-in { opacity: 1; transform: none; }

/* variant — body copy resolves out of a blur */
.js .rv-blur { filter: blur(9px); transform: translateY(14px); }
.js .rv-blur.is-in { filter: blur(0); }

/* variant — cards settle rather than slide */
.js .rv-pop { transform: translateY(18px) scale(.965); }
.js .rv-pop.is-in { transform: none; }

/* variant — a rule that draws itself, label fading just behind it */
.js .rv-rule { transform: none; transition: opacity .5s var(--ease) 120ms; }
.js .rv-rule.is-in { transform: none; }
.js .tag--rule::after { transform: scaleX(0); transition: transform .9s var(--ease); }
.js .tag--rule.is-in::after { transform: scaleX(1); }

/* variant — a whole band sweeps in, its contents following */
.js .rv-band { opacity: 1; transform: none; }
.js .statement::before { transform: scaleX(0); transition: transform 1.1s var(--ease); }
.js .statement.is-in::before { transform: scaleX(1); }

/* menu numerals arrive a beat after their row */
.js .dish .dish__no {
  opacity: 0; transform: translateX(-14px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms + 140ms);
}
.js .dish.is-in .dish__no { opacity: 1; transform: none; }

/* review rules grow downward with the quote */
.js .quote::before { transform: scaleY(0); transition: transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js .quote.is-in::before { transform: scaleY(1); }

/* gallery frames wipe open while the photograph settles out of a push-in */
.js .shot { clip-path: inset(0 0 100% 0); transition: clip-path 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 110ms); }
.js .shot.is-in { clip-path: inset(0 0 0 0); }
.js .shot img { transform: scale(1.14); }
.js .shot.is-in img { transform: scale(1); transition: transform 1.5s var(--ease), filter .6s var(--ease); }
.js .shot.is-in:hover img { transform: scale(1.07); }

/* hero copy plays on load, not on scroll */
.js .hero .anim { transition-delay: calc(var(--i, 0) * 80ms + 350ms); }

/* scroll progress down the rail's edge */
.rail::after {
  content: ""; position: absolute; top: 0; right: 0; width: 2px; height: 100%;
  background: var(--red); transform-origin: top;
  transform: scaleY(var(--progress, 0));
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1180px) {
  .quotes { grid-template-columns: 1fr 1fr; }
  .quote:last-child { grid-column: 1 / -1; }
}

/* mid widths: the rail earns less room and the hero scrim goes vertical,
   otherwise the raking gradient covers the whole photograph */
@media (min-width: 960px) and (max-width: 1279px) {
  :root { --rail-w: 276px; }
  .brand__name { font-size: 26px; }
  .bookcard__title { font-size: 38px; }
  .ticker span { font-size: 92px; }
}
@media (max-width: 1279px) {
  .hero__scrim {
    background:
      linear-gradient(180deg, rgba(12,26,24,.68) 0%, rgba(12,26,24,.22) 26%, rgba(12,26,24,.66) 58%, rgba(12,26,24,.97) 100%);
  }
  .hero__media img { object-position: 63% 44%; }
  .hero { justify-content: flex-end; }
  .hero__lede { max-width: 520px; }
}

@media (max-width: 959px) {
  .hero__scrim {
    background:
      linear-gradient(180deg, rgba(12,26,24,.30) 0%, rgba(12,26,24,.08) 20%,
                              rgba(12,26,24,.46) 42%, rgba(12,26,24,.93) 70%,
                              rgba(12,26,24,.99) 100%);
  }
  .hero__media img { object-position: 68% 50%; }

  .shell { flex-direction: column; }
  .rail { display: contents; }

  .rail__brand {
    order: 1; background: var(--jade); padding: 13px var(--gut);
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
  }
  .brand { display: flex; align-items: center; gap: 11px; }
  .brand__mark { width: 22px; margin: 0; }
  .brand__name { font-size: 17px; line-height: 1; flex-direction: row; gap: .3em; }
  .brand__area { margin: 0; font-size: 10px; }

  main { order: 2; }

  .rail__book, .rail__mark { display: none; }

  .rail__info {
    order: 3; background: var(--jade); padding: 38px var(--gut) 34px;
    grid-template-columns: 1fr 1fr; gap: 30px;
  }

  .menu__cols { grid-template-columns: 1fr; }
  .menu__col > .tag--rule:first-child { margin-top: 0; }
  .menu__col + .menu__col > .tag--rule:first-child { margin-top: 42px; }
  .menu__head p { text-align: left; max-width: none; }

  .gallery { flex-wrap: wrap; }
  .shot { flex: 1 1 50% !important; height: clamp(190px, 40vw, 260px); }

  .quotes { grid-template-columns: 1fr; gap: 26px; }
  .quote:last-child { grid-column: auto; }

  .closing__act { flex: 1 1 100%; }

  /* room for the pinned bar */
  .colophon { padding-bottom: 96px; }
}

@media (max-width: 520px) {
  .rail__info { grid-template-columns: 1fr; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .dish__no { width: 44px; font-size: 30px; }
  .dish__name { font-size: 17px; }
  .dish__price { font-size: 22px; }
  .statement p { flex-basis: 100%; }
}

/* desktop only: no pinned bar, the rail does that job */
@media (min-width: 960px) { .dock { display: none !important; } }

/* =========================================================
   REDUCED MOTION — everything above becomes static
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0ms !important;
  }
  .line > span { transform: none; }
  [data-reveal], .anim { opacity: 1; transform: none; }
  .shot { clip-path: none; }
  .hero__media img { animation: none; transform: none !important; }
  .ticker { animation: none; }
  .hero__steam { display: none; }
  .js .rv-blur { filter: none; }
  .js .tag--rule::after,
  .js .statement::before,
  .js .quote::before { transform: none !important; }
  .js .dish .dish__no { opacity: 1; transform: none; }
  .js .shot img { transform: none; }
  .rail::after { display: none; }
}
