/* Moonbound Media Studios — client galleries */
:root {
  --black: #0a0a0a; --ink: #1a1a1a; --grey-7: #4a4a4a; --grey-5: #8a8a8a; --grey-3: #d4d4d4; --grey-2: #e8e8e8; --grey-1: #f5f5f5; --white: #fff;
  --red: #cb2027; --red-dark: #a8181e;
  --sans: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --script: 'Pinyon Script', 'Snell Roundhand', cursive;
  --gap: 6px; --radius: 4px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--white); line-height: 1.55; font-size: 15px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.muted { color: var(--grey-5); }
.small { font-size: 12.5px; }
.red { color: var(--red); }
.row { display: flex; gap: 8px; align-items: center; }
.row.between { justify-content: space-between; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid transparent; border-radius: 999px; padding: 11px 22px; font-weight: 600; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; transition: background .15s, color .15s, border-color .15s, transform .1s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: #2a2a2a; }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); }
.btn-ghost { background: transparent; border-color: var(--grey-3); color: var(--ink); }
.btn-ghost:hover { border-color: var(--black); }
.btn-sm { padding: 7px 14px; font-size: 11.5px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.danger { color: var(--red) !important; }
.link-btn { background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; font-size: 13px; }
.icon-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 8px 10px; border-radius: 999px; color: inherit; font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.icon-btn:hover { background: rgba(0,0,0,.06); }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Forms */
label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--grey-7); margin-bottom: 14px; }
label input:not([type=checkbox]):not([type=radio]), label select, .card > input, .row input { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; border: 1.5px solid var(--grey-3); border-radius: var(--radius); background: var(--white); font-size: 15px; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--ink); }
input:focus, select:focus { outline: none; border-color: var(--black); }
label.check, label.radio { display: flex; align-items: center; gap: 10px; text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 10px; }
input[type=checkbox], input[type=radio] { accent-color: var(--black); width: 17px; height: 17px; margin: 0; }
fieldset { border: 0; border-top: 1px solid var(--grey-2); margin: 10px 0 18px; padding: 18px 0 0; }
legend { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); padding-right: 10px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid2 .span2 { grid-column: span 2; }
.alert { background: #fdecec; color: var(--red-dark); padding: 10px 14px; border-radius: var(--radius); font-size: 14px; }
.card { background: var(--white); border: 1px solid var(--grey-2); border-radius: 8px; padding: 36px; }

/* Auth / setup / simple pages */
.admin-auth, .center-page { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: var(--white); }
.center-page { text-align: center; align-content: center; }
.auth-card { width: 100%; max-width: 400px; }
.auth-card h1, .setup h1, .lock-card h1, .center-page h1 { font-size: 22px; font-weight: 700; }
.auth-logo { width: 110px; margin: 0 auto 22px; }
.setup { width: 100%; max-width: 680px; }
.setup h2 { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin-top: 28px; }
.hint { font-size: 13px; color: var(--grey-7); }

/* ===================== Homepage ===================== */
.site-head { display: flex; justify-content: space-between; align-items: center; padding: 18px clamp(16px, 4vw, 56px); position: sticky; top: 0; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); z-index: 10; border-bottom: 1px solid var(--grey-2); }
.site-head .brand img { height: 52px; width: auto; }
.site-head nav { display: flex; gap: 26px; align-items: center; font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.site-head nav a:not(.btn) { text-decoration: none; }
.site-head nav a:not(.btn):hover { color: var(--red); }
.hero { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 40px; padding: clamp(48px, 9vw, 120px) clamp(16px, 6vw, 96px); max-width: 1400px; margin: 0 auto; }
.kicker, .label { font-size: 11.5px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--red); margin: 0 0 18px; }
.hero h1 { font-size: clamp(42px, 6.4vw, 88px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 26px; }
.lead { font-size: clamp(16px, 1.4vw, 19px); color: var(--grey-7); max-width: 34em; }
.hero-cta { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero-mark img { width: min(100%, 440px); margin-left: auto; }
.services { padding: 80px clamp(16px, 6vw, 96px); background: var(--grey-1); }
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; max-width: 1400px; }
.svc-grid article { background: var(--white); padding: 30px 26px; border-radius: 8px; }
.svc-grid .num { font-size: 12px; font-weight: 700; color: var(--red); letter-spacing: .1em; }
.svc-grid h3 { font-size: 19px; font-weight: 700; margin: 14px 0 8px; }
.svc-grid p { color: var(--grey-7); margin: 0; font-size: 14.5px; }
.find { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 90px clamp(16px, 6vw, 96px); max-width: 1400px; margin: 0 auto; }
.find h3 { font-size: clamp(26px, 3vw, 38px); font-weight: 700; }
.find p { color: var(--grey-7); }
.find-form { background: var(--black); color: var(--white); padding: 34px; border-radius: 8px; }
.find-form label { color: var(--grey-3); }
.find-form .row input { margin: 0; border-color: #333; background: #151515; color: var(--white); }
.find-form .btn-dark { background: var(--red); }
.visit { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 70px clamp(16px, 6vw, 96px); border-top: 1px solid var(--grey-2); max-width: 1400px; margin: 0 auto; }
.visit p { font-size: 17px; line-height: 1.8; margin: 0 0 10px; }
.visit a { text-decoration: none; border-bottom: 1px solid var(--grey-3); }
.visit a:hover { border-color: var(--red); color: var(--red); }
.site-foot { background: var(--black); color: var(--grey-5); text-align: center; padding: 48px 16px; font-size: 13px; }
.site-foot img { width: 90px; margin: 0 auto 16px; }

/* ===================== Gallery cover ===================== */
.cover { position: relative; min-height: 100svh; display: grid; overflow: hidden; background: var(--white); }
.cover-media { position: relative; overflow: hidden; background: var(--grey-1); }
.cover-media img { width: 100%; height: 100%; object-fit: cover; animation: coverIn 1.4s cubic-bezier(.2,.7,.2,1) both; }
@keyframes coverIn { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
.cover-text { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px 24px; z-index: 2; }
.cover-logo { width: 74px; margin-bottom: 26px; }
.cover-title { font-size: clamp(34px, 5.4vw, 76px); font-weight: 700; letter-spacing: .01em; margin: 0 0 14px; overflow-wrap: anywhere; }
.font-sans .cover-title { text-transform: uppercase; letter-spacing: .06em; font-size: clamp(28px, 4.4vw, 60px); }
.font-serif .cover-title { font-family: var(--serif); font-weight: 400; }
.font-script .cover-title { font-family: var(--script); font-weight: 400; font-size: clamp(44px, 7vw, 100px); }
.cover-sub { font-size: 12.5px; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; margin: 0 0 30px; }
.cover-btn { display: inline-block; padding: 12px 28px; border: 1.5px solid currentColor; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; text-decoration: none; transition: background .2s, color .2s; }
/* Full bleed */
.cover-full .cover-media { position: absolute; inset: 0; }
.cover-full.tone-dark .cover-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.05) 40%, rgba(0,0,0,.55) 100%); }
.cover-full.tone-dark .cover-text { color: var(--white); }
.cover-full.tone-light .cover-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,0) 40%, rgba(255,255,255,.55) 100%); }
.cover-full .cover-text { justify-content: flex-end; padding-bottom: 12vh; }
.cover-full.tone-dark .cover-btn:hover { background: var(--white); color: var(--black); }
.cover-full.tone-light .cover-btn:hover, .cover-split .cover-btn:hover, .cover-frame .cover-btn:hover, .cover-minimal .cover-btn:hover { background: var(--black); color: var(--white); }
/* Split */
.cover-split { grid-template-columns: 40% 60%; }
.cover-split .cover-text { order: -1; }
/* Framed */
.cover-frame { grid-template-rows: 1fr auto; padding: clamp(16px, 3vw, 40px); }
.cover-frame .cover-media { border-radius: 2px; }
.cover-frame .cover-text { padding: 36px 24px 20px; }
.cover-frame .cover-logo { display: none; }
/* Minimal */
.cover-minimal { grid-template-rows: auto 1fr; min-height: auto; }
.cover-minimal .cover-text { order: -1; padding: 56px 24px 36px; }
.cover-minimal .cover-media { height: 62svh; margin: 0 clamp(16px, 3vw, 40px); }
.cover-minimal .cover-btn { display: none; }

/* ===================== Gallery bar + grid ===================== */
.g-bar { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); border-bottom: 1px solid var(--grey-2); }
.g-bar-in { display: flex; align-items: center; gap: 20px; padding: 10px clamp(12px, 2.4vw, 32px); min-height: 60px; }
.g-bar-title { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; }
.g-bar-title span { overflow: hidden; text-overflow: ellipsis; }
.g-bar-logo { width: 34px; flex: none; }
.g-sets { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.g-sets::-webkit-scrollbar { display: none; }
.g-sets button { background: none; border: 0; padding: 8px 12px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--grey-5); white-space: nowrap; border-bottom: 2px solid transparent; }
.g-sets button:hover { color: var(--ink); }
.g-sets button.on { color: var(--ink); border-color: var(--red); }
.g-actions { display: flex; gap: 2px; margin-left: auto; flex: none; }
#favFilter[aria-pressed=true] { color: var(--red); }
#favFilter[aria-pressed=true] svg { fill: var(--red); stroke: var(--red); }
.g-main { padding: var(--gap) clamp(6px, 1.4vw, 20px) 60px; min-height: 60vh; }
.jgrid { position: relative; }
.jrow { display: flex; gap: var(--gap); margin-bottom: var(--gap); }
.tile { position: relative; overflow: hidden; background: var(--grey-1); cursor: zoom-in; flex: none; }
.tile img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s, transform .6s cubic-bezier(.2,.7,.2,1); }
.tile img.in { opacity: 1; }
.tile:hover img { transform: scale(1.025); }
.tile-tools { position: absolute; inset: auto 0 0 0; display: flex; justify-content: flex-end; gap: 2px; padding: 6px; background: linear-gradient(transparent, rgba(0,0,0,.4)); opacity: 0; transition: opacity .2s; }
.tile:hover .tile-tools, .tile:focus-within .tile-tools, .tile.fav .tile-tools { opacity: 1; }
.tile.fav .tile-tools { background: none; }
.tile-tools .icon-btn { color: var(--white); padding: 6px; }
.tile-tools .icon-btn:hover { background: rgba(255,255,255,.18); }
.tile.fav .star { color: var(--red); }
.tile.fav .star svg { fill: var(--red); stroke: var(--red); }
.tile.fav .tile-tools .icon-btn:not(.star) { display: none; }
.tile:hover .tile-tools .icon-btn:not(.star) { display: inline-flex; }
@media (hover: none) { .tile-tools { opacity: 1; background: none; } .tile-tools .icon-btn:not(.star) { display: none; } .tile-tools .star { color: rgba(255,255,255,.9); filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); } }
.set-title { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; margin: 34px 4px 14px; color: var(--ink); }
.set-title:first-child { margin-top: 18px; }
.g-empty { text-align: center; padding: 80px 16px; color: var(--grey-5); }
.g-foot { text-align: center; padding: 50px 16px 60px; border-top: 1px solid var(--grey-2); font-size: 12.5px; color: var(--grey-5); }
.g-foot img { width: 70px; margin: 0 auto 14px; }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 100; background: var(--white); display: grid; grid-template-rows: auto 1fr; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; }
.lb-count { font-size: 12px; font-weight: 600; letter-spacing: .1em; color: var(--grey-5); }
.lb-tools { display: flex; gap: 4px; }
.lb-tools .icon-btn.on { color: var(--red); }
.lb-tools .icon-btn.on svg { fill: var(--red); stroke: var(--red); }
.lb-stage { margin: 0; display: grid; place-items: center; padding: 0 clamp(8px, 6vw, 80px) 24px; min-height: 0; touch-action: pan-y; }
.lb-stage img { max-width: 100%; max-height: calc(100svh - 90px); object-fit: contain; user-select: none; -webkit-user-drag: none; transition: opacity .2s; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: 0; padding: 18px 10px; color: var(--ink); }
.lb-nav svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.lb-nav.prev { left: 6px; } .lb-nav.next { right: 6px; }
.lb-nav:hover { color: var(--red); }

/* Modal + toast */
.modal { border: 0; border-radius: 10px; padding: 0; width: min(440px, calc(100vw - 32px)); box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.modal::backdrop { background: rgba(10,10,10,.55); backdrop-filter: blur(3px); }
.modal form { padding: 30px; }
.modal h2 { font-size: 19px; font-weight: 700; }
.modal p { color: var(--grey-7); font-size: 14px; margin-top: 0; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.size-opts { display: grid; gap: 8px; margin: 14px 0 18px; }
.size-opts label { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--grey-3); border-radius: 6px; margin: 0; text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--ink); cursor: pointer; }
.size-opts label:has(input:checked) { border-color: var(--black); }
.size-opts small { color: var(--grey-5); font-weight: 500; }
.size-opts input { position: absolute; opacity: 0; }
.pin-input { font-size: 28px !important; letter-spacing: .6em; text-align: center; font-weight: 600 !important; }
.progress { height: 4px; background: var(--grey-2); border-radius: 4px; overflow: hidden; margin: 16px 0 6px; }
.progress i { display: block; height: 100%; width: 0; background: var(--red); transition: width .2s; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); background: var(--black); color: var(--white); padding: 12px 20px; border-radius: 999px; font-size: 13.5px; font-weight: 500; opacity: 0; pointer-events: none; transition: .25s; z-index: 200; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Lock page */
.lock-page { min-height: 100svh; display: grid; place-items: center; padding: 24px 16px; background: var(--grey-1) var(--bg, none) var(--fx, 50%) var(--fy, 50%) / cover no-repeat; }
.lock-card { max-width: 400px; width: 100%; text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.2); }
.lock-card input { margin: 18px 0 12px; text-align: center; }

/* ===================== Admin ===================== */
.admin { background: var(--white); }
.a-top { display: flex; justify-content: space-between; align-items: center; padding: 12px clamp(16px, 3vw, 40px); border-bottom: 1px solid var(--grey-2); position: sticky; top: 0; background: var(--white); z-index: 30; }
.a-top .brand img { height: 44px; width: auto; }
.a-top nav { display: flex; gap: 24px; font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.a-top nav a { text-decoration: none; color: var(--grey-5); padding: 6px 0; border-bottom: 2px solid transparent; }
.a-top nav a.on, .a-top nav a:hover { color: var(--ink); border-color: var(--red); }
.a-main { padding: 28px clamp(16px, 3vw, 40px) 80px; max-width: 1500px; margin: 0 auto; }
.a-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.a-head h1 { font-size: 26px; font-weight: 700; margin: 4px 0 6px; }
.a-head p { margin: 0; font-size: 13px; }
.a-head-actions { display: flex; gap: 10px; }
.back { font-size: 12.5px; text-decoration: none; color: var(--grey-5); }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--grey-2); color: var(--grey-7); margin-right: 8px; }
.pill.live { background: var(--black); color: var(--white); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 26px; }
.gcard { text-decoration: none; display: block; }
.gcard-img { aspect-ratio: 4/3; background: var(--grey-1); border-radius: 6px; overflow: hidden; position: relative; }
.gcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gcard:hover .gcard-img img { transform: scale(1.03); }
.gcard-img .pill { position: absolute; top: 10px; left: 10px; }
.gcard h3 { font-size: 15.5px; font-weight: 700; margin: 12px 0 2px; }
.gcard p { margin: 0; font-size: 12.5px; color: var(--grey-5); }
.gcard-empty { display: grid; place-items: center; height: 100%; color: var(--grey-5); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.tabs { display: flex; gap: 26px; border-bottom: 1px solid var(--grey-2); margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; }
.tabs button { background: none; border: 0; padding: 12px 0; font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--grey-5); border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button.on { color: var(--ink); border-color: var(--red); }
.badge { background: var(--red); color: var(--white); border-radius: 999px; padding: 1px 7px; font-size: 10.5px; margin-left: 4px; }
.photos-layout { display: grid; grid-template-columns: 210px 1fr; gap: 28px; align-items: start; }
.set-list { position: sticky; top: 90px; }
.set-list h3 { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.set-list ul { list-style: none; margin: 0 0 10px; padding: 0; }
.set-list li { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 9px 12px; border-radius: 6px; cursor: pointer; font-size: 14px; font-weight: 500; }
.set-list li:hover { background: var(--grey-1); }
.set-list li.on { background: var(--black); color: var(--white); }
.set-list li .n { font-size: 12px; opacity: .6; }
.set-list li .set-menu { visibility: hidden; background: none; border: 0; color: inherit; padding: 0 2px; }
.set-list li:hover .set-menu, .set-list li.on .set-menu { visibility: visible; }
.set-list li.drop-target { outline: 2px dashed var(--red); }
.drop { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 30px 16px; border: 1.5px dashed var(--grey-3); border-radius: 8px; text-align: center; text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 400; color: var(--grey-7); cursor: default; margin-bottom: 18px; transition: border-color .15s, background .15s; }
.drop strong { color: var(--ink); font-size: 16px; }
.drop u { cursor: pointer; color: var(--ink); }
.drop.over { border-color: var(--red); background: #fff6f6; }
.upq { border: 1px solid var(--grey-2); border-radius: 8px; padding: 14px 16px; margin-bottom: 18px; }
.upq-head { display: flex; gap: 12px; align-items: baseline; font-size: 13.5px; }
.upq-head .link-btn { margin-left: auto; }
.bar { height: 5px; background: var(--grey-2); border-radius: 5px; overflow: hidden; margin-top: 10px; }
.bar i { display: block; height: 100%; width: 0; background: var(--red); transition: width .25s; }
.upq-errors { margin: 8px 0 0; padding: 0; list-style: none; color: var(--red-dark); font-size: 12.5px; }
.sel-bar { position: sticky; top: 70px; z-index: 5; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--white); border: 1px solid var(--grey-2); border-radius: 8px; padding: 8px 14px; margin-bottom: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.06); font-size: 13.5px; }
.sel-bar select { padding: 7px 10px; border: 1.5px solid var(--grey-3); border-radius: 999px; font-size: 12px; }
.a-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.a-tile { position: relative; aspect-ratio: 1; background: var(--grey-1); border-radius: 4px; overflow: hidden; cursor: pointer; outline: 3px solid transparent; outline-offset: -3px; }
.a-tile img { width: 100%; height: 100%; object-fit: cover; }
.a-tile .chk { position: absolute; top: 7px; left: 7px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--white); background: rgba(0,0,0,.25); opacity: 0; transition: opacity .15s; }
.a-tile:hover .chk, .a-tile.sel .chk { opacity: 1; }
.a-tile.sel { outline-color: var(--red); }
.a-tile.sel .chk { background: var(--red); border-color: var(--red); }
.a-tile.sel .chk::after { content: ''; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid var(--white); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.a-tile .tag { position: absolute; bottom: 6px; left: 6px; background: var(--black); color: var(--white); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; }
.a-tile .favn { position: absolute; bottom: 6px; right: 6px; background: var(--white); color: var(--red); font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 999px; }
.a-tile.uploading { opacity: .5; }
.a-tile.dragging { opacity: .3; }
.cover-editor { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
.cover-preview { position: relative; border: 1px solid var(--grey-2); border-radius: 8px; overflow: hidden; aspect-ratio: 16/9; container-type: inline-size; }
.cover-preview .cover { min-height: 100%; height: 100%; font-size: 0.8em; }
.cover-preview .cover-minimal .cover-media { height: auto; }
.cover-preview .cover-title { font-size: clamp(18px, 5cqi, 54px) !important; }
.cover-preview .cover-logo { width: 46px; margin-bottom: 12px; }
.cover-preview .cover-sub { margin-bottom: 14px; font-size: 10px; }
.cover-preview .cover-btn { padding: 8px 18px; font-size: 9.5px; }
.cover-preview .cover-text { padding: 16px; }
.cover-preview .cover-full .cover-text { padding-bottom: 8%; }
.cover-preview .cover-minimal .cover-text { padding: 20px 16px 14px; }
.cover-preview .cover-media { cursor: crosshair; }
.cover-preview .focal { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border: 2px solid var(--white); border-radius: 50%; box-shadow: 0 0 0 1.5px var(--red), 0 2px 8px rgba(0,0,0,.4); pointer-events: none; z-index: 3; }
.layout-picks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.layout-picks label { text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 500; text-align: center; margin: 0; cursor: pointer; }
.layout-picks input, .seg input { position: absolute; opacity: 0; }
.lp { display: block; aspect-ratio: 4/3; border: 1.5px solid var(--grey-3); border-radius: 5px; margin-bottom: 6px; position: relative; overflow: hidden; background: var(--white); }
.layout-picks input:checked + .lp { border-color: var(--red); box-shadow: 0 0 0 1px var(--red); }
.lp i { position: absolute; background: var(--grey-3); }
.lp-full i { inset: 0; } .lp-full::after { content: ''; position: absolute; left: 30%; right: 30%; bottom: 18%; height: 4px; background: var(--white); z-index: 1; }
.lp-split i { top: 0; bottom: 0; right: 0; width: 60%; } .lp-split::after { content: ''; position: absolute; left: 8%; width: 24%; top: 47%; height: 4px; background: var(--ink); }
.lp-frame i { inset: 10% 10% 30% 10%; } .lp-frame::after { content: ''; position: absolute; left: 32%; right: 32%; bottom: 13%; height: 4px; background: var(--ink); }
.lp-minimal i { left: 10%; right: 10%; top: 40%; bottom: 0; } .lp-minimal::after { content: ''; position: absolute; left: 32%; right: 32%; top: 18%; height: 4px; background: var(--ink); }
.seg { display: flex; border: 1.5px solid var(--grey-3); border-radius: 999px; padding: 3px; gap: 2px; }
.seg label { flex: 1; margin: 0; text-align: center; text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 500; cursor: pointer; }
.seg span { display: block; padding: 7px 6px; border-radius: 999px; color: var(--ink); }
.seg input:checked + span { background: var(--black); color: var(--white); }
.settings { max-width: 720px; }
.checks { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: center; margin-bottom: 14px; font-size: 13px; }
.checks label { margin: 0; }
.fav-list { border: 1px solid var(--grey-2); border-radius: 8px; padding: 18px 20px; margin-bottom: 18px; }
.fav-list header { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.fav-list h3 { font-size: 15px; margin: 0; }
.fav-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 6px; }
.fav-thumbs img { aspect-ratio: 1; object-fit: cover; border-radius: 3px; }
table.simple { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.simple th, table.simple td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--grey-2); }
table.simple th { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--grey-5); }
.bin-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--grey-2); font-size: 14px; }
.bin-row img { width: 56px; height: 56px; object-fit: cover; border-radius: 4px; }
.bin-row .grow { flex: 1; min-width: 0; }
.bin-row .grow b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bin-section-head { display: flex; justify-content: space-between; align-items: center; margin: 26px 0 6px; }
.bin-section-head h2 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--red); margin: 0; }

/* ===================== Responsive ===================== */
@media (max-width: 900px) {
  .hero, .find, .visit { grid-template-columns: 1fr; }
  .hero-mark { display: none; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .photos-layout, .cover-editor { grid-template-columns: 1fr; }
  .set-list { position: static; }
  .set-list ul { display: flex; gap: 6px; overflow-x: auto; }
  .set-list li { white-space: nowrap; border: 1px solid var(--grey-2); }
  .cover-split { grid-template-columns: 1fr; grid-template-rows: 55svh auto; }
  .cover-split .cover-text { order: 1; }
}
@media (max-width: 600px) {
  :root { --gap: 3px; }
  body { font-size: 14.5px; }
  .site-head nav a:not(.btn) { display: none; }
  .site-head .brand img { height: 42px; }
  .svc-grid { grid-template-columns: 1fr; }
  .grid2 { grid-template-columns: 1fr; } .grid2 .span2 { grid-column: auto; }
  .card { padding: 26px 20px; }
  .hide-sm { display: none; }
  .g-bar-in { flex-wrap: wrap; gap: 0 8px; padding: 6px 10px; }
  .g-bar-title { flex: 1; font-size: 12px; }
  .g-sets { order: 3; flex-basis: 100%; }
  .lb-nav { display: none; }
  .lb-stage { padding: 0 0 16px; }
  .layout-picks { grid-template-columns: repeat(2, 1fr); }
  .a-grid { grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .a-top nav { gap: 14px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
