/* =====================================================================
   OKAMI — "Sakura & Washi" menu
   Shared by menu_armenian.html, menu_english.html, menu_russian.html.
   Markup is rendered by js/okami-menu.js from window.OKAMI_MENU.
   ===================================================================== */

:root {
    --paper: #f7f2ea;
    --paper-2: #efe7da;
    --paper-3: #e5d9c6;
    --card: #fbf8f3;
    --ink: #2b1d16;
    --ink-2: #5b473c;
    --ink-3: #8c776a;
    --line: rgba(43, 29, 22, 0.12);
    --line-2: rgba(43, 29, 22, 0.24);
    --sakura: #e9a5b4;
    --sakura-2: #f6d7dd;
    --shu: #b23b2a;
    --shu-2: #cf5640;
    --gold: #b48a4e;

    --display: "Cormorant Garamond", "Noto Serif Armenian", Georgia, serif;
    --body: "Manrope", "Noto Sans Armenian", system-ui, sans-serif;
    --jp: "Shippori Mincho", "Noto Serif JP", serif;

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --nav-h: 72px;
    --nav-offset: 72px;
    --gutter: clamp(16px, 4vw, 64px);
    --maxw: 1440px;
}

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

html {
    scroll-behavior: auto;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

@supports (overflow: clip) {
    html,
    body {
        overflow-x: clip;
    }
}

html.is-locked,
html.is-locked body {
    overflow: hidden;
}

body {
    margin: 0;
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink);
    background-color: var(--paper);
    background-image:
        radial-gradient(ellipse 70% 50% at 100% 0%, rgba(233, 165, 180, 0.16), transparent 60%),
        radial-gradient(ellipse 60% 40% at 0% 30%, rgba(180, 138, 78, 0.08), transparent 60%);
    -webkit-font-smoothing: antialiased;
    /* no overflow here: a non-visible body overflow turns body into its own
       scroll box and breaks the sticky category bar (html/body use clip above) */
}

/* washi fibres */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='f'><feTurbulence type='fractalNoise' baseFrequency='.012 .9' numOctaves='2' seed='4'/><feColorMatrix values='0 0 0 0 .55  0 0 0 0 .45  0 0 0 0 .35  0 0 0 .09 0'/></filter><rect width='100%' height='100%' filter='url(%23f)'/></svg>");
}

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

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

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

::selection {
    background: var(--sakura-2);
    color: var(--ink);
}

#app {
    position: relative;
    z-index: 1;
}

#petals {
    position: fixed;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.svg-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

/* ---------- Shared bits ---------- */

.hanko {
    display: inline-grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: var(--shu);
    color: #fbeee4;
    font-family: var(--jp);
    font-weight: 700;
    font-size: 34px;
    line-height: 1;
    box-shadow: inset 0 0 0 3px var(--shu), inset 0 0 0 5px rgba(251, 238, 228, 0.55);
    transform: rotate(-6deg);
    filter: url(#ink-rough);
    user-select: none;
}

/* logo badge: replaces the kanji hanko stamp wherever the mark is the brand itself */
.logo-mark {
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    padding: 10px;
    border-radius: 50%;
    background: var(--card);
    box-shadow: 0 0 0 1px var(--line), 0 10px 26px -16px rgba(43, 29, 22, 0.45);
    user-select: none;
}

.logo-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--ink-2);
}

.kicker::before {
    content: "";
    width: 28px;
    height: 1px;
    background: var(--shu);
}

.btn-ink,
.btn-line {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 26px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: transform 0.4s var(--ease), background 0.3s ease, color 0.3s ease, box-shadow 0.4s var(--ease);
}

.btn-ink {
    position: relative;
    overflow: hidden;
    background: var(--ink);
    color: var(--paper);
    box-shadow: 0 14px 30px -12px rgba(43, 29, 22, 0.6);
}

.btn-ink::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--shu);
    transform: translateY(101%);
    transition: transform 0.5s var(--ease);
}

.btn-ink > * {
    position: relative;
}

.btn-ink:hover::before {
    transform: none;
}

.btn-ink:hover {
    transform: translateY(-2px);
}

.btn-ink ion-icon {
    font-size: 1.1rem;
    transition: transform 0.4s var(--ease);
}

.btn-ink:hover ion-icon {
    transform: translateY(3px);
}

.btn-line {
    border: 1px solid var(--line-2);
    color: var(--ink);
    background: rgba(251, 248, 243, 0.6);
}

.btn-line:hover {
    border-color: var(--ink);
    background: var(--card);
    transform: translateY(-2px);
}

.btn-line ion-icon {
    font-size: 1.15rem;
    color: var(--shu);
}

.icon-btn {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 20px;
    color: var(--ink);
    background: var(--card);
    border: 1px solid var(--line);
    transition: background 0.3s ease, color 0.3s ease, transform 0.4s var(--ease), border-color 0.3s ease;
}

.icon-btn:hover {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}

/* ---------- Top navigation ---------- */

.topnav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    height: var(--nav-h);
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 0 var(--gutter);
    transition: transform 0.5s var(--ease), background 0.4s ease, box-shadow 0.4s ease;
}

.topnav.is-solid {
    background: rgba(247, 242, 234, 0.82);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    backdrop-filter: blur(16px) saturate(1.3);
    box-shadow: 0 1px 0 var(--line);
}

.topnav.is-hidden {
    transform: translateY(-100%);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.brand img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--card);
    box-shadow: 0 0 0 1px var(--line);
    transition: transform 0.6s var(--ease);
}

.brand:hover img {
    transform: rotate(-12deg);
}

.brand-word {
    display: flex;
    flex-direction: column;
    line-height: 1;
    font-family: var(--display);
    font-size: 1.45rem;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.brand-word small {
    margin-top: 3px;
    font-family: var(--body);
    font-size: 0.56rem;
    font-weight: 600;
    letter-spacing: 0.42em;
    color: var(--ink-3);
}

.topnav-links {
    display: flex;
    gap: 6px;
    margin-left: auto;
}

.topnav-links a {
    position: relative;
    padding: 10px 14px;
    font-size: 0.84rem;
    font-weight: 500;
    color: var(--ink-2);
    transition: color 0.3s ease;
}

.topnav-links a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 4px;
    height: 1px;
    background: var(--shu);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.45s var(--ease);
}

.topnav-links a:hover,
.topnav-links a[aria-current] {
    color: var(--ink);
}

.topnav-links a:hover::after,
.topnav-links a[aria-current]::after {
    transform: scaleX(1);
    transform-origin: left;
}

.topnav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    border: 1px solid var(--line-2);
    transition: all 0.3s ease;
}

.lang-switch:hover,
.lang.is-open .lang-switch {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}

.lang-switch ion-icon {
    font-size: 1rem;
}

/* language dropdown */
.lang {
    position: relative;
}

.lang-switch .lang-chev {
    font-size: 0.8rem;
    transition: transform 0.35s var(--ease);
}

.lang.is-open .lang-chev {
    transform: rotate(180deg);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 70;
    display: grid;
    gap: 2px;
    min-width: 180px;
    padding: 6px;
    border-radius: 14px;
    background: var(--card);
    box-shadow: 0 0 0 1px var(--line), 0 24px 44px -20px rgba(43, 29, 22, 0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(0.97);
    transform-origin: top right;
    transition: opacity 0.25s ease, transform 0.35s var(--ease), visibility 0s linear 0.35s;
}

.lang.is-open .lang-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.25s ease, transform 0.35s var(--ease), visibility 0s;
}

/* in the mobile menu the button sits low, so the list opens upward */
.lang--up .lang-menu {
    top: auto;
    bottom: calc(100% + 8px);
    left: 0;
    right: auto;
    transform-origin: bottom left;
    transform: translateY(6px) scale(0.97);
}

.lang--up .lang-switch {
    height: 52px;
    padding: 0 22px;
}

.lang-opt {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--ink-2);
    transition: background 0.25s ease, color 0.25s ease;
}

.lang-opt b {
    min-width: 30px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--ink-3);
}

a.lang-opt:hover {
    background: var(--paper-2);
    color: var(--ink);
}

.lang-opt.is-current {
    color: var(--ink);
    font-weight: 700;
}

.lang-opt.is-current b {
    color: var(--shu);
}

.lang-opt ion-icon {
    margin-left: auto;
    color: var(--shu);
    font-size: 1rem;
}

.topnav .btn-contact {
    height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    background: var(--ink);
    color: var(--paper);
    transition: background 0.3s ease, transform 0.4s var(--ease);
}

.topnav .btn-contact:hover {
    background: var(--shu);
    transform: translateY(-1px);
}

.burger {
    display: none;
    position: relative;
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid var(--line-2);
    background: var(--card);
}

.burger span {
    position: absolute;
    left: 13px;
    right: 13px;
    height: 1.5px;
    background: var(--ink);
    transition: transform 0.45s var(--ease), top 0.45s var(--ease);
}

.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 25px; }

.mnav-open .burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.mnav-open .burger span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

.mnav {
    position: fixed;
    inset: 0;
    z-index: 55;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 100px var(--gutter) 40px;
    background: var(--paper);
    clip-path: circle(0% at calc(100% - 40px) 36px);
    transition: clip-path 0.8s var(--ease);
    visibility: hidden;
}

.mnav-open .mnav {
    clip-path: circle(150% at calc(100% - 40px) 36px);
    visibility: visible;
}

.mnav > a {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding: 8px 0;
    font-family: var(--display);
    font-size: clamp(2.2rem, 9vw, 3.2rem);
    font-weight: 600;
    line-height: 1.1;
    border-bottom: 1px solid var(--line);
}

.mnav > a span {
    font-family: var(--body);
    font-size: 0.75rem;
    color: var(--shu);
    letter-spacing: 0.1em;
}

.mnav-foot {
    display: flex;
    gap: 12px;
    margin-top: 28px;
    flex-wrap: wrap;
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    align-items: center;
    gap: clamp(24px, 4vw, 72px);
    min-height: 100vh;
    min-height: 100svh;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: calc(var(--nav-h) + 24px) var(--gutter) 64px;
}

.hero-pattern {
    position: absolute;
    inset: 0 0 0 auto;
    width: 60%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.9;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='56' height='56' viewBox='0 0 56 56'><g fill='none' stroke='%232b1d16' stroke-opacity='.07' stroke-width='1'><circle cx='0' cy='0' r='28'/><circle cx='56' cy='0' r='28'/><circle cx='0' cy='56' r='28'/><circle cx='56' cy='56' r='28'/><circle cx='28' cy='28' r='28'/></g></svg>");
    -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
    mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
}

.hero-text {
    position: relative;
    z-index: 2;
}

.hero-title {
    /* as wide as the OKAMI wordmark, so the subtitle can centre under it */
    width: fit-content;
    max-width: 100%;
    margin: 22px 0 0;
    font-family: var(--display);
    font-weight: 600;
    line-height: 0.86;
    letter-spacing: -0.02em;
}

/* same wordmark as the header brand: bold caps with wide tracking */
.hero-title .ht-main {
    display: block;
    font-size: clamp(3.4rem, 10vw, 9rem);
    font-weight: 700;
    letter-spacing: 0.2em;
}

/* tracking also trails the last letter; pull it back so the word sits flush */
.hero-title .ht-main .ch:last-child {
    margin-right: -0.2em;
}

.hero-title .ht-main .ch {
    display: inline-block;
    animation: htUp 1.1s var(--ease) both;
    animation-delay: calc(0.35s + var(--i) * 0.07s);
}

.hero-title .ht-sub {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    margin-top: 12px;
    font-size: clamp(2rem, 4.6vw, 3.8rem);
    font-style: italic;
    font-weight: 500;
    color: var(--shu);
    animation: fadeUp 1s 0.9s var(--ease) both;
}

.hero-title .ht-sub::before,
.hero-title .ht-sub::after {
    content: "";
    flex: 1 1 0;
    height: 1px;
}

.hero-title .ht-sub::before {
    background: linear-gradient(90deg, transparent, var(--shu));
}

.hero-title .ht-sub::after {
    background: linear-gradient(90deg, var(--shu), transparent);
}

.hero-lead {
    max-width: 30em;
    margin: 26px 0 0;
    font-size: clamp(1rem, 1.3vw, 1.12rem);
    color: var(--ink-2);
    animation: fadeUp 1s 1.05s var(--ease) both;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
    animation: fadeUp 1s 1.2s var(--ease) both;
}

.hero-notes {
    display: grid;
    gap: 10px;
    max-width: 34em;
    margin: 40px 0 0;
    padding: 0;
    list-style: none;
    animation: fadeUp 1s 1.35s var(--ease) both;
}

.hero-notes li {
    display: flex;
    gap: 10px;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--ink-3);
}

.hero-notes ion-icon {
    flex: 0 0 auto;
    margin-top: 2px;
    font-size: 15px;
    color: var(--shu);
}

.hero-visual {
    position: relative;
    justify-self: center;
    width: min(100%, 525px);
    /* the taller arch grows upward: lift it so its foot stays where it was */
    margin-top: -48px;
}

.arch {
    position: relative;
    aspect-ratio: 3 / 4;
    border-radius: 999px 999px 28px 28px;
    overflow: hidden;
    background: var(--paper-3);
    box-shadow: 0 50px 80px -40px rgba(43, 29, 22, 0.55);
    animation: archIn 1.4s 0.2s var(--ease) both;
}

.arch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.08);
    animation: kenburns 18s ease-out both;
}

.arch::after {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 999px 999px 20px 20px;
    border: 1px solid rgba(255, 250, 242, 0.7);
    pointer-events: none;
}

.arch-shadow {
    position: absolute;
    inset: 22px -22px -22px 22px;
    z-index: -1;
    border-radius: 999px 999px 28px 28px;
    border: 1px solid var(--line-2);
}

.seal-badge {
    position: absolute;
    left: -36px;
    bottom: 22%;
    width: 112px;
    height: 112px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--paper);
    box-shadow: 0 20px 40px -20px rgba(43, 29, 22, 0.45);
    animation: popIn 0.9s 1.3s var(--ease) both;
}

.seal-badge svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    animation: spin 26s linear infinite;
}

/* spacing comes from textLength on the textPath, not letter-spacing */
.seal-badge text {
    font-family: var(--body);
    font-size: 15px;
    font-weight: 700;
    fill: var(--ink);
}

.seal-badge .logo-mark {
    width: 44px;
    height: 44px;
    padding: 7px;
    animation: stamp 0.7s 1.7s cubic-bezier(0.3, 1.6, 0.5, 1) both;
}

.jp-vertical {
    position: absolute;
    right: calc(var(--gutter) * 0.4);
    top: calc(var(--nav-h) + 40px);
    writing-mode: vertical-rl;
    font-family: var(--jp);
    font-size: 0.95rem;
    letter-spacing: 0.6em;
    color: var(--ink-3);
    opacity: 0.8;
}

.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transform: translateX(-50%);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.scroll-cue i {
    position: relative;
    width: 1px;
    height: 44px;
    overflow: hidden;
    background: var(--line);
}

.scroll-cue i::after {
    content: "";
    position: absolute;
    left: 0;
    top: -50%;
    width: 1px;
    height: 50%;
    background: var(--shu);
    animation: drip 2s var(--ease) infinite;
}

/* ---------- Marquee ---------- */

.marquee {
    position: relative;
    overflow: hidden;
    padding: 22px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--ink);
    color: var(--paper);
    transform: rotate(-1.2deg) scale(1.02);
    margin: 10px 0 0;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 38s linear infinite;
}

.marquee span {
    display: inline-flex;
    align-items: center;
    gap: 34px;
    padding-right: 34px;
    font-family: var(--display);
    font-size: clamp(1.6rem, 3.4vw, 2.8rem);
    font-style: italic;
    font-weight: 500;
    white-space: nowrap;
}

.marquee .jp {
    font-family: var(--jp);
    font-style: normal;
    font-size: 0.8em;
    color: var(--sakura);
}

.marquee svg {
    width: 22px;
    height: 22px;
    fill: var(--sakura);
}

/* ---------- Promotions ---------- */

.promo-row {
    display: flex;
    gap: 16px;
    margin: 0 calc(var(--gutter) * -1);
    padding: 10px var(--gutter) 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.promo-row::-webkit-scrollbar {
    display: none;
}

.promo {
    position: relative;
    flex: 0 0 auto;
    width: 230px;
    min-height: 250px;
    display: flex;
    flex-direction: column;
    padding: 22px 20px 18px;
    text-align: left;
    border-radius: 20px;
    background: var(--card);
    box-shadow: 0 1px 0 var(--line), 0 20px 40px -30px rgba(43, 29, 22, 0.5);
    scroll-snap-align: start;
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
    overflow: hidden;
}

.promo:hover {
    transform: translateY(-6px) rotate(-0.6deg);
    box-shadow: 0 1px 0 var(--line), 0 30px 50px -28px rgba(43, 29, 22, 0.55);
}

.promo-emoji {
    font-size: 2.3rem;
    line-height: 1;
}

.promo-name {
    margin: 16px 0 24px;
    font-family: var(--display);
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.05;
}

.promo-teaser {
    margin: -12px 0 18px;
    font-size: 0.86rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ink);
}

.promo-time {
    margin-top: auto;
    padding-top: 14px;
    border-top: 1.5px dashed var(--line-2);
    font-size: 0.74rem;
    line-height: 1.4;
    color: var(--ink-2);
}

.promo-open {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--shu);
}

.promo:nth-child(4n + 2) { background: #f9ecee; }
.promo:nth-child(4n + 3) { background: #f2ebe0; }
.promo:nth-child(4n + 4) { background: #eef0e6; }

.disclaimer {
    margin: 4px 0 0;
    font-size: 0.74rem;
    color: var(--ink-3);
}

/* ---------- Category bar (sticky) ---------- */

.catbar {
    position: sticky;
    top: var(--nav-offset);
    z-index: 40;
    margin-top: clamp(40px, 6vw, 80px);
    background: rgba(247, 242, 234, 0.88);
    -webkit-backdrop-filter: blur(16px) saturate(1.3);
    backdrop-filter: blur(16px) saturate(1.3);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    transition: top 0.5s var(--ease);
}

.catbar-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.cb-groups {
    display: flex;
    gap: 4px;
    padding: 5px;
    border-radius: 999px;
    background: var(--paper-2);
}

.cb-group {
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-3);
    white-space: nowrap;
    transition: background 0.35s var(--ease), color 0.35s ease;
}

.cb-group:hover {
    color: var(--ink);
}

.cb-group.is-active {
    background: var(--ink);
    color: var(--paper);
}

.cb-cats {
    position: relative;
    display: flex;
    gap: 2px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
    padding: 0 18px;
}

.cb-cats::-webkit-scrollbar {
    display: none;
}

.cb-cat {
    position: relative;
    flex: 0 0 auto;
    padding: 20px 12px 18px;
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--ink-3);
    white-space: nowrap;
    transition: color 0.3s ease;
}

.cb-cat:hover {
    color: var(--ink);
}

.cb-cat.is-active {
    color: var(--ink);
    font-weight: 700;
}

.cb-ink {
    position: absolute;
    left: 0;
    bottom: 10px;
    height: 8px;
    width: 0;
    pointer-events: none;
    transition: transform 0.55s var(--ease), width 0.55s var(--ease);
}

.cb-ink svg {
    display: block;
    width: 100%;
    height: 100%;
}

.cb-ink path {
    fill: none;
    stroke: var(--shu);
    stroke-width: 3;
    stroke-linecap: round;
    filter: url(#brush-rough);
}

.cb-tools {
    display: flex;
    gap: 8px;
}

.cb-sort {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    background: var(--card);
    border: 1px solid var(--line);
    transition: all 0.3s ease;
}

.cb-sort:hover,
.cb-sort.is-on {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}

.cb-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: var(--shu);
    transform: scaleX(0);
    transform-origin: left;
}

/* ---------- Menu zone ----------
   A full-bleed panel, one step deeper than the hero's paper tone, so the
   catalogue reads as its own place once you scroll past the promos. */

.menu-zone {
    position: relative;
    background: var(--paper-3);
    box-shadow: inset 0 1px 0 var(--line-2);
}

.menu-zone::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 90px;
    background: linear-gradient(180deg, rgba(43, 29, 22, 0.09), transparent);
    pointer-events: none;
}

/* ---------- Menu sections ---------- */

.menu {
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 var(--gutter) 80px;
}

.sec {
    padding-top: clamp(56px, 7vw, 96px);
    scroll-margin-top: 140px;
}

.sec-head {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 4px clamp(14px, 2vw, 28px);
    margin-bottom: clamp(14px, 1.6vw, 22px);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}

.sec-heading {
    display: flex;
    align-items: flex-end;
    gap: 18px;
    min-width: 0;
}

.sec-titles {
    min-width: 0;
}

.sec-group {
    display: block;
    margin-bottom: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--shu);
}

.sec-title {
    position: relative;
    display: inline-block;
    margin: 0;
    font-family: var(--display);
    font-size: clamp(2.3rem, 5.4vw, 4.6rem);
    font-weight: 600;
    line-height: 0.95;
    letter-spacing: -0.01em;
}

.sec-title .brush {
    position: absolute;
    left: -2%;
    bottom: -2px;
    z-index: -1;
    width: 104%;
    height: 0.42em;
    overflow: visible;
}

.sec-title .brush path {
    fill: none;
    stroke: var(--sakura);
    stroke-width: 14;
    stroke-linecap: round;
    opacity: 0.55;
    stroke-dasharray: 340;
    stroke-dashoffset: 340;
    filter: url(#brush-rough);
    transition: stroke-dashoffset 1.2s 0.2s var(--ease);
}

.sec-head.in .brush path,
.no-reveal .sec-title .brush path {
    stroke-dashoffset: 0;
}

.sec-sub {
    display: block;
    margin-top: 6px;
    font-size: 0.86rem;
    color: var(--ink-3);
}

.sec-side {
    display: flex;
    align-items: flex-end;
    gap: 18px;
}

.sec-jp {
    writing-mode: vertical-rl;
    font-family: var(--jp);
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: 0.3em;
    color: var(--ink-2);
}

.sec-count {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-3);
    white-space: nowrap;
}

/* dish grid */
.dishes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 28px) clamp(12px, 1.8vw, 26px);
}

@media (min-width: 760px) {
    .dishes {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1180px) {
    .dishes {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .dishes .dish--feature {
        grid-column: span 2;
        flex-direction: row;
        align-items: stretch;
        gap: 26px;
        padding: 16px;
        border-radius: 8px;
        background: var(--card);
        box-shadow: 0 1px 0 var(--line), 0 30px 50px -40px rgba(43, 29, 22, 0.5);
    }

    .dishes .dish--feature .dish-media {
        flex: 0 0 46%;
        align-self: flex-start;
    }

    .dishes .dish--feature .dish-body {
        flex: 1 1 auto;
        justify-content: center;
        padding: 12px 10px 12px 0;
    }

    .dishes .dish--feature .dish-kicker {
        display: flex;
        align-items: center;
        gap: 14px;
        margin-bottom: 18px;
        font-size: 0.7rem;
        font-weight: 700;
        letter-spacing: 0.22em;
        color: var(--shu);
    }

    .dishes .dish--feature .dish-kicker .jp {
        font-family: var(--jp);
        font-size: 1rem;
        letter-spacing: 0.3em;
        color: var(--ink-3);
    }

    .dishes .dish--feature .dish-kicker::after {
        content: "";
        flex: 1 1 auto;
        height: 1px;
        background: var(--line);
    }

    .dishes .dish--feature .dish-name {
        font-size: clamp(1.8rem, 2.4vw, 2.4rem);
    }

    .dishes .dish--feature .dish-desc {
        margin-top: 14px;
        font-size: 0.9rem;
        -webkit-line-clamp: 6;
    }

    .dishes .dish--feature .dish-foot {
        margin-top: 22px;
    }

    .dishes .dish--feature .price {
        font-size: 1.7rem;
    }
}

/* every product is its own light card, so name/price read clearly against the panel */
.dish {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 10px;
    border-radius: 8px;
    background: var(--card);
    box-shadow: 0 1px 0 var(--line), 0 18px 34px -28px rgba(43, 29, 22, 0.45);
    cursor: pointer;
    outline: none;
    transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}

.dish:hover,
.dish:focus-visible {
    transform: translateY(-4px);
    box-shadow: 0 1px 0 var(--line), 0 30px 46px -28px rgba(43, 29, 22, 0.55);
}

.dish-media {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: 4px;
    overflow: hidden;
    background: var(--paper-3);
    transform: translateZ(0);
}

.dish-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s var(--ease), filter 0.6s ease, opacity 0.6s ease;
}

.dish-media img.is-loading {
    opacity: 0;
}

/* bottle/can cutouts keep their whole shape instead of being cropped to fill */
.dish-media.is-product {
    background: var(--card);
}

.dish-media.is-product img {
    object-fit: contain;
    padding: 14%;
    mix-blend-mode: multiply;
}

.dish-media::after {
    content: "";
    position: absolute;
    inset: 9px;
    border-radius: 3px;
    border: 1px solid rgba(255, 250, 242, 0.75);
    pointer-events: none;
    transition: inset 0.6s var(--ease), border-color 0.6s ease;
}

.dish:hover .dish-media img,
.dish:focus-visible .dish-media img {
    transform: scale(1.07);
}

.dish:hover .dish-media::after,
.dish:focus-visible .dish-media::after {
    inset: 14px;
    border-color: rgba(255, 250, 242, 0.95);
}

.dish-tag {
    position: absolute;
    left: 50%;
    bottom: 14px;
    z-index: 2;
    transform: translateX(-50%);
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--ink);
    background: rgba(251, 248, 243, 0.92);
    white-space: nowrap;
}

.dish-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 14px 6px 4px;
}

.dish-kicker {
    display: none;
}

.dish-name {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(1.15rem, 1.7vw, 1.45rem);
    font-weight: 700;
    line-height: 1.1;
    font-variant-numeric: lining-nums;
    /* long compound words (e.g. Մանրածովախեցգետնով) wrap instead of spilling out */
    overflow-wrap: anywhere;
    hyphens: auto;
}

.dish-desc {
    display: -webkit-box;
    margin: 7px 0 0;
    overflow: hidden;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--ink-3);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* pinned to the card's foot so prices line up across a row */
.dish-foot {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 12px;
}

.price {
    font-family: var(--display);
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: lining-nums;
    white-space: nowrap;
}

.price small {
    margin-left: 3px;
    font-family: var(--body);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--ink-3);
}

/* wine-list layout for beverages */
.empty-state {
    padding: 80px 0;
    text-align: center;
    font-family: var(--display);
    font-size: 1.8rem;
    color: var(--ink-3);
}

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

.foot {
    position: relative;
    z-index: 1;
    overflow: hidden;
    padding: clamp(64px, 8vw, 110px) var(--gutter) 28px;
    background: var(--ink);
    color: var(--paper);
}

.foot-top {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
    gap: 40px;
    max-width: var(--maxw);
    margin: 0 auto;
}

.foot-brand .logo-mark {
    width: 74px;
    height: 74px;
    padding: 12px;
}

.foot-brand p {
    max-width: 22em;
    margin: 22px 0 0;
    font-family: var(--display);
    font-size: 1.6rem;
    font-style: italic;
    line-height: 1.2;
    color: rgba(247, 242, 234, 0.85);
}

.foot-col h4 {
    margin: 0 0 16px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--sakura);
}

.foot-col a,
.foot-col button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    font-size: 0.92rem;
    color: rgba(247, 242, 234, 0.78);
    transition: color 0.3s ease, transform 0.4s var(--ease);
}

.foot-col a:hover,
.foot-col button:hover {
    color: #fff;
    transform: translateX(4px);
}

.foot-col ion-icon {
    font-size: 1.1rem;
    color: var(--sakura);
}

.foot-big {
    max-width: var(--maxw);
    margin: clamp(40px, 6vw, 80px) auto 0;
    font-family: var(--display);
    font-size: clamp(5rem, 22vw, 20rem);
    font-weight: 700;
    line-height: 0.8;
    letter-spacing: 0.04em;
    text-align: center;
    color: transparent;
    -webkit-text-stroke: 1px rgba(247, 242, 234, 0.22);
    user-select: none;
}

.foot-bottom {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    max-width: var(--maxw);
    margin: 28px auto 0;
    padding-top: 22px;
    border-top: 1px solid rgba(247, 242, 234, 0.12);
    font-size: 0.75rem;
    color: rgba(247, 242, 234, 0.5);
}

/* ---------- Overlays: shared ---------- */

.overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: grid;
    place-items: center;
    padding: 20px;
    visibility: hidden;
    pointer-events: none;
}

.overlay.is-open {
    visibility: visible;
    pointer-events: auto;
}

.overlay-bg {
    position: absolute;
    inset: 0;
    background: rgba(43, 29, 22, 0.5);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.45s ease;
}

.overlay.is-open .overlay-bg {
    opacity: 1;
}

.dialog-card {
    position: relative;
    width: min(100%, 560px);
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: clamp(28px, 4vw, 44px);
    border-radius: 28px;
    background: var(--paper);
    box-shadow: 0 50px 100px -30px rgba(43, 29, 22, 0.6);
    opacity: 0;
    transform: translateY(30px) scale(0.97);
    transition: opacity 0.45s ease, transform 0.6s var(--ease);
}

.overlay.is-open .dialog-card {
    opacity: 1;
    transform: none;
}

.dialog-card .icon-btn.close {
    position: absolute;
    top: 16px;
    right: 16px;
}

.dialog-head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-right: 40px;
}

.dialog-head h2 {
    margin: 0;
    font-family: var(--display);
    font-size: clamp(1.9rem, 4vw, 2.5rem);
    font-weight: 700;
    line-height: 1;
}

.dialog-lead {
    margin: 18px 0 0;
    font-size: 0.92rem;
    color: var(--ink-2);
}

.rail-prices {
    display: grid;
    gap: 12px;
    margin: 24px 0;
}

.rail-price {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 4px 16px;
    padding: 18px 20px;
    border-radius: 18px;
    background: var(--card);
    box-shadow: 0 1px 0 var(--line);
}

.rail-price::before {
    content: "";
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 18px;
    width: 3px;
    border-radius: 3px;
    background: var(--shu);
}

.rail-price strong {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.rail-price b {
    grid-row: span 2;
    font-family: var(--display);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: lining-nums;
}

.rail-price small {
    font-size: 0.74rem;
    color: var(--ink-3);
}

.dialog-sub-title {
    margin: 28px 0 4px;
    font-family: var(--display);
    font-size: 1.6rem;
    font-weight: 700;
}

.dialog-card .promo-row {
    margin: 0 calc(clamp(28px, 4vw, 44px) * -1);
    padding: 12px clamp(28px, 4vw, 44px) 16px;
}

.dialog-card .promo {
    width: 190px;
    min-height: 210px;
    padding: 18px 16px 14px;
}

.dialog-card .promo-name {
    font-size: 1.25rem;
}

.contact-list {
    display: grid;
    gap: 10px;
    margin-top: 26px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 18px;
    border-radius: 18px;
    background: var(--card);
    box-shadow: 0 1px 0 var(--line);
    transition: transform 0.4s var(--ease);
}

.contact-item:hover {
    transform: translateX(4px);
}

.contact-item ion-icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 11px;
    border-radius: 50%;
    background: var(--paper-2);
    color: var(--shu);
}

.contact-item small {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.contact-item span {
    font-family: var(--display);
    font-size: 1.4rem;
    font-weight: 700;
    font-variant-numeric: lining-nums;
}

.socials {
    display: flex;
    gap: 10px;
    margin-top: 22px;
}

/* ---------- Product sheet ---------- */

.sheet {
    z-index: 110;
    padding: 24px;
}

.sheet-panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    width: min(100%, 1100px);
    height: min(720px, calc(100dvh - 48px));
    overflow: hidden;
    border-radius: 32px;
    background: var(--paper);
    box-shadow: 0 60px 120px -40px rgba(43, 29, 22, 0.7);
    opacity: 0;
    transform: translateY(40px) scale(0.97);
    transition: opacity 0.45s ease, transform 0.7s var(--ease);
}

.sheet.is-open .sheet-panel {
    opacity: 1;
    transform: none;
}

.sheet-grip {
    display: none;
}

.sheet-media {
    position: relative;
    overflow: hidden;
    background: var(--paper-3);
}

.sheet-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.4s ease;
}

.sheet.is-open .sheet-media img {
    animation: kenburns 14s ease-out both;
}

.sheet-media.is-product {
    background: var(--card);
}

.sheet-media.is-product img {
    object-fit: contain;
    padding: 8%;
    mix-blend-mode: multiply;
}

.sheet-pcs {
    position: absolute;
    left: 20px;
    bottom: 20px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    background: rgba(251, 248, 243, 0.92);
}

.sheet-pcs:empty {
    display: none;
}

.sheet-body {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: clamp(28px, 4vw, 56px);
}

.sheet-body > * {
    opacity: 0;
    transform: translateY(16px);
}

.sheet.is-open .sheet-body > * {
    animation: fadeUp 0.7s var(--ease) both;
}

.sheet.is-open .sheet-body > *:nth-child(2) { animation-delay: 0.08s; }
.sheet.is-open .sheet-body > *:nth-child(3) { animation-delay: 0.16s; }
.sheet.is-open .sheet-body > *:nth-child(4) { animation-delay: 0.24s; }
.sheet.is-open .sheet-body > *:nth-child(5) { animation-delay: 0.32s; }

.sheet-close {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 3;
}

.sheet-cat {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding-right: 48px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--shu);
}

.sheet-cat .jp {
    font-family: var(--jp);
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    color: var(--ink-3);
}

.sheet-name {
    margin: 18px 0 0;
    font-family: var(--display);
    font-size: clamp(2.2rem, 4vw, 3.6rem);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.01em;
    font-variant-numeric: lining-nums;
    overflow-wrap: anywhere;
    hyphens: auto;
}

.sheet-price {
    margin-top: 22px;
}

.sheet-price .price {
    font-size: 2.4rem;
}

.sheet-price:empty {
    display: none;
}

.sheet-ingr {
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.sheet-ingr:empty {
    display: none;
}

.sheet-ingr h4 {
    margin: 0 0 14px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.tags li {
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    background: var(--card);
    box-shadow: 0 0 0 1px var(--line);
}

.tags li::first-letter {
    text-transform: uppercase;
}

.sheet-nav {
    display: flex;
    gap: 10px;
    margin-top: auto;
    padding-top: 32px;
}

.sheet-nav button {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 12px 14px;
    border-radius: 16px;
    text-align: left;
    background: var(--card);
    box-shadow: 0 0 0 1px var(--line);
    transition: background 0.3s ease, transform 0.4s var(--ease);
}

.sheet-nav button:hover {
    background: var(--paper-2);
}

.sheet-nav button[data-dir="1"] {
    justify-content: flex-end;
    text-align: right;
}

.sheet-nav button:disabled {
    visibility: hidden;
}

.sheet-nav ion-icon {
    flex: 0 0 auto;
    font-size: 1.2rem;
}

.sheet-nav small {
    display: block;
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.sheet-nav span {
    display: block;
    overflow: hidden;
    font-family: var(--display);
    font-size: 1.05rem;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.sheet-nav div {
    min-width: 0;
}

/* ---------- Search ---------- */

.search {
    z-index: 105;
    place-items: start center;
    padding: 0;
}

.search-panel {
    position: relative;
    width: 100%;
    height: 100dvh;
    overflow-y: auto;
    background: var(--paper);
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.7s var(--ease);
}

.search.is-open .search-panel {
    clip-path: inset(0 0 0 0);
}

.search-inner {
    max-width: 980px;
    margin: 0 auto;
    padding: 28px var(--gutter) 60px;
}

.search-top {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 18px;
    border-bottom: 1.5px solid var(--ink);
}

.search-top ion-icon.lead {
    flex: 0 0 auto;
    font-size: 30px;
    color: var(--shu);
}

.search-top input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-family: var(--display);
    font-size: clamp(1.8rem, 5vw, 3.2rem);
    font-weight: 600;
    color: var(--ink);
}

.search-top input::placeholder {
    color: var(--ink-3);
    opacity: 0.6;
}

.search-top input::-webkit-search-cancel-button {
    display: none;
}

.search-meta {
    margin: 18px 0 8px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--ink-3);
}

.search-results {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0 40px;
}

@media (min-width: 760px) {
    .search-results {
        grid-template-columns: 1fr 1fr;
    }
}

.sr {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px 6px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    border-radius: 12px;
    transition: background 0.3s ease;
}

.sr:hover {
    background: var(--card);
}

.sr img {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--card);
}

.sr.is-product img {
    object-fit: contain;
    mix-blend-mode: multiply;
}

.sr-name {
    display: block;
    overflow: hidden;
    font-family: var(--display);
    font-size: 1.2rem;
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.sr-cat {
    display: block;
    font-size: 0.72rem;
    color: var(--ink-3);
}

.sr mark {
    background: var(--sakura-2);
    color: inherit;
    border-radius: 3px;
}

/* ---------- Stories ---------- */

.story {
    z-index: 120;
    padding: 0;
    background: transparent;
    /* stories are tapped and held (pause), so no text selection or iOS long-press menu */
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

.story img {
    -webkit-user-drag: none;
}

.story .overlay-bg {
    background: rgba(20, 13, 10, 0.92);
}

.story-frame {
    position: relative;
    width: min(100%, 440px);
    height: min(100dvh, 820px);
    overflow: hidden;
    background: linear-gradient(160deg, #3a2820, #1c130f);
    opacity: 0;
    transform: scale(0.94);
    transition: opacity 0.4s ease, transform 0.6s var(--ease);
    touch-action: pan-y;
    user-select: none;
}

@media (min-width: 640px) {
    .story-frame {
        border-radius: 22px;
        height: min(92dvh, 820px);
    }
}

.story.is-open .story-frame {
    opacity: 1;
    transform: none;
}

.story-bars {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 4;
    display: flex;
    gap: 4px;
    padding: max(14px, env(safe-area-inset-top)) 12px 0;
}

.story-bars i {
    flex: 1 1 0;
    height: 3px;
    overflow: hidden;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.28);
}

.story-bars i b {
    display: block;
    width: 0;
    height: 100%;
    background: #fff;
}

.story-bars i.done b {
    width: 100%;
}

.story-bars i.run b {
    animation: storyBar var(--dur, 10s) linear forwards;
}

.story-frame.is-paused .story-bars i.run b {
    animation-play-state: paused;
}

.story-head {
    position: absolute;
    top: max(30px, calc(env(safe-area-inset-top) + 18px));
    left: 14px;
    right: 64px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.story-head img {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--paper);
}

.story-close {
    position: absolute;
    top: max(24px, calc(env(safe-area-inset-top) + 12px));
    right: 12px;
    z-index: 5;
    background: rgba(255, 255, 255, 0.14);
    border-color: transparent;
    color: #fff;
}

.story-track {
    position: absolute;
    inset: 0;
    display: flex;
    transition: transform 0.5s var(--ease);
}

.story-slide {
    flex: 0 0 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 90px 22px 54px;
    overflow-y: auto;
}

.story-card {
    position: relative;
    width: 100%;
    padding: 30px 24px 24px;
    border-radius: 24px;
    background: var(--paper);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
}

.story-card .big-emoji {
    font-size: 3.4rem;
    line-height: 1;
}

.story-card h3 {
    margin: 16px 0 14px;
    font-family: var(--display);
    font-size: 1.7rem;
    font-weight: 700;
    line-height: 1.08;
}

.story-card p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--ink-2);
    white-space: pre-line;
}

.story-card .when {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px dashed var(--line-2);
    font-weight: 700;
    color: var(--shu);
}

.story-card .foot-note,
.story-card .disc {
    margin-top: 14px;
    font-size: 0.76rem;
    color: var(--ink-3);
}

.story-tap {
    position: absolute;
    top: 80px;
    bottom: 60px;
    z-index: 3;
    width: 34%;
}

.story-tap.prev { left: 0; }
.story-tap.next { right: 0; }

.story-hint {
    position: absolute;
    left: 0;
    right: 0;
    bottom: max(16px, env(safe-area-inset-bottom));
    z-index: 3;
    margin: 0;
    text-align: center;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
}

/* ---------- To top ---------- */

.to-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 50;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 20px;
    color: var(--paper);
    background: var(--ink);
    box-shadow: 0 20px 40px -16px rgba(43, 29, 22, 0.7);
    opacity: 0;
    transform: translateY(20px) scale(0.8);
    pointer-events: none;
    transition: all 0.5s var(--ease);
}

.to-top.is-visible {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.to-top:hover {
    background: var(--shu);
}

.to-top svg {
    position: absolute;
    inset: -4px;
    width: calc(100% + 8px);
    height: calc(100% + 8px);
    transform: rotate(-90deg);
}

.to-top circle {
    fill: none;
    stroke: var(--shu);
    stroke-width: 2;
    stroke-dasharray: 182;
    stroke-dashoffset: calc(182 - 182 * var(--p, 0));
}

/* ---------- Logo loader ---------- */

.loader {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: grid;
    place-items: center;
    background:
        radial-gradient(ellipse 60% 50% at 50% 45%, rgba(233, 165, 180, 0.18), transparent 70%),
        var(--paper);
    clip-path: inset(0 0 0 0);
    transition: clip-path 1s cubic-bezier(0.76, 0, 0.24, 1);
}

html.no-loader .loader {
    display: none;
}

.loader.is-leaving {
    clip-path: inset(0 0 100% 0);
}

.loader-inner {
    display: grid;
    justify-items: center;
    gap: 18px;
    transition: opacity 0.45s ease, transform 0.9s var(--ease);
}

.loader.is-leaving .loader-inner {
    opacity: 0;
    transform: translateY(-50px) scale(0.96);
}

.loader-logo {
    position: relative;
    width: 168px;
    height: 168px;
}

.loader-logo img {
    position: absolute;
    inset: 18px;
    width: calc(100% - 36px);
    height: calc(100% - 36px);
    object-fit: contain;
    mix-blend-mode: multiply;
    animation: logoIn 1.1s 0.1s var(--ease) both, logoBreathe 2.6s 1.2s ease-in-out infinite;
}

.loader-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.loader-ring circle {
    fill: none;
    stroke-width: 1.5;
    stroke-linecap: round;
}

.loader-ring .track {
    stroke: var(--line);
}

.loader-ring .arc {
    stroke: var(--shu);
    stroke-dasharray: 352;
    stroke-dashoffset: 270;
    transform-origin: 60px 60px;
    animation: spin 1.3s linear infinite;
    transition: stroke-dashoffset 0.6s var(--ease);
}

.loader.is-done .loader-ring .arc {
    stroke-dashoffset: 0;
    animation-play-state: paused;
}

.loader-word {
    font-family: var(--display);
    font-size: clamp(2.2rem, 6vw, 3.2rem);
    font-weight: 600;
    letter-spacing: 0.5em;
    padding-left: 0.5em;
    line-height: 1;
    color: var(--ink);
    animation: track 1.2s 0.35s var(--ease) both;
}

.loader-sub {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.4em;
    padding-left: 0.4em;
    color: var(--ink-3);
    animation: fadeUp 0.9s 0.7s var(--ease) both;
}

/* hero entrance waits behind the loader */
html.loader-on .hero,
html.loader-on .hero * {
    animation-play-state: paused !important;
}

/* ---------- Reveal ---------- */

.js-reveal .reveal {
    opacity: 0;
    transform: translateY(34px);
    transition: opacity 0.9s var(--ease), transform 1.1s var(--ease);
    transition-delay: var(--d, 0s);
}

.js-reveal .reveal.in {
    opacity: 1;
    transform: none;
}

/* ---------- Keyframes ---------- */

@keyframes htUp {
    from { opacity: 0; transform: translateY(0.5em) rotate(6deg); }
    to { opacity: 1; transform: none; }
}

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

@keyframes archIn {
    from { opacity: 0; transform: translateY(60px) scale(0.96); }
    to { opacity: 1; transform: none; }
}

@keyframes kenburns {
    from { transform: scale(1.14); }
    to { transform: scale(1.02); }
}

@keyframes popIn {
    from { opacity: 0; transform: scale(0.6); }
    to { opacity: 1; transform: none; }
}

@keyframes stamp {
    0% { opacity: 0; transform: scale(2.4) rotate(-20deg); }
    60% { opacity: 1; transform: scale(0.92) rotate(-6deg); }
    100% { opacity: 1; transform: scale(1) rotate(-6deg); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes drip {
    0% { top: -50%; }
    100% { top: 100%; }
}

@keyframes marquee {
    to { transform: translateX(-50%); }
}

@keyframes storyBar {
    to { width: 100%; }
}

@keyframes logoIn {
    from { opacity: 0; transform: scale(0.7) rotate(-30deg); filter: blur(6px); }
    to { opacity: 1; transform: none; filter: none; }
}

@keyframes logoBreathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

@keyframes track {
    from { opacity: 0; letter-spacing: 1.2em; filter: blur(8px); }
    to { opacity: 1; letter-spacing: 0.5em; filter: none; }
}

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

@media (max-width: 1100px) {
    .topnav-links {
        display: none;
    }

    .topnav-right {
        margin-left: auto;
    }

    .burger {
        display: block;
    }

    .foot-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 900px) {
    :root {
        --nav-h: 64px;
    }

    .hero {
        grid-template-columns: 1fr;
        gap: 36px;
        min-height: 0;
        padding-top: calc(var(--nav-h) + 16px);
        padding-bottom: 80px;
    }

    .hero-visual {
        order: -1;
        width: min(100%, 440px);
        margin-top: 0;
    }

    .arch {
        aspect-ratio: 4 / 5;
    }

    .arch-shadow {
        inset: 14px -8px -14px 14px;
    }

    .marquee {
        transform: rotate(-1.2deg);
    }

    .hero-title .ht-main {
        font-size: clamp(2.8rem, 17vw, 5.6rem);
    }

    .seal-badge {
        left: -10px;
        bottom: -24px;
        width: 96px;
        height: 96px;
    }

    .seal-badge .logo-mark {
        width: 38px;
        height: 38px;
        padding: 6px;
    }

    .jp-vertical {
        display: none;
    }

    .scroll-cue {
        display: none;
    }

    .catbar-inner {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 0 10px;
        padding-top: 10px;
    }

    .cb-groups {
        grid-column: 1 / -1;
        overflow-x: auto;
        scrollbar-width: none;
        justify-self: start;
        max-width: 100%;
    }

    .cb-groups::-webkit-scrollbar {
        display: none;
    }

    .cb-cats {
        margin-left: calc(var(--gutter) * -1);
        padding-left: var(--gutter);
    }

    .cb-cat {
        padding: 16px 10px 16px;
        font-size: 0.82rem;
    }

    .cb-ink {
        bottom: 7px;
    }

    .cb-sort span {
        display: none;
    }

    .cb-sort {
        width: 44px;
        padding: 0;
        justify-content: center;
    }

    .sec-head {
        grid-template-columns: 1fr;
    }

    .sec-side {
        justify-content: space-between;
        align-items: center;
        margin-top: 6px;
    }

    .sec-jp {
        writing-mode: horizontal-tb;
        font-size: 0.95rem;
    }

    .sheet {
        padding: 0;
        place-items: end center;
    }

    .sheet-panel {
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(0, 1fr);
        width: 100%;
        height: auto;
        max-height: 94dvh;
        border-radius: 28px 28px 0 0;
        transform: translateY(100%);
        opacity: 1;
        transition: transform 0.6s var(--ease);
    }

    .sheet.is-open .sheet-panel {
        transform: translateY(var(--drag, 0px));
    }

    .sheet-panel.is-dragging {
        transition: none;
    }

    .sheet-grip {
        display: block;
        position: absolute;
        top: 10px;
        left: 50%;
        z-index: 4;
        width: 44px;
        height: 5px;
        margin-left: -22px;
        border-radius: 5px;
        background: rgba(251, 248, 243, 0.85);
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    }

    .sheet-media {
        height: min(44dvh, 380px);
    }

    .sheet-body {
        padding: 26px 22px max(26px, env(safe-area-inset-bottom));
    }

    .sheet-name {
        font-size: 2.2rem;
    }

    .foot-top {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .marquee {
        padding: 16px 0;
    }
}

@media (max-width: 600px) {
    .topnav .btn-contact {
        display: none;
    }
}

@media (max-width: 520px) {
    .dish {
        padding: 7px;
    }

    .dish-body {
        padding: 10px 3px 2px;
    }

    .dish-desc {
        font-size: 0.74rem;
    }

    .price {
        font-size: 1.15rem;
    }

    .dish-media::after {
        inset: 6px;
    }

    .hero-cta .btn-ink,
    .hero-cta .btn-line {
        flex: 1 1 100%;
    }

    .sec-heading {
        gap: 14px;
    }

    .promo {
        width: 200px;
        min-height: 230px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-delay: 0s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }

    #petals {
        display: none;
    }
}
