/* AK Ristoro — small additions on top of Tailwind */

@font-face {
  font-family: "Japan Wave";
  src: url("../Japan%20wave.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "Hiromisake";
  src: url("../HIROMISAKE.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

/* Apply Hiromisake to all headings + Tailwind .font-serif utility */
h1, h2, h3, h4, h5, h6,
.font-serif {
  font-family: "Hiromisake", "Japan Wave", "DM Serif Display", serif !important;
  font-weight: 400;
  letter-spacing: 0;
}

html { scroll-behavior: smooth; }

/* Mobile: center-align all headings and body text */
@media (max-width: 767px) {
  h1, h2, h3, h4, h5, h6,
  p, blockquote, figcaption,
  .reveal > span,
  section .max-w-md,
  section .max-w-lg,
  section .max-w-xl,
  section .max-w-sm {
    text-align: center;
  }

  /* Reduce heading sizes on mobile */
  h1 { font-size: 2.4rem !important; line-height: 1.05 !important; }
  h2 { font-size: 1.9rem !important; line-height: 1.1 !important; }
  h3 { font-size: 1.35rem !important; line-height: 1.15 !important; }
  h4 { font-size: 1.15rem !important; line-height: 1.2 !important; }
  blockquote { font-size: 1.4rem !important; line-height: 1.3 !important; }
  /* center the headline eyebrow labels and helper inline-flex rows */
  section span.block,
  section span.inline-flex {
    margin-left: auto;
    margin-right: auto;
  }
  /* center buttons that sit under headlines */
  section a.inline-flex,
  section a.inline-block,
  section button,
  .btn-brush {
    display: flex;
    width: fit-content;
    margin-left: auto !important;
    margin-right: auto !important;
    justify-content: center;
  }
  /* center max-width copy blocks */
  .max-w-md, .max-w-lg, .max-w-xl, .max-w-sm {
    margin-left: auto;
    margin-right: auto;
  }
}

body {
  font-feature-settings: "ss01", "ss02";
}

/* Sticky header background on scroll */
#siteHeader.scrolled {
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(27,22,20,0.08);
}
#siteHeader.scrolled > div { padding-top: 14px; padding-bottom: 14px; }

.nav-active {
  color: #C9314B;
  position: relative;
}
.nav-active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 4px;
  height: 4px;
  background: #C9314B;
  border-radius: 50%;
  transform: translateX(-50%);
}

/* ticker */
.ticker {
  animation: tickerMove 38s linear infinite;
}
@keyframes tickerMove {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* hand-drawn underline subtle wobble */
@keyframes wobble {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

/* Hero sushi-hand: drop-in once, then gentle float forever */
.sushi-hand {
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
  transform-origin: top center;
  will-change: transform, opacity;
  /* two animations stacked: drop runs once, float runs infinite after delay */
  animation:
    sushiDrop  1.6s cubic-bezier(.2,.7,.3,1) 0.2s both,
    sushiFloat 5.5s ease-in-out 1.8s infinite;
}

@keyframes sushiDrop {
  0%   { transform: translate(-50%, -900px) rotate(-6deg); opacity: 0; }
  60%  { opacity: 1; }
  100% { transform: translate(-50%, 0)      rotate(0deg);  opacity: 1; }
}

@keyframes sushiFloat {
  0%, 100% { transform: translate(-50%, 0)    rotate(0deg); }
  50%      { transform: translate(-50%, 14px) rotate(-1.2deg); }
}

/* Paint-stroke buttons */
.btn-brush {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 48px;
  color: #f5efe6;
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 0.04em;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transform: rotate(-1.2deg);
  transition: transform .3s ease;
  isolation: isolate;
}
.btn-brush:hover {
  transform: rotate(0) scale(1.04);
}
.btn-brush .brush-bg {
  position: absolute;
  top: -14px;
  left: -22px;
  width: calc(100% + 44px);
  height: calc(100% + 28px);
  z-index: -1;
  pointer-events: none;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,0.12));
}
.btn-brush span { position: relative; z-index: 1; font-weight: 500; white-space: nowrap; }

/* Editorial gallery — auto-scrolling marquee strip */
.marquee-wrap {
  mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.marquee-track {
  animation: marqueeScroll 38s linear infinite;
  width: max-content;
}
.marquee-wrap:hover .marquee-track { animation-play-state: paused; }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Promise section fading slider */
.promise-slide {
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
  pointer-events: none;
}
.promise-slide--active {
  opacity: 1;
}

/* Flower in hero bottom-left: slow floating */
.flower-float {
  transform-origin: center;
  animation: flowerFloat 7s ease-in-out infinite;
  will-change: transform;
}
@keyframes flowerFloat {
  0%, 100% { transform: translate(0, 0)     rotate(0deg); }
  25%      { transform: translate(6px, -10px) rotate(2.5deg); }
  50%      { transform: translate(0, -18px)   rotate(0deg); }
  75%      { transform: translate(-6px, -8px) rotate(-2.5deg); }
}

/* reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
}

/* image hover grain */
.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0,0,0,0.04) 1px, transparent 1px);
  background-size: 3px 3px;
  pointer-events: none;
  mix-blend-mode: multiply;
}

/* selection */
::selection {
  background: #C9314B;
  color: #faf6ef;
}

/* scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #f5efe6; }
::-webkit-scrollbar-thumb { background: #C9314B; border-radius: 4px; }

/* tiny dotted leader for menu */
.dot-leader {
  flex: 1;
  border-bottom: 1.5px dotted rgba(27,22,20,0.25);
  margin: 0 14px;
  transform: translateY(-6px);
}

/* gallery rotated tags */
.tag-rot {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  letter-spacing: 0.4em;
}

/* form */
.field {
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(27,22,20,0.25);
  padding: 12px 0;
  width: 100%;
  outline: none;
  font-size: 15px;
  font-family: inherit;
  transition: border-color .3s;
}
.field:focus { border-color: #C9314B; }
.field-label {
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(27,22,20,0.55);
  display: block;
  margin-bottom: 4px;
}
