/* ── Our craft pages: /craft and /craft/{step} ───────────────────────────── */

.craft-hero { position: relative; overflow: hidden; color: var(--on-deep); padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(3rem, 7vw, 5rem);
  background: radial-gradient(ellipse at 85% 20%, rgba(242, 207, 138, .22), transparent 55%), radial-gradient(ellipse at 10% 100%, rgba(184, 134, 47, .25), transparent 50%), linear-gradient(135deg, #2a0c0c, var(--deep)); }
.craft-hero::after { content: ""; position: absolute; inset: 0; background: var(--pattern-light, none); opacity: .35; pointer-events: none; }
.craft-hero > .container { position: relative; z-index: 1; }
.craft-hero h1 { color: #fff; font-size: clamp(2.6rem, 6vw, 4.6rem); margin-bottom: .3em; }
.craft-hero .lede { opacity: .9; }
.craft-hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 900px) { .craft-hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 4rem; } }
.craft-hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }
.craft-hero-center { text-align: center; }
.craft-hero-center .lede { margin-inline: auto; }

/* arched photo frame with a big step number */
.craft-hero-figure, .craft-row-media { position: relative; margin: 0; display: block; max-width: 420px; justify-self: center; width: 100%; }
.craft-arch { aspect-ratio: 4 / 5; border-radius: 999px 999px 22px 22px; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 35%, rgba(242, 207, 138, .35), rgba(242, 207, 138, .06) 70%), #3a1212;
  border: 1px solid rgba(242, 207, 138, .45); box-shadow: 0 30px 60px rgba(0, 0, 0, .35), inset 0 0 0 8px rgba(242, 207, 138, .08); color: var(--brass-light); }
.craft-arch img { width: 100%; height: 100%; object-fit: cover; }
.craft-art { width: 62%; height: auto; filter: drop-shadow(0 6px 18px rgba(242, 207, 138, .25)); }
.craft-badge { position: absolute; right: -6px; bottom: 18px; width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center;
  font: 600 2.2rem/1 var(--serif); color: #2a1614; background: linear-gradient(145deg, #f7dca2, #b8862f); box-shadow: 0 12px 28px rgba(0, 0, 0, .35); border: 3px solid #fff3d9; }

/* journey bar */
.craft-journey { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: var(--header-h, 64px); z-index: 5; }
.craft-journey ol { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.craft-journey li { position: relative; }
.craft-journey li + li::before { content: ""; position: absolute; left: 0; top: 50%; width: 1px; height: 40%; transform: translateY(-50%); background: var(--line); }
.craft-journey a { display: flex; align-items: center; justify-content: center; gap: .6rem; padding: .95rem .5rem; text-decoration: none; color: var(--muted); font-weight: 500; font-size: .92rem; border-bottom: 3px solid transparent; }
.craft-journey a:hover { color: var(--ink); }
.cj-no { flex: none; width: 1.8rem; height: 1.8rem; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 700; border: 1.5px solid var(--line); }
.craft-journey .is-done .cj-no { background: var(--tint); border-color: var(--brass); color: var(--brass-dark); }
.craft-journey .is-current a { color: var(--ink); border-bottom-color: var(--brass); font-weight: 600; }
.craft-journey .is-current .cj-no { background: var(--brass); border-color: var(--brass); color: #fff; }
@media (max-width: 640px) { .cj-title { display: none; } .craft-journey .is-current .cj-title { display: inline; } }

/* facts */
.craft-facts-wrap { background: var(--tint); }
.craft-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.craft-facts li { padding: 1.6rem 1.25rem; text-align: center; border-right: 1px solid var(--line); }
.craft-facts li:last-child { border-right: 0; }
.craft-facts strong { display: block; font: 600 clamp(1.7rem, 3.4vw, 2.3rem)/1.1 var(--serif); color: var(--brass-dark); margin-bottom: .3rem; }
.craft-facts span { font-size: .86rem; color: var(--muted); }
@media (max-width: 560px) { .craft-facts li { border-right: 0; border-bottom: 1px solid var(--line); } .craft-facts li:last-child { border-bottom: 0; } }

/* story + stages */
.craft-body { display: grid; gap: 3rem; }
@media (min-width: 960px) { .craft-body { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 4.5rem; align-items: start; } }
.craft-story p { font-size: 1.06rem; line-height: 1.8; max-width: 40rem; }
.craft-story .dropcap::first-letter { float: left; font: 600 4.2rem/.8 var(--serif); color: var(--brass); padding: .35rem .6rem 0 0; }
.craft-stages-box { padding: 2rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(60, 30, 10, .07); }
@media (min-width: 960px) { .craft-stages-box { position: sticky; top: calc(var(--header-h, 64px) + 5rem); } }
.craft-stages { list-style: none; margin: 0; padding: 0; counter-reset: stage; }
.craft-stages li { position: relative; padding: 0 0 1.4rem 3.1rem; counter-increment: stage; }
.craft-stages li::before { content: counter(stage); position: absolute; left: 0; top: -.1rem; width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center;
  font: 600 1.05rem/1 var(--serif); color: #fff; background: linear-gradient(145deg, #d9ab55, #8a6420); }
.craft-stages li:not(:last-child)::after { content: ""; position: absolute; left: 1.05rem; top: 2.2rem; bottom: .2rem; width: 2px; background: linear-gradient(var(--brass-light), transparent); }
.craft-stages h3 { font-size: 1.3rem; margin-bottom: .2rem; }
.craft-stages p { margin: 0; color: var(--muted); font-size: .95rem; }

/* video + gallery */
.craft-video { aspect-ratio: 16 / 9; max-width: 900px; margin: 0 auto 2rem; border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, .18); }
.craft-video iframe { width: 100%; height: 100%; border: 0; }
.craft-gallery { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.craft-gallery a { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 1; }
.craft-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.craft-gallery a:hover img { transform: scale(1.05); }

/* prev / next */
.craft-pager { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); margin-bottom: 2.5rem; }
.craft-pager-card { display: block; padding: 1.6rem 1.8rem; border-radius: var(--radius); border: 1px solid rgba(242, 207, 138, .3); background: rgba(255, 255, 255, .04); color: var(--on-deep); text-decoration: none; transition: background .2s, transform .2s; }
.craft-pager-card:hover { background: rgba(242, 207, 138, .12); transform: translateY(-2px); }
.craft-pager-card.is-next { text-align: right; background: linear-gradient(135deg, rgba(242, 207, 138, .2), rgba(184, 134, 47, .12)); }
.cp-dir { display: block; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--brass-light); margin-bottom: .35rem; }
.craft-pager-card strong { font: 600 1.8rem/1.15 var(--serif); color: #fff; }

/* overview page */
.craft-chips { list-style: none; margin: 2rem 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.craft-chips a { display: inline-flex; align-items: center; gap: .55rem; padding: .55rem 1.1rem .55rem .55rem; border-radius: 999px; border: 1px solid rgba(242, 207, 138, .45); color: #fff; text-decoration: none; font-weight: 500; background: rgba(255, 255, 255, .05); }
.craft-chips a:hover { background: rgba(242, 207, 138, .15); }
.craft-chips span { width: 1.8rem; height: 1.8rem; border-radius: 50%; display: grid; place-items: center; background: var(--brass); color: #fff; font-size: .82rem; font-weight: 700; }
.craft-rows { display: grid; gap: clamp(3.5rem, 8vw, 6rem); }
.craft-row { display: grid; gap: 2rem; align-items: center; scroll-margin-top: calc(var(--header-h, 64px) + 1rem); }
@media (min-width: 860px) {
  .craft-row { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 4rem; }
  .craft-row:nth-child(even) .craft-row-media { order: 2; }
}
.craft-row-media .craft-arch { max-width: 360px; margin-inline: auto; }
.craft-row h2 { font-size: clamp(2.1rem, 4vw, 3rem); }
.craft-row h2 a { text-decoration: none; color: inherit; }
.craft-row h2 a:hover { color: var(--brass-dark); }
.craft-row .lede-sm { margin-inline: 0; margin-bottom: 1.2rem; }
.craft-mini-facts { list-style: none; margin: 0 0 1.6rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.craft-mini-facts li { padding: .4rem .85rem; border-radius: 999px; background: var(--tint); font-size: .85rem; color: var(--muted); }
.craft-mini-facts strong { color: var(--brass-dark); }

/* homepage craft cards become links */
.craft-step-link { color: inherit; text-decoration: none; display: block; }
.craft-step-link:hover .craft-img { border-color: var(--brass-light); }
.craft-step-link:hover h3 { color: var(--brass-light); }
.craft-more { display: inline-block; margin-top: .4rem; color: var(--brass-light); font-weight: 600; font-size: .9rem; }
.craft-img .craft-art { color: var(--brass-light); width: 55%; }
.craft-drawing { width: 100%; height: 100%; object-fit: cover; display: block; }
