/* C. Porterfield Design — built on the Porterfield design system tokens */
@font-face { font-family: "Bebas Neue"; src: url("fonts/BebasNeue-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("fonts/Satoshi-Variable.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Satoshi"; src: url("fonts/Satoshi-VariableItalic.woff2") format("woff2"); font-weight: 300 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("fonts/SpaceGrotesk-Variable.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }

:root {
  /* palette */
  --vapor: #e2e4d7; --sage: #c1c5b6; --orbital: #c4cdbd; --shadow: #838a83; --slate: #6a7167;
  --carbon: #434842; --pine: #2c3329; --depth: #1b1e1a; --olive: #404538; --sand: #a7977d;
  --bone: #ebe0cb; --lunar: #f3eecb; --hazard: #c2934d;
  /* dark theme roles (default) */
  --surface-100: var(--depth); --surface-200: var(--pine); --ink: var(--vapor); --ink-muted: var(--sage);
  --line: var(--shadow); --brand: var(--orbital); --on-brand: var(--depth); --accent: var(--lunar); --on-accent: var(--depth);
  /* type */
  --font-display: "Bebas Neue", "Oswald", "Arial Narrow", sans-serif;
  --font-grotesk: "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-sans: "Satoshi", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  /* space + shape */
  --space-1: 4px; --space-2: 8px; --space-4: 16px; --space-6: 24px; --space-10: 40px;
  --radius-sm: 2px;
  --max: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
}
.theme-light {
  --surface-100: var(--vapor); --surface-200: var(--sage); --ink: var(--depth); --ink-muted: var(--carbon);
  --line: var(--slate); --brand: var(--pine); --on-brand: var(--vapor); --accent: var(--olive); --on-accent: var(--bone);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0; background: var(--surface-100); color: var(--ink);
  font: 400 16px/24px var(--font-sans); -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--brand); color: var(--on-brand); padding: 8px 12px; }

/* type styles */
.label { font: 500 12px/16px var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); margin: 0; }
.data { font: 400 14px/20px var(--font-mono); color: var(--ink-muted); }
.display { font: 400 clamp(44px, 7vw, 60px)/0.92 var(--font-display); letter-spacing: 0.01em; margin: 0; }
.display-xl { font: 400 clamp(56px, 9vw, 112px)/0.88 var(--font-display); letter-spacing: 0.01em; margin: 0; }
.title { font: 600 clamp(24px, 3vw, 32px)/1.1 var(--font-grotesk); letter-spacing: -0.01em; margin: 0; }
.subhead { font: 500 20px/26px var(--font-grotesk); margin: 0; }
.lead { font: 400 20px/28px var(--font-sans); margin: 0; color: var(--ink-muted); }
.pop { color: var(--accent); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 48px; padding: 0 22px; border-radius: var(--radius-sm);
  font: 500 16px/1 var(--font-grotesk); text-decoration: none; cursor: pointer;
  border: 1px solid var(--brand); background: var(--brand); color: var(--on-brand);
  transition: background .15s, color .15s;
}
.btn:hover { background: transparent; color: var(--brand); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn svg { width: 18px; height: 18px; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--depth) 92%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--pine);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: var(--space-4); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { width: 36px; height: 36px; }
.brand span { font: 400 26px/1 var(--font-display); letter-spacing: 0.02em; padding-top: 3px; }
.nav { display: flex; gap: var(--space-6); }
.nav a { font: 500 15px/1 var(--font-grotesk); text-decoration: none; color: var(--ink-muted); padding: 14px 0; }
.nav a:hover { color: var(--ink); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--ink); width: 44px; height: 44px; border-radius: var(--radius-sm); }
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; gap: 0;
    background: var(--depth); border-bottom: 1px solid var(--pine); padding: 8px var(--gutter) 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--pine); }
}

/* hero */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 7vw, 96px); }
.hero .wrap { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: var(--space-6); }
.hero-copy .lead { max-width: 34ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-media { position: relative; margin: 0; }
.hero-media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.hero-media figcaption { position: absolute; left: 0; bottom: 0; background: var(--depth); padding: 8px 12px; }
.stripe { height: 6px; width: 72px; background: var(--hazard); }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } .hero-media img { aspect-ratio: 4/3; } }

/* spec strip */
.spec-strip { border-top: 1px solid var(--pine); border-bottom: 1px solid var(--pine); }
.spec-strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.spec-strip .wrap > div { padding: 20px 0; display: flex; flex-direction: column; gap: 6px; }
.spec-strip .wrap > div + div { padding-left: 20px; border-left: 1px solid var(--pine); }
.spec-strip strong { font: 500 18px/1.2 var(--font-grotesk); }
@media (max-width: 760px) {
  .spec-strip .wrap { grid-template-columns: 1fr 1fr; }
  .spec-strip .wrap > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .spec-strip .wrap > div:nth-child(n+3) { border-top: 1px solid var(--pine); }
}

/* sections */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); align-items: end; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head > div { display: flex; flex-direction: column; gap: 12px; }
.section-head p:not(.label) { margin: 0; color: var(--ink-muted); max-width: 52ch; justify-self: end; }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; } .section-head p:not(.label) { justify-self: start; } }

/* production cards */
.prod-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--space-4); }
@media (max-width: 1100px) { .prod-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } .prod-card .btn { padding: 0 14px; font-size: 15px; } }
@media (max-width: 340px) { .prod-grid { grid-template-columns: 1fr; } }
.prod-card { background: var(--surface-200); display: flex; flex-direction: column; }
.prod-card .media { display: block; position: relative; overflow: hidden; }
.prod-card .media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; transition: transform .4s ease; }
.prod-card:hover .media img { transform: scale(1.03); }
.prod-card .idx { position: absolute; top: 12px; left: 12px; background: var(--depth); color: var(--vapor); padding: 4px 8px; }
.prod-card .body { padding: var(--space-4) var(--space-4) 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.prod-card .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.prod-card .title { font-size: 26px; }
.prod-card .body p { margin: 0; color: var(--ink-muted); font-size: 15px; line-height: 22px; }
.prod-card .btn { margin-top: auto; align-self: flex-start; }

/* customs gallery */
.gallery { columns: 4 240px; column-gap: var(--space-4); }
.gallery figure { margin: 0 0 var(--space-4); break-inside: avoid; position: relative; }
.gallery button { all: unset; display: block; cursor: zoom-in; width: 100%; overflow: hidden; }
.gallery button:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.gallery img { width: 100%; transition: transform .5s ease; }
.gallery figure:hover img { transform: scale(1.04); }
/* name tag: hidden until hover / keyboard focus, then slides up in the bottom-left corner */
.gallery figcaption, .tile-cap {
  position: absolute; left: 12px; bottom: 12px; pointer-events: none;
  background: var(--depth); padding: 7px 10px 6px; border-left: 3px solid var(--hazard);
  opacity: 0; transform: translateY(10px); transition: opacity .25s ease, transform .3s cubic-bezier(.2,.8,.2,1);
}
.gallery figcaption .label, .tile-cap .label { color: var(--lunar); }
.gallery figure:hover figcaption, .gallery figure:focus-within figcaption,
.tile:hover .tile-cap, .tile:focus-visible .tile-cap { opacity: 1; transform: translateY(0); }

/* lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(14, 16, 13, .92); }
.lightbox .lb-inner { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 56px 16px 24px; }
.lightbox img { max-width: min(1100px, 100%); max-height: calc(100vh - 120px); object-fit: contain; }
.lightbox .lb-close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; background: var(--depth); color: var(--vapor); border: 1px solid var(--shadow); border-radius: var(--radius-sm); cursor: pointer; display: grid; place-items: center; }
.lightbox .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; background: var(--depth); color: var(--vapor); border: 1px solid var(--shadow); border-radius: var(--radius-sm); cursor: pointer; display: grid; place-items: center; }
.lightbox .lb-prev { left: 12px; } .lightbox .lb-next { right: 12px; }
.lightbox .label { color: var(--sage); }

/* commission */
.commission { margin-top: clamp(64px, 8vw, 104px); display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 5vw, 72px); border-top: 1px solid var(--line); padding-top: clamp(40px, 5vw, 64px); }
.commission-intro { display: flex; flex-direction: column; gap: var(--space-6); }
.commission-intro ol { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.commission-intro li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 14px 0; border-top: 1px solid var(--pine); }
.commission-intro li span:last-child { color: var(--ink-muted); }
@media (max-width: 860px) { .commission { grid-template-columns: 1fr; } }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px var(--space-4); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label, .field legend { font: 500 12px/16px var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-muted); }
.field .hint { font-size: 13px; line-height: 18px; color: var(--ink-muted); margin: 0; }
input, select, textarea {
  font: 400 16px/24px var(--font-sans); color: var(--ink); background: var(--surface-200);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 12px; min-height: 48px; width: 100%;
}
textarea { min-height: 140px; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--sage) 50%), linear-gradient(135deg, var(--sage) 50%, transparent 50%);
  background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
input[type="file"] { padding: 10px; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
fieldset { border: 0; padding: 0; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: 500 15px/1 var(--font-grotesk); cursor: pointer; }
.chip input:checked + span { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.chip input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.hidden { position: absolute; left: -9999px; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4); justify-content: space-between; }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* about (light band) */
.about { background: var(--surface-100); color: var(--ink); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.about-photos { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--space-4); align-items: end; }
.about-photos img { width: 100%; object-fit: cover; }
.about-photos .p1 { aspect-ratio: 4/5; }
.about-photos .p2 { aspect-ratio: 3/4; }
.about-copy { display: flex; flex-direction: column; gap: var(--space-6); }
.about-copy p { margin: 0; }
.about-copy .body p + p { margin-top: 16px; }
.about-specs { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.about-specs div { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.about-specs div:nth-child(odd) { padding-right: 16px; }
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

/* instagram + newsletter */
.ig-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.ig-grid a { display: block; position: relative; overflow: hidden; }
.ig-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: opacity .2s; }
.ig-grid a:hover img { opacity: .75; }
@media (max-width: 760px) { .ig-grid { grid-template-columns: repeat(3, 1fr); } }
.signup { margin-top: clamp(48px, 7vw, 88px); background: var(--surface-200); padding: clamp(24px, 4vw, 48px); display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); align-items: center; }
.signup form { display: flex; gap: 8px; flex-wrap: wrap; }
.signup input[type="email"] { flex: 1 1 220px; background: var(--depth); }
@media (max-width: 760px) { .signup { grid-template-columns: 1fr; } }

/* footer */
.site-footer { border-top: 1px solid var(--pine); padding: 40px 0; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: var(--space-6); justify-content: space-between; align-items: center; }
.socials { display: flex; gap: 8px; }
.socials a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--pine); border-radius: var(--radius-sm); color: var(--sage); }
.socials a:hover { color: var(--vapor); border-color: var(--shadow); }
.socials svg { width: 20px; height: 20px; }

/* thanks page */
.thanks { min-height: calc(100vh - 64px - 125px); display: grid; place-items: center; text-align: center; padding: 80px 0; }
.thanks .wrap { display: flex; flex-direction: column; align-items: center; gap: var(--space-6); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } .gallery figure:hover img, .tile:hover img { transform: none; } }
@media (max-width: 560px) { .gallery { columns: 2; column-gap: 10px; } .gallery figure { margin-bottom: 10px; } }

/* ---- multi-page additions ---- */
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent); }
.nav .nav-cta { color: var(--on-brand); background: var(--brand); padding: 12px 16px; border-radius: var(--radius-sm); }
.nav .nav-cta:hover { color: var(--on-brand); background: var(--vapor); }
.nav { align-items: center; }
@media (max-width: 820px) {
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); padding-left: 12px; }
  .nav .nav-cta { margin-top: 12px; text-align: center; border-bottom: 0; }
}

.page-head { padding: clamp(48px, 8vw, 104px) 0 clamp(40px, 6vw, 72px); }
.page-head .wrap { display: flex; flex-direction: column; gap: var(--space-6); }
.page-head .lead { max-width: 56ch; }

.section--rule .wrap { border-top: 1px solid var(--pine); padding-top: clamp(64px, 9vw, 120px); }
.section--rule { padding-top: 0; }
.head-aside { display: flex; flex-direction: column; gap: var(--space-4); justify-self: end; align-items: flex-end; text-align: right; max-width: 52ch; }
.head-aside p { margin: 0; color: var(--ink-muted); }
@media (max-width: 760px) { .head-aside { justify-self: start; align-items: flex-start; text-align: left; } }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 500 16px/1 var(--font-grotesk); text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.link-arrow:hover { border-color: var(--ink); }
.link-arrow svg { width: 18px; height: 18px; }

.prod-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 760px) { .prod-grid--3 { grid-template-columns: 1fr; } }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
.tile { display: block; text-decoration: none; position: relative; overflow: hidden; }
.tile img { width: 100%; aspect-ratio: 4/5; object-fit: cover; transition: transform .5s ease; }
.tile:hover img { transform: scale(1.04); }
@media (max-width: 760px) { .tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(32px, 4vw, 48px); }

/* production page */
.prod-list { display: flex; flex-direction: column; }
.prod-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: center; padding: clamp(40px, 6vw, 72px) 0; border-top: 1px solid var(--pine); scroll-margin-top: 72px; }
.prod-row:nth-child(even) .prod-media { order: 2; }
.prod-media { display: grid; grid-template-columns: 1fr 96px; gap: var(--space-4); }
.prod-media button { all: unset; cursor: zoom-in; display: block; }
.prod-media button:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.prod-media .main img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.thumbs { display: flex; flex-direction: column; gap: var(--space-4); }
.thumb img { width: 96px; height: 120px; object-fit: cover; opacity: .8; transition: opacity .2s; }
.thumb:hover img { opacity: 1; }
.prod-info { display: flex; flex-direction: column; gap: var(--space-6); align-items: flex-start; }
.specs { margin: 0; width: 100%; max-width: 420px; border-top: 1px solid var(--pine); }
.specs div { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--pine); }
.specs dd { margin: 0; font: 500 16px/1.3 var(--font-grotesk); }
@media (max-width: 860px) {
  .prod-row { grid-template-columns: 1fr; }
  .prod-row:nth-child(even) .prod-media { order: 0; }
  .prod-media { grid-template-columns: 1fr; }
  .thumbs { flex-direction: row; }
  .thumb img { width: 72px; height: 90px; }
}
.cta-band { background: var(--surface-200); padding: clamp(40px, 6vw, 64px) 0; }
.cta-band .wrap { display: flex; flex-wrap: wrap; gap: var(--space-6); justify-content: space-between; align-items: center; }

/* customs page */
.commission { scroll-margin-top: 0; }

/* about page */
.about-page { padding-top: clamp(48px, 8vw, 104px); }
.about-page .about-copy { gap: var(--space-6); }
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }
.door { position: relative; display: block; overflow: hidden; text-decoration: none; background: var(--depth); }
.door img { width: 100%; aspect-ratio: 16/10; object-fit: cover; opacity: .55; transition: opacity .3s, transform .4s; }
.door:hover img { opacity: .7; transform: scale(1.02); }
.door-body { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(16px, 3vw, 32px); display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 6px 16px; }
.door-body .label { grid-column: 1; color: var(--vapor); }
.door-body .title { grid-column: 1; color: var(--lunar); }
.door-body svg { grid-column: 2; grid-row: 1 / span 2; width: 28px; height: 28px; color: var(--lunar); }
@media (max-width: 760px) { .two-up { grid-template-columns: 1fr; } }

/* footer */
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer-nav a { font: 500 15px/1 var(--font-grotesk); color: var(--ink-muted); text-decoration: none; padding: 14px 0; }
.footer-nav a:hover { color: var(--ink); }
.footer-copy { margin: 0; flex-basis: 100%; }

/* ---- available knives ---- */
.avail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
@media (max-width: 1000px) { .avail-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .avail-grid { grid-template-columns: 1fr; } }
.avail-card { background: var(--surface-200); display: flex; flex-direction: column; }
.avail-card .media { display: block; position: relative; overflow: hidden; background: var(--depth); }
.avail-card .media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; transition: transform .5s ease; }
.avail-card:hover .media img { transform: scale(1.03); }
.avail-card .body { padding: var(--space-4) var(--space-4) 20px; display: flex; flex-direction: column; gap: 12px; flex: 1; align-items: flex-start; }
.avail-card .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; width: 100%; }
.avail-card .title { font-size: 26px; }
.avail-card .spec { margin: 0; font: 400 14px/20px var(--font-mono); color: var(--ink-muted); }
.avail-card .btn, .avail-card .link-arrow { margin-top: auto; }
.avail-card.is-sold .media img { opacity: .6; filter: grayscale(.4); }
.price { font: 500 18px/1 var(--font-grotesk); color: var(--accent); white-space: nowrap; }
.price-lg { margin: 0; font: 500 28px/1 var(--font-grotesk); color: var(--accent); }
.status { position: absolute; top: 12px; left: 12px; padding: 5px 9px 4px; font: 500 12px/16px var(--font-mono); letter-spacing: .08em; text-transform: uppercase; background: var(--depth); color: var(--vapor); }
.status--available { background: var(--lunar); color: var(--depth); }
.status--hold { background: var(--hazard); color: var(--depth); }
.status--sold { background: var(--depth); color: var(--sage); border: 1px solid var(--shadow); }
.knife-info .status { position: static; align-self: flex-start; }
.no-photo { display: grid; place-items: center; aspect-ratio: 4/5; width: 100%; }
.empty { background: var(--surface-200); padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.empty p { margin: 0; color: var(--ink-muted); }
.avail-strip .avail-grid .btn { min-height: 44px; }

.knife-page { padding-top: clamp(32px, 5vw, 56px); }
.knife-page .back { margin-bottom: clamp(24px, 4vw, 40px); }
.knife-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
.knife-info { display: flex; flex-direction: column; gap: var(--space-6); align-items: flex-start; }
.knife-info .specs { max-width: none; }
.knife-info .note p { margin: 0 0 12px; color: var(--ink-muted); max-width: 52ch; }
.claim-form { width: 100%; border-top: 1px solid var(--line); padding-top: var(--space-6); scroll-margin-top: 88px; }
@media (max-width: 860px) { .knife-grid { grid-template-columns: 1fr; } }

/* ---- hero carousel ---- */
.carousel { aspect-ratio: 4/5; overflow: hidden; background: var(--pine); }
.carousel .slide { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.carousel .slide.is-active { opacity: 1; }
.carousel .dots { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 4px; background: rgba(27, 30, 26, .72); padding: 4px 6px; }
.carousel .dots button { width: 28px; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.carousel .dots button::after { content: ""; position: absolute; left: 4px; right: 4px; top: 13px; height: 2px; background: var(--shadow); transition: background .3s; }
.carousel .dots button[aria-current="true"]::after { background: var(--lunar); }
.carousel .dots button:focus-visible { outline: 2px solid var(--lunar); outline-offset: -2px; }
@media (max-width: 860px) { .carousel { aspect-ratio: 4/3; } }
.specs div { gap: 24px; align-items: baseline; }
.specs dt { flex-shrink: 0; }
.specs dd { text-align: right; }
.prod-info .specs { max-width: 460px; }
.status--proto { background: var(--hazard); color: var(--depth); }
.prod-info .status { position: static; }
.prod-card .status { position: static; align-self: flex-start; }
.prod-info .display + .status { margin-top: -12px; }

/* ---- handmade customs: mixed-size grid ---- */
.mosaic { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 230px; grid-auto-flow: dense; gap: var(--space-4); }
.mosaic .tile-m { all: unset; position: relative; overflow: hidden; display: block; cursor: zoom-in; background: var(--pine); }
.mosaic .tile-m:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.mosaic .tile-m:hover img { transform: scale(1.04); }
.mosaic .big { grid-column: span 2; grid-row: span 2; }
.mosaic .tall { grid-row: span 2; }
.mosaic .wide { grid-column: span 2; }
.mosaic .tag { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 10px; background: var(--depth); border-left: 3px solid var(--hazard); padding: 7px 10px 6px; pointer-events: none;
  opacity: 0; transform: translateY(10px); transition: opacity .25s ease, transform .3s cubic-bezier(.2,.8,.2,1); }
.mosaic .tag .label { color: var(--lunar); }
.mosaic .tag .count { color: var(--sage); }
.mosaic .tile-m:hover .tag, .mosaic .tile-m:focus-visible .tag { opacity: 1; transform: translateY(0); }
@media (max-width: 760px) { .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; gap: 10px; } .mosaic .wide { grid-column: span 2; } }
@media (prefers-reduced-motion: reduce) { .mosaic .tile-m:hover img { transform: none; } }

/* lightbox: photo fills the screen over a dark backdrop */
.lightbox::backdrop { background: rgba(10, 12, 9, .94); }
.lightbox .lb-inner { padding: 64px 72px 28px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 110px); animation: lb-in .3s ease; }
@keyframes lb-in { from { opacity: 0; transform: scale(.98); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) { .lightbox .lb-inner { padding: 60px 8px 20px; } .lightbox .lb-nav { top: auto; bottom: 16px; transform: none; } }
.closed-note { grid-column: 1 / -1; margin: 0 0 var(--space-4); padding: 12px 16px; background: var(--surface-200); border-left: 3px solid var(--hazard); color: var(--ink); }
.page-head .lead--wide { max-width: none; }

.prod-card .name-wrap { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.prod-info .name-wrap { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.about-photos.single { grid-template-columns: 1fr; max-width: 520px; }
/* About page: photo spans from the yellow line to the bottom rule of the details */
@media (min-width: 861px) {
  .about-page .about-grid { align-items: stretch; }
  .about-page .about-photos.single { position: relative; max-width: none; min-height: 420px; }
  .about-page .about-photos.single .p1 { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: center top; }
}
.about:not(.about-page) .about-grid { align-items: center; }

/* lightbox: arrows hide for single photos; new photo fades in once loaded (no flash of the last one) */
.lightbox .lb-nav[hidden] { display: none; }
.lightbox img.is-loading { opacity: 0; animation: none; }
.lightbox img { transition: opacity .2s ease; }
