/* shidobere.com — shared by / and /press/ */
:root {
  --ground: #110f0d;
  --ground-2: #171411;
  --panel: #1d1915;
  --ink: #f1e8da;
  --ink-2: #c9bba6;
  --muted: #9a8d7a;
  --brass: #d0a957;
  --brass-2: #f0cf86;
  --line: rgba(208, 169, 87, 0.22);
  --line-2: rgba(208, 169, 87, 0.45);
  --cjk: "Noto Serif TC";
  --display: "Cormorant Garamond", Georgia, serif;
  --body: "EB Garamond", Georgia, serif;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1120px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
html:lang(zh-Hant) { --cjk: "Noto Serif TC"; }
html:lang(zh-HK) { --cjk: "Noto Serif HK"; }
html:lang(zh-Hans) { --cjk: "Noto Serif SC"; }
html:lang(ja) { --cjk: "Noto Serif JP"; }
html:lang(zh), html:lang(ja) {
  --display: var(--cjk), "Cormorant Garamond", serif;
  --body: var(--cjk), "EB Garamond", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font-family: var(--body); font-size: clamp(17px, 1.15vw + 11px, 20px); line-height: 1.7;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
html:lang(zh) body, html:lang(ja) body { line-height: 1.9; letter-spacing: 0.02em; }
html:lang(ja) body { line-break: strict; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brass-2); outline-offset: 3px; border-radius: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brass); color: var(--ground); padding: 8px 14px; z-index: 60; }
.skip:focus { left: 8px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
[hidden] { display: none !important; }

/* film grain over everything, very faint */
body::before {
  content: ""; position: fixed; inset: -50%; z-index: 40; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ── top bar ── */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px var(--gutter); padding-top: max(14px, env(safe-area-inset-top));
  transition: background .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.bar.solid { background: rgba(17, 15, 13, .84); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-color: var(--line); }
.studio { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 500 19px/1 "Cormorant Garamond", Georgia, serif; letter-spacing: .04em; color: var(--ink); }
.studio img { width: 30px; height: 30px; }
.bar-r { display: flex; align-items: center; gap: 10px; }
.bar .mini { display: none; }
.bar.solid .mini { display: inline-flex; }

/* ── language menu ── */
.langwrap { position: relative; }
#langbtn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font: 500 14px/1 var(--body); letter-spacing: .06em; color: var(--ink-2);
  background: rgba(17,15,13,.5); border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px 8px 11px;
  transition: border-color .2s, color .2s;
}
#langbtn:hover, #langbtn[aria-expanded="true"] { border-color: var(--line-2); color: var(--ink); }
#langbtn svg { width: 15px; height: 15px; opacity: .8; }
#langbtn b { font-weight: 600; color: var(--brass-2); }
#langmenu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 168px; padding: 6px; margin: 0;
  background: rgba(23, 20, 17, .97); border: 1px solid var(--line-2); border-radius: 6px;
  box-shadow: 0 18px 40px -16px rgba(0,0,0,.85); display: grid; gap: 2px;
}
#langmenu button {
  text-align: left; cursor: pointer; border: 0; border-radius: 4px; background: none; color: var(--ink-2);
  font: 500 16px/1.2 var(--body); padding: 10px 12px 10px 32px; position: relative;
}
#langmenu button:lang(zh-Hant) { font-family: "Noto Serif TC", serif; }
#langmenu button:lang(zh-HK) { font-family: "Noto Serif HK", "Noto Serif TC", serif; }
#langmenu button:lang(zh-Hans) { font-family: "Noto Serif SC", serif; }
#langmenu button:lang(ja) { font-family: "Noto Serif JP", serif; }
#langmenu button:hover, #langmenu button:focus-visible { background: rgba(208,169,87,.12); color: var(--ink); outline: none; }
#langmenu button[aria-checked="true"] { color: var(--brass-2); }
#langmenu button[aria-checked="true"]::before { content: ""; position: absolute; left: 13px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--brass); }

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font: 600 15px/1 var(--body); letter-spacing: .12em; text-transform: uppercase;
  padding: 16px 26px; border-radius: 2px; border: 1px solid var(--brass);
  transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s, border-color .25s;
}
html:lang(zh) .btn, html:lang(ja) .btn { letter-spacing: .14em; }
.btn.primary { background: linear-gradient(180deg, var(--brass-2), var(--brass)); color: #1a130b; border-color: var(--brass-2); box-shadow: 0 10px 30px -12px rgba(240, 180, 90, .55); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -12px rgba(240, 180, 90, .7); }
.btn.ghost { color: var(--ink); background: rgba(17,15,13,.35); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--brass-2); color: var(--brass-2); transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.bar .btn { padding: 10px 16px; font-size: 12px; }

/* ── hero ── */
.hero {
  position: relative; min-height: 100svh; display: grid; place-items: center; isolation: isolate;
  padding: 110px var(--gutter) 90px; text-align: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: -4% -4% 0; z-index: -2;
  background: #0b0a09 center 40% / cover no-repeat;
  background-image: image-set(url("hero.webp") type("image/webp"), url("hero.jpg") type("image/jpeg"));
  transform: scale(1.06); animation: drift 28s var(--ease) infinite alternate;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 45% at 50% 42%, rgba(255, 179, 92, .10), transparent 70%),
    linear-gradient(180deg, rgba(17,15,13,.55) 0%, rgba(17,15,13,.15) 35%, rgba(17,15,13,.65) 78%, var(--ground) 100%);
}
@keyframes drift { to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); } }
.kicker {
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 28px;
  font: 500 13px/1 var(--body); letter-spacing: .32em; text-transform: uppercase; color: var(--brass-2);
}
html:lang(zh) .kicker, html:lang(ja) .kicker { letter-spacing: .3em; font-size: 14px; }
.kicker::before, .kicker::after { content: ""; width: 34px; height: 1px; background: var(--line-2); }
.logo { width: min(620px, 86vw); margin: 0 auto; filter: drop-shadow(0 10px 40px rgba(0,0,0,.6)); }
.tag { margin: 26px auto 38px; max-width: 30ch; font: italic 500 clamp(22px, 2.6vw, 30px)/1.35 var(--display); color: var(--ink-2); }
html:lang(zh) .tag, html:lang(ja) .tag { font-style: normal; max-width: 22em; letter-spacing: .1em; }
.ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.meta { margin: 22px 0 0; font-size: 14px; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.partial { margin: 10px auto 0; max-width: 34em; font-size: 14px; color: var(--muted); letter-spacing: .04em; }
.scroll-cue { position: absolute; bottom: 26px; left: 50%; width: 1px; height: 54px; background: linear-gradient(var(--brass), transparent); transform-origin: top; animation: cue 2.4s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); opacity: 0 } 40% { opacity: 1 } 100% { transform: scaleY(1); opacity: 0 } }

/* ── sections ── */
section { position: relative; padding: clamp(80px, 11vw, 150px) 0; }
.eyebrow { margin: 0 0 18px; font: 500 13px/1 var(--body); letter-spacing: .32em; text-transform: uppercase; color: var(--brass); }
html:lang(zh) .eyebrow, html:lang(ja) .eyebrow { letter-spacing: .4em; }
h1, h2 { margin: 0; font: 600 clamp(34px, 4.6vw, 58px)/1.08 var(--display); letter-spacing: -.005em; text-wrap: balance; }
html:lang(zh) :is(h1, h2), html:lang(ja) :is(h1, h2) { line-height: 1.3; letter-spacing: .05em; font-size: clamp(30px, 4vw, 48px); }
.tag, .lead p.big, .dish p, .card span, .intro { text-wrap: pretty; }

.lead { display: grid; grid-template-columns: 1fr; gap: 28px; align-items: start; }
.lead p.big { margin: 0; font: 500 clamp(24px, 2.7vw, 34px)/1.45 var(--display); color: var(--ink); }
html:lang(zh) .lead p.big, html:lang(ja) .lead p.big { font-size: clamp(21px, 2.3vw, 28px); line-height: 1.85; }
.lead p.big em { color: var(--brass-2); font-style: italic; }
html:lang(zh) .lead p.big em, html:lang(ja) .lead p.big em { font-style: normal; }
.lead aside { color: var(--muted); font-size: 15px; letter-spacing: .06em; border-left: 1px solid var(--line-2); padding-left: 18px; }
@media (min-width: 880px) { .lead { grid-template-columns: 220px 1fr; gap: 64px; } .lead aside { border: 0; padding: 0; text-align: right; } }

/* ── the menu board ── */
.menu { background: radial-gradient(120% 80% at 50% 0%, #1f1813 0%, var(--ground) 70%); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.menu-head, .gallery-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; }
.menu-head { margin-bottom: clamp(40px, 6vw, 72px); }
.gallery-head { margin-bottom: 36px; }
.menu-head p, .gallery-head p { margin: 0; color: var(--muted); max-width: 32ch; font-size: 16px; }
.board { display: grid; grid-template-columns: 1fr; gap: 0; counter-reset: dish; }
@media (min-width: 820px) { .board { grid-template-columns: 1fr 1fr; column-gap: 64px; } }
.dish { position: relative; padding: 30px 0 30px 64px; border-top: 1px dashed var(--line); }
.dish::before {
  counter-increment: dish; content: counter(dish, cjk-ideographic);
  position: absolute; left: 0; top: 30px; width: 42px; height: 42px; display: grid; place-items: center;
  font: 600 18px/1 "Noto Serif TC", serif; color: var(--ground); background: var(--brass); border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(208,169,87,.12);
}
.dish h3 { margin: 0 0 8px; font: 600 clamp(22px, 2vw, 27px)/1.25 var(--display); display: flex; align-items: baseline; gap: 14px; }
html:lang(zh) .dish h3, html:lang(ja) .dish h3 { letter-spacing: .06em; font-size: clamp(20px, 1.8vw, 24px); }
.dish h3::after { content: ""; flex: 1; min-width: 12px; border-bottom: 1px dotted var(--line-2); transform: translateY(-6px); }
.dish p { margin: 0; color: var(--ink-2); font-size: .95em; }

/* ── photographs ── */
.shots {
  display: grid; gap: 14px; grid-auto-flow: column; grid-auto-columns: 82%;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 18px; margin: 0 calc(var(--gutter) * -1);
  scrollbar-width: thin; scrollbar-color: var(--line-2) transparent;
}
@media (min-width: 760px) { .shots { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(6, 1fr); overflow: visible; padding: 0; margin: 0; } }
.shot { scroll-snap-align: center; position: relative; margin: 0; border-radius: 3px; overflow: hidden; background: var(--panel); cursor: zoom-in; border: 1px solid var(--line); }
@media (min-width: 760px) {
  .shots.feature .shot:nth-child(1) { grid-column: span 4; grid-row: span 2; }
  .shots .shot { grid-column: span 2; }
}
.shot img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .9s var(--ease), filter .6s; filter: saturate(.92); }
.shot:hover img { transform: scale(1.045); filter: saturate(1.05); }
.shot figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px;
  font-size: 14px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink);
  background: linear-gradient(transparent, rgba(10,8,7,.85));
}
html:lang(zh) .shot figcaption, html:lang(ja) .shot figcaption { letter-spacing: .2em; }
dialog.lightbox { padding: 0; border: 0; background: transparent; max-width: min(1280px, 94vw); overflow: visible; }
dialog.lightbox::backdrop { background: rgba(8,7,6,.9); backdrop-filter: blur(4px); }
dialog.lightbox img { border-radius: 3px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
dialog.lightbox button { position: absolute; top: -44px; right: 0; background: none; border: 1px solid var(--line-2); color: var(--ink); font: 500 14px/1 var(--body); letter-spacing: .14em; padding: 9px 14px; cursor: pointer; border-radius: 2px; }

/* ── community ── */
.cards { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 40px; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  display: flex; flex-direction: column; gap: 10px; text-decoration: none; padding: 26px 24px 24px;
  background: linear-gradient(180deg, var(--panel), var(--ground-2)); border: 1px solid var(--line); border-radius: 3px;
  transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.card:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: 0 18px 40px -20px rgba(0,0,0,.8); }
.card svg { width: 26px; height: 26px; color: var(--brass); margin-bottom: 6px; }
.card strong { font: 600 22px/1.2 var(--display); }
html:lang(zh) .card strong, html:lang(ja) .card strong { font-size: 20px; letter-spacing: .06em; }
.card span { color: var(--muted); font-size: 15px; }
.card .go { margin-top: auto; padding-top: 10px; color: var(--brass); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; }
.card .mail { word-break: break-all; }

/* ── closing ── */
.closing { text-align: center; overflow: hidden; isolation: isolate; }
.closing::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35;
  background: center / cover no-repeat url("photo_dawn.webp");
  mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent);
}
.closing::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 60% at 50% 50%, rgba(17,15,13,.45), var(--ground) 95%); }
.closing h2 { max-width: 22ch; margin: 0 auto 34px; }
html:lang(zh) .closing h2, html:lang(ja) .closing h2 { max-width: 16em; }

footer { border-top: 1px solid var(--line); padding: 44px 0 calc(44px + env(safe-area-inset-bottom)); color: var(--muted); font-size: 15px; }
.foot { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; justify-content: space-between; }
.foot .studio img { width: 44px; height: 44px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot nav a { text-decoration: none; color: var(--ink-2); }
.foot nav a:hover { color: var(--brass-2); }
.fine { margin-top: 26px; font-size: 13px; letter-spacing: .06em; }

/* ── press kit ── */
.press-hero { padding: clamp(120px, 14vw, 170px) 0 clamp(40px, 6vw, 70px); border-bottom: 1px solid var(--line); background: radial-gradient(90% 120% at 80% 0%, #21190f 0%, var(--ground) 65%); }
.press-hero .intro { margin: 22px 0 32px; max-width: 40em; color: var(--ink-2); }
.pk-game { display: block; margin-bottom: 8px; font: 500 clamp(18px, 1.8vw, 22px)/1.2 "Cormorant Garamond", Georgia, serif; letter-spacing: .08em; color: var(--brass-2); }
.btn.addr { text-transform: none; letter-spacing: .04em; }
.press-hero .back { display: inline-block; margin-bottom: 28px; color: var(--muted); text-decoration: none; font-size: 15px; letter-spacing: .06em; }
.press-hero .back:hover { color: var(--brass-2); }
.press-grid { display: grid; gap: clamp(40px, 6vw, 72px); grid-template-columns: 1fr; }
@media (min-width: 900px) { .press-grid { grid-template-columns: 340px 1fr; } }
.press section { padding: clamp(56px, 7vw, 90px) 0; }
.press section + section { border-top: 1px solid var(--line); }
.press h2 { font-size: clamp(28px, 3.2vw, 40px); margin-bottom: 26px; }
html:lang(zh) .press h2, html:lang(ja) .press h2 { font-size: clamp(24px, 2.8vw, 34px); }
.facts { margin: 0; display: grid; gap: 0; }
.facts div { padding: 14px 0; border-top: 1px dashed var(--line); }
.facts dt { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--brass); margin-bottom: 4px; }
html:lang(zh) .facts dt, html:lang(ja) .facts dt { letter-spacing: .14em; }
.facts dd { margin: 0; color: var(--ink); font-size: 17px; line-height: 1.55; }
.facts a { color: var(--brass-2); text-decoration: none; word-break: break-all; }
.facts a:hover { text-decoration: underline; }
.prose p { margin: 0 0 18px; color: var(--ink-2); }
.prose p.big { font: 500 clamp(21px, 2.1vw, 26px)/1.55 var(--display); color: var(--ink); }
html:lang(zh) .prose p.big, html:lang(ja) .prose p.big { font-size: clamp(19px, 1.9vw, 23px); line-height: 1.85; }
.prose p.big em { color: var(--brass-2); }
.feat { margin: 0; padding: 0; list-style: none; display: grid; gap: 18px; }
.feat li { padding-left: 22px; position: relative; color: var(--ink-2); }
.feat li::before { content: ""; position: absolute; left: 0; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--brass); }
.feat b { display: block; color: var(--ink); font-weight: 600; }
.shots.plain .shot { cursor: default; }
.shot .dl { position: absolute; top: 10px; right: 10px; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--ink); background: rgba(17,15,13,.7); border: 1px solid var(--line-2); padding: 6px 9px; border-radius: 2px; }
.shot .dl:hover { color: var(--brass-2); border-color: var(--brass-2); }
.logos { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .logos { grid-template-columns: 2fr 1fr; } }
.logo-tile { display: flex; flex-direction: column; gap: 14px; padding: 22px; border: 1px solid var(--line); border-radius: 3px; background: repeating-conic-gradient(#1b1714 0 25%, #15120f 0 50%) 0 0 / 22px 22px; text-decoration: none; }
.logo-tile img { margin: auto; max-height: 180px; width: auto; }
.logo-tile span { font-size: 14px; color: var(--muted); letter-spacing: .06em; }
.logo-tile:hover span { color: var(--brass-2); }

/* ── reveal on scroll (only once the script is running; see i18n.js) ── */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .08s } .rv.d2 { transition-delay: .16s } .rv.d3 { transition-delay: .24s }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-bg, .scroll-cue { animation: none; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .shot img, .btn, .card { transition: none; }
}
@media (max-width: 520px) {
  .bar .studio span { display: none; }
  .ctas .btn { width: 100%; justify-content: center; }
  .dish { padding-left: 56px; }
}
