:root {
  --black: #0b0807; --lac: #151010; --gold: #c9a35c; --gold-hi: #f2dca0; --cream: #ece1cb; --dim: #b5a68c; --son: #6d101b; --line: rgba(201,163,92,.38);
  --display: "Playfair Display", Georgia, serif; --sans: "Be Vietnam Pro", system-ui, sans-serif; --ease: cubic-bezier(.2,.7,.2,1); --gut: clamp(16px, 6vw, 96px);
}
* { box-sizing: border-box; font-variant-numeric: lining-nums; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; background: var(--black); }
body { margin: 0; background: var(--black); color: var(--cream); font: 300 16px/1.75 var(--sans); overflow-x: hidden; font-variant-numeric: lining-nums; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; text-wrap: balance; }
h2 { font-size: clamp(2.2rem, 4.5vw, 4rem); line-height: 1.15; color: var(--gold-hi); }
a { color: inherit; }
ol { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
.eyebrow { margin: 0 0 12px; color: var(--gold); font-size: .76rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; }
.sec-head { max-width: 760px; margin-bottom: 46px; }
.note { margin: 12px 0 0; font-size: .85rem; color: var(--dim); }

.sheen { position: fixed; inset: 0; z-index: 30; pointer-events: none; mix-blend-mode: screen; background: radial-gradient(520px circle at var(--lx, 60%) var(--ly, 30%), rgba(255,221,160,.13), rgba(190,120,60,.05) 45%, transparent 70%); }

.gold-mask { --mx: 50%; --my: 30%; background: radial-gradient(420px circle at var(--mx) var(--my), #fff4cf, #e2c27c 26%, #a9843f 56%, #76592a 100%); -webkit-mask: var(--m) center/contain no-repeat; mask: var(--m) center/contain no-repeat; }
.emblem { --m: url(../shared/img/emblem.png); width: min(52vh, 74vw); aspect-ratio: 728/705; }
.word { --m: url(../shared/img/wordmark.png); width: min(30vh, 56vw); aspect-ratio: 780/375; }
.mini { --m: url(../shared/img/emblem.png); display: block; width: 42px; height: 41px; }
.small { width: 110px; }

.nav { position: fixed; inset: 0 0 auto; z-index: 20; display: flex; justify-content: space-between; align-items: center; padding: 12px var(--gut); background: rgba(11,8,7,.94); border-bottom: 1px solid rgba(201,163,92,.2); }
.nav nav { display: flex; gap: clamp(12px, 2.4vw, 32px); }
.nav nav a { padding: 10px 0; font-size: .84rem; font-weight: 400; text-decoration: none; }
.nav nav a:hover { color: var(--gold-hi); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 32px; border: 1px solid var(--gold); color: var(--gold-hi); text-decoration: none; font-size: .88rem; font-weight: 400; letter-spacing: .05em; transition: background .3s, color .3s; }
.btn:hover { background: var(--gold); color: var(--black); }

.hero { min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 72px 16px 34px; background: radial-gradient(ellipse at 50% 42%, #2b0a0e, var(--black) 68%); }
.hero h1 { line-height: 1.25; font-style: italic; font-size: clamp(1.9rem, 4.6vh, 3.2rem); color: var(--cream); margin-top: 8px; }
.hero p { margin: 0 0 12px; color: var(--dim); }

.story { display: grid; grid-template-columns: 1.1fr .9fr; }
.frame { background: var(--son) url(../shared/img/red-paper.webp) center/360px; padding: clamp(60px, 9vw, 130px) var(--gut); position: relative; }
.frame::before { content: ""; position: absolute; inset: 16px; border: 1px solid var(--line); pointer-events: none; }
.frame > * { position: relative; }
.frame h2 { margin-bottom: 22px; }
.frame p:not(.eyebrow) { max-width: 54ch; margin: 0 0 14px; }
.frame .eyebrow { color: var(--gold-hi); }
.story figure { margin: 0; min-height: 420px; }
.story figure img { width: 100%; height: 100%; object-fit: cover; }

.screen, .case, .brew { padding: clamp(70px, 9vw, 130px) var(--gut); }
.screen ol { display: flex; gap: 6px; min-height: 420px; }
.screen li { flex: 1; min-width: 0; padding: 26px; display: flex; flex-direction: column; justify-content: flex-end; background: linear-gradient(170deg, #241615, var(--lac) 58%); border: 1px solid var(--line); box-shadow: inset 0 0 0 5px var(--lac), inset 0 0 0 6px rgba(201,163,92,.22); transition: flex .55s var(--ease), background .4s; }
.screen li:hover, .screen li:focus-visible { flex: 1.6; background: linear-gradient(170deg, #4b0f18, #1b0d0e 70%); }
.screen span { font: italic 400 3.4rem/1 var(--display); color: var(--gold); margin-bottom: auto; }
.screen h3 { font-size: 1.75rem; color: var(--gold-hi); margin-bottom: 8px; }
.screen p { margin: 0; font-size: .92rem; line-height: 1.65; }

.case { background: linear-gradient(#100b0a, #070504); }
.shelves { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-width: 1px 0 0 1px; }
.niche { all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 34px 20px 28px; border: 1px solid var(--line); border-width: 0 1px 1px 0; background: radial-gradient(ellipse at 50% 12%, #2a1a14, transparent 72%); box-shadow: inset 0 18px 34px rgba(0,0,0,.65); transition: background .35s; }
.niche:hover { background: radial-gradient(ellipse at 50% 12%, #4a2a1c, transparent 75%); }
.niche:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: -4px; }
.arch { width: min(74%, 250px); aspect-ratio: 4/5; overflow: hidden; border-radius: 999px 999px 0 0; box-shadow: 0 0 0 1px var(--gold), 0 0 0 6px var(--lac), 0 0 0 7px rgba(201,163,92,.45), 0 24px 34px rgba(0,0,0,.65); margin-bottom: 22px; }
.arch img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.niche:hover .arch img { transform: scale(1.06); }
.n-grade { font-size: .72rem; letter-spacing: .08em; color: #b5c97a; font-weight: 400; }
.n-name { font: 400 1.75rem/1.25 var(--display); color: var(--gold-hi); }
.n-price { font-size: .98rem; margin-top: 2px; }

.brew ol { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.brew li { border-top: 1px solid var(--gold); padding-top: 18px; }
.brew b { font: italic 400 2.2rem/1.2 var(--display); color: var(--gold); }
.brew h3 { font-size: 1.4rem; margin: 6px 0; }
.brew p { margin: 0; font-size: .92rem; line-height: 1.65; color: var(--dim); }

.contact { padding: clamp(64px, 8vw, 110px) var(--gut); display: grid; justify-items: center; gap: 18px; text-align: center; background: var(--son) url(../shared/img/red-paper.webp) center/360px; }
.contact dl { width: min(720px, 100%); display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px; margin: 0; }
.contact dl div { padding: 12px 0; border-top: 1px solid var(--line); }
dt { font-size: .72rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-hi); }
dd { margin: 0; }
footer { padding: 26px var(--gut); text-align: center; font-size: .82rem; color: var(--dim); }
footer p { margin: 0; }
.credits summary { padding: 8px; cursor: pointer; }
.credits ul { text-align: left; max-width: 720px; margin: 8px auto; }

dialog { width: min(820px, calc(100vw - 32px)); padding: 0; background: var(--lac); color: var(--cream); border: 1px solid var(--gold); }
dialog[open] { display: grid; grid-template-columns: 1fr 1fr; }
dialog::backdrop { background: rgba(4,2,2,.8); }
dialog img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; }
dialog > div { padding: 40px 30px 30px; }
dialog h3 { font-size: 2.5rem; line-height: 1.15; color: var(--gold-hi); }
.d-price strong { font: 400 1.6rem var(--display); }
.d-price span { font-size: .84rem; color: var(--dim); }
.close { position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; background: var(--lac); color: var(--gold-hi); border: 0; font-size: 1.7rem; cursor: pointer; }

@media (max-width: 900px) {
  .shelves { grid-template-columns: repeat(2, 1fr); }
  .brew ol { grid-template-columns: repeat(2, 1fr); }
  .story { grid-template-columns: 1fr; }
  .screen ol { flex-direction: column; min-height: 0; }
  .screen li, .screen li:hover, .screen li:focus-visible { flex: none; }
  .screen span { margin-bottom: 18px; }
}
@media (max-width: 640px) {
  .nav { padding: 8px 12px; }
  .nav nav { gap: 9px; }
  .nav nav a { font-size: .72rem; }
  .niche { padding: 24px 8px 20px; }
  .n-name { font-size: 1.32rem; }
  .brew ol, .contact dl { grid-template-columns: 1fr; }
  dialog[open] { grid-template-columns: 1fr; max-height: 90svh; overflow: auto; }
  dialog img { height: 220px; min-height: 0; }
  dialog > div { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
