/*
 * PENUMBRA landing page — one stylesheet.
 * Palette sampled from the KV (pure grayscale). Helvetica, normal letter spacing.
 * Desktop: publication flipbook (left) + registration (right). Mobile: stacked.
 */
:root {
  --void: #0e0e0e; --shadow: #141414; --umbra: #1c1c1c; --penumbra: #353535; --haze: #6d6d6d;
  --glow: #aeaeae; --mark: #b6b6b6; --light: #dedede; --peak: #f7f7f7; --panel: #171717;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; letter-spacing: normal; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--shadow); color: var(--light); font: 400 16px/1.55 var(--font); -webkit-font-smoothing: antialiased;
  background-image: radial-gradient(120% 60% at 0% 45%, rgba(174,174,174,.07), transparent 60%); }
body::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 30; opacity: .06; mix-blend-mode: screen;
  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%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 1px solid var(--light); outline-offset: 3px; }
::selection { background: var(--light); color: var(--void); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html[lang="en"] .vi, html:not([lang="en"]) .en { display: none !important; }
/* A missing or broken asset never shows a broken-image icon. */
img.asset-missing { visibility: hidden; }

/* ---------- Shell ---------- */
.shell { display: grid; grid-template-areas: "top" "book" "main"; }
.topbar { grid-area: top; display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; background: var(--void); }
.d8-logo { height: 13px; width: auto; display: block; opacity: .85; }
.lang { display: flex; gap: 2px; }
.lang button { background: none; border: 0; border-bottom: 1px solid transparent; padding: 6px 8px; min-height: 32px; cursor: pointer; color: var(--haze); font-size: 12px; }
.lang button[aria-pressed="true"] { color: var(--light); border-bottom-color: var(--light); }
.content { grid-area: main; min-width: 0; background: var(--panel); }

/* ---------- Flipbook ---------- */
.book-panel { grid-area: book; position: relative; background: var(--void); display: flex; flex-direction: column; align-items: center; padding: 8px 16px 18px; }
.book-stage { position: relative; width: min(100%, calc((100vh - 120px) * 210 / 297)); aspect-ratio: 210 / 297; outline: none; touch-action: pan-y; }
.book-stage:focus-visible { box-shadow: 0 0 0 1px var(--haze); }
.spread { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; perspective: 2400px; }
.spread.single { grid-template-columns: 1fr; }
.page { position: relative; margin: 0; background: var(--void); overflow: hidden; display: flex; flex-direction: column; }
.page > img { flex: 1; min-height: 0; width: 100%; object-fit: cover; display: block; }
.page.blank { background: transparent; }
.spread:not(.single) > .page:nth-child(1)::after, .spread:not(.single) > .page:nth-child(2)::after { content: ''; position: absolute; top: 0; bottom: 0; width: 7%; pointer-events: none; z-index: 3; }
.spread:not(.single) > .page:nth-child(1)::after { right: 0; background: linear-gradient(to left, rgba(0,0,0,.55), transparent); }
.spread:not(.single) > .page:nth-child(2)::after { left: 0; background: linear-gradient(to right, rgba(0,0,0,.55), transparent); }
.spread:not(.single) > .page.blank::after { display: none; }
.leaf { position: absolute; top: 0; bottom: 0; width: 50%; transform-style: preserve-3d; transition: transform .6s cubic-bezier(.45,.05,.25,1); z-index: 4; }
.leaf-right { left: 50%; transform-origin: left center; }
.leaf-left { left: 0; transform-origin: right center; }
.leaf-right.turned { transform: rotateY(-180deg); }
.leaf-left.turned { transform: rotateY(180deg); }
.leaf-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: flex; }
.leaf-face > .page { flex: 1; }
.leaf-face.back { transform: rotateY(180deg); }
.book-bar { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 12px; }
.book-btn { width: 48px; height: 48px; border: 1px solid var(--penumbra); background: transparent; color: var(--light); font-size: 18px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: border-color .2s, box-shadow .2s; }
.book-btn:hover:not(:disabled) { border-color: var(--glow); box-shadow: 0 0 24px -6px rgba(222,222,222,.35); }
.book-btn:disabled { opacity: .3; cursor: default; }
.book-count { min-width: 92px; text-align: center; font-size: 13px; color: var(--glow); font-variant-numeric: tabular-nums; }
.book-fs { margin-left: 8px; }
.book-jump { margin-top: 14px; font-size: 14px; color: var(--light); text-decoration: none; border-bottom: 1px solid var(--penumbra); padding: 8px 2px; }
.book-panel:fullscreen { justify-content: center; padding: 24px; }
.book-panel:fullscreen .book-stage { width: min(100%, calc((100vh - 110px) * 420 / 297)); aspect-ratio: 420 / 297; }

/* ---------- Publication pages ---------- */
.page-html { container-type: size; }
.pub-bg { position: absolute; inset: 0; pointer-events: none; background-image: var(--kv-texture); background-repeat: no-repeat; background-size: 100% auto; opacity: .32; }
.v-partners .pub-bg { background-position: 0 100%; transform: scaleX(-1); opacity: .3; }
.v-event .pub-bg { background-position: 0 75%; opacity: .26; }
/* Journey Map and encounter pages: light grey paper. The palette is inverted on these pages, so every map and encounter style turns dark-on-light. */
.v-journey-map, .v-journey-visual, .v-journey-detail { --void: #e8e7e6; --shadow: #dcdbda; --umbra: #cfcecc; --penumbra: #b4b3b1; --haze: #6b6b6b; --glow: #474747; --mark: #3a3a3a; --light: #262626; --peak: #141414; }
.v-journey-map .pub-bg, .v-journey-visual .pub-bg, .v-journey-detail .pub-bg { display: none; }
.v-journey-map .pub, .v-journey-visual .pub, .v-journey-detail .pub { color: #2e2e2e; scrollbar-color: #b4b3b1 transparent; }
.v-journey-detail .pub-img { -webkit-mask-image: none; mask-image: none; }
/* Booklet pages: the page graphic fills the page, the text sits on it where the booklet set it. */
.page-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
/* A4 crops the tall booklet graphics: keep the eclipse of the definition page and the arc of the intro page in view. */
.v-definition .page-art { object-position: 50% 15%; }
.v-d8 .page-art { object-position: 50% 0; }
.page > img[data-asset="bookletLamp"] { object-position: 50% 4%; }
.pub.pub-over { display: flex; flex-direction: column; padding: 7cqw 6.5cqw; background: transparent; }
.pub.pub-over.at-bottom { justify-content: flex-end; padding-bottom: 5cqh; }
.pub.pub-over.at-middle { justify-content: center; padding-top: 30cqh; padding-bottom: 30cqh; }
.pub.pub-over.at-ends { justify-content: space-between; }
.pub.pub-over p { text-align: justify; hyphens: auto; }
.pub.pub-over .def-word { color: var(--peak); }
.pub.pub-light { background: #e8e7e6; color: #1e1e1e; }
.pub.pub-light.pub-over { background: transparent; }
.pub-light .welcome { margin-bottom: 0; }
.pub { position: absolute; inset: 0; z-index: 1; overflow-y: auto; overscroll-behavior: contain; padding: 7cqw 7cqw 6cqw; color: #c9c9c9;
  font-size: clamp(10.5px, 3.1cqw, 16px); line-height: 1.62; scrollbar-width: thin; scrollbar-color: #353535 transparent; }
.pub-head { display: flex; align-items: baseline; gap: .8em; margin-bottom: 1.4em; }
.pub-no { font-size: .78em; color: var(--haze); font-variant-numeric: tabular-nums; }
.pub-title { margin: 0; font-size: 1.55em; line-height: 1.15; font-weight: 500; color: var(--peak); text-transform: uppercase; }
.pub-sub { font-size: .9em; color: var(--glow); margin-top: .2em; }
.pub p { margin: 0 0 1em; }
.pub .lead { color: var(--light); }
.pub-meta { font-size: .78em; color: var(--haze); }
.pub a { color: var(--light); }
.pub-img { display: block; width: calc(100% + 14cqw); margin: -7cqw -7cqw 1.4em; aspect-ratio: 3 / 2; object-fit: cover; background: var(--void);
  -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent); mask-image: linear-gradient(to bottom, #000 72%, transparent); }
.pub-inset { display: block; width: 62%; margin: 1.6em 0 1.6em auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--void); }
.pub-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 1.4em; margin-top: .6em; background: var(--light); color: var(--void); border: 0; font: inherit; font-size: .92em; font-weight: 500; cursor: pointer; text-decoration: none; }
.pub-cta:hover { background: var(--peak); box-shadow: 0 0 34px -6px rgba(247,247,247,.5); }
.pub-link { display: inline-block; margin-top: .9em; font-size: .86em; }

/* Journey map */
.jm-svg { display: block; width: 100%; height: auto; margin: -.4em 0 .2em; overflow: visible; }
.jm-stop { cursor: pointer; outline: none; }
.jm-stop .hit { fill: transparent; }
.jm-stop text { font-size: 10px; fill: var(--haze); font-family: var(--font); }
.jm-stop.setting .dot { fill: var(--glow); }
.jm-stop.prelude .dot { fill: none; stroke: var(--peak); stroke-width: 1.4; }
.jm-stop.teahouse .dot { fill: rgba(222,222,222,.07); stroke: var(--light); stroke-width: 1; }
.jm-stop:hover text, .jm-stop:focus-visible text { fill: var(--light); }
.jm-stop:focus-visible .hit { stroke: var(--glow); stroke-width: 1; }
.jm-stop.selected .dot { fill: var(--peak); stroke: var(--peak); filter: url(#jm-glow); }
.jm-stop.selected text { fill: var(--peak); }
.jm-here { font-size: 9px; fill: var(--peak); }
.jm-pulse { fill: none; stroke: var(--peak); stroke-width: 1; transform-box: fill-box; transform-origin: center; animation: jm-pulse 2.4s ease-out infinite; }
@keyframes jm-pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(3.2); opacity: 0; } }
.jm-legend { display: flex; flex-wrap: wrap; gap: .3em 1.2em; margin-top: .8em; font-size: .74em; color: var(--haze); }
.jm-legend i { display: inline-block; width: .7em; height: .7em; border-radius: 50%; margin-right: .4em; vertical-align: -.05em; }
.jm-legend .l-set { background: var(--glow); }
.jm-legend .l-start { border: 1px solid var(--peak); }
.jm-legend .l-tea { border: 1px solid var(--light); }
.jm-sel { display: flex; align-items: center; justify-content: space-between; gap: .8em; margin-top: .9em; padding-top: .8em; border-top: 1px solid var(--penumbra); }
.jm-sel b { font-weight: 500; color: var(--peak); }
.jm-sel button, .jd-nav button { min-height: 40px; padding: 0 .9em; background: transparent; color: var(--light); border: 1px solid var(--penumbra); font: inherit; font-size: .85em; cursor: pointer; }
.jm-sel button:hover, .jd-nav button:hover:not(:disabled) { border-color: var(--glow); }
.jd-nav button:disabled { opacity: .3; cursor: default; }
.jd-num { font-size: 2.6em; line-height: 1; font-weight: 300; color: var(--peak); font-variant-numeric: tabular-nums; }
.jd-title { margin: .25em 0 1em; font-size: 1.3em; font-weight: 500; color: var(--peak); text-transform: uppercase; }
.jd-vi { color: var(--glow); margin-bottom: 1em; }
.jd-nav { display: flex; justify-content: space-between; gap: .6em; margin-top: 1.2em; }
.jd-feat { margin-top: 1.2em; }
.jd-feat .pub-meta { margin-bottom: .3em; }
.jd-feat ul { list-style: none; margin: 0; padding: 0; color: var(--light); }
.jd-feat li + li { margin-top: .15em; }
.jd-feat b { font-weight: 500; color: var(--peak); }
/* Tall booklet page: the map sits in the middle of the page. In a spread the encounter is already on the facing page. */
/* Floor plan from MAP_1.psd (light lines, transparent) with the stops drawn over it. */
.jm-plan { position: relative; margin: .4em 0 .2em; }
.jm-plan img { display: block; width: 100%; height: auto; opacity: .9; }
.jm-plan .jm-svg { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; }
.jm-plan .jm-stop text { font-size: 13px; font-weight: 500; }
.jm-plan .jm-here { font-size: 11px; }
.jm-plan .jm-stop.teahouse .dot { fill: var(--glow); }
.jm-start .dot { fill: none; stroke: var(--peak); stroke-width: 1.4; }
.jm-plan .jm-stop .dot { stroke: var(--void); stroke-width: 1.5; }
.jm-sel [data-jm="label"] { flex: 1; min-width: 0; }
.jm-sel .jm-step { width: 44px; min-height: 44px; padding: 0; font-size: 1.3em; line-height: 1; }
.jm-sel .jm-step:disabled { opacity: .3; cursor: default; }
.v-journey-map .pub { display: flex; flex-direction: column; justify-content: center; }

/* Partners (booklet "About District Eight" page) */
.v-partners .pub-title { font-size: 1.15em; margin-bottom: .7em; }
.v-partners .support { margin: 2em 0 1em; text-transform: uppercase; }
.partner-block h3 { margin: 0 0 .5em; font-size: .92em; font-weight: 500; color: var(--peak); text-transform: uppercase; letter-spacing: .02em; }
.partner-block + .partner-block { margin-top: 1.2em; }
.partner-logos { display: flex; align-items: center; justify-content: space-between; gap: 6%; margin: 1.6em 0 2em; }
.partner-logos img { height: auto; width: 26%; max-height: 4.2em; object-fit: contain; }
.partner-logos img:first-child { width: 24%; }
.partner-logos img:nth-child(2) { max-height: 6em; }
/* Partners */
.presented { display: flex; align-items: center; gap: .8em; margin-bottom: 1.4em; font-size: .78em; color: var(--haze); }
.presented img { height: 1em; width: auto; opacity: .85; }
.partners { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--penumbra); border: 1px solid var(--penumbra); margin-bottom: 1.6em; }
.partner { background: var(--void); padding: 1em; display: flex; flex-direction: column; gap: .5em; }
.partner .logo { height: 3.4em; display: flex; align-items: center; }
.partner .logo img { max-height: 100%; max-width: 100%; object-fit: contain; }
.partner .role { font-size: .74em; color: var(--haze); }
.partner .name { color: var(--light); font-weight: 500; }
.designers { font-size: 1.05em; line-height: 1.75; color: var(--glow); }
.partners.single { grid-template-columns: 1fr; }
.pub .designers a { color: var(--glow); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--haze); }
.pub .designers a:hover, .pub .designers a:focus-visible { color: var(--peak); text-decoration-color: currentColor; }

/* Visit */
.event-name { font-size: 2em; line-height: 1; font-weight: 500; color: var(--peak); }
.event-sub { color: var(--glow); text-transform: uppercase; margin: .3em 0 1.2em; }
.facts-list { margin: 0 0 1.2em; display: grid; grid-template-columns: auto 1fr; gap: .45em 1em; }
.facts-list dt { font-size: .76em; color: var(--haze); padding-top: .15em; }
.facts-list dd { margin: 0; color: var(--light); }
.tba { color: #7d7d7d; }

/* ---------- Registration panel ---------- */
.frame { max-width: 640px; margin: 0 auto; padding: 0 20px 64px; }
.intro { padding: 28px 0 26px; text-align: center; border-bottom: 1px solid var(--penumbra); margin-bottom: 28px; }
.intro .presents { font-size: 12px; color: var(--haze); margin-bottom: 8px; }
.intro .sub { font-size: 18px; color: var(--mark); text-transform: uppercase; }
.intro .facts { margin-top: 16px; display: grid; gap: 4px; font-size: 13px; line-height: 1.5; color: var(--glow); }
.intro .facts .dates { color: var(--light); font-size: 15px; }
.intro .facts .free { margin-top: 4px; color: var(--peak); font-weight: 500; letter-spacing: .02em; }
.intro .pdf-link { display: inline-block; margin-top: 14px; font-size: 13px; color: var(--light); }
.form-title { margin: 0 0 6px; font-size: 22px; font-weight: 500; color: var(--peak); text-transform: uppercase; }
.lede { margin: 0 0 22px; font-size: 15px; line-height: 1.6; color: var(--glow); }
.field { padding: 16px 0; border-top: 1px solid var(--umbra); }
.field:first-of-type { border-top: 0; }
.field > label, .field > .label { display: flex; gap: 12px; align-items: baseline; margin-bottom: 10px; font-size: 14px; color: var(--light); text-transform: uppercase; }
.num { font-size: 11px; color: var(--haze); min-width: 18px; }
.input { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--penumbra); border-radius: 0; background: var(--void); color: var(--light); font-size: 17px; -webkit-appearance: none; appearance: none; }
select.input { background-image: linear-gradient(45deg, transparent 50%, var(--glow) 50%), linear-gradient(135deg, var(--glow) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.input::placeholder { color: var(--haze); }
.input:hover { border-color: var(--haze); }
.input:focus { outline: none; border-color: var(--glow); box-shadow: 0 0 0 1px var(--glow), 0 0 28px -6px rgba(222,222,222,.35); }
.segmented { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--penumbra); }
.segmented label { position: relative; display: flex; align-items: center; justify-content: center; min-height: 48px; cursor: pointer; background: var(--void); color: var(--glow); font-size: 14px; }
.segmented label + label { border-left: 1px solid var(--penumbra); }
.segmented input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.segmented label:has(input:checked) { background: var(--light); color: var(--void); }
.segmented label:has(input:focus-visible) { outline: 1px solid var(--light); outline-offset: -4px; }
.field.invalid .input, .field.invalid .segmented { border-color: var(--peak); }
.field-error { margin-top: 8px; padding-left: 12px; border-left: 1px solid var(--peak); color: var(--peak); font-size: 13px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { margin: 18px 0 0; font-size: 12px; line-height: 1.6; color: var(--haze); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; width: 100%; margin-top: 22px; padding: 0 28px; border: 1px solid var(--light); border-radius: 0; background: var(--light); color: var(--void); font-size: 15px; font-weight: 500; cursor: pointer; transition: box-shadow .3s, background .3s; }
.btn:hover { background: var(--peak); box-shadow: 0 0 40px -6px rgba(247,247,247,.5); }
.btn[disabled] { opacity: .55; cursor: progress; }
.spinner { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.alert { margin: 16px 0; padding: 14px 16px; background: var(--void); border-left: 1px solid var(--peak); color: var(--peak); font-size: 14px; }
.success { padding: 34px 26px; border: 1px solid var(--penumbra); background: radial-gradient(140% 90% at 0% 0%, #2a2a2a 0%, var(--void) 62%); }
.success h2 { margin: 0 0 12px; font-size: 24px; font-weight: 500; color: var(--peak); text-transform: uppercase; }
.success p { margin: 0 0 10px; color: var(--glow); }
.social { display: flex; gap: 12px; margin-top: 16px; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--penumbra); color: var(--light); transition: color .2s, border-color .2s; }
.social a:hover, .social a:focus-visible { color: var(--peak); border-color: var(--haze); }
.social svg { width: 22px; height: 22px; }
.footer { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--umbra); font-size: 14px; line-height: 1.55; color: var(--light); }
.footer-title { margin-bottom: 8px; font-weight: 500; color: var(--peak); text-transform: uppercase; }
.footer ul { margin: 0; padding-left: 1.1em; }
.footer li + li { margin-top: 4px; }

/* ---------- Desktop: both panels always in view ---------- */
@media (min-width: 960px) {
  html, body { height: 100%; }
  body { overflow: hidden; }
  .shell { height: 100vh; grid-template-columns: minmax(0, 3fr) minmax(420px, 2fr); grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "book top" "book main"; }
  .book-panel { height: 100vh; justify-content: center; padding: 28px 40px 22px; }
  .book-stage { width: min(100%, calc((100vh - 150px) * 420 / 297)); aspect-ratio: 420 / 297; }
  .book-jump { display: none; }
  .topbar { background: var(--panel); padding: 24px 40px 0; border-left: 1px solid var(--penumbra); }
  .content { overflow-y: auto; border-left: 1px solid var(--penumbra); }
  .frame { max-width: 560px; padding: 0 40px 80px; }
  .intro { text-align: left; padding: 22px 0 22px; }
  .intro .sub { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) { .leaf, .btn, .book-btn { transition: none; } .jm-pulse { animation: none; opacity: .4; } }


/* ---------- PDF export layout (index.html?print=1) ---------- */
html.print, html.print body { height: auto; overflow: visible; background: var(--void); }
html.print body::after { display: none; }
html.print .shell { display: none; }
html.print .print-root { display: block; }
html.print .print-sheet { width: 297mm; height: 210mm; display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--void); position: relative; overflow: hidden; break-after: page; page-break-after: always; }
html.print .print-sheet .page { height: 210mm; }
html.print .print-sheet .page + .page { box-shadow: inset 14px 0 18px -14px rgba(0,0,0,.8); }
html.print .pub { overflow: hidden; font-size: 2.7cqw; }
html.print .vi, html.print .en { display: revert !important; }
html.print p.en, html.print div.en { opacity: .72; }
html.print span.vi + span.en::before, html.print span.en + span.vi::before { content: ' · '; }
html.print .jd-nav, html.print .jm-sel, html.print .jm-pulse, html.print .pub-cta, html.print .pub-link { display: none !important; }
@media print {
  @page { size: A4 landscape; margin: 0; }
  html.print * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
html.print .page > img { object-fit: cover; }
html.print .v-event .pub { font-size: 2.3cqw; }
html.print .v-event .pub-img { aspect-ratio: 2.8 / 1; }
html.print .v-event .pub-img { object-position: 50% 85%; }

/* Registration panel (index.html): the lamp KV sits at the top of the panel and fades into it; the intro starts below the lamp's dark disc. */
html:not(.solo) .content { position: relative; container-type: inline-size; }
html:not(.solo) .content::before { content: ''; position: absolute; top: 0; left: 0; right: 0; aspect-ratio: 3 / 4; pointer-events: none;
  background: url("../assets/images/shared/register-bg.jpg") center top / cover no-repeat;
  -webkit-mask-image: linear-gradient(to bottom, #000 45%, transparent); mask-image: linear-gradient(to bottom, #000 45%, transparent); opacity: .9; }
html:not(.solo) .content > .frame { position: relative; }
html:not(.solo) .intro { padding-top: max(28px, 27cqw); border-bottom-color: rgba(222,222,222,.18); text-shadow: 0 1px 12px rgba(0,0,0,.8); }
html:not(.solo) .intro .presents { color: var(--light); }

/* ---------- Horii's Matcha Sessions (matcha.html): one column, no flipbook ---------- */
/* Key visual fixed behind the page, darkened towards the form so text stays readable. */
/* A fixed layer rather than background-attachment: fixed, which iPhone Safari ignores. */
html.solo body { background: var(--void); }
html.solo body::before { content: ''; position: fixed; inset: 0; z-index: -1; background: url("../assets/images/matcha/matcha-kv.jpg") center top / cover no-repeat; }
.solo .shell { background: linear-gradient(to bottom, rgba(14,14,14,.15) 0, rgba(14,14,14,.55) 480px, rgba(14,14,14,.82) 820px); }
.solo .content, .solo .topbar { background: transparent; }
/* The title starts below the lamp's dark disc. */
.solo .intro { padding-top: 150px; text-align: center;border-bottom-color: rgba(222,222,222,.18); text-shadow: 0 1px 12px rgba(0,0,0,.8); }
.solo .intro .presents { color: var(--light); }
.solo .m-desc { max-width: 30em; margin: 12px auto 0; font-size: 14px; line-height: 1.6; color: var(--light); }
.m-note { margin: 0; font-size: 14px; color: var(--haze); }
.m-retry { margin-left: 8px; padding: 4px 10px; border: 1px solid var(--penumbra); background: none; color: var(--light); font-size: 13px; cursor: pointer; }
.m-dates { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.m-slots { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.m-date, .m-slot { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 56px; padding: 6px 4px; border: 1px solid var(--penumbra); background: var(--void); color: var(--light); cursor: pointer; text-align: center; line-height: 1.25; }
.m-date input, .m-slot input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.m-dow { font-size: 11px; color: var(--glow); text-transform: uppercase; }
.m-day, .m-time { font-size: 15px; }
.m-sub { font-size: 11px; color: var(--glow); margin-top: 2px; }
.m-date:hover, .m-slot:hover { border-color: var(--haze); }
.m-date:has(input:checked), .m-slot:has(input:checked) { background: var(--light); border-color: var(--light); color: var(--void); }
.m-date:has(input:checked) .m-dow, .m-date:has(input:checked) .m-sub, .m-slot:has(input:checked) .m-sub { color: var(--penumbra); }
.m-date:has(input:focus-visible), .m-slot:has(input:focus-visible) { outline: 1px solid var(--light); outline-offset: 2px; }
.m-date:has(input:disabled), .m-slot:has(input:disabled) { cursor: not-allowed; color: var(--haze); border-color: var(--umbra); background: transparent; }
.m-date:has(input:disabled) .m-sub, .m-slot:has(input:disabled) .m-sub, .m-date:has(input:disabled) .m-dow { color: var(--haze); }
.m-host { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin: 4px 0 8px; font-size: 14px; color: var(--light); }
.m-slots + .m-host { margin-top: 18px; }
.m-host-role { font-size: 12px; color: var(--glow); }
.field.invalid .m-date:not(:has(input:disabled)), .field.invalid .m-slot:not(:has(input:disabled)) { border-color: var(--peak); }
.m-booked { margin: 18px 0; }
@media (min-width: 960px) {
  html.solo, html.solo body { height: auto; }
  html.solo body { overflow: visible; }
  .solo .shell { height: auto; min-height: 100vh; grid-template-columns: 1fr; grid-template-rows: auto 1fr; grid-template-areas: "top" "main"; }
  .solo .topbar { padding: 20px 40px; background: transparent; border-left: 0; }
  .solo .content { overflow: visible; border-left: 0; }
  .solo .m-dates { grid-template-columns: repeat(8, 1fr); }
  .solo .m-slots { grid-template-columns: repeat(4, 1fr); }
}
.solo .req { margin-left: -9px; color: var(--peak); }   /* labels are flex with a 12px gap: sits right after the last word */
.m-modal { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0,0,0,.72); }
.m-modal-box { width: 100%; max-width: 420px; padding: 28px 24px 24px; border: 1px solid var(--penumbra); background: radial-gradient(140% 90% at 0% 0%, #2a2a2a 0%, var(--void) 62%); }
.m-modal-box h2 { margin: 0 0 12px; font-size: 20px; font-weight: 500; color: var(--peak); text-transform: uppercase; }
.m-modal-box p { margin: 0; color: var(--light); }
/* Main page → Matcha Sessions (matcha.html) */
.matcha-link { display: grid; grid-template-columns: 1fr auto; gap: 2px 14px; align-items: center; margin-top: 18px; padding: 14px 16px; border: 1px solid var(--penumbra); background: var(--void); color: var(--light); text-decoration: none; text-align: left; transition: border-color .2s, box-shadow .3s; }
.matcha-link-title { font-size: 14px; font-weight: 500; color: var(--peak); text-transform: uppercase; }
.matcha-link-text { grid-column: 1; font-size: 13px; line-height: 1.45; color: var(--glow); }
.matcha-link-arrow { grid-column: 2; grid-row: 1 / span 2; font-size: 18px; color: var(--light); }
.matcha-link:hover, .matcha-link:focus-visible { border-color: var(--haze); box-shadow: 0 0 28px -8px rgba(222,222,222,.35); }
/* After registering: two next steps (brochure, Matcha Sessions), above the social links. */
.next-steps { margin: 18px 0 22px; }
.next-steps .matcha-link { margin-top: 10px; }

/* ---------- Layout A: map across the spread, encounters as spreads with inspiration images ---------- */
/* The map page shows the upright plan on a portrait page (phone) and the plan as drawn on the wide spread (desktop). */
.jm-wide { display: none; }
@container (min-aspect-ratio: 1 / 1) {
  .jm-tall { display: none; }
  .jm-wide { display: block; width: min(100%, calc(62cqh * 1600 / 1043)); margin: .2em auto .4em; }
  .v-journey-map .pub { padding: 4cqh 5cqw; }
  .v-journey-map .jm-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 2em; }
  .v-journey-map .jm-foot .jm-sel { flex: 0 1 26em; margin-top: 0; }
}
/* Encounter, left page: inspiration images, or the setting photo when there are none. */
.pub.pub-visual { display: flex; flex-direction: column; padding: 5cqw; }
.jv-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1em; margin-bottom: .8em; font-size: .82em; color: #555; }
.jv-head [data-jv="name"] { font-weight: 500; color: #1e1e1e; text-transform: uppercase; letter-spacing: .02em; }
.jv-grid { flex: 1; min-height: 0; display: grid; gap: 6px; grid-template-rows: 1fr; }
.jv-grid.n2 { grid-template-rows: 1fr 1fr; }
.jv-grid.n3 { grid-template: 3fr 2fr / 1fr 1fr; }
.jv-grid.n3 img:first-child { grid-column: 1 / -1; }
.jv-grid.n4 { grid-template: 1fr 1fr / 1fr 1fr; }
.jv-grid img { width: 100%; height: 100%; min-height: 0; display: block; }
.jv-grid img.photo { object-fit: cover; background: #d6d5d3; }
.jv-grid img.sketch { object-fit: contain; background: #fff; padding: 4%; }
/* Product gallery at the top of the text page: stacked images, the current one fades in. */
.jd-gallery { position: relative; width: calc(100% + 14cqw); margin: -7cqw -7cqw 1.4em; aspect-ratio: 4 / 3; background: #d6d5d3; overflow: hidden; }
.jd-gallery img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .8s ease; }
.jd-gallery img.on { opacity: 1; }
.jd-dots { position: absolute; left: 0; right: 0; bottom: 6px; display: flex; justify-content: center; gap: 2px; }
.jd-dots button { width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.jd-dots button::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.55); box-shadow: 0 0 0 1px rgba(0,0,0,.25); }
.jd-dots button.on::before { background: #fff; }
@media (prefers-reduced-motion: reduce) { .jd-gallery img { transition: none; } }

/* ---------- Site B: three pages under one menu (Đăng ký · Tìm hiểu về PENUMBRA · Trải nghiệm trà đạo) ---------- */
.topbar { flex-wrap: wrap; gap: 10px 20px; }
.site-nav { display: flex; gap: 4px 22px; order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav a { flex: none; padding: 10px 0; font-size: 13px; color: var(--glow); text-decoration: none; border-bottom: 1px solid transparent; white-space: nowrap; }
.site-nav a:hover { color: var(--light); }
.site-nav a[aria-current="page"] { color: var(--peak); border-bottom-color: var(--peak); }
/* Language switch right under the menu, where it is seen (on the right it was missed): phone, a row below the menu; desktop, centred under it. */
.lang { order: 4; width: 100%; gap: 0; margin-top: -4px; }
.lang button { min-width: 44px; min-height: 30px; padding: 4px 12px; border: 1px solid var(--penumbra); font-size: 12px; letter-spacing: .06em; }
.lang button + button { border-left: 0; }
.lang button[aria-pressed="true"] { background: var(--light); color: var(--void); border-color: var(--light); }
@media (min-width: 960px) {
  .topbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; row-gap: 8px; }
  .topbar > a:first-child { grid-column: 1; grid-row: 1; justify-self: start; }
  .site-nav { order: 0; width: auto; grid-column: 2; grid-row: 1; justify-content: center; }
  .lang { grid-column: 2; grid-row: 2; width: auto; justify-self: center; margin-top: 0; }
  .solo .topbar, .bk-page .topbar { padding: 20px 40px; }
}
/* Registration page: the lamp photo (3:2) fills the screen behind the page, its dark disc at the top and the pool of light
   on the floor below; the intro starts under the disc and the page darkens towards the form so the text stays readable. */
html.reg body::before { background: #0e0e0e url("../assets/images/shared/register-bg.jpg") center top / cover no-repeat; }
.reg .shell { background: linear-gradient(to bottom, rgba(14,14,14,0) 0, rgba(14,14,14,.35) 45svh, rgba(14,14,14,.82) 100svh, rgba(14,14,14,.9) 100%); }
.reg .intro { padding-top: max(24px, calc(max(100svh, 66.65vw) * .2 - 96px)); text-shadow: 0 1px 14px rgba(0,0,0,.85); }

/* "Tìm hiểu về PENUMBRA": the booklet, page images in the booklet's own 105 × 220 mm shape. */
html.bk-page, html.bk-page body { height: auto; overflow: visible; }
.bk-page body { background: var(--void); }
.bk-page .topbar { background: var(--void); border-left: 0; }
.bk-main { display: flex; justify-content: center; padding: 8px 16px 40px; }
.bk-page .book-panel { height: auto; width: 100%; padding: 0; background: none; }
.bk-page .book-stage { width: min(100%, calc((100svh - 190px) * 105 / 220)); aspect-ratio: 105 / 220; }
.bk-page .page > img { object-fit: contain; }
@media (min-width: 960px) {
  .bk-page .book-stage { width: min(100%, calc((100vh - 200px) * 210 / 220)); aspect-ratio: 210 / 220; }
}
.bk-cta { margin-top: 18px; font-size: 14px; color: var(--light); text-decoration: none; border-bottom: 1px solid var(--penumbra); padding: 8px 2px; }
/* Map page: a ring on every printed number, each a 44 px tap target. */
.bk-map { position: relative; }
.bk-spots { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.bk-spot { cursor: pointer; outline: none; }
.bk-spot .hit { fill: transparent; }
.bk-spot .ring { fill: rgba(30,30,30,.06); stroke: rgba(30,30,30,.55); stroke-width: 1.2; transform-box: fill-box; transform-origin: center; animation: bk-ring 2.6s ease-in-out infinite; }
.bk-spot:hover .ring, .bk-spot:focus-visible .ring { fill: rgba(30,30,30,.16); stroke: #1e1e1e; stroke-width: 1.8; animation: none; }
@keyframes bk-ring { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }
/* Phone: an encounter is one page that scrolls with the site: photo, text, featured. */
.bk-page .book-stage.flow { aspect-ratio: auto; width: min(100%, 560px); }
.flow .spread { position: relative; inset: auto; }
.page.bk-flow { overflow: visible; background: #ebebeb url("../assets/images/pages/paper.jpg") center top / 100% auto repeat-y; }
/* Phone: one page per screen (booklet.js sets the stage height); a swipe fades to the next page. Encounter readers scroll inside. */
html.bk-paging, html.bk-paging body { height: 100%; overflow: hidden; overscroll-behavior: none; }
.bk-page .book-stage.pager { aspect-ratio: auto; width: 100%; max-width: 560px; touch-action: pan-y; }
.book-stage.pager .spread { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.book-stage.pager .page:not(.bk-flow) { flex: none; width: min(100%, calc(var(--pg-h) * 105 / 220)); aspect-ratio: 105 / 220; max-height: 100%; }
.book-stage.pager .page:not(.bk-flow) > img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.book-stage.pager .page.bk-flow { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.book-panel.paging .book-bar, .book-panel.paging ~ .bk-cta, .book-panel.paging .bk-cta, .book-panel.paging .bk-products { display: none; }
.bk-pg-count, .bk-pg-hint { display: none; }
/* Phone: edge to edge. Each booklet page is shown whole, as large as the screen allows, over the section backdrop. */
html.bk-paging .bk-main { padding-left: 0; padding-right: 0; }
html.bk-paging .bk-page .book-stage.pager, .bk-page .book-stage.pager { max-width: none; }
.book-stage.pager .page.bk-full { position: absolute; inset: 0; width: auto; aspect-ratio: auto; max-height: none; }
.book-stage.pager .page.bk-full > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.book-stage.pager .page.bk-full { background: transparent; }
/* Phone: the opening pages two by two, as large as the screen allows (each page keeps 105 × 220). */
.book-stage.pager .spread.pair .page.bk-full { position: relative; inset: auto; flex: none; width: min(50%, calc(var(--pg-h) * 105 / 220)); aspect-ratio: 105 / 220; max-height: 100%; }
.book-stage.pager .spread.pair { gap: 0; }
/* Phone: one blurred page 01 behind the whole section, fixed: it stays still while the pages change over it. */
.bk-backdrop { display: none; }
html.bk-paging .bk-backdrop { display: block; position: fixed; inset: -40px; z-index: -1; background: #111 center / cover no-repeat; filter: blur(22px) brightness(.8); pointer-events: none; }
/* Phone map page: the guide line, then the lines-only map (numbers tappable), centred, on the booklet's grey paper (paper.jpg, cut from page 06). */
.page.bk-mapm { background: #ebebeb url("../assets/images/pages/paper.jpg") center / cover; color: #222; }
.bk-mapm-in { min-height: 100%; display: flex; flex-direction: column; justify-content: center; padding: 24px 20px 40px; }
.bk-guide { margin: 0 0 22px; font-size: 16px; line-height: 1.6; color: #222; text-align: center; }
.bk-mapm-fig { position: relative; margin: 0 -8px; }
.bk-mapm-fig > img { display: block; width: 100%; height: auto; }
/* Desktop: the same guide under the open map spread. */
.bk-products .bk-guide { max-width: 640px; margin: 0 auto 4px; text-align: center; color: var(--light); font-size: 14px; }
.book-panel.paging .bk-pg-count { display: block; position: absolute; right: 6px; bottom: 6px; z-index: 5; padding: 3px 8px; font-size: 11px; color: var(--light); background: rgba(14,14,14,.6); font-variant-numeric: tabular-nums; pointer-events: none; }
.book-panel.paging .bk-pg-hint { display: block; position: absolute; left: 50%; bottom: 14px; z-index: 5; transform: translateX(-50%); padding: 6px 12px; font-size: 12px; letter-spacing: .04em; color: var(--peak); background: rgba(14,14,14,.55); pointer-events: none; animation: bk-hint 2.4s ease-in-out infinite; }
.book-panel.paging .bk-pg-hint[hidden] { display: none; }
@keyframes bk-hint { 0%, 100% { transform: translate(-50%, 0); opacity: .75; } 50% { transform: translate(-50%, -6px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .book-panel.paging .bk-pg-hint { animation: none; } }
.bk-reader { padding: 0 20px 24px; color: #222; font-size: 16px; line-height: 1.65; }
.bk-hero { display: block; width: calc(100% + 40px); margin: 0 -20px 18px; aspect-ratio: 4 / 5; object-fit: cover; background: #111; }
.bk-r-title { margin: 0 0 .7em; font-size: 20px; font-weight: 500; letter-spacing: .02em; text-transform: uppercase; color: #141414; }
.bk-reader p { margin: 0 0 1em; text-align: left; }
.bk-r-meta { margin-top: 1.4em; font-size: 13px; color: #666; }
.bk-r-feat { list-style: none; margin: .3em 0 0; padding: 0; font-size: 15px; }
.bk-r-feat b { font-weight: 500; }
.bk-r-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 1.6em; }
.bk-r-nav { flex-wrap: wrap; }
.bk-r-nav .bk-r-map { flex: 1 1 100%; order: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; background: #1e1e1e; border-color: #1e1e1e; color: #f2f1ef; }
.bk-r-map-main { font-size: 15px; font-weight: 500; letter-spacing: .02em; }
.bk-r-map-sub { font-size: 12px; opacity: .7; }
.bk-r-nav button:not(.bk-r-map) { flex: 1 1 100%; }
.bk-r-nav button { min-height: 44px; padding: 0 16px; border: 1px solid #b4b3b1; background: transparent; color: #1e1e1e; font: inherit; font-size: 14px; cursor: pointer; }
/* Zoom: the open pages at reading size. */
.bk-zoom { position: fixed; inset: 0; z-index: 40; overflow: auto; background: rgba(8,8,8,.94); padding: 56px 0 24px; }
.bk-zoom-pages { display: flex; justify-content: center; gap: 0; }
.bk-zoom-pages img { display: block; width: min(100vw, 980px); height: auto; }
@media (min-width: 960px) { .bk-zoom-pages img { width: min(48vw, 980px); } }
.bk-zoom-close { position: fixed; top: 8px; right: 12px; z-index: 41; width: 44px; height: 44px; border: 1px solid var(--penumbra); background: var(--void); color: var(--light); font-size: 24px; cursor: pointer; }
body.bk-zoomed { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .bk-spot .ring { animation: none; opacity: 1; } }
.bk-hero.full { aspect-ratio: 105 / 220; object-fit: contain; }

/* ---------- Product page (product.html?p=…): sketch → gallery → description → size and finishing ---------- */
/* Same grey paper as the booklet pages (paper.jpg, cut from page 06). */
.pd-page body { background: #ebebeb; }
.pd-page body::before { content: ""; position: fixed; inset: 0; z-index: -1; background: #ebebeb url("../assets/images/pages/paper.jpg") center / cover no-repeat; }   /* one fixed sheet: no tile seams, no iOS background-attachment issue */
.pd { max-width: 760px; margin: 0 auto; padding: 18px 20px 64px; color: #222; }
.pd-back { display: inline-block; padding: 8px 0; font-size: 14px; color: #555; text-decoration: none; }
.pd-back:hover { color: #141414; }
.pd-head { margin: 10px 0 22px; }
.pd-name { margin: 0; font-size: clamp(22px, 4vw, 32px); line-height: 1.15; font-weight: 500; color: #141414; text-transform: uppercase; letter-spacing: .01em; }
.pd-by { margin-top: 6px; font-size: 15px; color: #555; }
/* Sketches: cut-out PNGs straight on the paper. */
.pd-sketch { display: grid; gap: 12px; margin-bottom: 26px; }
.pd-sketch.n2 { grid-template-columns: 1fr 1fr; }
.pd-sketch.n3 { grid-template-columns: repeat(3, 1fr); }
.pd-sketch img { width: 100%; max-height: 360px; object-fit: contain; mix-blend-mode: multiply; }
/* Gallery: a 4:5 frame; each photo is scaled to fit inside it, never cropped. */
.pd-gallery { position: relative; margin: 0 0 26px; }
.pd-frames { position: relative; aspect-ratio: 4 / 5; background: #dddcda; overflow: hidden; touch-action: pan-y; }
.pd-frame { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .9s ease; }
.pd-frame.on { opacity: 1; }
.pd-frame img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pd-arrow { position: absolute; top: calc(50% - 22px); width: 44px; height: 44px; border: 0; background: rgba(232,231,230,.75); color: #141414; font-size: 26px; line-height: 1; cursor: pointer; }
.pd-arrow.prev { left: 8px; } .pd-arrow.next { right: 8px; }
.pd-dots { display: flex; justify-content: center; gap: 2px; margin-top: 8px; }
.pd-dots button { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.pd-dots button::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #b4b3b1; }
.pd-dots button.on::before { background: #141414; }
.pd-info { font-size: 16px; line-height: 1.65; }
.pd-desc p { margin: 0 0 1em; }
.pd-soon { color: #777; font-style: italic; }
.pd-specs { display: grid; grid-template-columns: auto 1fr; gap: 10px 22px; margin: 18px 0 0; padding-top: 16px; border-top: 1px solid #c9c8c6; }
.pd-specs dt { font-size: 13px; color: #666; padding-top: 2px; }
.pd-specs dd { margin: 0; }
.pd-spec { margin: 0 0 4px; }
.pd-spec-name { display: block; font-size: 13px; color: #555; }
.pd-spec-val { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pd-swatches { margin-top: 22px; padding-top: 16px; border-top: 1px solid #c9c8c6; }
.pd-sw-title { font-size: 13px; color: #666; margin-bottom: 12px; }
.pd-sw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 16px 12px; max-width: 600px; }
.pd-sw { margin: 0; }
.pd-sw img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: #dddcda; }
.pd-sw figcaption { margin-top: 6px; font-size: 13px; line-height: 1.3; }
.pd-sw-name { display: block; color: #222; }
.pd-sw-kind { display: block; font-size: 12px; color: #777; }
@media (max-width: 560px) { .pd-sw-grid { grid-template-columns: repeat(3, 1fr); gap: 14px 10px; } }
.pd-quote { margin: 1.4em 0 1em; padding: 0 0 0 16px; border-left: 2px solid #b9b7b3; font-style: italic; }
.pd-quote p { margin: 0 0 .4em; }
.pd-quote cite { font-size: 13px; font-style: normal; color: #666; }
@media (max-width: 560px) { .pd-specs { grid-template-columns: 1fr; gap: 4px; } .pd-specs dd { margin-bottom: 12px; } .pd-specs dd .pd-spec { display: flex; justify-content: space-between; gap: 12px; } .pd-specs dd .pd-spec-name { display: inline; } }
.pd-go { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.pd-go-btn { flex: 1 1 220px; display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 18px; border: 1px solid #1e1e1e; color: #1e1e1e; font-size: 14px; letter-spacing: .02em; text-decoration: none; text-align: center; transition: background .2s, color .2s; }
.pd-go-btn:first-child { background: #1e1e1e; color: #f2f1ef; }
.pd-go-btn:hover { background: #1e1e1e; color: #f2f1ef; }
.pd-more { margin-top: 36px; }
.pd-more-title { font-size: 13px; color: #666; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px; }
.pd-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.pd-card { display: block; color: #222; text-decoration: none; }
.pd-card-img { display: block; aspect-ratio: 4 / 5; background: #dddcda; }
.pd-card-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pd-card-name { display: block; margin-top: 6px; font-size: 13px; line-height: 1.35; }
.pd-card-name b { font-weight: 500; }
.pd-card:hover .pd-card-name { text-decoration: underline; }
.pd-nav { display: flex; justify-content: space-between; gap: 16px; margin-top: 36px; padding-top: 16px; border-top: 1px solid #c9c8c6; font-size: 14px; }
.pd-nav a { color: #222; text-decoration: none; padding: 10px 0; }
.pd-nav a.next { text-align: right; }
@media (prefers-reduced-motion: reduce) { .pd-frame { transition: none; } }
/* Booklet: the products of the open encounter, as cards under the book (desktop) or in the encounter page (phone). */
.bk-products { width: min(100%, 980px); margin: 20px auto 0; }
.bk-products-title { font-size: 12px; color: var(--glow); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 10px; text-align: center; }
.bk-products .pd-cards { grid-template-columns: repeat(auto-fit, minmax(120px, 150px)); justify-content: center; }
.bk-products .pd-card { color: var(--light); }
.bk-products .pd-card-img { background: #dddcda; }
.bk-reader .pd-cards { grid-template-columns: 1fr 1fr; margin-top: 10px; }
.bk-reader .pd-card-img { background: #dddcda; }
/* Desktop: the brochure centred on the page; the open encounter's products (or the map guide) in the space on its right.
   Both side columns keep their width on every spread, so the book stays centred and does not shift when pages turn. */
@media (min-width: 960px) {
  .bk-page .book-panel { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-areas: ". stage side" ". bar side" ". cta side";
    column-gap: 32px; align-items: start; }
  .bk-page .book-stage { grid-area: stage; width: min(calc(100vw - 32px - 2 * (200px + 32px)), calc((100vh - 200px) * 210 / 220)); }
  .bk-page .book-bar { grid-area: bar; justify-self: center; }
  .bk-page .bk-cta { grid-area: cta; justify-self: center; }
  .bk-page .bk-products { grid-area: side; justify-self: start; width: 100%; max-width: 300px; margin: 0; max-height: calc(100vh - 200px); overflow-y: auto; padding-right: 4px; }
  .bk-page .bk-products-title { text-align: left; margin-bottom: 14px; }
  .bk-page .bk-products .pd-cards { grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); justify-content: stretch; gap: 16px 12px; }
  .bk-page .bk-products .bk-guide { margin: 0 0 18px; text-align: left; font-size: 15px; line-height: 1.6; color: var(--light); }
}
/* Phones and tablets: no arrow symbols (js/arrows.js wraps them). */
@media (max-width: 959px) { .arw, .matcha-link-arrow { display: none; } }
/* Phone map: the lines-only plan, one dot and number per encounter, the entrance pulsing ("you're here"). */
.bk-mapm-fig .bk-ln { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.bk-ln-stop { cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent; }
.bk-ln-stop .hit { fill: transparent; }
.bk-ln-stop .dot { fill: #1e1e1e; stroke: #ebebeb; stroke-width: 1.5; }
.bk-ln-stop.tea .dot { fill: #ebebeb; stroke: #1e1e1e; stroke-width: 1.4; }
.bk-ln-stop text { font-family: var(--font); font-size: 13px; font-weight: 500; fill: #1e1e1e; }
.bk-ln-stop:active .dot, .bk-ln-stop:focus-visible .dot { fill: #000; stroke: #000; stroke-width: 4; }
/* "You are here" marker (HTML over the map): glides to the chosen number, blinks there, label fades out. */
.bk-here { position: absolute; width: 0; height: 0; pointer-events: none; z-index: 2; transition: left .7s cubic-bezier(.45,0,.2,1), top .7s cubic-bezier(.45,0,.2,1); }
.bk-here .dot, .bk-here .pulse { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; box-sizing: border-box; border: 1.4px solid #1e1e1e; border-radius: 50%; transition: all .4s ease; }
.bk-here .pulse { border-width: 1px; animation: bk-ln-pulse 2.4s ease-out infinite; }
.bk-here .lbl { position: absolute; left: 11px; top: -8px; white-space: nowrap; font-size: 11px; line-height: 16px; color: #444; transition: opacity .3s; }
.bk-here.moved .dot, .bk-here.moved .pulse { left: -13px; top: -13px; width: 26px; height: 26px; border-width: 1.6px; }
.bk-here.moved .dot { animation: bk-here-blink 1.1s ease-in-out infinite; }
.bk-here.moved .pulse { border-width: 1px; animation-duration: 1.6s; }
.bk-here.moved .lbl { opacity: 0; }
@keyframes bk-here-blink { 0%, 100% { opacity: 1; } 50% { opacity: .15; } }
@media (prefers-reduced-motion: reduce) { .bk-here, .bk-here .dot, .bk-here .pulse { transition: none; animation: none !important; } .bk-here .pulse { opacity: .4; } }
@keyframes bk-ln-pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(3.2); opacity: 0; } }
/* Phone encounter: its booklet pages as designed, edge to edge and stacked, then products and the way on. */
.bk-r-page { display: block; width: calc(100% + 40px); max-width: none; height: auto; margin: 0 -20px; cursor: zoom-in; }
.bk-r-page + .bk-r-meta { margin-top: 22px; }
/* Map: the encounter picked on the desktop map, and that encounter's page fading in on the right. */
.bk-ln-stop.on .dot { fill: #000; stroke: #000; stroke-width: 5; }
.bk-ln-stop.on text { font-weight: 700; }
.bk-fadein { animation: bk-fadein .45s ease both; }
@keyframes bk-fadein { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .bk-fadein { animation: none; } }
.spread .page.bk-mapm { overflow: hidden; }
.spread .bk-mapm-in { padding: 18px 14px; }
.spread .bk-guide { font-size: 14px; line-height: 1.55; margin-bottom: 14px; }
.spread .bk-mapm-fig .bk-ln-stop text { font-size: 12px; }
/* The last encounter: District Eight's website. */
.bk-d8 { display: flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 20px; padding: 0 18px; border: 1px solid #1e1e1e; color: #1e1e1e; font-size: 14px; letter-spacing: .02em; text-decoration: none; }
.bk-d8:hover, .bk-d8:active { background: #1e1e1e; color: #f2f1ef; }
.bk-products .bk-d8 { border-color: var(--light); color: var(--light); }
.bk-products .bk-d8:hover { background: var(--light); color: #141414; }
/* Thank-you note, 1.5 s after the last booklet page. */
.bk-thanks { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(0,0,0,.6); opacity: 0; transition: opacity .4s ease; }
.bk-thanks.on { opacity: 1; }
.bk-thanks-box { width: 100%; max-width: 440px; padding: 30px 26px 24px; background: #ebebeb url("../assets/images/pages/paper.jpg") center / cover; color: #1e1e1e; font-size: 16px; line-height: 1.6; text-align: center; transform: translateY(10px); transition: transform .4s ease; }
.bk-thanks.on .bk-thanks-box { transform: none; }
.bk-thanks-box p { margin: 0 0 1em; }
.bk-thanks-ok { min-height: 44px; min-width: 140px; margin-top: 6px; padding: 0 20px; border: 1px solid #1e1e1e; background: #1e1e1e; color: #f2f1ef; font: inherit; font-size: 14px; cursor: pointer; }
@media (prefers-reduced-motion: reduce) { .bk-thanks, .bk-thanks-box { transition: none; } }
/* Phone: country code box (flag + code shown; the open list has every country's name) in front of the number. */
.tel-row { display: flex; gap: 8px; }
.tel-row > .input { flex: 1; min-width: 0; }
.tel-cc-box { position: relative; flex: none; width: 112px; }
.tel-cc-box select.input { width: 100%; color: transparent; padding-right: 30px; }
.tel-cc-box select.input option { color: var(--light); background: var(--void); }
.tel-cc-shown { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--light); font-size: 16px; white-space: nowrap; }
.field.invalid .tel-cc-box select.input { border-color: inherit; }
/* Booklet quick view: "Tìm hiểu thêm về …" opens the product's short description, size, finishing and swatches under the cards. */
.pd-card.quick:hover .pd-card-name { text-decoration: none; }
button.pd-card-name { width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
button.pd-card-name:hover b, button.pd-card-name[aria-expanded="true"] b { text-decoration: underline; text-underline-offset: 3px; }
.pd-card-caret { display: inline-block; width: 7px; height: 7px; margin-left: 3px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); transition: transform .2s; }
button.pd-card-name[aria-expanded="true"] .pd-card-caret { transform: translateY(0) rotate(-135deg); }
.pd-qv { margin-top: 14px; padding: 16px 18px 18px; background: rgba(255,255,255,.6); border: 1px solid #c9c8c6; color: #222; font-size: 14px; line-height: 1.6; text-align: left; animation: pd-qv-in .25s ease-out; }
.bk-products .pd-qv { background: #efeeec; }
@keyframes pd-qv-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.pd-qv-head b { display: block; font-size: 16px; font-weight: 500; }
.pd-qv-head span { font-size: 13px; color: #666; }
.pd-qv .pd-desc { margin-top: 10px; }
.pd-qv .pd-desc p { margin: 0 0 .7em; }
.pd-qv .pd-desc p:last-of-type { margin-bottom: 0; }
.pd-qv .pd-specs { grid-template-columns: 1fr; gap: 4px; margin-top: 14px; padding-top: 12px; }
.pd-qv .pd-specs dd { margin-bottom: 10px; }
.pd-qv .pd-specs dd .pd-spec { display: flex; justify-content: space-between; gap: 12px; }
.pd-qv .pd-specs dd .pd-spec-name { display: inline; }
.pd-qv .pd-swatches { margin-top: 4px; padding-top: 12px; }
.pd-qv .pd-sw-grid { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 12px 10px; }
.pd-qv .pd-sw figcaption { font-size: 12px; }
.pd-qv-more { display: flex; align-items: center; justify-content: center; min-height: 46px; margin-top: 16px; padding: 0 16px; background: #1e1e1e; color: #f2f1ef; font-size: 14px; letter-spacing: .02em; text-decoration: none; text-align: center; }
.pd-qv-more:hover { background: #000; }
@media (prefers-reduced-motion: reduce) { .pd-qv { animation: none; } .pd-card-caret { transition: none; } }
.pd-cards { grid-auto-flow: row dense; }                 /* the quick view takes the row under its card; the next card fills the gap beside it */
.pd-cards > .pd-qv { grid-column: 1 / -1; margin-top: 2px; }
/* Registration done: popup sending the visitor to the booklet map (same look as the booklet's thank-you popup). */
.bk-thanks[hidden] { display: none; }
.map-pop-go { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.map-pop-later { display: block; margin: 10px auto 0; padding: 8px 12px; border: 0; background: none; color: #555; font: inherit; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.map-pop-title { margin: 0 0 10px; font-size: 20px; font-weight: 500; text-transform: uppercase; letter-spacing: .03em; }
.map-pop .map-pop-done { font-size: 15px; color: #444; }
.map-pop #map-pop-text { margin-top: 1.2em; padding-top: 1.1em; border-top: 1px solid #c9c8c6; font-size: 18px; line-height: 1.5; }
