/* Mooser Studio — catalog site (plain HTML + CSS, progressive JS)
   Visual system after sanctumdomina.com:
   warm off-white ground #F3F3F1, near-black ink #141413, hairline #ECECEA,
   oxblood #7D2A22 accents, gilt #A98A51 highlights, square corners,
   Instrument Serif italic accents inside Archivo headings, IBM Plex Mono labels. */
:root {
  color-scheme: light;
  --bg: #f3f3f1;
  --surface: #ffffff;
  --surface-2: #efeee8;
  --line: #ececea;
  --line-soft: #e4e4e0;
  --line-strong: #d6d6d2;
  --text: #141413;
  --text-2: #4a4a46;
  --text-3: #6b6b66;
  --oxblood: #7d2a22;
  --oxblood-deep: #5c1f1a;
  --gilt: #a98a51;
  --radius: 0px;
  --pad: clamp(16px, 4vw, 32px);
  --wrap: 1180px;
  --sans: "Archivo", "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --serif: "Instrument Serif", Georgia, "Times New Roman", "Songti SC", serif;
  --mono: "IBM Plex Mono", "Consolas", monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16px/1.6 var(--sans);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
/* image loading skeleton: shimmer placeholder while bytes arrive (JS adds
   .lding); .ld fades the real image in; .lerr marks a failed load */
img.lding {
  background: linear-gradient(100deg, var(--surface-2) 40%, #f7f7f5 50%, var(--surface-2) 60%);
  background-size: 220% 100%;
  animation: skel 1.5s ease-in-out infinite;
  color: transparent;
}
img.ld { animation: imgfade .45s ease both; }
img.lerr { background: var(--surface-2); outline: 1px dashed var(--line-strong); }
@keyframes skel { 0% { background-position: 120% 0; } 100% { background-position: -120% 0; } }
@keyframes imgfade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  img.lding { animation: none; }
  img.ld { animation: none; }
}
a { color: var(--oxblood); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
h1 { font-size: clamp(2rem, 4.4vw, 3.1rem); line-height: 1.08; margin: .2em 0 .4em; letter-spacing: -.015em; font-weight: 600; }
h2 { font-size: clamp(1.45rem, 2.7vw, 2rem); margin: 0 0 .6em; letter-spacing: -.01em; font-weight: 600; }
h3 { font-size: 1.02rem; margin: 0 0 .4em; color: var(--text); font-weight: 600; }
/* editorial serif-italic accents */
h1 em, h2 em {
  font-family: var(--serif);
  font-style: italic; font-weight: 400; letter-spacing: 0;
  color: var(--oxblood);
}
/* section kicker: mono small caps with a fading rule */
.skick {
  display: flex; align-items: center; gap: 14px; margin: 0 0 12px;
  font-family: var(--mono); text-transform: uppercase;
  letter-spacing: .18em; font-size: .7rem; font-weight: 500; color: var(--oxblood);
}
.skick::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--line-strong), transparent); }
section h2 { margin-top: 2px; }
.kicker { font-family: var(--mono); text-transform: uppercase; letter-spacing: .18em; font-size: .7rem; color: var(--oxblood); font-weight: 500; margin: 0; }
.lede { font-size: 1.1rem; color: var(--text-2); }
.small { font-size: .85rem; color: var(--text-3); }
strong { color: var(--text); }

/* header */
.site-header { position: sticky; top: 0; background: rgba(243,243,241,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); z-index: 20; }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 1.05rem; color: var(--text); letter-spacing: .01em; }
.brand img { border-radius: 0; }
.brand em { font-style: normal; color: var(--oxblood); }
.nav nav { display: flex; gap: clamp(10px, 2.4vw, 26px); flex-wrap: wrap; }
.nav nav a { color: var(--text-2); font-weight: 500; font-size: .92rem; }
.nav nav a:hover { color: var(--oxblood); text-decoration: none; }

/* hamburger (mobile only) */
.nav-toggle { display: none; }

/* buttons: square, uppercase, ink */
.btn { display: inline-block; background: var(--text); color: #fff; padding: 14px 26px; border-radius: 0; font-weight: 600; border: 1px solid var(--text); cursor: pointer; font-size: .92rem; font-family: var(--sans); text-transform: uppercase; letter-spacing: .08em; }
.btn:hover { background: #000; border-color: #000; color: #fff; text-decoration: none; }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn.ghost:hover { border-color: var(--text); color: var(--text); background: transparent; }

/* hero */
.hero { padding-block: clamp(40px, 7vw, 80px); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 70%; height: 120%;
  background: radial-gradient(circle at 70% 30%, rgba(255,255,255,.9), transparent 62%);
  pointer-events: none;
}
.hero.slim { padding-block: clamp(28px, 5vw, 46px); }
.hero.slim::before { opacity: .7; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 4vw, 56px); align-items: center; position: relative; }
/* hero slideshow */
.hero-slideshow { position: relative; border-radius: 0; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(20,20,19,.16); overflow: hidden; background: var(--surface-2); }
.slides { position: relative; aspect-ratio: 1 / 1; }
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .9s ease; pointer-events: none; }
.slide.is-active { opacity: 1; pointer-events: auto; }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slide figcaption { position: absolute; inset-inline: 0; bottom: 0; padding: 34px 104px 13px 15px; background: linear-gradient(transparent, rgba(20,20,19,.78)); font-size: .9rem; }
.slide figcaption a { color: #fff; font-weight: 500; }
.sbtn { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; background: rgba(243,243,241,.85); border: 1px solid transparent; color: var(--text); font-size: 1.35rem; line-height: 1; display: none; align-items: center; justify-content: center; cursor: pointer; }
.sbtn:hover { background: #fff; color: var(--oxblood); }
.sbtn.prev { left: 10px; }
.sbtn.next { right: 10px; }
.dots { position: absolute; bottom: 13px; right: 14px; display: none; gap: 7px; }
.dot { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.65); background: rgba(255,255,255,.25); cursor: pointer; }
.dot.on { background: #fff; border-color: #fff; }
/* controls only when JS is active; without JS the first slide shows statically */
.js .hero-slideshow .sbtn { display: flex; }
.js .hero-slideshow .dots { display: flex; }
@media (prefers-reduced-motion: reduce) {
  .slide { transition: none; }
}
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-block: 20px; }
.ticks { margin: 14px 0 0; padding: 0; list-style: none; color: var(--text-2); }
.ticks li { padding-left: 26px; position: relative; margin-block: 7px; }
.ticks li::before { content: "—"; position: absolute; left: 2px; color: var(--oxblood); font-weight: 700; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.chip { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 0; padding: 8px 16px; font-size: .85rem; color: var(--text); font-weight: 500; }
.chip:hover { border-color: var(--text); color: var(--text); text-decoration: none; }

/* cards & grids */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 0; overflow: hidden; display: flex; flex-direction: column; color: var(--text); transition: border-color .18s ease, box-shadow .18s ease; }
.card:hover { border-color: rgba(20,20,19,.4); box-shadow: 0 18px 40px rgba(20,20,19,.12); text-decoration: none; }
.card img { aspect-ratio: 1; object-fit: cover; background: var(--surface-2); transition: transform .5s ease; }
.card:hover img { transform: scale(1.04); }
.card-body { padding: 15px 17px 19px; display: flex; flex-direction: column; gap: 6px; }
.card-name { font-weight: 600; line-height: 1.3; color: var(--text); }
.card-name::after { content: " \2192"; color: var(--oxblood); opacity: 0; transition: opacity .18s ease; }
.card:hover .card-name::after { opacity: 1; }
.card-short { font-size: .86rem; color: var(--text-3); }

/* craft pillars band (stats strip under hero) */
.pillars { border-block: 1px solid var(--line); background: var(--surface); }
.pillars .wrap { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px; padding-block: 26px; }
.pillar { display: flex; flex-direction: column; gap: 3px; }
.pillar + .pillar { border-left: 1px solid var(--line); padding-left: 18px; }
.pillar strong { font-family: var(--serif); font-size: 1.9rem; font-weight: 400; color: var(--oxblood); line-height: 1.1; }
.pillar span { font-size: .82rem; color: var(--text-3); }

.cats { padding-block: 44px 30px; }
.about { padding-block: 44px 8px; }
.about-copy { color: var(--text-2); max-width: 850px; font-size: 1.04rem; margin: 0; }
.about-copy strong { color: var(--text); }
.cats-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.catcard { position: relative; border-radius: 0; overflow: hidden; aspect-ratio: 4/3; background: var(--surface-2); border: 1px solid var(--line); }
.catcard img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.catcard:hover img { transform: scale(1.05); }
.catcard span { position: absolute; inset-inline: 0; bottom: 0; padding: 30px 15px 13px; background: linear-gradient(transparent, rgba(20,20,19,.78)); color: #fff; display: flex; flex-direction: column; }
.catcard strong { color: #fff; }
.catcard em { font-style: normal; font-size: .8rem; color: rgba(255,255,255,.78); }
.catcard em i { font-style: normal; color: var(--gilt); }
.catcard:hover { text-decoration: none; border-color: rgba(20,20,19,.4); }
.feat { padding-block: 30px 50px; }
.more { margin-top: 24px; }

/* scroll reveal: hidden only when JS is active; .in reveals */
.js .rv { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.js .rv.in { opacity: 1; transform: none; }

/* numbered order steps */
.steps { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 26px; counter-reset: step; }
.steps li { position: relative; padding-top: 4px; }
.step-no { font-family: var(--serif); font-size: 1.7rem; color: var(--oxblood); display: block; margin-bottom: 8px; }
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--text-2); margin: 0; font-size: .94rem; }

/* scroll-to-load feed */
.js .feed-grid .card { display: none; }
.js .feed-grid .card:nth-child(-n+8) { display: flex; }
.js .feed-grid .card.on { display: flex; }
.feed-sentinel { padding: 30px 0 4px; text-align: center; color: var(--text-3); font-family: var(--mono); font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; animation: pulse 2s ease-in-out infinite; }
.feed-sentinel[hidden] { display: none; }
@keyframes pulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .feed-sentinel { animation: none; } }
section[id] { scroll-margin-top: 84px; }

/* custom strip */
.custom { background: var(--surface); border-block: 1px solid var(--line); padding-block: 52px; }
/* closing CTA: full-bleed product photo behind a dark scrim, subtle
   fixed-attachment parallax on desktop (scroll on mobile for performance) */
.strip {
  background-image:
    linear-gradient(rgba(20,20,19,.84), rgba(20,20,19,.9)),
    url("../img/image31.webp");
  background-size: cover; background-position: center 38%;
  background-attachment: fixed;
  border-block: 1px solid var(--line);
  padding-block: 72px; text-align: center;
}
.strip h2 { color: #fff; }
.strip h2 em { color: var(--gilt); }
.strip .btn { margin-top: 18px; background: #fff; border-color: #fff; color: var(--text); }
.strip .btn:hover { background: var(--gilt); border-color: var(--gilt); color: #fff; }
.strip p { max-width: 620px; margin-inline: auto; color: rgba(255,255,255,.75); }

/* product page */
.crumbs { padding-block: 18px 0; font-size: .88rem; color: var(--text-3); }
.crumbs span { color: var(--text); }
.product-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 54px); padding-block: 26px; }
.photo-main { margin: 0; border-radius: 0; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.photo-main img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.photo-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 10px; }
.photo-thumb { margin: 0; border-radius: 0; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.photo-thumb img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.info .lede { margin-top: 4px; }
.info p { color: var(--text-2); }
.info p.kicker { color: var(--oxblood); }
.spec { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: 0; overflow: hidden; }
.spec caption { caption-side: top; text-align: left; font-weight: 600; padding: 0 0 12px; color: var(--text); }
.spec th, .spec td { text-align: left; padding: 12px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.spec th { width: 180px; color: var(--text-3); font-weight: 500; }
.spec td { color: var(--text); }
.spec tr:first-child th, .spec tr:first-child td { border-top: 0; }
.notes { margin: 20px 0 0; padding: 16px 18px 16px 20px; background: var(--surface-2); border-left: 2px solid var(--oxblood); border-radius: 0 0 0 0; color: var(--text-2); font-size: .92rem; list-style: none; }
.notes li { margin-block: 7px; }
.pager { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-block: 34px; }
#specs { padding-block: 8px 20px; }

/* contact & form */
.form-section { padding-block: 18px 64px; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: clamp(26px, 4vw, 56px); align-items: start; }
.inquiry { background: var(--surface); border: 1px solid var(--line); border-radius: 0; padding: clamp(20px, 3.2vw, 34px); display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; }
.field.full, .form-actions.full { grid-column: 1 / -1; }
.field label { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 7px; font-weight: 500; }
.field label span { color: var(--oxblood); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--text); background: #fff;
  border: 1px solid var(--line-strong); border-radius: 0; padding: 11px 13px; width: 100%;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: #9a9a95; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--oxblood); outline-offset: 0; border-color: var(--oxblood); }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%); background-position: calc(100% - 19px) 50%, calc(100% - 13px) 50%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.honey { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-actions { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; margin-top: 4px; }
.form-actions .small { margin: 0; }
.contact-aside { border-top: 1px solid var(--line); padding-top: 6px; }
.contact-aside h2 { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--oxblood); margin-block: 24px 8px; font-weight: 500; }
.contact-aside h2:first-child { margin-top: 0; }
.contact-aside p { color: var(--text-2); margin: 0; }
.contact-aside .ticks li { margin-block: 6px; }

/* footer */
.site-footer { background: var(--surface-2); color: var(--text-2); border-top: 1px solid var(--line); margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 30px; padding-block: 46px 22px; }
.foot-brand { font-family: var(--mono); color: var(--oxblood); font-weight: 500; margin-bottom: 8px; text-transform: uppercase; letter-spacing: .14em; font-size: .7rem; }
.site-footer a { color: var(--text); }
.site-footer a:hover { color: var(--oxblood); }
.site-footer p { margin-block: 4px; font-size: .9rem; }
.foot-note { border-top: 1px solid var(--line); padding-block: 16px 30px; font-size: .8rem; color: var(--text-3); }

@media (max-width: 880px) {
  .hero-grid, .product-grid, .form-grid { grid-template-columns: 1fr; }
  .hero-slideshow { order: -1; }
  .slides { aspect-ratio: 4 / 3; }
  .slide figcaption { padding-right: 20px; }
  .dots { bottom: 48px; right: 12px; }
  .inquiry { grid-template-columns: 1fr; }
  .spec th { width: 132px; }
  .strip { background-attachment: scroll; padding-block: 56px; }
  .pillar + .pillar { border-left: 0; padding-left: 0; }

  /* mobile nav: hamburger replaces inline links; without JS the plain
     inline links remain visible as the fallback */
  .js .nav-toggle {
    display: flex; flex-direction: column; justify-content: center; align-items: stretch;
    gap: 5px; width: 44px; height: 44px; padding: 11px;
    background: transparent; border: 1px solid var(--line-strong); border-radius: 0;
    cursor: pointer; flex: 0 0 auto;
  }
  .nav-toggle span { display: block; width: 100%; height: 2px; background: var(--text); border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
  body.menu-open .nav-toggle { border-color: var(--text); }
  body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .js .nav nav { display: none; }
  body.menu-open .site-header nav {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px var(--pad) 14px;
  }
  body.menu-open .site-header nav a {
    padding: 13px 2px; font-size: 1.02rem; color: var(--text);
    border-bottom: 1px solid var(--line);
  }
  body.menu-open .site-header nav a:last-child { border-bottom: 0; }
  body.menu-open .site-header nav a:hover { color: var(--oxblood); }
  .nav { flex-wrap: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .card img, .catcard img { transition: none; }
  .slide { transition: none; }
  .js .rv { opacity: 1; transform: none; transition: none; }
}
