/* Kabuki — global styles */
@font-face {
  font-family: "FH Cordelia";
  src: url("../assets/fonts/FHCordelia-Regular.otf") format("opentype");
  font-display: swap;
}
@font-face {
  font-family: "Olive Kanji";
  src: url("../assets/fonts/sfolive-kanji.ttf") format("truetype");
  font-display: swap;
}

:root {
  --paper: #f6f3ec;
  --canvas: #efece4;
  --ink: #141414;
  --red: #ed1c24;
  --red-deep: #a30f16;
  --grey: #6b6b67;
  --body-copy: #3a3a38;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Zen Kaku Gothic New", "Yu Gothic", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--red); }

.display { font-family: "FH Cordelia", "Times New Roman", serif; font-weight: 400; }
.kanji { font-family: "Olive Kanji", "Yu Mincho", serif; }
.label { font-size: 12px; letter-spacing: 0.28em; text-transform: uppercase; font-weight: 700; }
.body-copy { font-size: 17px; line-height: 1.75; color: var(--body-copy); }

.btn { display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 34px; font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 700; cursor: pointer; border: none; font-family: inherit; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #c8151c; color: #fff; }
.btn-ghost { border: 1px solid var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--red); color: var(--red); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #000; color: var(--paper); }
a:focus-visible, button:focus-visible, [role="slider"]:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

/* ---------- Nav ---------- */
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 5vw; border-bottom: 1px solid rgba(20,20,20,0.12);
  position: relative; z-index: 10; flex-wrap: wrap;
}
.nav .brand { display: flex; align-items: baseline; gap: 12px; }
.nav .brand .display { font-size: 30px; letter-spacing: 0.04em; }
.nav .brand .kanji { font-size: 17px; color: var(--red); }
.nav .links { display: flex; align-items: center; gap: 34px; flex-wrap: wrap; }
.nav .links a { font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase; font-weight: 700; }
.nav .links a.active { color: var(--red); }
.nav .buy { height: 44px; padding: 0 22px; }
.burger { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; background: transparent; border: none; padding: 8px; cursor: pointer; }
.burger span { display: block; height: 2px; background: var(--ink); transition: transform .25s, opacity .25s; }
.nav.open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.open .burger span:nth-child(2) { opacity: 0; }
.nav.open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid rgba(20,20,20,0.12); padding: 34px 5vw; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer .left { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer .left .display { font-size: 22px; }
.footer .small { font-size: 12px; color: var(--grey); }
.footer .right { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer .badge { border: 1px solid var(--ink); padding: 4px 8px; font-size: 11px; font-weight: 700; }
.footer .ig { display: inline-flex; color: var(--ink); }
.footer .ig:hover { color: var(--red); }

/* ---------- Curtain age gate ---------- */
#curtain {
  position: fixed; inset: 0; z-index: 100; overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.42) 0, rgba(0,0,0,0.08) 90px, rgba(0,0,0,0) 160px),
    repeating-linear-gradient(90deg, rgba(0,0,0,0.30) 0px, rgba(0,0,0,0.02) 46px, rgba(255,255,255,0.10) 74px, rgba(0,0,0,0.16) 112px, rgba(0,0,0,0.30) 158px),
    repeating-linear-gradient(90deg, rgba(0,0,0,0.14) 0px, rgba(0,0,0,0) 90px, rgba(255,255,255,0.05) 150px, rgba(0,0,0,0.14) 261px),
    linear-gradient(90deg, #8f0d13, #c4141c 30%, #b5121a 55%, #d0161e 80%, #900d13);
  background-size: auto, 316px 100%, 522px 100%, 100% 100%;
  transition: transform 1.5s cubic-bezier(.8,0,.15,1);
  animation: curtain-sway 7s ease-in-out infinite alternate;
}
@keyframes curtain-sway {
  from { background-position: 0 0, 0 0, 0 0, 0 0; }
  to { background-position: 0 0, 26px 0, -38px 0, 0 0; }
}
#curtain.open { transform: translateX(-116%) skewX(-3.5deg); animation: none; }
#curtain.gone { display: none; }
.age-ok #curtain { display: none; }
#curtain .gate { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; text-align: center; padding: 24px; transition: opacity .45s; }
#curtain.open .gate { opacity: 0; pointer-events: none; }
#curtain .gate .display { font-size: clamp(52px, 9vw, 84px); color: #fff; text-shadow: 0 2px 30px rgba(0,0,0,0.35); }
#curtain .gate .kanji { font-size: 24px; color: #fff; letter-spacing: 0.5em; margin-left: 0.5em; }
#curtain .rule { width: 64px; height: 2px; background: rgba(255,255,255,0.55); }
#curtain .gate p { color: rgba(255,255,255,0.92); font-size: 15px; max-width: 360px; line-height: 1.7; margin: 0; }
#curtain .gate .row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
#curtain .gate .btn-no { border: 1px solid rgba(255,255,255,0.7); color: #fff; background: transparent; }
#curtain .gate .fine { font-size: 12px; color: rgba(255,255,255,0.75); }

/* ---------- Half-face hero (home) ---------- */
#stage { position: relative; height: calc(100vh - 89px); min-height: 560px; overflow: hidden; user-select: none; touch-action: pan-y; background: var(--canvas); }
#divider { touch-action: none; }
#stage .layer { position: absolute; inset: 0; overflow: hidden; }
#stage .layer img { position: absolute; max-width: none; pointer-events: none; }
#layer-vodka img { -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 60%, transparent 97%); mask-image: radial-gradient(ellipse 60% 60% at 50% 50%, #000 60%, transparent 97%); }
#layer-sake { background: var(--paper); clip-path: inset(0 50% 0 0); will-change: clip-path; }
#stage .headline { position: absolute; top: 14px; left: 0; right: 0; text-align: center; z-index: 4; pointer-events: none; }
#stage .headline .label { color: var(--red); }
#stage .headline h1 { font-family: "FH Cordelia", "Times New Roman", serif; font-weight: 400; font-size: clamp(34px, 4.6vw, 62px); margin: 10px 0 0 0; line-height: 1.05; text-wrap: balance; }
#stage .corner { position: absolute; bottom: 30px; z-index: 4; display: flex; flex-direction: column; gap: 6px; }
#stage .corner a { display: flex; flex-direction: column; gap: 6px; width: 170px; background: rgba(246,243,236,0.92); padding: 14px 16px; border-bottom: 3px solid var(--red); }
#stage .corner.right a { align-items: flex-end; text-align: right; }
#stage .corner .act { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; font-weight: 700; color: var(--red); }
#stage .corner .name { font-family: "FH Cordelia", "Times New Roman", serif; font-size: clamp(18px, 2.4vw, 32px); line-height: 1.1; color: var(--ink); }
#stage .corner .sub { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--grey); }
#stage .corner .go { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700; color: var(--ink); border-bottom: 2px solid var(--red); padding-bottom: 2px; margin-top: 6px; align-self: flex-start; }
#stage .corner.right .go { align-self: flex-end; }
#stage .corner a:hover .go { color: var(--red); }
#divider { position: absolute; top: 0; bottom: 0; left: 50%; width: 0; z-index: 5; }
#divider .line { position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: var(--red); }
#divider .grip { position: absolute; top: 52%; left: 50%; transform: translate(-50%,-50%); width: 60px; height: 60px; border-radius: 50%; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; cursor: ew-resize; box-shadow: 0 6px 24px rgba(0,0,0,0.3); }
#stage .hint { position: absolute; left: 50%; bottom: 120px; transform: translateX(-50%); z-index: 6; background: var(--ink); color: var(--paper); font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 700; padding: 8px 16px; opacity: .92; transition: opacity .4s; pointer-events: none; }
#stage.touched .hint { opacity: 0; }

/* ---------- Split sections (vodka page) ---------- */
.split-hero { display: grid; grid-template-columns: 1fr minmax(0, 46%); min-height: 78vh; }
.split-rob { display: grid; grid-template-columns: minmax(0, 42%) 1fr; align-items: center; }

/* ---------- Ticker ---------- */
.ticker { background: var(--red); color: #fff; padding: 18px 0; overflow: hidden; white-space: nowrap; }
.ticker .track { display: inline-block; font-size: 14px; letter-spacing: 0.3em; text-transform: uppercase; font-weight: 700; animation: ticker 28s linear infinite; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 90px 5vw; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 60px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); }
.dark { background: var(--ink); color: var(--paper); }
.dark .body-copy { color: rgba(246,243,236,0.78); }

/* self-drawing underline */
.uline svg { display: block; width: 100%; height: 18px; margin-top: 8px; }
.uline svg path { stroke-dasharray: 460; stroke-dashoffset: 460; }
.on .uline svg path { animation: draw 0.9s .15s cubic-bezier(.6,0,.3,1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* brush image reveal */
.reveal { clip-path: inset(0 100% 0 0); transition: clip-path 1.1s cubic-bezier(.65,0,.25,1); }
.on .reveal, .on.reveal { clip-path: inset(0 0 0 0); }

/* hanko stamp */
.seal { width: 180px; height: 180px; border-radius: 46% 54% 51% 49% / 52% 47% 53% 48%; background: var(--red); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; opacity: 0; transform: scale(1.7) rotate(-14deg); flex-shrink: 0; }
.seal .display { font-size: 54px; line-height: 1; }
.seal .s1 { font-size: 10px; letter-spacing: 0.22em; font-weight: 700; }
.seal .s2 { font-size: 9px; letter-spacing: 0.18em; }
.on .seal { animation: stamp .5s cubic-bezier(.5,1.6,.4,1) forwards, settle .3s .5s ease-out; }
@keyframes stamp { to { opacity: 1; transform: scale(1) rotate(-4deg); } }
@keyframes settle { 0% { transform: scale(1) rotate(-4deg); } 40% { transform: scale(.985) rotate(-3.4deg) translate(1px,1px); } 100% { transform: scale(1) rotate(-4deg); } }

/* ensō */
.enso path { stroke-dasharray: 620; stroke-dashoffset: 620; }
.on .enso path { animation: draw-enso 1.6s cubic-bezier(.6,0,.3,1) forwards; }
@keyframes draw-enso { to { stroke-dashoffset: 0; } }

.vert-kanji { writing-mode: vertical-rl; letter-spacing: 0.3em; }

/* official award badges (stamp in on scroll) */
.medal { width: 170px; height: auto; opacity: 0; transform: scale(1.7) rotate(-14deg); filter: drop-shadow(0 6px 18px rgba(0,0,0,0.18)); }
.on .medal { animation: stamp .5s cubic-bezier(.5,1.6,.4,1) forwards, settle .3s .5s ease-out; }
.on .medal.m2 { animation-delay: .25s, .75s; }

/* sake gallery */
.gallery-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.gallery-3 img { width: 100%; height: 520px; object-fit: cover; display: block; }
.caption { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--grey); }

/* forms (dummy) */
.form { display: flex; flex-direction: column; gap: 22px; max-width: 520px; }
.form label { display: flex; flex-direction: column; gap: 8px; font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 700; color: var(--ink); }
.form input, .form select, .form textarea {
  font-family: inherit; font-size: 16px; color: var(--ink);
  background: transparent; border: none; border-bottom: 2px solid rgba(20,20,20,0.35);
  padding: 10px 2px; border-radius: 0;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-bottom-color: var(--red); }
.form textarea { resize: vertical; min-height: 110px; }
.form .sent { display: none; align-items: center; gap: 14px; color: var(--red); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; font-size: 13px; }
.form.done .sent { display: flex; }
.form.done .form-fields, .form.done button[type="submit"] { display: none; }

.news-band { background: var(--ink); color: var(--paper); padding: 70px 5vw; display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.news-band .form { flex-direction: row; align-items: flex-end; gap: 16px; max-width: none; flex-wrap: wrap; }
.news-band input { color: var(--paper); border-bottom-color: rgba(246,243,236,0.4); min-width: 260px; }
.news-band input:focus { border-bottom-color: var(--red); }
.news-band .form .sent { color: var(--red); }

.ig-row { display: flex; align-items: center; gap: 10px; }
.ig-row .handle { font-size: 13px; letter-spacing: 0.1em; font-weight: 500; }

/* recipe cards */
.recipes { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.recipe-card { background: #fdfcf8; border: 1px solid rgba(20,20,20,0.12); display: flex; flex-direction: column; }
.recipe-card img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.recipe-card .inner { padding: 26px 26px 30px 26px; display: flex; flex-direction: column; gap: 14px; flex-grow: 1; }
.recipe-card .tier { align-self: flex-start; background: var(--ink); color: var(--paper); font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase; font-weight: 700; padding: 6px 12px; }
.recipe-card .tier.t2 { background: var(--red); }
.recipe-card h3 { font-family: "FH Cordelia", "Times New Roman", serif; font-weight: 400; font-size: 30px; margin: 0; letter-spacing: 0.04em; }
.recipe-card .rc-label { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; font-weight: 700; color: var(--red); margin-top: 6px; }
.recipe-card ul, .recipe-card ol { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 5px; }
.recipe-card li { font-size: 14px; line-height: 1.6; color: var(--body-copy); }
@media (max-width: 860px) {
  .recipes { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .grid-2, .grid-3, .split-hero, .split-rob, .gallery-3 { grid-template-columns: 1fr; }
  .grid-2 { gap: 36px; }
  .split-hero { min-height: 0; }
  .section { padding: 60px 6vw; }
  .section img, .gallery-3 img, .split-rob img { height: auto !important; max-height: 76vh; }
  .nav { padding: 18px 6vw; flex-wrap: nowrap; }
  .burger { display: flex; }
  .nav .links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--paper); border-bottom: 1px solid rgba(20,20,20,0.12); z-index: 30;
  }
  .nav.open .links { display: flex; }
  .nav .links a { padding: 16px 6vw; width: 100%; box-sizing: border-box; border-top: 1px solid rgba(20,20,20,0.08); }
  .nav .links .buy { margin: 12px 6vw 18px 6vw; width: auto; padding: 0 22px; border-top: none; }
  #stage { min-height: 440px; height: 64vh; }
  #stage .corner { bottom: 20px; }
  #stage .corner a { width: 124px; padding: 10px 12px; }
  #stage .corner .act { font-size: 9px; letter-spacing: 0.2em; }
  #stage .corner .name { font-size: 18px; }
  #stage .hint { bottom: 120px; white-space: nowrap; }
  #divider .grip { top: 32%; width: 52px; height: 52px; }
  .news-band .form { width: 100%; }
  .news-band input { min-width: 0; width: 100%; }
  .news-band .form label { flex-grow: 1; width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #curtain { animation: none; transition: none; }
  .ticker .track { animation: none; }
  .on .uline svg path, .on .enso path { animation: none; stroke-dashoffset: 0; }
  .on .seal { animation: none; opacity: 1; transform: scale(1) rotate(-4deg); }
  .reveal { clip-path: inset(0 0 0 0); transition: none; }
}
