/* Collar & Dagger: shared styles for every page (home, shop, story, experiments). */
:root {
  --night: #0b0c10;
  --night-2: #13151b;
  --night-3: #1a1d25;
  --ink: #f2efe8;
  --muted: #949aa6;
  --line: #262a33;
  --amber: #ffb000;
  --amber-ink: #1a1200;
  --accent: #d9a441;
  --display: "Anton", Impact, "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --gutter: 16px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--ink); font: 16px/1.5 var(--body); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, select, input { font: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.wrap { width: min(1280px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.eyebrow { font: 500 12px/1.3 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header */
.site-header { position: fixed; inset: 0 0 auto; z-index: 30; transition: background .35s, border-color .35s; border-bottom: 1px solid transparent; padding-top: env(safe-area-inset-top); }
.site-header.solid { background: rgb(11 12 16 / .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font: 400 21px/1 var(--display); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.logo svg { width: 30px; height: 30px; color: var(--amber); flex: none; margin: -3px -2px -3px -4px; }
/* Logo intro (once per visit, set by site.js): the moon turns in, the dagger drops into its curve and settles. */
.logo .cd-moon { transform-box: view-box; transform-origin: 56px 51px; }
.logo .cd-blade { transform-box: view-box; transition: transform .25s var(--ease); }
.logo:hover .cd-blade { transform: translateY(2px); }
.logo.cd-intro .cd-moon { animation: cd-moon .5s var(--ease) both; }
.logo.cd-intro .cd-blade { animation: cd-drop .8s cubic-bezier(.25, .9, .3, 1.15) .2s both; }
@keyframes cd-moon { from { opacity: 0; transform: rotate(-24deg) scale(.86); } }
@keyframes cd-drop { 0% { transform: translateY(-58px); opacity: 0; } 35% { opacity: 1; } 68% { transform: translateY(3px); } 84% { transform: translateY(-1.2px); } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .logo .cd-moon, .logo .cd-blade { animation: none !important; transition: none; } }
.site-nav { display: flex; align-items: center; gap: 22px; font-weight: 500; font-size: 14px; }
.site-nav a { text-decoration: none; opacity: .8; }
.site-nav a:hover { opacity: 1; }
.site-nav a[aria-current="page"] { opacity: 1; color: var(--amber); }
.nav-link { display: none; }
.nav-link.always { display: inline; }
@media (min-width: 760px) { .nav-link { display: inline; } }
.bag { display: inline-flex; align-items: center; gap: 8px; background: rgb(11 12 16 / .4); border: 1px solid rgb(242 239 232 / .5); color: inherit; border-radius: 999px; padding: 7px 14px; font-weight: 500; font-size: 13px; cursor: pointer; }
.bag b { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 999px; background: var(--amber); color: var(--amber-ink); font-size: 11px; }
.bag.bump b { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.5); } }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px; border-radius: 6px; border: 1px solid transparent; background: var(--amber); color: var(--amber-ink); font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none; transition: background .2s, border-color .2s, color .2s; }
.btn:hover { background: #ffc233; }
.btn.ghost { background: rgb(11 12 16 / .35); color: var(--ink); border-color: rgb(242 239 232 / .35); }
.btn.ghost:hover { border-color: var(--ink); background: rgb(242 239 232 / .06); }
.btn.small { min-height: 42px; padding: 0 16px; font-size: 14px; }

/* Sections */
section.block { padding: 80px 0; }
.head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px 24px; margin-bottom: 30px; }
h2.title { font: 400 clamp(42px, 8vw, 92px)/.9 var(--display); text-transform: uppercase; margin: 10px 0 0; }
h2.title em { font-style: normal; color: var(--amber); }
.head p.sub { margin: 0; max-width: 36ch; color: var(--muted); }
.head .head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

html.js [data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
html.js [data-reveal].in { opacity: 1; transform: none; }

/* Product card */
.product { position: relative; background: var(--night-2); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; transition: transform .45s var(--ease), border-color .3s, box-shadow .45s; scroll-margin-top: 140px; }
.product:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); box-shadow: 0 24px 50px rgb(0 0 0 / .45); }
.product .media { position: relative; aspect-ratio: 1; background: #e9e7e3; overflow: hidden; }
.product .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .45s, transform .8s var(--ease); }
.product:hover .media img { transform: scale(1.04); }
.product .media img.alt { opacity: 0; }
.product:hover .media img.alt { opacity: 1; }
.who { position: absolute; left: 10px; top: 10px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; background: var(--night); color: var(--ink); font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 6px 9px; border-radius: 4px; }
.who::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.product .info { padding: 16px; display: grid; gap: 6px; flex: 1; align-content: start; }
.product h3 { margin: 0; font-size: 18px; letter-spacing: -.01em; }
a.media { display: block; }
.product h3 a { color: inherit; text-decoration: none; }
.product h3 a:hover { color: var(--amber); }
a.add { display: inline-flex; align-items: center; text-decoration: none; }
.product .meta { color: var(--muted); font-size: 13px; }
.product .sizes { color: var(--muted); font: 500 11.5px/1.45 var(--mono); letter-spacing: .02em; }
.product .note { font-size: 14px; color: #d3cec4; }
.product .row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 12px; gap: 10px; }
.price { font: 400 24px var(--display); letter-spacing: .03em; }
.add { min-height: 44px; padding: 0 18px; border-radius: 6px; border: 0; background: var(--ink); color: var(--night); font-weight: 700; font-size: 14px; cursor: pointer; transition: background .2s; }
.add:hover { background: var(--amber); }

/* Scroll-lit quote */
.scrub-quote { padding: 120px 0; text-align: center; background: radial-gradient(60% 70% at 50% 50%, color-mix(in srgb, var(--qa, #ffb000) 10%, var(--night)), var(--night)); }
.scrub-quote blockquote { margin: 0 auto; max-width: 17ch; font: 400 clamp(40px, 8vw, 104px)/.95 var(--display); text-transform: uppercase; }
.scrub-quote.long blockquote { max-width: 22ch; font-size: clamp(32px, 6vw, 76px); }
.scrub-quote .w { opacity: .14; transition: opacity .25s, color .25s; }
.scrub-quote .w.lit { opacity: 1; }
.scrub-quote .w.hot.lit { color: var(--qa, var(--amber)); }
.scrub-quote cite { display: inline-flex; align-items: center; gap: 10px; margin-top: 24px; font: 500 13px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--qa, var(--amber)); font-style: normal; text-decoration: none; }
.scrub-quote cite img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; outline: 2px solid var(--qa); outline-offset: 2px; }

/* Footer / Night Report sign-up */
.site-footer { border-top: 1px solid var(--line); padding: 72px 0 96px; background: radial-gradient(70% 90% at 0% 100%, rgb(255 176 0 / .07), transparent 60%), var(--night); }
.signup { display: grid; gap: 14px; max-width: 640px; }
.signup h2 { font: 400 clamp(40px, 7vw, 76px)/.92 var(--display); text-transform: uppercase; margin: 6px 0 0; }
.signup h2 em { font-style: normal; color: var(--amber); }
.signup .lede { margin: 0; color: #d6d1c7; font-size: 18px; max-width: 44ch; }
.signup ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; color: #d6d1c7; }
.signup li { display: flex; gap: 10px; align-items: baseline; }
.signup li::before { content: "\2726"; color: var(--amber); font-size: 12px; }
.signup form { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.signup input { flex: 1 1 240px; min-height: 52px; padding: 0 14px; border-radius: 6px; border: 1px solid #3a3f4a; background: var(--night-2); color: var(--ink); font-size: 16px; }
.signup .small-print { font-size: 13px; color: var(--muted); margin: 0; }
.ship-note { margin: 40px 0 0; color: #d3cec4; font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.ship-note + .fine { margin-top: 14px; }
.ship-inline { font: 500 12px var(--mono); color: var(--muted); letter-spacing: .04em; }
.fine { margin-top: 48px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--muted); font-size: 13px; }
.fine nav { display: flex; gap: 16px; flex-wrap: wrap; }
.fine a { text-decoration: none; }
.fine a:hover { color: var(--ink); }

/* Preview notice + toast */
.preview-pill { position: fixed; left: 12px; bottom: 12px; z-index: 40; display: flex; align-items: center; gap: 8px; max-width: calc(100% - 24px); background: rgb(19 21 27 / .92); border: 1px solid var(--line); color: var(--muted); font: 500 11px/1.3 var(--mono); padding: 6px 6px 6px 12px; border-radius: 999px; backdrop-filter: blur(8px); transition: opacity .3s, visibility .3s; }
.preview-pill.hide { opacity: 0; visibility: hidden; }
.preview-pill button { width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--night-3); color: var(--ink); cursor: pointer; flex: none; }
@media (max-width: 899px) { .preview-pill { right: 12px; justify-content: space-between; } }
.ns-toast { position: fixed; left: 50%; bottom: 60px; transform: translate(-50%, 30px); opacity: 0; background: var(--amber); color: var(--amber-ink); padding: 12px 18px; border-radius: 8px; font-weight: 700; font-size: 14px; max-width: calc(100% - 32px); width: max-content; transition: .35s var(--ease); z-index: 80; pointer-events: none; box-shadow: 0 14px 40px rgb(0 0 0 / .5); }
.ns-toast.show { transform: translate(-50%, 0); opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Concept products (layout preview only) */
.concept-tag { position: absolute; right: 10px; top: 10px; z-index: 1; background: rgb(11 12 16 / .82); color: #cfcabf; border: 1px dashed #6b6f78; font: 500 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 5px 8px; border-radius: 4px; }
.add.notify { background: transparent; color: var(--ink); border: 1px solid #4a4f5a; }
.add.notify:hover { background: rgb(242 239 232 / .08); border-color: var(--ink); }

/* Bag panel (assets/cart.js, 2026-11-05): slide-in sheet on the right, full width on phones */
html.bag-open { overflow: hidden; }
.bag-panel { position: fixed; inset: 0; z-index: 90; }
.bag-panel[hidden] { display: none; }
.bag-backdrop { position: absolute; inset: 0; background: rgb(5 6 9 / .7); opacity: 0; transition: opacity .25s; }
.bag-sheet { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); display: flex; flex-direction: column; background: var(--night-2); border-left: 1px solid var(--line); box-shadow: -20px 0 60px rgb(0 0 0 / .5); transform: translateX(100%); transition: transform .3s var(--ease); padding-bottom: env(safe-area-inset-bottom); }
.bag-panel.on .bag-backdrop { opacity: 1; }
.bag-panel.on .bag-sheet { transform: none; }
.bag-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.bag-head h2 { margin: 0; font: 400 30px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.bag-x { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: none; color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; }
.bag-x:hover { border-color: var(--ink); }
.bag-body { flex: 1; overflow-y: auto; padding: 8px 20px; }
.bag-empty { padding: 40px 0; text-align: center; display: grid; gap: 6px; justify-items: center; }
.bag-empty p { margin: 0; font-size: 17px; }
.bag-empty .muted { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.bag-lines { list-style: none; margin: 0; padding: 0; }
.bag-line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.bag-img img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; background: #fff; }
.bag-info { display: grid; gap: 3px; min-width: 0; }
.bag-name { font-weight: 700; text-decoration: none; line-height: 1.25; }
.bag-name:hover { color: var(--amber); }
.bag-var { color: var(--muted); font-size: 13px; }
.bag-qty { display: flex; align-items: center; gap: 6px; margin-top: 6px; }
.bag-qty button[data-qty] { width: 32px; height: 32px; border-radius: 6px; border: 1px solid #343946; background: none; color: var(--ink); cursor: pointer; font-size: 16px; }
.bag-qty button[data-qty]:hover:not(:disabled) { border-color: var(--ink); }
.bag-qty button:disabled { opacity: .35; cursor: default; }
.bag-qty output { min-width: 22px; text-align: center; font: 500 14px var(--mono); }
.bag-remove { margin-left: 8px; background: none; border: 0; color: var(--muted); text-decoration: underline; font-size: 13px; cursor: pointer; padding: 6px 2px; }
.bag-remove:hover { color: var(--ink); }
.bag-price { font: 500 15px var(--mono); white-space: nowrap; }
.bag-foot { padding: 16px 20px 20px; border-top: 1px solid var(--line); display: grid; gap: 8px; background: var(--night-2); }
.bag-row { display: flex; justify-content: space-between; font-size: 15px; }
.bag-row b { font: 500 15px var(--mono); }
.bag-note { margin: 0; color: var(--amber); font-size: 13px; }
.bag-go { width: 100%; margin-top: 6px; }
.bag-fine { margin: 0; color: var(--muted); font-size: 12px; text-align: center; }
@media (prefers-reduced-motion: reduce) { .bag-sheet, .bag-backdrop { transition: none; } }
