/* MESHIA: opening noren, readable typography, and editorial photo motion. */
.hero { overflow: hidden; }
.hero-curtain { display: none; }
.kinetic-band {
  padding: clamp(32px, 4vw, 58px) clamp(24px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
}
.kinetic-track {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
  font-family: var(--heading);
  font-weight: 900;
  font-size: clamp(32px, 5.2vw, 74px);
  line-height: 1.5;
  letter-spacing: .06em;
}
.kinetic-word, .kinetic-letter { display: inline-block; white-space: nowrap; }
.kinetic-band::after {
  content: "";
  display: block;
  width: 64px;
  height: 2px;
  margin: 22px auto 0;
  background: var(--orange);
}
.network-number strong { display: inline-block; min-width: 3ch; text-align: right; font-variant-numeric: tabular-nums; }
.visually-hidden {
  position: absolute !important; width: 1px !important; height: 1px !important;
  padding: 0 !important; margin: -1px !important; overflow: hidden !important;
  clip-path: inset(50%) !important; white-space: nowrap !important; border: 0 !important;
}
footer { align-items: center; gap: 14px; flex-wrap: wrap; }

@media (prefers-reduced-motion: no-preference) {
  html.creative-motion .hero-photo {
    transform: translate3d(0, var(--hero-pan, 0px), 0) scale(1.07);
    transform-origin: 42% 50%;
  }
  html.intro-play .hero-curtain {
    position: absolute; inset: 0; z-index: 2;
    display: flex; pointer-events: none;
  }
  .noren-panel { display: flex; gap: 2px; width: 50%; height: 104%; transform-origin: center top; }
  .noren-panel i {
    width: 50%; height: 100%; background: var(--navy);
    border-right: 1px solid #ffffff12;
    clip-path: polygon(0 0,100% 0,100% 98%,0 100%);
  }
  .noren-panel i:nth-child(2) { height: 98%; }
  .noren-left { animation: noren-left 1.65s cubic-bezier(.76,0,.24,1) .18s both; }
  .noren-right { animation: noren-right 1.7s cubic-bezier(.76,0,.24,1) .26s both; }
  html.intro-play .hero h1, html.intro-play .hero-link, html.intro-play .scroll-cue { z-index: 3; }
  html.intro-play .hero-photo { animation: restaurant-arrive 3.2s cubic-bezier(.2,.65,.3,1) both; }
  html.intro-play .hero h1 > span { animation: vertical-ink 1.1s cubic-bezier(.22,1,.36,1) .32s both; }
  html.intro-play .hero h1 > span + span { animation-delay: .65s; }
  html.intro-play .hero-link { animation: gentle-arrive .7s ease-out 1.05s both; }
  html.intro-play .hero-link:focus-visible { animation: none; }
  html.creative-motion .kinetic-band::after { transform: scaleX(var(--band-line, 1)); }
  html.creative-motion .story-photo img { transform: translate3d(0,var(--photo-pan, 0px),0) scale(1.08); }
  html.creative-motion .photo-wrap {
    transform: perspective(900px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
    transition: transform .45s cubic-bezier(.22,1,.36,1);
  }
  html.creative-motion .partner .photo-wrap img {
    transform: translate3d(var(--image-x, 0px),var(--image-y, 0px),0) scale(1.07);
    transition: transform .7s cubic-bezier(.22,1,.36,1);
  }
  html.creative-motion .sidebar nav > a { transition: color .25s, border-color .25s, transform .3s; }
  html.creative-motion .cta { transition: background .3s, transform .3s; }
  html.creative-motion .cta > span,
  html.creative-motion .hero-link > span,
  html.creative-motion .partner-bottom > span { transition: transform .4s cubic-bezier(.22,1,.36,1); }
  html.creative-motion .partner-bottom { transition: border-color .3s; }
  html.creative-motion .cta:focus-visible > span,
  html.creative-motion .hero-link:focus-visible > span,
  html.creative-motion .partner:focus-visible .partner-bottom > span { transform: translateX(7px); }
  html.creative-motion .partner:focus-visible .partner-bottom { border-color: var(--orange); }
  html.creative-motion .cta:active { transform: translateY(1px); }
  html.creative-motion dialog[open] { animation: panel-arrive .3s ease-out; }
  @media (hover: hover) and (pointer: fine) {
    html.creative-motion .sidebar nav > a:hover { transform: translateX(4px); }
    html.creative-motion .cta:hover > span,
    html.creative-motion .hero-link:hover > span,
    html.creative-motion .partner:hover .partner-bottom > span { transform: translateX(7px); }
    html.creative-motion .partner:hover .partner-bottom { border-color: var(--orange); }
  }
  @media (max-width: 800px) {
    html.creative-motion .sidebar nav.open { animation: panel-arrive .3s ease-out; }
  }
}

@keyframes noren-left {
  from { transform: translateX(0) rotate(0); }
  to { transform: translateX(-110%) rotate(-4deg); }
}
@keyframes noren-right {
  from { transform: translateX(0) rotate(0); }
  to { transform: translateX(110%) rotate(4deg); }
}
@keyframes restaurant-arrive {
  from { transform: translate3d(0,var(--hero-pan, 0px),0) scale(1.14); }
  to { transform: translate3d(0,var(--hero-pan, 0px),0) scale(1.07); }
}
@keyframes vertical-ink {
  from { clip-path: inset(0 0 100% 0); opacity: .2; }
  to { clip-path: inset(0); opacity: 1; }
}
@keyframes gentle-arrive {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
/* The phrase stays opaque and inside its padded area throughout the wave. */
@keyframes letter-wave {
  0%, 32%, 100% { transform: translateY(0); }
  12% { transform: translateY(var(--letter-rise, -.16em)); }
  22% { transform: translateY(.025em); }
}
@keyframes panel-arrive {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 560px) {
  .kinetic-track { flex-direction: column; font-size: clamp(30px, 8vw, 42px); line-height: 1.65; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .hero-curtain { display: none !important; }
  .hero-photo, .hero h1 > span, .hero-link, .story-photo img,
  .photo-wrap, .partner img, .cta, .cta > span,
  .partner-bottom > span { transform: none !important; }
}

html.motion-paused{scroll-behavior:auto}
html.motion-paused *,html.motion-paused *::before,html.motion-paused *::after{animation:none!important;transition:none!important}
html.motion-paused .partner img{transform:none!important}

/* phrase.js enables text motion according to motion preferences and visibility. */
[data-phrase][data-phrase-motion="on"] .kinetic-letter {
  animation-name: letter-wave !important;
  animation-duration: 3.8s !important;
  animation-delay: var(--letter-delay, 0ms) !important;
  animation-timing-function: cubic-bezier(.45,0,.2,1) !important;
  animation-iteration-count: infinite !important;
  animation-play-state: running !important;
}
.closing .kinetic-track { font-size: clamp(26px, 3.5vw, 44px); margin-bottom: 30px; }
@media (max-width: 560px) {
  [data-phrase] { --letter-rise: -.24em; }
}
