/* Heritage Codeworks — styles.css
   Set by hand. No preprocessors were harmed. */

:root {
  --parchment: #EFE3C8;
  --paper:     #E2D2AE;
  --walnut:    #4A3322;
  --leather:   #7A5230;
  --amber:     #C98A2B;
  --ink:       #1E1610;
  --wax:       #8B2E1F;

  --paper-edge: #cdb98f;
  --amber-soft: rgba(201, 138, 43, .18);

  --f-display: "Playfair Display", "Cormorant Garamond", Georgia, serif;
  --f-body:    "EB Garamond", Garamond, Georgia, serif;
  --f-type:    "Special Elite", "Courier New", monospace;
  --f-stencil: "Stardos Stencil", "Special Elite", Impact, sans-serif;

  --measure: 64ch;
  --gutter: clamp(16px, 4vw, 48px);
  --slow: 1.6s cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--parchment);
  color: var(--walnut);
  font-family: var(--f-body);
  font-size: clamp(18px, 1.1vw + 12px, 21px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* Paper fibre on the page itself */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='400' height='400'><filter id='f'><feTurbulence type='fractalNoise' baseFrequency='.012 .35' numOctaves='3' seed='7'/><feColorMatrix values='0 0 0 0 .29  0 0 0 0 .2  0 0 0 0 .13  0 0 0 .09 0'/></filter><rect width='100%' height='100%' filter='url(%23f)'/></svg>"),
    radial-gradient(ellipse at 20% 0%, #f6ecd4 0%, transparent 60%),
    var(--parchment);
}

img { max-width: 100%; display: block; }
a { color: var(--leather); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--walnut); }
code, pre { font-family: var(--f-type); }
code { font-size: .9em; }

h1, h2, h3 {
  font-family: var(--f-display);
  color: var(--walnut);
  line-height: 1.1;
  margin: 0 0 .5em;
  font-weight: 700;
}
h2 { font-size: clamp(2.2rem, 4vw + 1rem, 3.6rem); letter-spacing: -.01em; }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--ink); color: var(--parchment); padding: .5em 1em;
}
.skip:focus { left: 8px; }

:focus-visible { outline: 2px dashed var(--amber); outline-offset: 4px; }

/* ---------- Atmosphere ---------- */

.atmos { position: fixed; inset: 0; pointer-events: none; z-index: 50; }

.atmos--sunbeam {
  background:
    linear-gradient(118deg, rgba(255, 214, 140, .22) 0%, rgba(255, 214, 140, .06) 28%, transparent 46%),
    radial-gradient(ellipse 60% 50% at 0% 0%, rgba(255, 200, 110, .20), transparent 70%);
  mix-blend-mode: soft-light;
}

.atmos--grain {
  inset: -50%;
  opacity: .14;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .1  0 0 0 0 .07  0 0 0 0 .04  0 0 0 1.1 -.35'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-3%, 2%); }
  40%  { transform: translate(2%, -3%); }
  60%  { transform: translate(-2%, -1%); }
  80%  { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

.atmos--vignette {
  background: radial-gradient(ellipse 120% 100% at 50% 45%, transparent 55%, rgba(30, 22, 16, .38) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .atmos--grain { animation: none; }
  .atmos--dust { display: none; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .01em;
  color: var(--walnut);
  background: var(--amber);
  background-image: linear-gradient(180deg, rgba(255, 230, 170, .35), transparent 55%);
  border: 1px solid #a8701f;
  border-radius: 10px;
  padding: .8em 1.5em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 1px 0 rgba(255, 240, 200, .5) inset, 0 3px 0 #8f5e18, 0 8px 18px rgba(74, 51, 34, .22);
  transition: transform .6s ease, box-shadow .6s ease, background-color .6s ease;
}
.btn:hover { color: var(--walnut); background-color: #d4963a; transform: translateY(-1px); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(255, 240, 200, .5) inset, 0 1px 0 #8f5e18, 0 4px 10px rgba(74, 51, 34, .2); }

.btn--ghost {
  background: rgba(239, 227, 200, .1);
  background-image: none;
  color: var(--parchment);
  border-color: rgba(239, 227, 200, .55);
  box-shadow: none;
}
.btn--ghost:hover { background: rgba(239, 227, 200, .18); color: var(--parchment); }

.btn--small { font-size: .9rem; padding: .55em 1.1em; }
.btn--large { font-size: 1.25rem; padding: .9em 2em; }

/* ---------- Masthead ---------- */

.masthead {
  position: absolute; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; gap: 1.5rem;
  padding: 18px var(--gutter);
  color: var(--parchment);
}
.brand {
  display: flex; align-items: center; gap: .7rem;
  color: var(--parchment); text-decoration: none; margin-right: auto;
}
.brand:hover { color: var(--parchment); }
.brand__emblem { width: 48px; height: 48px; flex: none; }
.brand__name { font-family: var(--f-display); font-weight: 700; font-size: 1.2rem; letter-spacing: .04em; }
.nav { display: flex; gap: 1.6rem; }
.nav a {
  color: var(--parchment); text-decoration: none;
  font-family: var(--f-display); font-style: italic; font-size: 1rem; opacity: .9;
}
.nav a:hover { opacity: 1; text-decoration: underline; }

@media (max-width: 900px) { .nav { display: none; } }
@media (max-width: 520px) {
  .brand__name { font-size: 1rem; }
  .masthead .btn--small { display: none; }
}

/* ---------- Plates (image frames with sepia fallback) ---------- */

.plate {
  position: relative;
  margin: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 22% 18%, rgba(255, 205, 120, .55), transparent 55%),
    radial-gradient(ellipse at 80% 90%, rgba(30, 22, 16, .55), transparent 60%),
    linear-gradient(160deg, #9b7246 0%, #6b4529 50%, #3a2617 100%);
}
/* Fallback label, visible only until the photograph arrives */
.plate::before {
  content: attr(data-label);
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--f-display); font-style: italic;
  color: rgba(239, 227, 200, .7);
  font-size: 1rem; text-align: center; white-space: nowrap;
  letter-spacing: .04em;
}
.plate img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  filter: sepia(.35) saturate(.9) contrast(1.02);
  transform: scale(1.0);
  transition: transform 12s ease-out;
}
.plate.is-visible img, .hero__plate img { transform: scale(1.06); }
.plate figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 2.5rem 1.2rem 1rem;
  background: linear-gradient(transparent, rgba(30, 22, 16, .85));
  color: var(--parchment);
  font-style: italic; font-size: .95rem; line-height: 1.45;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: 140px var(--gutter) clamp(64px, 10vh, 120px);
  color: var(--parchment);
  isolation: isolate;
}
.hero__plate {
  position: absolute; inset: 0; z-index: -1;
}
.hero__plate::before { top: auto; bottom: 24px; left: auto; right: var(--gutter); transform: none; }
.hero__plate::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(30, 22, 16, .55) 0%, transparent 30%),
    linear-gradient(90deg, rgba(30, 22, 16, .55) 0%, rgba(30, 22, 16, .2) 50%, transparent 75%),
    linear-gradient(0deg, rgba(30, 22, 16, .85) 0%, rgba(30, 22, 16, .2) 55%, transparent 80%);
}
.hero__plate img { animation: pushin 40s ease-out forwards; }
@keyframes pushin { from { transform: scale(1); } to { transform: scale(1.1); } }

.hero__copy { max-width: 900px; }
.hero__title {
  color: var(--parchment);
  font-size: clamp(3rem, 7vw + 1rem, 7rem);
  font-weight: 900;
  line-height: .98;
  letter-spacing: -.02em;
  text-shadow: 0 2px 30px rgba(30, 22, 16, .5);
}
.hero__title em { font-style: italic; font-weight: 700; color: #f2c57a; }
.hero__lede { font-size: clamp(1.15rem, 1vw + 1rem, 1.5rem); max-width: 38ch; opacity: .92; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

.eyebrow {
  font-family: var(--f-type);
  font-size: .85rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1rem;
}
.hero .eyebrow { color: #e8b866; }

/* ---------- Ribbon ---------- */

.ribbon {
  background: var(--walnut);
  color: var(--parchment);
  border-top: 3px double var(--amber);
  border-bottom: 3px double var(--amber);
  padding: 1.1rem var(--gutter);
  text-align: center;
}
.ribbon__line {
  margin: 0;
  font-family: var(--f-display); font-style: italic; font-weight: 500;
  font-size: clamp(1.3rem, 2.5vw + .6rem, 2.2rem);
  display: flex; flex-wrap: wrap; justify-content: center; gap: .3em .7em;
}
.ribbon__dot { color: var(--amber); font-style: normal; font-size: .6em; align-self: center; }

/* ---------- Sections ---------- */

.section { padding: clamp(72px, 10vw, 140px) var(--gutter); }
.section__head { text-align: center; max-width: 760px; margin: 0 auto clamp(40px, 6vw, 72px); }
.section__sub { font-style: italic; color: var(--leather); font-size: 1.15em; }
.section__head h2::after {
  content: "❦";
  display: block;
  font-size: .45em;
  color: var(--amber);
  margin-top: .35em;
}

/* Intro */
.intro__inner { max-width: var(--measure); margin: 0 auto; text-align: left; }
.intro__drawing {
  display: block; width: min(340px, 80%); height: auto; margin: 0 auto 2.5rem;
}
.intro__text { font-size: 1.2em; }
.dropcap {
  float: left;
  font-family: var(--f-display); font-weight: 900;
  font-size: 4.4em; line-height: .82;
  margin: .06em .1em 0 0;
  color: var(--leather);
}

/* Film */
.film { padding-top: 0; }
.film__frame {
  position: relative;
  max-width: 1100px; margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  border: 1px solid var(--paper-edge);
  padding: 10px;
  box-shadow: 0 30px 60px -28px rgba(30, 22, 16, .75);
}
.film__frame img, .film__frame iframe {
  width: 100%; height: 100%; display: block; border: 0;
  object-fit: cover;
}
.film__play {
  position: absolute; inset: 10px;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: .8rem;
  padding-bottom: clamp(1.5rem, 5vw, 3.5rem);
  background: linear-gradient(0deg, rgba(30, 22, 16, .55), transparent 45%);
  border: 0; cursor: pointer; color: var(--parchment);
}
.film__play-icon {
  width: clamp(64px, 8vw, 92px); aspect-ratio: 1; border-radius: 50%;
  background: var(--amber);
  background-image: linear-gradient(180deg, rgba(255, 230, 170, .35), transparent 55%);
  box-shadow: 0 0 0 6px rgba(201, 138, 43, .25), 0 10px 24px rgba(30, 22, 16, .5);
  position: relative;
  transition: transform .8s ease, box-shadow .8s ease;
}
.film__play-icon::after {
  content: ""; position: absolute; left: 54%; top: 50%;
  transform: translate(-50%, -50%);
  border-style: solid; border-width: 13px 0 13px 21px;
  border-color: transparent transparent transparent var(--walnut);
}
.film__play-label { font-family: var(--f-display); font-style: italic; font-size: 1.15rem; text-shadow: 0 2px 10px rgba(30, 22, 16, .8); }
.film__play:hover .film__play-icon { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(201, 138, 43, .2), 0 12px 28px rgba(30, 22, 16, .5); }
.film__note { text-align: center; font-family: var(--f-type); font-size: .8rem; color: var(--leather); margin-top: 1.4rem; }

/* Cards */
.process { background: linear-gradient(transparent, rgba(226, 210, 174, .55) 20%, rgba(226, 210, 174, .55) 80%, transparent); }
.process__grid {
  display: grid; gap: clamp(20px, 3vw, 36px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  max-width: 1200px; margin: 0 auto;
}
.card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--paper-edge);
  border-radius: 4px;
  padding: 2rem 1.8rem 1.6rem;
  box-shadow: 0 1px 0 #f4e9cf inset, 0 14px 30px -12px rgba(74, 51, 34, .35);
}
.card::after {
  content: ""; position: absolute; inset: 8px;
  border: 1px solid rgba(122, 82, 48, .25);
  border-radius: 2px; pointer-events: none;
}
.card__num {
  font-family: var(--f-display); font-style: italic;
  color: var(--amber); font-size: 1.1rem; margin-bottom: .3rem;
}
.snippet {
  margin: 1.2rem 0 0;
  padding: .9rem 1rem;
  background: rgba(30, 22, 16, .06);
  border-left: 3px solid var(--amber);
  color: var(--leather);
  font-size: .82rem; line-height: 1.55;
  white-space: pre-wrap;
  overflow-x: auto;
}

/* Quote */
.quote { text-align: center; padding-top: 40px; padding-bottom: 40px; }
.quote blockquote { margin: 0 auto; max-width: 900px; }
.quote p {
  font-family: var(--f-display); font-style: italic; font-weight: 500;
  font-size: clamp(1.8rem, 3vw + 1rem, 3rem); line-height: 1.2;
  color: var(--walnut);
}
.quote--closing p { font-size: clamp(1.4rem, 1.6vw + 1rem, 2.1rem); line-height: 1.35; }
.quote--closing { padding-bottom: 0; }
.nowrap { white-space: nowrap; }
.quote footer { font-family: var(--f-type); font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; color: var(--leather); }
.quote footer::before { content: "— "; }

/* Workshop plates */
.workshop__plates {
  display: grid; gap: clamp(20px, 3vw, 40px);
  max-width: 1200px; margin: 0 auto;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
  align-items: center;
}
.plate--wide { aspect-ratio: 16 / 10; }
.inventory {
  background: #f5ecd6;
  border: 1px solid var(--paper-edge);
  padding: 1.6rem 1.6rem 1.2rem;
  font-family: var(--f-type); font-size: .85rem;
  box-shadow: 0 16px 30px -18px rgba(74, 51, 34, .5);
  transform: rotate(1.2deg);
}
.inventory__title { text-transform: uppercase; letter-spacing: .14em; color: var(--wax); margin-bottom: .9rem; }
.inventory ul { list-style: none; margin: 0; padding: 0; }
.inventory li {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .35rem 0; border-bottom: 1px dashed rgba(122, 82, 48, .35);
}
.inventory li span:last-child { white-space: nowrap; }
.inventory__sig { margin: 1rem 0 0; text-align: right; font-style: italic; color: var(--leather); }
.workshop__plates .plate { border-radius: 3px; box-shadow: 0 20px 40px -20px rgba(30, 22, 16, .6); }
@media (max-width: 760px) {
  .workshop__plates { grid-template-columns: 1fr; }
  .plate--wide { aspect-ratio: 4 / 3; }
}

/* Artisans */
.artisans__grid {
  display: grid; gap: clamp(20px, 3vw, 32px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  max-width: 1200px; margin: 0 auto;
}
.artisan {
  background: var(--paper);
  border: 1px solid var(--paper-edge);
  padding: 14px 14px 1.4rem;
  box-shadow: 0 14px 30px -14px rgba(74, 51, 34, .4);
}
.artisan:nth-child(odd) { transform: rotate(-.6deg); }
.artisan:nth-child(even) { transform: rotate(.5deg); }
.artisan__portrait { aspect-ratio: 4 / 5; margin-bottom: 1.1rem; }
.plate--withheld {
  background:
    repeating-linear-gradient(45deg, transparent 0 10px, rgba(122, 82, 48, .07) 10px 11px),
    #d8c59c;
  box-shadow: inset 0 0 0 1px rgba(122, 82, 48, .35);
}
.plate--withheld::before {
  color: var(--leather);
  font-family: var(--f-type); font-style: normal;
  font-size: .8rem; letter-spacing: .1em; text-transform: uppercase;
  white-space: normal; width: 80%;
}
.artisan__portrait img { filter: sepia(.6) contrast(1.05) brightness(.95); }
.artisan h3, .artisan p, .artisan dl { padding: 0 .4rem; }
.artisan h3 { margin-bottom: .1em; }
.artisan__role { font-family: var(--f-type); font-size: .8rem; letter-spacing: .06em; color: var(--leather); }
.artisan p { font-size: .98rem; }
.artisan__stats {
  margin: 1rem 0 0; padding-top: .8rem !important;
  border-top: 1px dashed rgba(122, 82, 48, .45);
  display: grid; gap: .25rem;
  font-family: var(--f-type); font-size: .78rem;
}
.artisan__stats div { display: flex; justify-content: space-between; gap: 1rem; }
.artisan__stats dt { color: var(--leather); }
.artisan__stats dd { margin: 0; text-align: right; }

/* The Seal */
.sealsec {
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 50%, var(--amber-soft), transparent 60%),
    var(--paper);
  border-top: 1px solid var(--paper-edge);
  border-bottom: 1px solid var(--paper-edge);
}
.sealsec__inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; gap: clamp(32px, 6vw, 80px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  align-items: center;
}
@media (max-width: 820px) { .sealsec__inner { grid-template-columns: 1fr; } }
.sealsec__badge { position: relative; max-width: 380px; width: 100%; margin: 0 auto; aspect-ratio: 1; }
.sealsec__svg {
  width: 100%; height: 100%; color: var(--leather);
  --seal-fill: var(--parchment);
  filter: drop-shadow(0 12px 22px rgba(74, 51, 34, .35));
  animation: seal-turn 240s linear infinite;
}
@keyframes seal-turn { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sealsec__svg { animation: none; } }
.sealsec__wax {
  position: absolute; width: 30%; height: 30%; right: -2%; bottom: 2%;
  filter: drop-shadow(0 6px 8px rgba(30, 22, 16, .45));
  transform: rotate(-12deg);
}
.checklist { list-style: none; padding: 0; margin: 1.5rem 0; }
.checklist li { position: relative; padding-left: 2rem; margin-bottom: .55rem; }
.checklist li::before {
  content: "✓"; position: absolute; left: 0; top: -.05em;
  font-family: var(--f-display); font-weight: 900; color: var(--amber); font-size: 1.2em;
}
.fineprint {
  font-size: .72rem; line-height: 1.5;
  color: var(--leather);
  border-top: 1px solid rgba(122, 82, 48, .35);
  padding-top: 1rem; margin-top: 2rem;
  max-width: 60ch;
}

/* Provenance */
.provenance__inner {
  max-width: 1150px; margin: 0 auto;
  display: grid; gap: clamp(32px, 5vw, 72px);
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
}
@media (max-width: 860px) { .provenance__inner { grid-template-columns: 1fr; } }
.plate--crate { aspect-ratio: 16 / 9; border-radius: 3px; box-shadow: 0 24px 50px -22px rgba(30, 22, 16, .7); }
.plate--crate::before { content: none; }
.plate--crate img { z-index: 1; }

.crate {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem;
  background:
    linear-gradient(90deg, transparent 0 8%, rgba(30, 22, 16, .35) 8% 9%, transparent 9% 91%, rgba(30, 22, 16, .35) 91% 92%, transparent 92%),
    repeating-linear-gradient(180deg, transparent 0 calc(25% - 3px), rgba(30, 22, 16, .45) calc(25% - 3px) 25%),
    repeating-linear-gradient(180deg, rgba(255, 255, 255, .03) 0 2px, transparent 2px 7px),
    linear-gradient(135deg, #b48857, #8a6038 60%, #6e4a2a);
  color: rgba(30, 22, 16, .78);
  text-align: center;
}
.crate::after {
  content: ""; position: absolute; inset: 10% 6%;
  background:
    linear-gradient(32deg, transparent 49.2%, rgba(30, 22, 16, .3) 49.2% 50.8%, transparent 50.8%);
  pointer-events: none;
}
.crate__stamp {
  position: relative; z-index: 1;
  font-family: var(--f-stencil);
  font-size: clamp(1.1rem, 2.4vw, 1.8rem);
  letter-spacing: .12em;
  transform: rotate(-3deg);
  mix-blend-mode: multiply;
  opacity: .88;
}
.crate__stamp--big { font-size: clamp(2.6rem, 6vw, 4.6rem); color: rgba(139, 46, 31, .85); border: 4px solid rgba(139, 46, 31, .75); padding: 0 .35em; }
.crate__stamp--small { font-size: clamp(.7rem, 1.2vw, .9rem); transform: rotate(-2deg); }

.timeline { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.timeline li {
  position: relative; padding: 0 0 1.6rem 3.4rem;
  border-left: 1px dashed rgba(122, 82, 48, .5);
  margin-left: 1.1rem;
}
.timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline li::before {
  counter-increment: step;
  content: counter(step, upper-roman);
  position: absolute; left: -1.15rem; top: -.2rem;
  width: 2.3rem; height: 2.3rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--walnut); color: var(--parchment);
  font-family: var(--f-display); font-weight: 700; font-size: .85rem;
  box-shadow: 0 0 0 4px var(--parchment);
}
.timeline h3 { font-size: 1.3rem; margin-bottom: .2em; }
.timeline p { font-size: 1rem; margin: 0; }

.provenance__card {
  max-width: 620px; margin: clamp(48px, 7vw, 88px) auto 0;
  background: #f5ecd6;
  border: 1px solid var(--paper-edge);
  padding: 1.6rem 1.8rem;
  font-family: var(--f-type);
  font-size: .85rem;
  box-shadow: 0 16px 30px -18px rgba(74, 51, 34, .5);
  transform: rotate(-1deg);
  background-image: repeating-linear-gradient(180deg, transparent 0 1.85rem, rgba(122, 82, 48, .15) 1.85rem calc(1.85rem + 1px));
}
.provenance__card-title { text-transform: uppercase; letter-spacing: .14em; color: var(--wax); margin-bottom: .8rem; }
.provenance__card dl { margin: 0; display: grid; gap: .25rem; }
.provenance__card div { display: grid; grid-template-columns: 9.5em 1fr; gap: 1rem; line-height: 1.6rem; }
.provenance__card dt { color: var(--leather); }
.provenance__card dd { margin: 0; }
@media (max-width: 480px) { .provenance__card div { grid-template-columns: 1fr; gap: 0; } }

/* Order */
.order { text-align: center; }
.order__inner {
  max-width: 680px; margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--paper-edge);
  padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3.5rem);
  position: relative;
  box-shadow: 0 24px 50px -24px rgba(74, 51, 34, .55);
}
.order__inner::after {
  content: ""; position: absolute; inset: 10px;
  border: 1px solid rgba(122, 82, 48, .3); pointer-events: none;
}
.order__wax { width: 84px; height: 84px; margin: -5.6rem auto 1rem; display: block; filter: drop-shadow(0 6px 8px rgba(30, 22, 16, .4)); }
.order__note { font-style: italic; color: var(--leather); }
.order .btn { position: relative; z-index: 1; margin-top: .8rem; }
.order__status { font-family: var(--f-type); font-size: .9rem; color: var(--leather); min-height: 1.6em; margin-top: 1.2rem; }

/* The other end of the timeline: Vitund's own look, breaking into 1889 */
.elsewhere {
  max-width: 680px; margin: 2.5rem auto 0;
  text-align: left;
  background: #060B14;
  border: 1px solid rgba(0, 194, 255, .3);
  border-radius: 12px;
  padding: 1.8rem clamp(1.4rem, 4vw, 2.4rem);
  color: #c9d4e3;
  font-family: Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  position: relative; z-index: 60; /* above the sepia atmosphere */
  box-shadow: 0 0 0 1px rgba(106, 13, 173, .25), 0 24px 60px -20px rgba(0, 194, 255, .35);
  opacity: 0; transform: translateY(12px);
  transition: opacity 1.4s ease, transform 1.4s ease;
}
.elsewhere.is-shown { opacity: 1; transform: none; }
.elsewhere::before {
  content: ""; position: absolute; left: 12px; right: 12px; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, #00C2FF 30%, #6A0DAD 60%, #00E5B0 85%, transparent);
}
.elsewhere__kicker { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .8rem; color: #00C2FF; margin-bottom: .6rem; }
.elsewhere__title { font-family: Inter, system-ui, sans-serif; font-weight: 600; font-size: 1.5rem; color: #fff; letter-spacing: -.01em; margin-bottom: .6rem; }
.elsewhere__body { font-size: .95rem; line-height: 1.6; margin-bottom: 1.4rem; }
.elsewhere__btn {
  display: inline-block;
  font-weight: 600; font-size: .95rem;
  color: #060B14; background: #00C2FF;
  padding: .7em 1.3em; border-radius: 8px;
  text-decoration: none;
  transition: background-color .3s ease, transform .3s ease;
}
.elsewhere__btn:hover { color: #060B14; background: #00E5B0; transform: translateY(-1px); }
.elsewhere__btn:focus-visible { outline: 2px solid #00E5B0; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .elsewhere { transition: none; } }

/* ---------- Footer ---------- */

.footer {
  background: var(--ink);
  color: rgba(239, 227, 200, .78);
  text-align: center;
  padding: clamp(56px, 8vw, 96px) var(--gutter) 40px;
  position: relative;
}
.footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px;
  border-top: 3px double rgba(201, 138, 43, .6);
}
.footer__inner { max-width: 720px; margin: 0 auto; }
.footer__emblem { display: block; width: 130px; height: auto; margin: 0 auto 1.4rem; opacity: .9; }
.footer__domain { font-family: var(--f-display); font-size: 1.6rem; font-weight: 700; color: var(--parchment); margin-bottom: .2em; }
.footer__parent { font-style: italic; margin-bottom: .4em; }
.footer__link { color: var(--amber); font-family: var(--f-display); font-style: italic; }
.footer__link:hover { color: #e3a94c; }
.footer__fine {
  margin: 2.4rem auto 1rem; max-width: 62ch;
  font-size: .7rem; line-height: 1.55; color: rgba(239, 227, 200, .5);
}
.footer__copy { font-family: var(--f-type); font-size: .72rem; letter-spacing: .08em; color: rgba(239, 227, 200, .45); margin: 0; }

/* ---------- Vitund strip: 1889 → now ---------- */

.vitund {
  background: #060B14;
  border-top: 1px solid rgba(0, 194, 255, .25);
  position: relative;
  z-index: 60; /* sits above the sepia atmosphere: a different century */
}
.vitund::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px;
  background: linear-gradient(90deg, transparent, #00C2FF 30%, #6A0DAD 60%, #00E5B0 85%, transparent);
}
.vitund__inner {
  display: flex; align-items: center; justify-content: center; gap: .7rem; flex-wrap: wrap;
  padding: 14px var(--gutter);
  text-decoration: none;
  font-family: Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.vitund__logo { width: 22px; height: 22px; }
.vitund__name { color: #fff; font-weight: 600; font-size: .9rem; letter-spacing: .02em; }
.vitund__tag { font-family: "JetBrains Mono", ui-monospace, monospace; font-size: .75rem; color: #00C2FF; opacity: .8; }
.vitund__inner:hover .vitund__tag { color: #00E5B0; }

/* ---------- Reveal ---------- */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity var(--slow), transform var(--slow); }
.reveal.is-visible { opacity: 1; transform: none; }
.artisan.reveal.is-visible:nth-child(odd) { transform: rotate(-.6deg); }
.artisan.reveal.is-visible:nth-child(even) { transform: rotate(.5deg); }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .plate img, .hero__plate img { transition: none; animation: none; transform: none; }
}
