/* ==========================================================================
   DOCUMENTS — documents.html. The breadcrumb, section heads and buttons come
   from css/inner.css and css/components.css.

   §D1 the hero: words, and "on the record" — the office wall in elevation,
       three framed certificates under picture lights, the gold seal stamped
   §D2 the documents: one card per paper, its first page pulled from a sleeve
   §D3 certified copies · narrow · motion
   ========================================================================== */

/* --- §D1  The hero ---------------------------------------------------------------------- */
.dh {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: max(680px, 100vh);
  min-height: max(680px, 100svh);
  background: #071324;
  color: var(--c-ivory);
}
.dh__sky {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(46% 40% at 70% 44%, rgb(208 173 103 / .12), transparent 70%),
    radial-gradient(70% 60% at 72% 40%, #12294a 0%, transparent 70%),
    linear-gradient(180deg, #08101f 0%, #0b1a30 55%, #071324 100%);
}
.dh__sky::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(208 173 103 / .06) 1px, transparent 1px),
    linear-gradient(90deg, rgb(208 173 103 / .06) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(70% 70% at 24% 46%, #000, transparent 78%);
  mask-image: radial-gradient(70% 70% at 24% 46%, #000, transparent 78%);
}
.dh::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgb(208 173 103 / .55) 30%, rgb(208 173 103 / .55) 70%, transparent);
}
.dh__in {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  align-items: center;
  gap: var(--sp-lg) clamp(24px, 2.6vw, 48px);
  min-height: inherit;
  padding-block: clamp(120px, 15svh, 170px) clamp(56px, 8svh, 96px);
}
.dh__copy { display: grid; justify-items: start; gap: var(--sp-sm); padding-inline-start: clamp(0px, 3vw, 56px); }
.dh .crumbs__list { gap: 10px; color: var(--c-mist); }
.dh .crumbs__list li + li::before { content: ""; display: inline-block; width: 18px; height: 1px; margin-inline-end: 10px; vertical-align: middle; background: var(--c-gold); }
.dh .crumbs__link { color: var(--c-ivory); }
.dh .crumbs__link:hover { color: var(--c-gold); }
.dh [aria-current="page"] { color: var(--c-gold); }
.dh__h {
  max-width: 12ch;
  font-family: var(--font-display);
  font-size: clamp(48px, min(6vw, 11svh), 108px);
  font-weight: var(--fw-medium);
  line-height: .98;
  letter-spacing: -.02em;
  text-wrap: balance;
  color: var(--c-ivory);
}
.dh__h em { font-style: italic; color: var(--c-gold); }
.dh__rule { width: min(300px, 60%); height: 1px; background: linear-gradient(90deg, var(--c-gold), transparent); box-shadow: 0 0 14px rgb(208 173 103 / .5); transform-origin: left center; }
.dh__lead { max-width: 40ch; font-size: var(--fs-lead); line-height: 1.6; color: var(--c-mist); }
.dh__actions { display: flex; flex-wrap: wrap; gap: var(--sp-sm); margin-block-start: var(--sp-2xs); }
.dh__actions .btn-ghost svg.dl { width: 14px; height: 14px; }

/* the three authorities, one line each */
.dh__marks { display: flex; flex-direction: column; gap: 10px; margin-block-start: var(--sp-2xs); }
.dh__mark { display: inline-flex; align-items: center; gap: 8px; font-size: 10.5px; font-weight: var(--fw-bold); letter-spacing: .14em; text-transform: uppercase; color: var(--c-ivory); }
.dh__mark svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--c-gold); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.dh__mark span { color: var(--c-mist); font-weight: var(--fw-semi); }

/* the drawing */
.dh__art { min-width: 0; }
.dw {
  position: relative;
  width: min(100%, calc(66svh * 1000 / 600));
  margin-inline: auto;
  aspect-ratio: 1000 / 600;
}
.dw__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dw__svg :is(path, circle, ellipse, rect) { vector-effect: non-scaling-stroke; }
.dw-room { opacity: .9; }
.dw-wall { fill: none; stroke: #ece4d2; stroke-opacity: .12; stroke-width: 1; }
#dw-st path { fill: #ece4d2; fill-opacity: .08; }
.dw-pot { fill: #cfc6b4; }
.dw-tl { fill: none; stroke-linecap: round; }
.dw-tree--front .dw-tl { stroke: #ece4d2; stroke-opacity: .84; }
.dw-tree--back .dw-tl { stroke: var(--c-mist); stroke-opacity: .3; }
.dw-tree--sprig .dw-tl { stroke: #ece4d2; stroke-opacity: .7; }
.dw-tl0 { stroke-width: 4.6; } .dw-tl1 { stroke-width: 2.9; } .dw-tl2 { stroke-width: 1.9; } .dw-tl3 { stroke-width: 1.3; }
.dw-tl4 { stroke-width: .95; } .dw-tl5 { stroke-width: .7; } .dw-tl6 { stroke-width: .5; } .dw-tl7 { stroke-width: .38; }
.dw-tree--sprig .dw-tl0 { stroke-width: 1.6; } .dw-tree--sprig .dw-tl1 { stroke-width: 1.2; } .dw-tree--sprig .dw-tl2 { stroke-width: .9; }
.dw-tree { transform-box: view-box; }

/* a frame: its light cone on the wall, shadow, mat, paper, the writing, then the frame itself */
.dw-cone { mix-blend-mode: screen; }
.dw-fshadow { fill: #02070f; fill-opacity: .42; }
.dw-mat { fill: #0f2036; }
.dw-paper { fill: #ddd4c0; }
.dw-veil { fill: #0c1a2c; fill-opacity: .88; }
.dw-border { fill: none; stroke: #7f5f28; stroke-width: .8; stroke-opacity: .85; }
.dw-ink { fill: none; stroke: #173e62; stroke-width: 1; stroke-opacity: .72; stroke-linecap: round; }
.dw-ink--head { stroke-width: 1.4; stroke-opacity: .8; }
.dw-ink--sign { stroke-width: .9; stroke-opacity: .85; }
.dw-qr { fill: #173e62; fill-opacity: .78; }
.dw-fr { fill: none; stroke: #ece4d2; stroke-width: 1.7; stroke-opacity: .92; }
.dw-mould { fill: none; stroke: #ece4d2; stroke-width: .8; stroke-opacity: .34; }
.dw-lamp { fill: none; stroke: var(--c-gold); stroke-width: 2.6; stroke-linecap: round; }
.dw-bulb { fill: none; stroke: #fff3d0; stroke-width: 1.2; stroke-linecap: round; filter: drop-shadow(0 0 4px rgb(255 220 150 / .95)); }
.dw-tag path { fill: none; stroke: var(--c-gold); stroke-width: 1; }
.dw-tag text { fill: var(--c-gold); font: 600 11px var(--font-body); letter-spacing: .22em; text-anchor: middle; }

/* the seal */
.dw-seal__tail { fill: #b48f4b; }
.dw-seal__body { fill: var(--c-gold); stroke: #9c7b3e; stroke-width: .8; }
.dw-seal__ring { fill: none; stroke: #7f5f28; stroke-width: .9; }
.dw-seal__mark { fill: none; stroke: #6a4f20; stroke-width: 1.3; stroke-linejoin: round; }
.dw-seal__glint { opacity: 0; }
.dw-seal { filter: drop-shadow(0 2px 3px rgb(2 7 15 / .45)); }
.dw-ripple { fill: none; stroke: var(--c-gold); stroke-width: 1.2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.dw-mote { fill: #fff1cf; opacity: 0; }

/* the room's furniture */
.dw-floorsh { fill: #02070f; fill-opacity: .5; }
.dw-cred { fill: #0f2238; stroke: #ece4d2; stroke-opacity: .5; stroke-width: .8; }
.dw-slab { fill: #d2c9b7; }
.dw-cred-ln { fill: none; stroke: #ece4d2; stroke-opacity: .38; stroke-width: .8; }
.dw-books { fill: #173e62; stroke: #ece4d2; stroke-opacity: .55; stroke-width: .7; }
.dw-vase { fill: #d2c9b7; }
.dw-ground { fill: none; stroke: var(--c-gold); stroke-width: 1.2; filter: drop-shadow(0 0 6px rgb(208 173 103 / .6)); }

/* depth on a fine pointer (js/documents.js sets --mx / --my on .dw) */
.dw-far { transform: translate(calc(var(--mx, 0) * 4px), calc(var(--my, 0) * 2px)); }
.dw-mid { transform: translate(calc(var(--mx, 0) * -4px), calc(var(--my, 0) * -2px)); }
.dw-near { transform: translate(calc(var(--mx, 0) * -11px), calc(var(--my, 0) * -4px)); }

/* --- arrival: the words; then the wall, the frames, the lights, the papers, the seal -------- */
.js:not(.page-in) .dh [data-in] { opacity: 0; }
.page-in .dh [data-in] { animation: phero-rise 1.1s var(--ease-css) both; }
.page-in .dh [data-in="2"] { animation-delay: .12s; }
.page-in .dh [data-in="3"] { animation-delay: .24s; }
.page-in .dh [data-in="4"] { animation-delay: .4s; }
.page-in .dh [data-in="5"] { animation-delay: .54s; }
.page-in .dh [data-in="6"] { animation-delay: .68s; }
.js:not(.page-in) .dh__rule { transform: scaleX(0); }
.page-in .dh__rule { animation: phero-line 1.4s cubic-bezier(.65, 0, .35, 1) .34s both; }

/* each frame's light comes on at --t: the centre first, then left, then right */
.dw-frame { --t: calc(1.8s + var(--o) * .5s); }
.dw .dw-d { stroke-dasharray: 1 1; }
.js:not(.page-in) .dw .dw-d { stroke-dashoffset: 1; }
.js:not(.page-in) :is(.dw-room, .dw-wall, .dw-plaster, .dw-pot, .dw-fshadow, .dw-mat, .dw-paper, .dw-veil, .dw-lamp, .dw-bulb, .dw-cone, .dw-warm, .dw-qr, .dw-tag, .dw-seal, .dw-near > :not(.dw-tree)) { opacity: 0; }
.page-in :is(.dw-room, .dw-wall, .dw-plaster) { animation: dw-fade 1.6s ease-out .3s both; }
.page-in .dw-ground { animation: dw-draw 1.1s cubic-bezier(.65, 0, .35, 1) .2s both; }
.page-in .dw-pot { animation: dw-fade .8s ease-out .8s both; }
.page-in .dw-near > :not(.dw-tree) { animation: dw-fade .9s ease-out 1s both; }
/* the frames, drawn */
.page-in :is(.dw-fshadow, .dw-mat, .dw-paper, .dw-veil) { animation: dw-fade .8s ease-out calc(.7s + var(--o) * .12s) both; }
.page-in .dw-fr { animation: dw-draw 1.1s cubic-bezier(.6, 0, .3, 1) calc(.5s + var(--o) * .12s) both; }
.page-in .dw-mould { animation: dw-draw 1.1s cubic-bezier(.6, 0, .3, 1) calc(.75s + var(--o) * .12s) both; }
.page-in .dw-lamp { animation: dw-fade .6s ease-out 1.3s both; }
/* lights on — a short flicker, then the warm wash, and the dark veil lifts off the paper */
.page-in .dw-bulb { animation: dw-flick .5s steps(1, end) var(--t) both; }
.page-in .dw-cone { animation: dw-flick-soft .7s ease-out var(--t) both; }
.page-in .dw-warm { animation: dw-fade .8s ease-out calc(var(--t) + .1s) both; }
.page-in .dw-veil { animation: dw-fade .8s ease-out calc(.7s + var(--o) * .12s) both, dw-lift .9s ease-out calc(var(--t) + .1s) forwards; }
/* the paper writes itself */
.page-in .dw-border { animation: dw-draw .8s ease-out calc(var(--t) + .25s) both; }
.page-in .dw-ink--head { animation: dw-draw .8s ease-out calc(var(--t) + .45s) both; }
.page-in .dw-ink--text { animation: dw-draw 1.1s linear calc(var(--t) + .7s) both; }
.page-in .dw-qr { animation: dw-fade .6s ease-out calc(var(--t) + 1s) both; }
.page-in .dw-ink--sign { animation: dw-draw .9s ease-in-out calc(var(--t) + 1.4s) both; }
.page-in .dw-tag { animation: dw-fade 1s ease-out calc(var(--t) + 1s) both; }
/* the seal, stamped, then a glint every few seconds */
.page-in .dw-seal { animation: dw-stamp .55s cubic-bezier(.3, 1.4, .5, 1) 3.9s both; }
.page-in .dw-ripple { animation: dw-ripple 1.1s ease-out 4.15s forwards; }
.page-in .dw-seal__glint { animation: dw-glint 7s ease-in-out 5.6s infinite; }
/* dust in the light */
.page-in .dw-mote { animation: dw-mote 7s ease-in-out calc(1.8s + var(--o) * .5s + 1s + var(--m)) infinite; }
/* the trees */
.page-in .dw-tree--back .dw-tl { animation: dw-draw .5s ease-out calc(1s + var(--l) * .18s) both; }
.page-in .dw-tree--front .dw-tl { animation: dw-draw .5s ease-out calc(1.3s + var(--l) * .18s) both; }
.page-in .dw-tree--sprig .dw-tl { animation: dw-draw .45s ease-out calc(2.4s + var(--l) * .15s) both; }
.page-in .dw-tree--front { animation: dw-sway 7s ease-in-out 6s infinite alternate; }
.page-in .dw-tree--back { animation: dw-sway-s 9s ease-in-out 6.4s infinite alternate; }
@keyframes dw-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes dw-fade { from { opacity: 0; } }
@keyframes dw-lift { to { opacity: 0; } }
@keyframes dw-flick { 0% { opacity: 0; } 20% { opacity: 1; } 40% { opacity: .2; } 60%, 100% { opacity: 1; } }
@keyframes dw-flick-soft { 0% { opacity: 0; } 20% { opacity: .8; } 40% { opacity: .15; } 100% { opacity: 1; } }
@keyframes dw-stamp { from { opacity: 0; transform: scale(1.9) rotate(-14deg); } 70% { opacity: 1; } to { opacity: 1; transform: none; } }
@keyframes dw-ripple { from { opacity: .9; transform: scale(.8); } to { opacity: 0; transform: scale(2.3); } }
@keyframes dw-glint { 0%, 78%, 100% { opacity: 0; } 86% { opacity: .9; } }
@keyframes dw-mote { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: .9; } 70% { opacity: .6; } 100% { opacity: 0; transform: translateY(-16px); } }
@keyframes dw-sway { from { transform: rotate(-.7deg); } to { transform: rotate(.7deg); } }
@keyframes dw-sway-s { from { transform: rotate(.5deg); } to { transform: rotate(-.5deg); } }

/* --- §D2  The documents -------------------------------------------------------------------- */
.dd { position: relative; background: var(--c-ivory); color: var(--c-ink); padding-block: var(--section-gap); scroll-margin-top: 40px; }
.dd__head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: end;
  gap: var(--sp-md) clamp(40px, 6vw, 112px);
  margin-block-end: var(--sp-xl);
}
.dd__head > div { display: grid; gap: var(--sp-sm); }
.dd__head .sec-h { max-width: 12ch; }
.dd__note { max-width: 42ch; font-size: var(--fs-text); line-height: 1.75; color: var(--c-slate); }

.dd__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2vw, 32px); }
.doc { display: flex; }
.doc__in {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgb(23 62 98 / .1);
  border-radius: 24px;
  background: #fbf8f1;
  box-shadow: 0 2px 6px rgb(var(--scrim) / .05), 0 40px 80px -48px rgb(var(--scrim) / .45);
  transition: transform .5s var(--ease-css), box-shadow .5s var(--ease-css);
}
.doc__in:hover { transform: translateY(-6px); box-shadow: 0 4px 10px rgb(var(--scrim) / .06), 0 50px 90px -46px rgb(var(--scrim) / .55); }

/* the sleeve: a drafting mat with the first page pulled half out of it */
.doc__sheet {
  position: relative;
  display: grid;
  justify-items: center;
  align-items: start;
  aspect-ratio: 10 / 8;
  overflow: hidden;
  padding-block-start: clamp(28px, 2.6vw, 40px);
  background:
    radial-gradient(60% 70% at 50% 30%, rgb(255 255 255 / .55), transparent 70%),
    linear-gradient(rgb(127 95 40 / .07) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(90deg, rgb(127 95 40 / .07) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--c-sand);
}
.doc__sheet::after {                          /* the gold seam where the sleeve meets the card */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--c-gold) 20%, var(--c-gold) 80%, transparent);
}
.doc__paper {
  position: relative;
  width: 62%;
  aspect-ratio: 840 / 1189;
  background: #fff;
  box-shadow: 0 1px 2px rgb(var(--scrim) / .12), 0 22px 44px -18px rgb(var(--scrim) / .45);
  transform: translateY(4%) rotate(-1.6deg);
  transition: transform .7s var(--ease-css);
}
.doc__paper img { display: block; width: 100%; height: 100%; object-fit: cover; }
.doc__paper--stack::before,
.doc__paper--stack::after {                   /* more pages behind the first */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #fdfbf6;
  box-shadow: 0 1px 2px rgb(var(--scrim) / .1);
}
.doc__paper--stack::before { transform: translate(7px, -6px) rotate(2.4deg); }
.doc__paper--stack::after { transform: translate(13px, -10px) rotate(4.6deg); background: #f6f1e6; }
.doc__in:hover .doc__paper,
.doc__sheet:focus-visible .doc__paper { transform: translateY(-1%) rotate(0deg); }
.doc__chip {
  position: absolute;
  top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgb(23 62 98 / .14);
  border-radius: var(--r-pill);
  background: rgb(251 248 241 / .92);
  font-size: 10px;
  font-weight: var(--fw-bold);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--c-gold-ink);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.doc__chip--pages { left: 14px; }
.doc__chip--view { right: 14px; color: var(--c-navy); transition: background-color var(--dur-fast) var(--ease-css), color var(--dur-fast) var(--ease-css), border-color var(--dur-fast) var(--ease-css); }
.doc__chip svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.doc__in:hover .doc__chip--view,
.doc__sheet:focus-visible .doc__chip--view { border-color: var(--c-navy); background: var(--c-navy); color: var(--c-ivory); }
.doc__sheet:focus-visible { outline: 2px solid var(--c-gold); outline-offset: -4px; }

/* the record */
.doc__body { display: flex; flex: 1; flex-direction: column; gap: 14px; padding: clamp(24px, 2.2vw, 32px); }
.doc__k { display: flex; align-items: center; gap: 12px; font-size: 10.5px; font-weight: var(--fw-bold); letter-spacing: .16em; text-transform: uppercase; color: var(--c-gold-ink); }
.doc__n { flex: none; white-space: nowrap; font-family: var(--font-display); font-size: 20px; font-style: italic; font-weight: var(--fw-medium); letter-spacing: 0; color: var(--c-gold-ink); }
.doc__k::before { content: none; }
.doc__n::after { content: ""; display: inline-block; width: 22px; height: 1px; margin-inline-start: 12px; vertical-align: middle; background: currentColor; opacity: .6; }
.doc__h { font-family: var(--font-display); font-size: clamp(28px, 2.3vw, 38px); font-weight: var(--fw-medium); line-height: 1.04; letter-spacing: -.01em; color: var(--c-navy); }
.doc__h em { font-style: italic; color: var(--c-gold-ink); }
.doc__p { font-size: var(--fs-small); line-height: 1.65; color: var(--c-slate); }
.doc__facts { display: grid; margin-block-start: 4px; border-top: 1px solid var(--rule); }
.doc__fact { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 48px; padding-block: 8px; border-bottom: 1px solid var(--rule); }
.doc__fact dt { flex: none; font-size: 10.5px; font-weight: var(--fw-bold); letter-spacing: .14em; text-transform: uppercase; color: var(--c-slate); }
.doc__fact dd { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 14px; font-weight: var(--fw-semi); font-variant-numeric: lining-nums tabular-nums; text-align: end; color: var(--c-navy); overflow-wrap: anywhere; }
.doc__copy {
  position: relative;
  display: grid;
  flex: none;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgb(23 62 98 / .14);
  border-radius: 50%;
  color: var(--c-gold-ink);
  transition: background-color var(--dur-fast) var(--ease-css), color var(--dur-fast) var(--ease-css), border-color var(--dur-fast) var(--ease-css);
}
.doc__copy svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.doc__copy .ok { display: none; }
.doc__copy:hover,
.doc__copy:focus-visible { border-color: var(--c-navy); background: var(--c-navy); color: var(--c-ivory); }
.doc__copy.is-copied { border-color: var(--c-gold); background: var(--c-gold); color: var(--c-navy); }
.doc__copy.is-copied .ok { display: block; }
.doc__copy.is-copied .cp { display: none; }
.doc__copy::after {                            /* "Copied", for a moment */
  content: "Copied";
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  padding: 5px 9px;
  border-radius: 6px;
  background: var(--c-navy);
  font-size: 10px;
  font-weight: var(--fw-bold);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-ivory);
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, 4px);
  pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.doc__copy.is-copied::after { opacity: 1; transform: translate(-50%, 0); }

.doc__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 18px; margin-block-start: auto; padding-block-start: 8px; }
.doc__file { display: inline-flex; align-items: center; gap: 9px; font-size: 10.5px; font-weight: var(--fw-bold); letter-spacing: .14em; text-transform: uppercase; color: var(--c-gold-ink); }
.doc__file svg { width: 18px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linejoin: round; }
.doc__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.doc__actions .btn-line { min-height: 46px; padding-inline: 20px; }
.doc__actions .btn-navy { min-height: 46px; padding-inline: 22px 18px; gap: 12px; }
.doc__actions .btn-navy svg { width: 14px; height: 14px; }
.btn-navy svg.dl,
.btn-ghost svg.dl { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: translate var(--dur-fast) var(--ease-css); }
.btn-navy:hover svg.dl,
.btn-ghost:hover svg.dl { translate: 0 2px; }

/* --- §D3  Certified copies --------------------------------------------------------------------- */
.dv { position: relative; background: var(--c-sand); color: var(--c-ink); }
.dv__in {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--sp-md) clamp(28px, 4vw, 72px);
  padding-block: var(--sp-xl);
}
.dv__seal { width: clamp(72px, 7vw, 104px); height: auto; }
.dv__seal .b { fill: var(--c-gold); stroke: #9c7b3e; stroke-width: 1; }
.dv__seal .r { fill: none; stroke: #7f5f28; stroke-width: 1.2; }
.dv__seal .m { fill: none; stroke: #6a4f20; stroke-width: 1.8; stroke-linejoin: round; }
.dv__copy { display: grid; gap: 10px; }
.dv__h { font-family: var(--font-display); font-size: clamp(32px, 3.2vw, 52px); font-weight: var(--fw-medium); line-height: 1.04; letter-spacing: -.015em; color: var(--c-navy); }
.dv__h em { font-style: italic; color: var(--c-gold-ink); }
.dv__p { max-width: 56ch; font-size: var(--fs-text); line-height: 1.7; color: var(--c-slate); }
.dv__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

/* --- narrow ------------------------------------------------------------------------------------ */
@media (max-width: 1099px) {
  .dd__list { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .doc__in { flex-direction: row; }
  .doc__sheet { flex: 0 0 38%; aspect-ratio: auto; min-height: 340px; }
  .doc__paper { width: 70%; }
  .dv__in { grid-template-columns: auto minmax(0, 1fr); }
  .dv__actions { grid-column: 1 / -1; justify-content: flex-start; }
}

@media (max-width: 959px) {
  .dh { min-height: 0; }
  .dh__in { grid-template-columns: minmax(0, 1fr); padding-block: 120px 40px; gap: clamp(28px, 6vw, 48px); }
  .dh__copy { padding-inline-start: 0; }
  .dw { width: 100vw; margin-inline: calc(50% - 50vw); }
  .dd__head { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .dd__head .sec-h { max-width: 16ch; }
}

@media (max-width: 639px) {
  .dh__in { padding-block: 104px 28px; }
  .dh__actions { flex-direction: column; align-items: stretch; width: 100%; }
  .dh__actions > a { justify-content: space-between; }
  .dh__marks { flex-direction: column; gap: 10px; }
  .dw-tag { display: none; }
  .doc__in { flex-direction: column; }
  .doc__in:hover { transform: none; }
  .doc__sheet { flex: none; aspect-ratio: 10 / 8.4; min-height: 0; }
  .doc__paper { width: 60%; }
  .doc__body { padding: 22px 20px 24px; }
  .doc__actions { width: 100%; }
  .doc__actions > a { flex: 1; justify-content: center; }
  .dv__in { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .dv__actions { flex-direction: column; align-items: stretch; width: 100%; }
  .dv__actions > a { justify-content: space-between; }
}

/* --- motion reduced -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .page-in .dh [data-in],
  .page-in .dh__rule,
  .page-in .dw *,
  .page-in .dw-tree { animation: none !important; }
  .page-in .dw-veil { opacity: 0; }
  .js:not(.page-in) .dh [data-in],
  .js:not(.page-in) :is(.dw-room, .dw-wall, .dw-plaster, .dw-pot, .dw-fshadow, .dw-mat, .dw-paper, .dw-lamp, .dw-bulb, .dw-cone, .dw-warm, .dw-qr, .dw-tag, .dw-seal, .dw-near > :not(.dw-tree)) { opacity: 1; }
  .js:not(.page-in) .dw-veil { opacity: 0; }
  .js:not(.page-in) .dw .dw-d { stroke-dashoffset: 0; }
  .js:not(.page-in) .dh__rule { transform: none; }
  .doc__in, .doc__paper { transition: none; }
}
