:root {
  --bg: #111315; --band: #171a1d; --tile: #1e2226; --line: #2a2f35; --line-2: #3d444c;
  --ink: #e8eaec; --ink-2: #c3c8cd; --muted: #959da6; --faint: #868e97;
  --accent: #ff6a2b; --accent-ink: #111315;
  --serif: "Space Grotesk", system-ui, sans-serif;
  --sans: Inter, system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); line-height: 1.5; }
a { color: var(--accent); } a:hover { color: #ff8c5a; }
h1, h2, .serif { font-family: var(--serif); font-weight: 400; margin: 0; }
h1 { font-size: clamp(52px, 8vw, 84px); line-height: .98; }
h1 em { color: var(--accent); }
h2 { font-size: clamp(40px, 5vw, 56px); }
h3 { margin: 0; font-size: 17px; font-weight: 600; }
p { margin: 0; }
.wrap { max-width: 1240px; margin: 0 auto; padding-inline: 32px; }
section { padding-block: 96px; }
.band { background: var(--band); }
.stack { display: flex; flex-direction: column; gap: 28px; }
.row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.eyebrow { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.lede { font-size: 18px; line-height: 1.65; color: var(--ink-2); max-width: 560px; }
.muted { color: var(--muted); } .small { font-size: 14px; } .center { text-align: center; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px; border-radius: 999px; font: 600 15px var(--sans); text-decoration: none; cursor: pointer; border: 1px solid transparent; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { color: var(--accent-ink); filter: brightness(1.08); }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-ghost:hover { color: var(--ink); border-color: var(--muted); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.nav { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding-block: 24px; }
.nav nav { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; font-size: 15px; }
.nav nav a:not(.btn) { color: var(--ink-2); text-decoration: none; }
.logo { font-family: var(--serif); font-size: 30px; color: var(--ink); text-decoration: none; }

.hero { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-block: 56px 96px; }
.hero-copy { flex: 1 1 440px; display: flex; flex-direction: column; gap: 24px; }
.hero-grid { flex: 1 1 480px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.ph { background: var(--tile); border: 1px dashed var(--line-2); border-radius: 16px; min-height: 220px; display: flex; align-items: flex-end; padding: 18px; color: var(--faint); font-size: 14px; overflow: hidden; }
.ph.tall { grid-row: span 2; min-height: 460px; }
.ph.square { aspect-ratio: 1; min-height: 0; align-items: center; justify-content: center; }

.section-head { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-end; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--ink-2); font: 14px var(--sans); cursor: pointer; }
.pill.is-on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }

.grid { display: grid; gap: 22px; }
.grid-gallery { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-shop { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.img { aspect-ratio: 4 / 5; border-radius: 14px; background: var(--tile) center / cover no-repeat; border: 1px solid var(--line); }
.tile { display: flex; flex-direction: column; gap: 10px; }
.tile-meta { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.tile-meta h3 { font-weight: 500; font-size: 16px; }

.card { background: var(--band); border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.card .img { aspect-ratio: 1; }
.kicker { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.price-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: auto; }
.price { font-size: 22px; font-weight: 600; }
.is-sold .price { color: var(--faint); text-decoration: line-through; }
.is-sold .kicker { color: var(--muted); }

.split { display: flex; flex-wrap: wrap; gap: 56px; }
.split > * { flex: 1 1 440px; min-width: 0; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 20px; }
.steps li { display: flex; gap: 16px; }
.steps span { flex: none; width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--accent); color: var(--accent); display: grid; place-items: center; font-weight: 600; }
.steps p { color: var(--muted); font-size: 15px; margin-top: 4px; }

.form { background: var(--bg); padding: 32px; gap: 18px; }
.form h3.serif { font-size: 32px; font-weight: 400; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--ink-2); }
input, select, textarea { font: inherit; font-size: 15px; background: var(--band); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; color: var(--ink); }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input[type=file] { padding: 10px; }
.hp { position: absolute; left: -9999px; }

.about { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.about > .ph { flex: 0 1 360px; }
.about > .stack { flex: 1 1 420px; gap: 14px; }
.footer { border-top: 1px solid var(--line); padding-block: 32px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; font-size: 14px; color: var(--faint); }

dialog { width: min(440px, calc(100% - 32px)); background: var(--bg); color: var(--ink); border: 1px solid var(--line-2); border-radius: 20px; padding: 24px 28px 28px; }
dialog::backdrop { background: rgba(0, 0, 0, .65); }
dialog h3.serif { font-size: 30px; font-weight: 400; margin-bottom: 16px; }
.close-row { display: flex; justify-content: flex-end; margin: -8px -12px 0 0; }
.icon-btn { width: 44px; height: 44px; border-radius: 999px; background: transparent; color: var(--ink-2); border: 0; font-size: 26px; cursor: pointer; }
.totals { display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; margin: 0 0 20px; font-size: 15px; }
.totals dt { color: var(--muted); } .totals dd { margin: 0; text-align: right; }
.totals dt:nth-last-of-type(1), .totals dd:last-of-type { font-weight: 600; color: var(--ink); border-top: 1px solid var(--line); padding-top: 8px; }
#paypal-buttons { min-height: 50px; }
#co-status.err { color: #f0a08a; } #co-status.ok { color: #9fd8b8; }

/* Workbench look: graphite, safety orange, blueprint grid, mono labels */
body { background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 32px 32px; }
.band { background-color: rgba(23,26,29,.92); }
h1, h2 { font-weight: 500; letter-spacing: -.035em; }
h1 { font-size: clamp(48px, 7vw, 76px); line-height: 1; }
h1 em { font-style: normal; color: var(--accent); }
.logo { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.logo::before { content: "▲ "; color: var(--accent); font-size: .7em; vertical-align: .15em; }
.eyebrow, .kicker, .ph, .steps span { font-family: var(--mono); }
.eyebrow { font-size: 12px; letter-spacing: .08em; color: var(--accent); }
.eyebrow::before { content: "// "; color: var(--faint); }
.btn, .pill { border-radius: 4px; font-family: var(--mono); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; font-weight: 500; }
.btn-ghost { border-color: var(--line-2); }
.ph, .img, .card, dialog, input, select, textarea { border-radius: 4px; }
.ph { font-size: 12px; position: relative; }
.ph::before { content: ""; position: absolute; inset: 10px; border: 1px solid var(--line); pointer-events: none; }
.card { background: var(--tile); }
.steps span { border-radius: 4px; }
input, select, textarea { background: var(--bg); border-color: var(--line-2); }
.footer { font-family: var(--mono); font-size: 12px; }

/* Photos and videos in place of placeholders */
img.ph { width: 100%; height: 100%; padding: 0; object-fit: cover; border-style: solid; border-color: var(--line); }
video.img { display: block; width: 100%; object-fit: cover; }

/* Gallery tiles open the full-screen viewer */
.tile-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 4px; }
.tile-open .img { transition: border-color .15s, filter .15s; }
.tile-open:hover .img { border-color: var(--accent); filter: brightness(1.08); }

/* Full-screen viewer, laid out like an Instagram post: picture left, details right, arrows at the screen edges */
html:has(dialog.lightbox[open]) { overflow: hidden; }
dialog.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: rgba(10, 11, 12, .96); color: var(--ink); }
dialog.lightbox[open] { display: flex; }
dialog.lightbox::backdrop { background: rgba(0, 0, 0, .8); }
.lb-close { position: absolute; top: 10px; right: 12px; z-index: 2; }
.lb-body { flex: 1; min-width: 0; display: flex; max-width: 1400px; margin: 0 auto; padding: 24px 84px; }
.lb-track { flex: 1; min-width: 0; display: flex; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; background: #000; border: 1px solid var(--line); border-radius: 4px 0 0 4px; }
.lb-track::-webkit-scrollbar { display: none; }
.lb-slide { flex: 0 0 100%; min-width: 0; margin: 0; scroll-snap-align: center; scroll-snap-stop: always; display: flex; align-items: center; justify-content: center; }
.lb-slide img, .lb-slide video { max-width: 100%; max-height: 100%; object-fit: contain; }
.lb-info { flex: 0 0 340px; display: flex; flex-direction: column; gap: 12px; padding: 24px; background: var(--band); border: 1px solid var(--line); border-left: 0; border-radius: 0 4px 4px 0; overflow-y: auto; }
.lb-info h3 { font-family: var(--serif); font-weight: 500; font-size: 26px; letter-spacing: -.02em; line-height: 1.15; }
.lb-info .eyebrow { margin: 0; }
.lb-info .btn { margin-top: auto; }
.lb-count { font-family: var(--mono); font-size: 12px; color: var(--faint); }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(17, 19, 21, .85); color: var(--ink); font-size: 28px; line-height: 1; cursor: pointer; }
.lb-nav:hover:not([disabled]) { border-color: var(--accent); color: var(--accent); }
.lb-nav[disabled] { opacity: .25; cursor: default; }
.lb-prev { left: 18px; } .lb-next { right: 18px; }
@media (max-width: 900px) {
  .lb-body { flex-direction: column; padding: 52px 0 0; }
  .lb-track { border: 0; border-radius: 0; }
  .lb-info { flex: none; max-height: 40dvh; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 16px 20px 20px; }
  .lb-info .btn { margin-top: 4px; align-self: flex-start; }
  .lb-nav { display: none; }
}

/* Floating Message button and panel */
.msg-pill { position: fixed; right: 20px; bottom: 20px; z-index: 50; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(30, 34, 38, .92); color: var(--ink); font: 600 15px var(--sans); cursor: pointer; box-shadow: 0 8px 24px rgba(0, 0, 0, .4); backdrop-filter: blur(6px); }
.msg-pill:hover { border-color: var(--accent); }
.msg-pill svg { color: var(--accent); }
dialog.msg-panel { position: fixed; inset: auto 20px 84px auto; margin: 0; width: min(380px, calc(100vw - 32px)); max-height: calc(100dvh - 110px); overflow: hidden auto; padding: 20px; border-radius: 6px; display: none; }
dialog.msg-panel[open] { display: flex; flex-direction: column; gap: 14px; }
dialog.msg-panel::backdrop { background: rgba(0, 0, 0, .35); }
.msg-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: -6px -10px 0 0; }
.msg-head h3 { font-family: var(--serif); font-weight: 500; font-size: 22px; letter-spacing: -.02em; }
.msg-form { display: flex; flex-direction: column; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
@media (max-width: 640px) {
  .msg-pill { right: 16px; bottom: 16px; }
  dialog.msg-panel { inset: auto 16px 80px 16px; width: auto; }
}

/* Chat inside the Message panel */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.chat-thread { display: flex; flex-direction: column; gap: 8px; min-height: 160px; max-height: 46dvh; overflow-y: auto; padding: 4px 2px; }
.bubble { max-width: 85%; padding: 8px 12px; border-radius: 14px; display: flex; flex-direction: column; gap: 2px; }
.bubble p { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; line-height: 1.4; }
.bubble time { font-family: var(--mono); font-size: 10px; opacity: .7; align-self: flex-end; }
.bubble .who { font-family: var(--mono); font-size: 11px; color: var(--accent); }
.from-me { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 4px; }
.from-them { align-self: flex-start; background: var(--tile); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.chat-reply { display: flex; gap: 8px; align-items: flex-end; }
.chat-reply textarea { flex: 1; min-width: 0; resize: none; }
.chat-reply .btn { min-height: 46px; padding: 0 16px; }
.msg-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 13px; padding-top: 12px; border-top: 1px solid var(--line); }
.linkish { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; text-decoration: underline; cursor: pointer; }
.msg-pill.has-new::after { content: ""; position: absolute; top: 6px; right: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--bg); }
.msg-pill { position: fixed; }
