/* Sulphur Gulch Gunsmithing — "Walnut and gunmetal workshop" */
:root {
  --walnut-950: #17110b;
  --walnut-900: #221a11;
  --walnut-800: #302619;      /* original site dark brown rgb(48,38,25) */
  --walnut-700: #4a3520;
  --walnut-500: #795b28;      /* original site brown rgb(121,91,40) */
  --gunmetal-900: #1d2329;
  --gunmetal-800: #262e36;
  --gunmetal-700: #34404a;
  --gunmetal-500: #5d6b77;
  --brass: #c49a52;
  --brass-hi: #e0bd7a;
  --brass-deep: #7a5a22;      /* brass for text on parchment (AA) */
  --parchment: #f3ebda;
  --parchment-2: #e9dec6;
  --parchment-edge: #d8c8a6;
  --sage: #c6cfa8;            /* original site accent rgb(198,207,168) */
  --ink: #2a2016;
  --ink-soft: #54452f;
  --on-dark: #efe6d3;
  --on-dark-soft: #c9bda4;

  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: Helvetica, Arial, sans-serif;   /* original caption face */

  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --bar-h: 68px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--bar-h) + 16px); }
body {
  margin: 0; font-family: var(--serif); font-size: 1.0625rem; line-height: 1.65;
  color: var(--ink); background: var(--parchment); overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0 0 .5em; letter-spacing: .005em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
strong { font-weight: 700; }
:focus-visible { outline: 3px solid var(--brass-hi); outline-offset: 3px; border-radius: 2px; }
.sheet :focus-visible { outline-color: var(--brass-deep); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--brass); color: var(--walnut-950); padding: 10px 16px; border-radius: var(--radius); text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.label {
  font-variant: small-caps; text-transform: lowercase; letter-spacing: .16em; font-size: 1.05rem;
  color: var(--brass-deep); margin: 0 0 .6em;
}
.grain .label, .grain-metal .label, .footer .label, .drawer .label { color: var(--brass-hi); }

/* ---------- textures ---------- */
.grain {
  color: var(--on-dark);
  background-color: var(--walnut-800);
  background-image:
    radial-gradient(ellipse 60% 18% at 22% 30%, rgba(0,0,0,.28), transparent 70%),
    radial-gradient(ellipse 40% 10% at 78% 70%, rgba(0,0,0,.22), transparent 70%),
    radial-gradient(ellipse 8% 3% at 64% 36%, rgba(20,12,4,.55), transparent 80%),
    repeating-linear-gradient(177deg, rgba(255,220,160,.035) 0 2px, transparent 2px 7px, rgba(0,0,0,.08) 7px 9px, transparent 9px 15px),
    repeating-linear-gradient(183deg, rgba(0,0,0,.10) 0 1px, transparent 1px 23px, rgba(255,210,150,.04) 23px 26px, transparent 26px 41px),
    linear-gradient(170deg, var(--walnut-700), var(--walnut-800) 45%, var(--walnut-900));
}
.grain-metal {
  color: var(--on-dark);
  background-color: var(--gunmetal-800);
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,.018) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at 30% 0%, rgba(160,180,200,.14), transparent 60%),
    linear-gradient(180deg, var(--gunmetal-700), var(--gunmetal-900));
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 1.25em; border-radius: var(--radius);
  font: inherit; font-size: 1rem; letter-spacing: .04em; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color .2s, color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn .ico { width: 18px; height: 18px; fill: currentColor; flex: none; }
.btn--brass { background: linear-gradient(180deg, var(--brass-hi), var(--brass)); color: var(--walnut-950); border-color: #8d6a2c; box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 2px 0 rgba(0,0,0,.25); }
.btn--brass:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 6px 16px rgba(0,0,0,.35); }
.btn--ghost { color: var(--on-dark); border-color: rgba(224,189,122,.55); background: rgba(0,0,0,.12); }
.btn--ghost:hover { background: rgba(224,189,122,.14); border-color: var(--brass-hi); }
.btn--ghost-dark { color: var(--ink); border-color: var(--parchment-edge); background: var(--parchment); }
.btn--ghost-dark:hover { border-color: var(--brass-deep); background: #fff9ec; }
.ico { width: 20px; height: 20px; fill: currentColor; flex: none; }

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50; color: var(--on-dark);
  background: rgba(34,26,17,.94); border-bottom: 1px solid rgba(196,154,82,.35);
  backdrop-filter: saturate(1.2) blur(6px); -webkit-backdrop-filter: saturate(1.2) blur(6px);
}
.topbar__inner { max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); height: var(--bar-h); display: flex; align-items: center; gap: 20px; }
.brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1; margin-right: auto; min-height: 44px; justify-content: center; }
.brand__name { font-variant: small-caps; text-transform: lowercase; letter-spacing: .12em; font-size: 1.35rem; color: var(--on-dark); }
.brand__sub { font-variant: small-caps; text-transform: lowercase; letter-spacing: .42em; font-size: .82rem; color: var(--brass-hi); margin-top: 3px; }
.nav ul { display: flex; gap: 2px; }
.nav a {
  display: flex; align-items: center; min-height: 44px; padding: 0 10px; text-decoration: none;
  font-size: .95rem; color: var(--on-dark-soft); position: relative; transition: color .2s;
}
.nav a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 8px; height: 1px; background: var(--brass-hi); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--on-dark); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.call { min-height: 44px; }
.call__short { display: none; }
.burger { display: none; width: 48px; height: 48px; border: 1px solid rgba(224,189,122,.4); border-radius: var(--radius); background: transparent; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.burger span { width: 22px; height: 2px; background: var(--on-dark); transition: transform .3s var(--ease), opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1180px) {
  .nav { display: none; }
  .burger { display: flex; }
}
@media (max-width: 560px) {
  .call__long { display: none; }
  .call__short { display: inline; }
  .call { padding: 0 14px; }
  .brand__name { font-size: 1.12rem; letter-spacing: .08em; }
  .brand__sub { letter-spacing: .3em; font-size: .75rem; }
  .topbar__inner { gap: 10px; }
}

/* drawer */
.drawer { position: fixed; inset: 0; z-index: 60; }
.drawer[hidden] { display: none; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(10,7,4,.6); opacity: 0; transition: opacity .3s; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, 88vw); overflow-y: auto;
  padding: 72px 24px 28px; display: flex; flex-direction: column; gap: 10px;
  background: var(--walnut-900); color: var(--on-dark); border-left: 1px solid rgba(196,154,82,.4);
  transform: translateX(100%); transition: transform .35s var(--ease);
}
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__panel ul { margin-bottom: 12px; }
.drawer__panel li a { display: flex; align-items: center; min-height: 48px; text-decoration: none; font-size: 1.2rem; border-bottom: 1px solid rgba(239,230,211,.1); color: var(--on-dark-soft); }
.drawer__panel li a[aria-current="page"] { color: var(--brass-hi); }
.drawer__panel li a:hover { color: var(--on-dark); }
.drawer__close { position: absolute; top: 12px; right: 12px; width: 48px; height: 48px; border: 1px solid rgba(224,189,122,.4); border-radius: var(--radius); background: transparent; color: var(--on-dark); font-size: 1.8rem; line-height: 1; cursor: pointer; }
body.no-scroll { overflow: hidden; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 96px) 0 clamp(48px, 7vw, 100px); }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 6px; background: linear-gradient(90deg, transparent, var(--brass), transparent); opacity: .6; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero__title { font-size: clamp(2.6rem, 6.4vw, 5.2rem); margin: 0 0 .35em; color: #fbf4e4; text-shadow: 0 2px 0 rgba(0,0,0,.35); }
.hero__title span { display: block; }
.hero__title span:last-child { font-variant: small-caps; text-transform: lowercase; letter-spacing: .14em; font-size: .56em; color: var(--brass-hi); margin-top: .2em; }
.hero__lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 34em; color: var(--on-dark); }
.hero__appt { color: var(--on-dark-soft); font-style: italic; }
.hero__appt a, .pagehead__sub a { color: var(--brass-hi); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4em; }
.hero__art { position: relative; }
.drawing { width: 100%; height: auto; overflow: visible; }
.drawing .grid line { stroke: rgba(198,207,168,.07); stroke-width: 1; }
.drawing .d { fill: none; stroke: var(--sage); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.drawing .d.c { stroke: var(--brass-hi); stroke-width: 1; opacity: .75; }
.drawing .d.h { opacity: .55; }
.drawing .d.m { stroke: var(--brass); stroke-width: 1; }
.drawing .d.f { opacity: .7; }
.drawing .hatchline { stroke: rgba(198,207,168,.35); stroke-width: 1.2; }
.drawing .fill { fill: url(#hatch); stroke: none; mask: none; }
.drawing .tags text { fill: var(--brass-hi); font: italic 11px var(--serif); text-anchor: middle; dominant-baseline: middle; }
@media (prefers-reduced-motion: no-preference) {
  .js .drawing .d { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.2s var(--ease) forwards; animation-delay: calc(var(--i) * 90ms + 150ms); }
  .js .drawing .fill, .js .drawing .tags { opacity: 0; animation: fadein .8s ease forwards 2.2s; }
  .js .hero__copy > * { opacity: 0; transform: translateY(14px); animation: rise .9s var(--ease) forwards; }
  .js .hero__copy > :nth-child(2) { animation-delay: .12s; }
  .js .hero__copy > :nth-child(3) { animation-delay: .24s; }
  .js .hero__copy > :nth-child(4) { animation-delay: .36s; }
  .js .hero__copy > :nth-child(5) { animation-delay: .48s; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fadein { to { opacity: 1; } }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- page head ---------- */
.pagehead { padding: clamp(40px, 6vw, 80px) 0 clamp(32px, 5vw, 60px); position: relative; }
.pagehead::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, var(--brass-deep), var(--brass-hi) 40%, var(--brass-deep)); opacity: .7; }
.pagehead h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); color: #fbf4e4; margin: 0; }
.pagehead__sub { margin: .8em 0 0; color: var(--on-dark-soft); font-style: italic; }
.pagehead--tall { padding: 120px 0; }

/* ---------- parchment sheets ---------- */
.sheet {
  padding: clamp(48px, 7vw, 96px) 0;
  background-color: var(--parchment);
  background-image:
    radial-gradient(ellipse at 0% 0%, rgba(160,120,60,.08), transparent 50%),
    radial-gradient(ellipse at 100% 100%, rgba(120,90,40,.08), transparent 55%);
}
.sheet--alt { background-color: var(--parchment-2); }
.sheet h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); color: var(--walnut-800); }

.welcome { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.welcome__text p { max-width: 36em; }
.dropcap::first-letter { float: left; font-size: 3.6em; line-height: .82; padding: .06em .1em 0 0; color: var(--walnut-500); }
.plate { margin: 0; padding: 12px; background: var(--walnut-800); border-radius: 2px; box-shadow: 0 1px 0 var(--brass), 0 24px 40px -18px rgba(48,38,25,.55); transform: rotate(1.2deg); }
.plate img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.quote { position: relative; padding: clamp(56px, 8vw, 110px) 0; text-align: center; overflow: hidden; }
.quote__strip { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .22; mix-blend-mode: luminosity; }
.quote__inner { position: relative; }
.quote__motto { font-size: 1.15rem; }
.quote blockquote { margin: 0; }
.quote blockquote p { font-size: clamp(1.9rem, 4.6vw, 3.4rem); font-style: italic; line-height: 1.2; margin: .2em auto .4em; max-width: 18em; color: #fbf4e4; }
.quote blockquote footer { font-variant: small-caps; text-transform: lowercase; letter-spacing: .22em; color: var(--brass-hi); }
.quote blockquote footer::before { content: ""; display: block; width: 60px; height: 1px; background: var(--brass); margin: 0 auto 14px; }

.area__text { font-size: clamp(1.2rem, 2.2vw, 1.55rem); line-height: 1.5; max-width: 38em; color: var(--walnut-800); }
.ticker { margin-top: clamp(28px, 4vw, 48px); overflow: hidden; border-top: 1px solid var(--parchment-edge); border-bottom: 1px solid var(--parchment-edge); padding: 14px 0; }
.ticker__track { display: flex; width: max-content; gap: 28px; align-items: center; white-space: nowrap; font-variant: small-caps; text-transform: lowercase; letter-spacing: .2em; font-size: 1.3rem; color: var(--walnut-700); }
.ticker__track i { font-style: normal; color: var(--brass-deep); font-size: .7em; }
@media (prefers-reduced-motion: no-preference) { .ticker__track { animation: ticker 38s linear infinite; } }
@keyframes ticker { to { transform: translateX(-50%); } }

.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 28px; }
.card a { display: flex; flex-direction: column; height: 100%; text-decoration: none; background: #fbf6ea; border: 1px solid var(--parchment-edge); border-radius: var(--radius); overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; transition: transform .6s var(--ease); }
.card__label { padding: 16px 18px 2px; font-size: 1.35rem; color: var(--walnut-800); }
.card__meta { padding: 0 18px 18px; font-size: .95rem; color: var(--ink-soft); font-style: italic; }
.card a:hover { transform: translateY(-4px); box-shadow: 0 18px 30px -18px rgba(48,38,25,.6); border-color: var(--brass); }
.card a:hover img { transform: scale(1.04); }

/* ---------- services / price list ---------- */
.pricelist__grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.toc { position: sticky; top: calc(var(--bar-h) + 24px); padding: 22px 20px; background: var(--walnut-800); color: var(--on-dark); border-radius: var(--radius); box-shadow: 0 20px 30px -22px rgba(0,0,0,.6); }
.toc .label { color: var(--brass-hi); }
.toc ol { counter-reset: toc; }
.toc li a { display: flex; gap: 10px; align-items: baseline; min-height: 44px; padding: 10px 0; text-decoration: none; color: var(--on-dark-soft); border-bottom: 1px solid rgba(239,230,211,.08); transition: color .2s; line-height: 1.3; }
.toc li a::before { counter-increment: toc; content: counter(toc, decimal-leading-zero); font-size: .8rem; color: var(--brass); }
.toc li a:hover, .toc li a.is-active { color: #fff5df; }
.toc li a.is-active::before { color: var(--brass-hi); }
.toc__stamp { margin: 18px 0 0; display: inline-block; padding: 6px 10px; border: 1px solid var(--brass); color: var(--brass-hi); font-variant: small-caps; text-transform: lowercase; letter-spacing: .14em; font-size: .95rem; transform: rotate(-2deg); }

.pricelist__body { max-width: 780px; }
.group { background: #fbf6ea; border: 1px solid var(--parchment-edge); border-radius: var(--radius); margin-bottom: 28px; box-shadow: 0 1px 0 rgba(255,255,255,.7) inset, 0 16px 30px -26px rgba(48,38,25,.7); }
.group > summary { list-style: none; display: flex; align-items: center; gap: 14px; padding: 20px clamp(18px, 3vw, 32px); border-bottom: 1px solid var(--parchment-edge); cursor: default; }
.group > summary::-webkit-details-marker { display: none; }
.group > summary h2 { margin: 0; font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-variant: small-caps; text-transform: lowercase; letter-spacing: .06em; }
.group__num { font-size: .9rem; color: var(--brass-deep); border: 1px solid var(--brass); border-radius: 50%; width: 36px; height: 36px; display: grid; place-items: center; flex: none; }
.group__chev { display: none; margin-left: auto; width: 12px; height: 12px; border-right: 2px solid var(--walnut-500); border-bottom: 2px solid var(--walnut-500); transform: rotate(45deg); transition: transform .3s var(--ease); flex: none; }
.group[open] .group__chev { transform: rotate(-135deg); }
.group > .rows { padding: 14px clamp(18px, 3vw, 32px) 22px; }
.rows .rows { padding: 0; }
.row { display: flex; align-items: baseline; gap: 8px; padding: 7px 0; }
.row__item { flex: 0 1 auto; }
.row__lead { flex: 1 1 24px; min-width: 24px; border-bottom: 2px dotted rgba(121,91,40,.55); transform: translateY(-4px); }
.row__price { flex: none; text-align: right; font-variant-numeric: lining-nums tabular-nums; color: var(--walnut-800); font-weight: 700; white-space: nowrap; min-width: 4.5em; }
.row--note .row__item { font-style: italic; color: var(--ink-soft); }
.sub { padding: 12px 0 6px; }
.sub h3 { font-size: 1.12rem; margin: 6px 0 4px; color: var(--walnut-700); font-variant: small-caps; text-transform: lowercase; letter-spacing: .05em; font-size: 1.2rem; }
.sub__note { margin: 0 0 4px; font-style: italic; color: var(--ink-soft); font-size: .98rem; }
.sub .rows { padding-left: 18px; border-left: 2px solid var(--parchment-edge); margin: 2px 0 8px 2px; }
.effective { font-variant: small-caps; text-transform: lowercase; letter-spacing: .14em; color: var(--brass-deep); text-align: right; }

@media (max-width: 900px) {
  .pricelist__grid { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
  .group > summary { cursor: pointer; min-height: 64px; }
  .group__chev { display: block; }
  .row { flex-wrap: wrap; }
  .row__item { flex: 1 1 60%; }
  .row__lead { display: none; }
  .row__price { min-width: 0; }
}

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.portrait { margin: 0; position: sticky; top: calc(var(--bar-h) + 24px); }
.portrait img { width: 100%; border: 10px solid var(--walnut-800); box-shadow: 0 0 0 1px var(--brass), 0 28px 40px -24px rgba(0,0,0,.6); }
.portrait figcaption, .tile figcaption, .nra__cap, .parts__spec { font-family: var(--sans); font-size: .92rem; line-height: 1.5; color: var(--ink-soft); }
.portrait figcaption { margin-top: 14px; padding-left: 12px; border-left: 2px solid var(--brass); }
.about__lead { font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.4; color: var(--walnut-800); }
.about__label { margin-top: 2em; }
.year { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 18px; padding: 18px 0; border-top: 1px solid var(--parchment-edge); }
.year__n { font-size: 1.25rem; color: var(--brass-deep); font-style: italic; padding-top: 2px; }
.year p { margin: 0; }
.year a { color: var(--walnut-500); text-underline-offset: 3px; }

/* ---------- galleries ---------- */
.masonry { columns: 3 300px; column-gap: 20px; }
.tile { break-inside: avoid; margin: 0 0 20px; }
.tile figure { margin: 0; }
.tile__btn { display: block; width: 100%; padding: 0; border: 0; background: var(--walnut-800); cursor: zoom-in; border-radius: var(--radius); overflow: hidden; position: relative; box-shadow: 0 14px 24px -18px rgba(0,0,0,.6); }
.tile__btn img { width: 100%; transition: transform .6s var(--ease), opacity .3s; }
.tile__btn::after { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(224,189,122,0); transition: border-color .3s; pointer-events: none; }
.tile__btn:hover img, .tile__btn:focus-visible img { transform: scale(1.035); }
.tile__btn:hover::after, .tile__btn:focus-visible::after { border-color: rgba(224,189,122,.8); }
.tile figcaption { margin-top: 10px; padding-left: 10px; border-left: 2px solid var(--brass); }
.pager { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

.lightbox { width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; margin: 0; padding: 0; border: 0; background: rgba(14,10,6,.94); color: var(--on-dark); }
.lightbox::backdrop { background: rgba(0,0,0,.6); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { margin: 0; padding: 64px 72px 72px; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox img { max-width: min(1100px, 100%); max-height: calc(100vh - 200px); width: auto; height: auto; border: 6px solid var(--walnut-800); box-shadow: 0 0 0 1px var(--brass); }
.lightbox figcaption { margin-top: 14px; max-width: 46em; text-align: center; font-family: var(--sans); font-size: .95rem; color: var(--on-dark-soft); }
.lb-btn { position: fixed; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(224,189,122,.55); background: rgba(34,26,17,.8); color: var(--on-dark); font-size: 2rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.lb-btn:hover { background: var(--walnut-700); }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-close { right: 12px; top: 12px; }
.lb-count { position: fixed; left: 16px; top: 22px; margin: 0; font-variant: small-caps; letter-spacing: .14em; color: var(--brass-hi); }
@media (max-width: 640px) {
  .lightbox figure { padding: 70px 12px 90px; }
  .lb-prev, .lb-next { top: auto; bottom: 16px; transform: none; }
  .lb-prev { left: calc(50% - 64px); } .lb-next { right: calc(50% - 64px); }
}

/* ---------- rifles ---------- */
.nra { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-areas: "a b" "c d"; gap: 20px; }
.nra .tile { margin: 0; }
.nra__a { grid-area: a; } .nra__b { grid-area: b; } .nra__c { grid-area: c; } .nra__d { grid-area: d; }
.nra .tile__btn img { aspect-ratio: 16 / 10; object-fit: cover; }
.nra__cap { margin: 20px 0 0; font-size: 1rem; padding-left: 12px; border-left: 2px solid var(--brass); max-width: 44em; }
.spec { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.spec .tile { margin: 0; }
.spec__wide { grid-column: 1 / -1; }
.spec .tile__btn img { aspect-ratio: 16 / 10; object-fit: cover; }
.spec__wide .tile__btn img { aspect-ratio: 690 / 284; }
.parts { display: grid; grid-template-columns: minmax(0, 1fr) 80px minmax(0, 1fr); gap: 16px; align-items: center; }
.parts .tile { margin: 0; }
.parts .tile__btn img { aspect-ratio: 4 / 3; object-fit: cover; }
.parts .tile figcaption { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--walnut-800); }
.parts__arrow svg { width: 80px; height: 24px; fill: none; stroke: var(--brass-deep); stroke-width: 2; }
.parts__spec { margin: 28px 0 0; max-width: 46em; font-size: 1rem; padding-left: 12px; border-left: 2px solid var(--brass); }
@media (max-width: 720px) {
  .nra { grid-template-columns: 1fr; grid-template-areas: "a" "b" "c" "d"; }
  .spec { grid-template-columns: 1fr; }
  .parts { grid-template-columns: 1fr; }
  .parts__arrow { justify-self: center; transform: rotate(90deg); }
}

/* ---------- contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.ticket { font-style: normal; padding: clamp(24px, 4vw, 40px); background: #fbf6ea; border: 1px solid var(--parchment-edge); border-radius: var(--radius); position: relative; box-shadow: 0 24px 40px -30px rgba(48,38,25,.8); }
.ticket::before { content: ""; position: absolute; inset: 8px; border: 1px dashed var(--parchment-edge); pointer-events: none; }
.ticket__name { font-size: clamp(1.4rem, 2.6vw, 1.9rem); font-variant: small-caps; text-transform: lowercase; letter-spacing: .08em; color: var(--walnut-800); margin-bottom: .8em; }
.ticket__line { display: flex; gap: 14px; align-items: flex-start; font-size: 1.15rem; }
.ticket__line .ico { color: var(--brass-deep); margin-top: 4px; }
.ticket__line a { color: var(--ink); text-underline-offset: 3px; word-break: break-word; min-height: 44px; display: inline-block; }
.actions { display: grid; gap: 14px; }
.action { display: grid; grid-template-columns: 28px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 18px 20px; text-decoration: none; background: var(--walnut-800); color: var(--on-dark); border-radius: var(--radius); border: 1px solid transparent; transition: transform .25s var(--ease), border-color .25s, background .25s; }
.action .ico { grid-row: 1 / 3; width: 26px; height: 26px; color: var(--brass-hi); }
.action__label { font-variant: small-caps; text-transform: lowercase; letter-spacing: .14em; color: var(--brass-hi); }
.action__val { font-size: 1.1rem; word-break: break-word; }
.action:hover { transform: translateX(4px); border-color: var(--brass); background: var(--walnut-700); }

/* ---------- footer ---------- */
.footer { padding: 56px 0 24px; font-size: .98rem; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.footer p { margin: 0 0 .5em; }
.footer a { color: var(--on-dark); text-underline-offset: 3px; text-decoration-color: rgba(224,189,122,.5); }
.footer a:hover { color: var(--brass-hi); }
.footer__name { font-variant: small-caps; text-transform: lowercase; letter-spacing: .12em; font-size: 1.35rem; }
.footer__motto { font-style: italic; color: var(--on-dark-soft); }
.footer__links a { display: inline-flex; min-height: 32px; align-items: center; text-decoration: none; color: var(--on-dark-soft); }
.footer__base { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 36px; padding-top: 18px; border-top: 1px solid rgba(239,230,211,.14); color: var(--on-dark-soft); }
.footer__base p { margin: 0; }
.totop { min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- reveals ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__art { order: -1; max-width: 560px; }
  .welcome, .about, .contact { grid-template-columns: minmax(0, 1fr); }
  .portrait { position: static; max-width: 520px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .year { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .hero__cta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
