/* Public EPK page. Themes set the palette; --accent comes from the kit. */
.epk { --bg: #0B0B0C; --fg: #F4F2EE; --mute: #A9A49A; --panel: #151517; --line: #26262A; --glow: transparent;
  background: var(--bg); color: var(--fg); font-family: var(--font); margin: 0; }
.epk[data-theme="paper"] { --bg: #F7F4EE; --fg: #15130F; --mute: #6E685C; --panel: #FFFFFF; --line: #DDD5C7; }
.epk[data-theme="neon"] { --bg: #070B1F; --fg: #EAF0FF; --mute: #93A0C7; --panel: #0E1533; --line: #1E2A57; --glow: color-mix(in srgb, var(--accent) 45%, transparent); }
.epk a { color: var(--fg); }
.epk .btn { border-color: var(--line); background: var(--panel); color: var(--fg); }
.epk .btn:hover { border-color: var(--fg); }
.epk .btn-accent { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 0 0 var(--glow); }
.epk[data-theme="neon"] .btn-accent { box-shadow: 0 0 30px var(--glow); }
.epk .eyebrow { color: var(--accent); }

.preview-banner { background: var(--accent); color: #fff; text-align: center; padding: .6rem 1rem; font-size: .9rem; }
.preview-banner a { color: #fff; text-decoration: underline; }

.epk-hero { position: relative; min-height: 78vh; display: flex; align-items: flex-end; overflow: hidden; isolation: isolate;
  background: radial-gradient(900px 600px at 15% 0%, color-mix(in srgb, var(--accent) 38%, transparent), transparent 62%), var(--bg); }
.epk-hero .hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .9; transform: scale(1.04); animation: kenburns 14s ease-out forwards; }
.epk-hero.has-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, .05) 0%, color-mix(in srgb, var(--bg) 70%, transparent) 60%, var(--bg) 100%); }
.epk[data-theme="paper"] .epk-hero.has-photo::after { background: linear-gradient(180deg, rgba(247, 244, 238, 0) 0%, rgba(247, 244, 238, .65) 60%, var(--bg) 100%); }
@keyframes kenburns { to { transform: scale(1); } }
.hero-content { padding: clamp(2rem, 6vw, 4.5rem) clamp(1rem, 6vw, 5rem) clamp(2rem, 5vw, 3.5rem); max-width: 1000px; }
.hero-content > * { animation: rise .8s var(--ease) both; }
.hero-content > *:nth-child(2) { animation-delay: .08s; }
.hero-content > *:nth-child(3) { animation-delay: .16s; }
.hero-content > *:nth-child(4) { animation-delay: .24s; }
.hero-content > *:nth-child(5) { animation-delay: .32s; }
.hero-content h1 { font-size: clamp(3rem, 9vw, 7rem); text-shadow: 0 4px 40px rgba(0, 0, 0, .35); margin-bottom: .4rem; }
.epk[data-theme="paper"] .hero-content h1 { text-shadow: none; }
.meta-line { font-family: var(--font-display); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .8rem; color: var(--mute); margin: 0 0 .9rem; }
.tagline { font-size: clamp(1.1rem, 2.2vw, 1.5rem); color: var(--fg); opacity: .9; max-width: 640px; margin-bottom: 1rem; }
.epk .chips { margin-bottom: 1.3rem; }
.epk .chip { background: color-mix(in srgb, var(--fg) 8%, transparent); border-color: color-mix(in srgb, var(--fg) 18%, transparent); color: var(--fg); cursor: default; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .6rem; }

.stats { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--panel) 70%, transparent); }
.stat { flex: 1 1 140px; padding: 1.1rem 1.4rem; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-family: var(--font-display); font-size: 1.6rem; letter-spacing: -.02em; }
.stat span { color: var(--mute); font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; }

.epk-body { max-width: 900px; margin: 0 auto; padding: 1rem clamp(1rem, 5vw, 2rem) 3rem; }
.epk-section { padding: 2.4rem 0; border-top: 1px solid var(--line); }
.epk-section:first-child { border-top: 0; }
.epk-section h2 { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; color: var(--accent); margin-bottom: 1.2rem; }
.epk .prose p { font-size: 1.1rem; line-height: 1.7; color: var(--fg); opacity: .92; max-width: 70ch; }
.embeds { display: grid; gap: 1rem; }
.embeds iframe { border-radius: 14px; border: 0; background: var(--panel); width: 100%; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .8rem; }
.gallery-item { position: relative; border-radius: 14px; overflow: hidden; background: var(--panel); }
.gallery-item img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; transition: transform .5s var(--ease); }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item .caption { position: absolute; left: 0; right: 0; bottom: 0; padding: .6rem .8rem; font-size: .8rem; background: linear-gradient(transparent, rgba(0, 0, 0, .8)); color: #fff; }
.releases { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .8rem; }
.release { display: block; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); transition: transform .25s var(--ease), border-color .2s; }
.release:hover { transform: translateY(-3px); border-color: var(--accent); text-decoration: none; }
.release b { font-family: var(--font-display); font-size: 1.05rem; display: block; margin-bottom: .2rem; }
.release span { color: var(--mute); font-size: .85rem; }
.quotes { display: grid; gap: 1rem; }
.quotes blockquote { margin: 0; padding: 1.3rem 1.5rem; border-left: 3px solid var(--accent); background: var(--panel); border-radius: 0 14px 14px 0; }
.quotes p { font-size: 1.15rem; font-style: italic; margin-bottom: .5rem; line-height: 1.5; }
.quotes cite { color: var(--mute); font-style: normal; font-size: .9rem; }
.timeline { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1rem; }
.timeline li { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; }
.timeline .when { color: var(--mute); font-size: .88rem; padding-top: .15rem; font-family: var(--font-display); font-weight: 700; }
.timeline b { font-size: 1.05rem; }
.timeline p { color: var(--mute); margin: .15rem 0 0; }
.link-buttons { display: flex; flex-wrap: wrap; gap: .6rem; }
.link-buttons .btn small { color: var(--mute); font-weight: 500; }
.booking { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.booking p { margin-bottom: .35rem; font-size: 1.05rem; }
.booking .contact a { color: var(--accent); font-weight: 600; }
.booking details { margin-top: .8rem; grid-column: 1 / -1; }
.booking summary { cursor: pointer; color: var(--mute); }
.rider { white-space: pre-wrap; font: inherit; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 1rem; margin-top: .75rem; }
.epk-footer { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; padding: 2.5rem 1rem 3.5rem; color: var(--mute); font-size: .85rem; border-top: 1px solid var(--line); }
.epk-footer a, .epk-footer button { color: var(--mute); }
.epk-footer .made-with b { color: var(--fg); }

/* ---- brand buttons (logos, not words) ---- */
.bi { width: 1.25em; height: 1.25em; fill: currentColor; display: inline-block; vertical-align: middle; flex-shrink: 0; }
.brand-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.brand-btn { display: inline-flex; align-items: center; gap: .55rem; padding: .6rem .95rem; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); color: var(--fg); font-weight: 600; font-size: .92rem; text-decoration: none; transition: transform .18s var(--ease), border-color .18s, background .18s; }
.brand-btn:hover { text-decoration: none; transform: translateY(-2px); border-color: var(--fg); }
.brand-btn .bi { width: 1.35rem; height: 1.35rem; }
.brand-btn small { color: var(--mute); font-weight: 500; }
.brand-btn.round { width: 46px; height: 46px; padding: 0; justify-content: center; }
.brand-btn.round .bi { width: 1.45rem; height: 1.45rem; }
.hero-brands { gap: .5rem; }
.epk[data-theme="neon"] .brand-btn:hover { box-shadow: 0 0 22px var(--glow); }

/* ---- floating share ---- */
.fab-wrap { position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: .6rem; }
.fab { display: inline-flex; align-items: center; gap: .5rem; padding: .8rem 1.15rem; border-radius: 999px; border: 0; background: var(--accent); color: #fff; font: 700 .95rem var(--font); cursor: pointer; box-shadow: 0 12px 34px rgba(0, 0, 0, .35); transition: transform .18s var(--ease); }
.fab:hover { transform: translateY(-2px); }
.fab .bi { width: 1.15rem; height: 1.15rem; }
.fab-menu { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: .4rem; min-width: 200px; box-shadow: 0 18px 50px rgba(0, 0, 0, .4); animation: rise .22s var(--ease); }
.fab-item { display: flex; align-items: center; gap: .65rem; width: 100%; padding: .65rem .8rem; border: 0; border-radius: 10px; background: none; color: var(--fg); font: 600 .92rem var(--font); cursor: pointer; text-decoration: none; text-align: left; }
.fab-item:hover { background: color-mix(in srgb, var(--fg) 8%, transparent); text-decoration: none; }
.fab-item .bi { width: 1.15rem; height: 1.15rem; color: var(--accent); }
.fab-qr { padding: .6rem .6rem .4rem; text-align: center; }
.fab-qr img { display: block; margin: 0 auto .35rem; border-radius: 10px; background: #fff; padding: 6px; width: 180px; height: 180px; }
.fab-qr small { color: var(--mute); font-size: .75rem; }
.epk-toast { position: fixed; left: 50%; bottom: max(1.2rem, env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: var(--fg); color: var(--bg); padding: .65rem 1.1rem; border-radius: 999px; font: 600 .9rem var(--font); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--ease); z-index: 70; }
.epk-toast.show { opacity: 1; transform: translate(-50%, 0); }
.epk-toast.bad { background: #C6311B; color: #fff; }

/* ---- owner: edit in place ---- */
.is-owner .editable { cursor: text; border-radius: 6px; outline: 2px dashed transparent; outline-offset: 4px; transition: outline-color .2s; }
.is-owner .editable:hover { outline-color: color-mix(in srgb, var(--accent) 70%, transparent); }
.is-owner .editable.editing { outline: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.is-owner .ph-owner:empty::before { content: attr(data-placeholder); color: var(--mute); font-style: italic; }
.is-owner .ph-owner { display: block; }
.is-owner { padding-bottom: 4.5rem; }
.owner-bar { position: fixed; left: 50%; bottom: max(1rem, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: .45rem; padding: .45rem .6rem .45rem .9rem; background: #15130F; color: #F7F4EE; border-radius: 999px; box-shadow: 0 14px 40px rgba(0, 0, 0, .45); font-family: var(--font); max-width: calc(100vw - 2rem); }
.owner-tag { font: 800 .72rem var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: #FF7A52; margin-right: .3rem; white-space: nowrap; }
.obtn { padding: .5rem .85rem; border-radius: 999px; border: 1px solid #3a3730; background: #24221d; color: #fff; font: 600 .86rem var(--font); cursor: pointer; text-decoration: none; white-space: nowrap; }
.obtn:hover { background: #33302a; text-decoration: none; }
.owner-hint { font-size: .78rem; color: #b9b2a5; margin-left: .3rem; white-space: nowrap; }
.owner-panel { position: fixed; left: 50%; bottom: calc(4.4rem + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 61; width: min(92vw, 520px); background: #fff; color: #15130F; border-radius: 18px; padding: 1rem 1.1rem; box-shadow: 0 20px 60px rgba(0, 0, 0, .45); font-family: var(--font); animation: rise .22s var(--ease); }
.op-row { display: flex; align-items: center; gap: .8rem; padding: .45rem 0; border-bottom: 1px solid #EFEAE1; flex-wrap: wrap; }
.op-row:last-child { border-bottom: 0; }
.op-row > b { width: 64px; font-size: .82rem; color: #4E493F; }
.op-row > div { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
.opt { padding: .38rem .75rem; border-radius: 999px; border: 1.5px solid #DDD5C7; background: #fff; color: #15130F; font: 600 .82rem var(--font); cursor: pointer; }
.opt.on { background: #15130F; color: #F7F4EE; border-color: #15130F; }
.opt.sw { width: 26px; height: 26px; padding: 0; border: 2px solid #fff; box-shadow: 0 0 0 1px #DDD5C7; }
.opt.sw.on { box-shadow: 0 0 0 2px #15130F; }
.op-swatches input[type="color"] { width: 3rem; height: 26px; padding: 0 2px; border: 1.5px solid #DDD5C7; border-radius: 8px; background: #fff; }
.op-help { margin: 0 0 .6rem; font-size: .82rem; color: #8A8375; }
.op-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; }
.op-list li { display: flex; align-items: center; gap: .55rem; padding: .5rem .6rem; border: 1.5px solid #DDD5C7; border-radius: 12px; background: #F7F4EE; cursor: grab; }
.op-list li.dragging { opacity: .4; }
.op-list li.off .op-name { color: #8A8375; text-decoration: line-through; }
.op-grip { color: #B3AB9C; display: inline-flex; }
.op-name { flex: 1; font-weight: 600; font-size: .9rem; }
.op-eye, .op-move button { border: 1px solid #DDD5C7; background: #fff; border-radius: 8px; width: 30px; height: 30px; cursor: pointer; color: #4E493F; display: inline-grid; place-items: center; font-size: .7rem; }
.op-move { display: inline-flex; gap: .25rem; }
.is-owner .fab-wrap { bottom: calc(4.6rem + env(safe-area-inset-bottom)); }
@media (max-width: 720px) {
  .owner-hint, .owner-tag { display: none; }
  .owner-bar { left: .6rem; right: .6rem; transform: none; max-width: none; justify-content: center; padding: .4rem .5rem; gap: .35rem; }
  .obtn { flex: 1; text-align: center; padding: .55rem .5rem; }
  .owner-panel { bottom: calc(4.2rem + env(safe-area-inset-bottom)); width: calc(100vw - 1.2rem); }
  .brand-btn.round { width: 42px; height: 42px; }
  .fab span { display: none; }
  .fab { padding: .85rem; }
}
@media print {
  .fab-wrap, .owner-bar, .owner-panel, .epk-toast { display: none !important; }
}

/* ---- cover styles ---- */
.hero-side { display: none; }
.epk[data-cover="split"] .epk-hero { min-height: 0; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 0; background: var(--bg); }
.epk[data-cover="split"] .epk-hero .hero-bg { display: none; }
.epk[data-cover="split"] .epk-hero.has-photo::after { display: none; }
.epk[data-cover="split"] .hero-side { display: block; align-self: stretch; min-height: 520px; order: 2; }
.epk[data-cover="split"] .hero-side img { width: 100%; height: 100%; object-fit: cover; }
.epk[data-cover="split"] .hero-content { padding: clamp(2.5rem, 6vw, 5rem) clamp(1rem, 5vw, 4rem); }
.epk[data-cover="split"] .hero-content h1 { text-shadow: none; font-size: clamp(2.6rem, 6.5vw, 5.4rem); }
.epk[data-cover="minimal"] .epk-hero { min-height: 0; background: var(--bg); border-bottom: 1px solid var(--line); }
.epk[data-cover="minimal"] .epk-hero .hero-bg { display: none; }
.epk[data-cover="minimal"] .epk-hero.has-photo::after { display: none; }
.epk[data-cover="minimal"] .hero-content { padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 6vw, 5rem) 2.5rem; }
.epk[data-cover="minimal"] .hero-content h1 { text-shadow: none; font-size: clamp(3rem, 10vw, 8rem); letter-spacing: -.04em; }

/* ---- gallery styles ---- */
.epk[data-gallery="masonry"] .gallery { display: block; columns: 3 220px; column-gap: .8rem; }
.epk[data-gallery="masonry"] .gallery-item { display: block; break-inside: avoid; margin-bottom: .8rem; }
.epk[data-gallery="masonry"] .gallery-item img { aspect-ratio: auto; }
.epk[data-gallery="strip"] .gallery { display: flex; gap: .8rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .5rem; }
.epk[data-gallery="strip"] .gallery-item { flex: 0 0 min(72vw, 420px); scroll-snap-align: start; }
.epk[data-gallery="strip"] .gallery-item img { aspect-ratio: 4 / 5; }

@media (max-width: 640px) {
  .timeline li { grid-template-columns: 1fr; gap: .15rem; }
  .epk[data-cover="split"] .epk-hero { grid-template-columns: 1fr; }
  .epk[data-cover="split"] .hero-side { min-height: 300px; order: -1; }
  .epk[data-cover="split"] .hero-content { padding: 1.5rem 1.1rem 1.8rem; }
  .booking { grid-template-columns: 1fr; }
  .epk-hero { min-height: min(84vh, 84dvh); }
  .hero-content { padding: 3rem 1.1rem 1.6rem; }
  .hero-content h1 { font-size: clamp(2.5rem, 13vw, 4.2rem); }
  .epk[data-cover="minimal"] .hero-content h1 { font-size: clamp(2.6rem, 15vw, 4.6rem); }
  .tagline { font-size: 1.05rem; }
  .meta-line { font-size: .68rem; letter-spacing: .1em; }
  .hero-actions .btn-accent { flex-basis: 100%; justify-content: center; }
  .stat { flex-basis: 50%; padding: .9rem 1rem; }
  .stat b { font-size: 1.35rem; }
  .epk-body { padding: .5rem 1rem 2.5rem; }
  .epk-section { padding: 1.8rem 0; }
  .epk .prose p { font-size: 1.02rem; }
  .gallery { grid-template-columns: 1fr 1fr; gap: .5rem; }
  .epk[data-gallery="masonry"] .gallery { columns: 2; column-gap: .5rem; }
  .epk[data-gallery="masonry"] .gallery-item { margin-bottom: .5rem; }
  .epk[data-gallery="strip"] .gallery-item { flex-basis: 78vw; }
  .releases { grid-template-columns: 1fr; }
  .quotes p { font-size: 1.05rem; }
  .epk-footer { padding: 2rem 1rem 3rem; gap: .8rem 1.2rem; }
}

@media print {
  .epk, .epk[data-theme] { --bg: #fff; --fg: #111; --mute: #444; --panel: #fff; --line: #ddd; background: #fff; }
  .epk-hero { min-height: auto; background: none; }
  .epk-hero .hero-bg { position: static; opacity: 1; transform: none; max-height: 320px; width: auto; margin: 1rem 0 0 1rem; animation: none; }
  .epk-hero.has-photo::after { display: none; }
  .hero-content h1 { text-shadow: none; }
  .hero-content > * { animation: none; }
  .preview-banner, .print-btn, .made-with, .embeds, .hero-actions .btn:not(.btn-accent) { display: none !important; }
  .epk .btn-accent { border: 1px solid #333; color: #111; background: none; box-shadow: none; }
  .epk-section { page-break-inside: avoid; }
  .epk-section h2 { color: #333; }
  .gallery-item img { aspect-ratio: auto; max-height: 260px; }
  .release, .quotes blockquote, .rider { border: 1px solid #ccc; }
  .reveal { opacity: 1; transform: none; }
}
