/* ============================================================
   THE FAITH CAFE — Concept 02 "KINETIC"
   Bright, physical, playful. Matter.js pit + GSAP scroll + anime.js type.
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  --bg:       #fffcf6;
  --bg-2:     #fff7ea;
  --bg-3:     #ffeed6;
  --ink:      #171310;
  --ink-70:   rgba(23, 19, 16, .70);
  --ink-45:   rgba(23, 19, 16, .45);
  --ink-15:   rgba(23, 19, 16, .15);
  --line:     #171310;

  --orange:   #e8622c;
  --orange-l: #ffd9c6;
  --green:    #1f6f4a;
  --green-l:  #cdead9;
  --yellow:   #f2c14e;
  --yellow-l: #ffeec2;
  --blue:     #2f5d8c;
  --blue-l:   #d5e4f2;

  --f-display: "Bricolage Grotesque", "Archivo", system-ui, sans-serif;
  --f-body:    "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --f-mono:    "Space Mono", ui-monospace, Menlo, monospace;

  --pad: clamp(1.1rem, 3.6vw, 3.4rem);
  --r:   26px;
  --r-sm: 14px;
  --shadow: 0 18px 40px -26px rgba(23,19,16,.55);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

/* ---------- 2. Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--f-body);
  font-size: clamp(1rem, .96rem + .18vw, 1.06rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--yellow); color: var(--ink); }

/* ---------- 3. Type ---------- */
.h1, .h2, .h3 { font-family: var(--f-display); font-weight: 800; letter-spacing: -.035em; line-height: .92; }
.h1 { font-size: clamp(2.9rem, 8.6vw, 8.8rem); }
.h2 { font-size: clamp(2.1rem, 5vw, 4.6rem); line-height: .95; }
.h3 { font-size: clamp(1.35rem, 2.3vw, 2rem); line-height: 1.05; letter-spacing: -.02em; }
.lede { font-size: clamp(1.02rem, .96rem + .4vw, 1.3rem); line-height: 1.55; color: var(--ink-70); max-width: 48ch; }
.kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  background: var(--ink); color: var(--bg);
  padding: .42rem .85rem; border-radius: 100px;
}
.kicker--o { background: var(--orange); }
.kicker--g { background: var(--green); }
.kicker--y { background: var(--yellow); color: var(--ink); }
.num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.u-ink { color: var(--orange); }

/* ---------- 4. Layout ---------- */
.wrap { padding-inline: var(--pad); }
.tight { max-width: 82rem; margin-inline: auto; }
.section { padding-block: clamp(4rem, 10vh, 8.5rem); position: relative; }

/* ---------- 5. Cursor ---------- */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 9999; pointer-events: none;
  width: 18px; height: 18px; margin: -9px 0 0 -9px;
  border-radius: 50%; background: var(--orange);
  will-change: transform;
  transition: width .35s var(--spring), height .35s var(--spring), margin .35s var(--spring), opacity .25s;
  mix-blend-mode: multiply;
}
.cursor.is-hot { width: 64px; height: 64px; margin: -32px 0 0 -32px; }
.cursor.is-hidden { opacity: 0; }
.cursor__label {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--f-mono); font-size: .56rem; letter-spacing: .1em; text-transform: uppercase;
  color: #fff; opacity: 0; transition: opacity .25s;
}
.cursor.is-hot .cursor__label { opacity: 1; }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------- 6. Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 9998; background: var(--orange);
  display: grid; place-items: center; color: var(--bg);
}
.loader__word { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.6rem, 11vw, 9rem); letter-spacing: -.04em; display: flex; overflow: hidden; }
.loader__word span { display: inline-block; }
.loader__pct { position: absolute; bottom: clamp(1.2rem,4vw,3rem); right: clamp(1.2rem,4vw,3rem); font-family: var(--f-mono); font-size: clamp(2rem, 6vw, 4rem); }

/* ---------- 7. Nav ---------- */
.nav {
  position: fixed; z-index: 900; top: clamp(.7rem, 2vw, 1.2rem); left: 50%; transform: translateX(-50%);
  width: calc(100% - var(--pad) * 2); max-width: 82rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .55rem .6rem .55rem 1.1rem;
  background: rgba(255, 252, 246, .82);
  backdrop-filter: blur(14px) saturate(1.3);
  border: 1.5px solid var(--ink); border-radius: 100px;
  box-shadow: var(--shadow);
}
.nav__brand { font-family: var(--f-display); font-weight: 800; font-size: 1.02rem; letter-spacing: -.03em; display: flex; align-items: center; gap: .5rem; }
.nav__dot { width: 11px; height: 11px; border-radius: 50%; background: var(--orange); flex: none; }
.nav__links { display: flex; align-items: center; gap: .2rem; }
.nav__link {
  font-family: var(--f-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase;
  padding: .55rem .8rem; border-radius: 100px; transition: background-color .3s, color .3s;
}
.nav__link:hover { background: var(--yellow-l); }
.nav__link[aria-current="page"] { background: var(--ink); color: var(--bg); }
.nav__cta { background: var(--orange); color: #fff; }
.nav__cta:hover { background: var(--ink); color: var(--bg); }
@media (max-width: 700px) {
  .nav { padding-left: .85rem; }
  .nav__link { padding: .5rem .55rem; font-size: .6rem; letter-spacing: .06em; }
  .nav__link--hide { display: none; }
}

/* ---------- 8. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.6rem; border-radius: 100px;
  border: 1.5px solid var(--ink); background: var(--bg);
  font-family: var(--f-mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .18s var(--spring), box-shadow .18s var(--spring), background-color .25s;
  will-change: transform;
}
.btn:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); background: var(--yellow-l); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.btn--o { background: var(--orange); color: #fff; }
.btn--o:hover { background: var(--ink); color: var(--bg); }
.btn--g { background: var(--green); color: #fff; }
.btn--g:hover { background: var(--ink); }

/* ---------- 9. Reveal primitives ---------- */
.js .arm { opacity: 0; }
.js .arm-y { opacity: 0; transform: translateY(30px); }
.js .arm-s { opacity: 0; transform: scale(.92); }
.line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.line > span { display: block; will-change: transform; }
.w { display: inline-block; }

/* ---------- 10. Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; padding-top: clamp(6rem, 14vh, 9rem); overflow: hidden; }
.hero__top { position: relative; z-index: 3; pointer-events: none; }
.hero__top a, .hero__top button, .hero__top .kicker { pointer-events: auto; }
.hero__title { max-width: 16ch; }
.hero__title .stroke {
  -webkit-text-stroke: 2px var(--ink); color: transparent;
  paint-order: stroke fill;
}
.hero__sub { display: flex; flex-wrap: wrap; gap: 1.4rem; align-items: flex-end; justify-content: space-between; margin-top: clamp(1.2rem, 3vh, 2rem); }
.hero__pit { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.hero__pit canvas { width: 100%; height: 100%; }
.hero__pit.is-live { pointer-events: auto; }
.hero__hint {
  position: absolute; z-index: 4; left: var(--pad); bottom: clamp(1rem, 3vh, 2rem);
  font-family: var(--f-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-70);
  display: flex; align-items: center; gap: .55rem;
  background: rgba(255, 252, 246, .88); backdrop-filter: blur(8px);
  border: 1.5px solid var(--ink); border-radius: 100px; padding: .4rem .9rem .4rem .45rem;
}
.hero__hint i { width: 22px; height: 22px; background: var(--yellow); border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: .7rem; }
.hero__blobs { position: absolute; inset: 0; z-index: 0; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(46px); opacity: .55; will-change: transform; }
.blob--1 { width: 42vw; height: 42vw; background: var(--orange-l); top: -8%; right: -6%; }
.blob--2 { width: 34vw; height: 34vw; background: var(--green-l); bottom: -12%; left: -8%; }
.blob--3 { width: 26vw; height: 26vw; background: var(--yellow-l); top: 34%; left: 42%; }

/* ---------- 11. Ribbon marquee ---------- */
.ribbons { position: relative; padding-block: clamp(2.5rem, 7vh, 5rem); overflow: hidden; }
.ribbon { overflow: hidden; padding-block: .55rem; border-block: 1.5px solid var(--ink); }
.ribbon--1 { transform: rotate(-2.4deg); background: var(--yellow); margin-bottom: -1.5px; }
.ribbon--2 { transform: rotate(1.8deg); background: var(--green); color: #fff; }
.ribbon__track { display: flex; width: max-content; will-change: transform; }
.ribbon__item {
  display: flex; align-items: center; gap: 1.6rem; padding-right: 1.6rem;
  font-family: var(--f-display); font-weight: 800; font-size: clamp(1.1rem, 2.4vw, 2.1rem);
  letter-spacing: -.02em; white-space: nowrap; text-transform: uppercase;
}
.ribbon__item i { width: 8px; height: 8px; background: currentColor; border-radius: 50%; display: block; flex: none; }

/* ---------- 12. Bento ---------- */
.bento { display: grid; gap: clamp(.7rem, 1.4vw, 1.1rem); grid-template-columns: repeat(6, 1fr); }
.tile {
  grid-column: span 6;
  border: 1.5px solid var(--ink); border-radius: var(--r);
  padding: clamp(1.2rem, 2.4vw, 2rem);
  display: grid; gap: .8rem; align-content: space-between;
  min-height: 190px; position: relative; overflow: hidden;
  transition: transform .35s var(--spring), box-shadow .35s var(--ease);
  will-change: transform;
}
.tile:hover { transform: translateY(-5px); box-shadow: 0 22px 40px -26px rgba(23,19,16,.6); }
@media (min-width: 640px) { .tile { grid-column: span 3; } .tile--wide { grid-column: span 6; } }
@media (min-width: 1000px) {
  .tile { grid-column: span 2; }
  .tile--wide { grid-column: span 4; }
  .tile--tall { grid-row: span 2; }
}
.tile--o { background: var(--orange-l); }
.tile--g { background: var(--green-l); }
.tile--y { background: var(--yellow-l); }
.tile--b { background: var(--blue-l); }
.tile--ink { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tile__n { font-family: var(--f-mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; opacity: .6; }
.tile__big { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: .88; letter-spacing: -.04em; }
.tile p { font-size: .9rem; color: inherit; opacity: .78; }
.tile canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: .5; }

/* ---------- 13. Roulette ---------- */
.roulette {
  border: 1.5px solid var(--ink); border-radius: var(--r); background: var(--bg-2);
  padding: clamp(1.4rem, 4vw, 3rem); text-align: center;
  position: relative; overflow: hidden;
}
.roulette__slot { height: clamp(3.4rem, 9vw, 6.4rem); overflow: hidden; position: relative; }
.roulette__reel { position: absolute; inset: 0; will-change: transform; }
.roulette__row {
  height: clamp(3.4rem, 9vw, 6.4rem); display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 800; letter-spacing: -.035em;
  font-size: clamp(1.6rem, 4.4vw, 3.4rem); line-height: 1;
}
.roulette__price { font-family: var(--f-mono); font-size: 1rem; color: var(--orange); margin-top: .4rem; min-height: 1.6em; }
.spark { position: absolute; width: 8px; height: 8px; border-radius: 2px; pointer-events: none; will-change: transform; }

/* ---------- 14. Counter strip ---------- */
.strip { display: grid; gap: clamp(1rem, 2vw, 1.6rem); grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.stat { border: 1.5px solid var(--ink); border-radius: var(--r-sm); padding: 1.2rem; background: var(--bg-2); }
.stat__n { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: .9; letter-spacing: -.04em; }
.stat__l { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-45); margin-top: .5rem; display: block; }

/* ---------- 15. Menu page ---------- */
.filters { position: sticky; top: 0; z-index: 500; background: var(--bg); padding-block: .9rem; border-bottom: 1.5px solid var(--ink); }
.filters__row { display: flex; gap: .45rem; overflow-x: auto; scrollbar-width: none; }
.filters__row::-webkit-scrollbar { display: none; }
.filters button {
  flex: none; padding: .55rem 1rem; border-radius: 100px; border: 1.5px solid var(--ink);
  font-family: var(--f-mono); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase;
  background: var(--bg); transition: background-color .25s, color .25s;
}
.filters button:hover { background: var(--yellow-l); }
.filters button.is-active { background: var(--ink); color: var(--bg); }

.cat { padding-block: clamp(2.4rem, 6vh, 4.5rem); }
.cat__head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.cat__head h2 { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.9rem, 4.4vw, 3.6rem); letter-spacing: -.04em; line-height: 1; }
.grid-dish { display: grid; gap: clamp(.6rem, 1.2vw, 1rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.dish {
  border: 1.5px solid var(--ink); border-radius: var(--r-sm); padding: 1.05rem 1.15rem;
  background: var(--bg); display: grid; gap: .45rem; align-content: start;
  transition: transform .3s var(--spring), background-color .3s;
  will-change: transform;
}
.dish:hover { transform: translateY(-4px) rotate(-.5deg); background: var(--bg-2); }
.dish__top { display: flex; justify-content: space-between; gap: .8rem; align-items: baseline; }
.dish__name { font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -.02em; line-height: 1.2; }
.dish__price { font-family: var(--f-mono); font-size: .84rem; color: var(--orange); white-space: nowrap; }
.dish__desc { font-size: .84rem; color: var(--ink-45); line-height: 1.5; }
.dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; margin-right: .45rem; vertical-align: baseline; }
.dot--veg { background: var(--green); }
.dot--chicken { background: var(--orange); }
.dot--lamb { background: #8a4b2a; }
.dot--fish { background: var(--blue); }
.dot--egg { background: var(--yellow); }

.scans { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.scan { border: 1.5px solid var(--ink); border-radius: var(--r-sm); overflow: hidden; background: #fff; }
.scan img { width: 100%; transition: transform 1s var(--ease); }
.scan:hover img { transform: scale(1.05); }
.scan figcaption { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; padding: .75rem 1rem; border-top: 1.5px solid var(--ink); }

/* ---------- 16. Story page ---------- */
.step { display: grid; gap: clamp(1.2rem, 3vw, 2.6rem); grid-template-columns: 1fr; align-items: center; padding-block: clamp(2.5rem, 7vh, 5rem); }
@media (min-width: 900px) { .step { grid-template-columns: 1fr 1fr; } .step--flip > *:first-child { order: 2; } }
.step__art { border: 1.5px solid var(--ink); border-radius: var(--r); overflow: hidden; aspect-ratio: 4/3; position: relative; background: var(--bg-2); }
.step__art canvas { width: 100%; height: 100%; }
.quote {
  font-family: var(--f-display); font-weight: 800; letter-spacing: -.04em; line-height: .98;
  font-size: clamp(1.8rem, 5.2vw, 4.4rem); max-width: 18ch;
}
.pin-panel { min-height: 100svh; display: grid; place-items: center; }

/* ---------- 17. Visit page ---------- */
.cards { display: grid; gap: clamp(.8rem, 1.6vw, 1.2rem); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  border: 1.5px solid var(--ink); border-radius: var(--r); padding: clamp(1.2rem, 2.6vw, 1.9rem);
  display: grid; gap: .6rem; align-content: start; background: var(--bg-2);
}
.card h3 { font-family: var(--f-mono); font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); }
.card p { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.15rem, 2.2vw, 1.6rem); letter-spacing: -.02em; line-height: 1.25; }
.card small { font-size: .82rem; color: var(--ink-45); font-family: var(--f-body); }
.map { border: 1.5px solid var(--ink); border-radius: var(--r); overflow: hidden; }
.map iframe { width: 100%; height: clamp(300px, 50vh, 500px); border: 0; display: block; filter: saturate(.85); }
.field { display: grid; gap: .4rem; }
.field label { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-45); }
.field input, .field select, .field textarea {
  font: inherit; font-size: .95rem; padding: .8rem 1rem;
  border: 1.5px solid var(--ink); border-radius: var(--r-sm); background: var(--bg);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: var(--yellow-l); }
.form-grid { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

/* ---------- 18. Footer ---------- */
.footer { background: var(--ink); color: var(--bg); border-radius: var(--r) var(--r) 0 0; margin-top: clamp(2rem,6vh,4rem); padding-block: clamp(3rem, 8vh, 6rem) 1.6rem; overflow: hidden; }
.footer__big { font-family: var(--f-display); font-weight: 800; font-size: clamp(2.6rem, 13vw, 12rem); line-height: .85; letter-spacing: -.05em; }
.footer__cols { display: grid; gap: clamp(1.4rem, 3vw, 2.6rem); grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-top: clamp(2rem, 6vh, 4rem); }
.footer__col h4 { font-family: var(--f-mono); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; opacity: .5; margin-bottom: .7rem; }
.footer__col a, .footer__col p { display: block; font-size: .9rem; opacity: .82; padding-block: .16rem; }
.footer__col a:hover { opacity: 1; color: var(--yellow); }
.footer__base { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: space-between; margin-top: clamp(2rem,6vh,3.4rem); padding-top: 1.2rem; border-top: 1px solid rgba(255,252,246,.2); font-family: var(--f-mono); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; opacity: .55; }

/* ---------- 19. Curtain ---------- */
.curtain { position: fixed; inset: 0; z-index: 9997; pointer-events: none; background: var(--orange); transform: scaleY(0); transform-origin: 50% 100%; }

/* ---------- 20. Reduced motion / no JS ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .arm, .js .arm-y, .js .arm-s { opacity: 1 !important; transform: none !important; }
}
.no-js .loader { display: none; }
.no-js .arm, .no-js .arm-y, .no-js .arm-s { opacity: 1; transform: none; }
.no-js .hero__pit { display: none; }
