/* ==========================================================================
   /lordship — Lord Lovemore Chanengeta of Hougun Manor
   Heraldic night palette: ink, parchment, antique gold, seal claret.
   ========================================================================== */
.ld {
    --ld-ink: #0e0c0a;
    --ld-ink-2: #17140f;
    --ld-ink-3: #221d16;
    --ld-gold: #d9b26a;
    --ld-gold-2: #f1d6a0;
    --ld-gold-dim: rgba(217, 178, 106, .22);
    --ld-parch: #f6efe2;
    --ld-text: #ece5d8;
    --ld-mute: #b3aa9a;
    --ld-claret: #6e2a35;
    --ld-serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
    --ld-r: 18px;
    background: var(--ld-ink);
    color: var(--ld-text);
    overflow: hidden;
}
.ld *, .ld *::before, .ld *::after { box-sizing: border-box; }
.ld a { color: var(--ld-gold-2); }
.ld-wrap { width: min(1180px, 100% - 2.5rem); margin-inline: auto; }
.ld-section { position: relative; padding: clamp(4rem, 9vw, 7.5rem) 0; }
.ld-section + .ld-section { border-top: 1px solid rgba(217, 178, 106, .12); }
.ld-eyebrow {
    display: inline-flex; align-items: center; gap: .6rem;
    font: 600 .78rem/1 var(--font-primary); letter-spacing: .22em; text-transform: uppercase;
    color: var(--ld-gold);
}
.ld-eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.ld-h2 {
    font-family: var(--ld-serif); font-weight: 600; font-size: clamp(2.1rem, 1.4rem + 3vw, 3.6rem);
    line-height: 1.05; letter-spacing: -.01em; margin: .9rem 0 1rem; color: var(--ld-parch);
}
.ld-h2 em { font-style: italic; color: var(--ld-gold-2); }
.ld-lede { color: var(--ld-mute); font-size: 1.08rem; line-height: 1.75; max-width: 62ch; }
.ld-btn {
    display: inline-flex; align-items: center; gap: .55rem; cursor: pointer;
    padding: .9rem 1.4rem; border-radius: 999px; border: 1px solid var(--ld-gold);
    font: 600 .95rem/1 var(--font-primary); text-decoration: none;
    background: linear-gradient(135deg, var(--ld-gold-2), var(--ld-gold)); color: #1b140a !important;
    transition: transform .25s, box-shadow .25s;
}
.ld-btn:hover, .ld-btn:focus-visible { transform: translateY(-2px); box-shadow: 0 10px 30px -10px rgba(217, 178, 106, .7); }
.ld-btn--ghost { background: transparent; color: var(--ld-gold-2) !important; }
.ld-btn:focus-visible, .ld button:focus-visible, .ld select:focus-visible, .ld input:focus-visible {
    outline: 2px solid var(--ld-gold-2); outline-offset: 3px;
}
.ld-reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); }
.ld-reveal.is-in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.ld-hero { position: relative; min-height: min(100svh, 920px); display: grid; place-items: center; padding: 8rem 0 5rem; text-align: center; isolation: isolate; }
.ld-hero__sky { position: absolute; inset: 0; z-index: -2;
    background:
        radial-gradient(60% 50% at 50% 30%, rgba(217, 178, 106, .20), transparent 70%),
        radial-gradient(40% 40% at 85% 90%, rgba(110, 42, 53, .35), transparent 70%),
        linear-gradient(180deg, #0b0a08, var(--ld-ink) 60%);
}
.ld-hero__motes { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.ld-crest {
    width: clamp(180px, 26vw, 300px); aspect-ratio: 604 / 640; margin: 0 auto 1.4rem;
    position: relative; transform-style: preserve-3d; will-change: transform;
}
.ld-crest img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .6)) sepia(.25) saturate(1.4) brightness(1.25); }
.ld-crest::after { /* travelling sheen across the gilt */
    content: ""; position: absolute; inset: 0; pointer-events: none;
    -webkit-mask: url(/assets/images/lordship/crest.webp) center / contain no-repeat;
            mask: url(/assets/images/lordship/crest.webp) center / contain no-repeat;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 240, 200, .75) 50%, transparent 65%) -150% 0 / 250% 100% no-repeat;
    animation: ld-sheen 5.5s ease-in-out 1.2s infinite;
}
@keyframes ld-sheen { 0%, 55% { background-position: -150% 0; } 100% { background-position: 150% 0; } }
.ld-hero__kicker { font: 600 .8rem/1 var(--font-primary); letter-spacing: .32em; text-transform: uppercase; color: var(--ld-gold); }
.ld-hero__title {
    font-family: var(--ld-serif); font-weight: 600; color: var(--ld-parch);
    font-size: clamp(2.8rem, 1.5rem + 6vw, 6.2rem); line-height: .98; letter-spacing: -.015em; margin: 1rem 0 .4rem;
}
.ld-hero__title span { display: block; }
.ld-hero__of { font-family: var(--ld-serif); font-style: italic; font-size: clamp(1.5rem, 1rem + 2vw, 2.4rem); color: var(--ld-gold-2); }
.ld-hero__rule { width: 120px; height: 1px; margin: 1.6rem auto; background: linear-gradient(90deg, transparent, var(--ld-gold), transparent); }
.ld-hero__sub { color: var(--ld-mute); max-width: 56ch; margin: 0 auto 2rem; line-height: 1.7; }
.ld-hero__cta { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.ld-hero__facts { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.6rem; margin-top: 2.6rem; color: var(--ld-mute); font-size: .88rem; list-style: none; padding: 0; }
.ld-hero__facts b { color: var(--ld-gold-2); font-weight: 600; }
.ld-scrollcue { position: absolute; bottom: 1.6rem; left: 50%; translate: -50% 0; width: 22px; height: 36px; border: 1.5px solid var(--ld-gold-dim); border-radius: 12px; }
.ld-scrollcue::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--ld-gold); animation: ld-cue 1.8s infinite; }
@keyframes ld-cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Seal + certificate ---------- */
.ld-deed { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 960px) { .ld-deed { grid-template-columns: 1fr 1.05fr; } }
.ld-envelope { position: relative; perspective: 1600px; max-width: 520px; margin-inline: auto; width: 100%; }
.ld-paper {
    position: relative; aspect-ratio: 1400 / 1979; border-radius: 6px; overflow: hidden; background: var(--ld-parch);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(217, 178, 106, .25);
    transform-style: preserve-3d; transition: transform .25s ease-out; cursor: zoom-in;
}
.ld-paper img { width: 100%; height: 100%; display: block; object-fit: cover; }
.ld-paper__glare { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light;
    background: radial-gradient(circle at var(--gx, 50%) var(--gy, 30%), rgba(255, 255, 255, .55), transparent 45%); }
.ld-loupe {
    position: absolute; width: 190px; height: 190px; border-radius: 50%; pointer-events: none; opacity: 0;
    border: 2px solid var(--ld-gold); box-shadow: 0 12px 40px rgba(0, 0, 0, .55), inset 0 0 0 6px rgba(14, 12, 10, .35);
    background-repeat: no-repeat; transform: translate(-50%, -50%) scale(.6); transition: opacity .2s, transform .2s; z-index: 3;
}
.ld-paper.is-zoom .ld-loupe { opacity: 1; transform: translate(-50%, -50%) scale(1); }
/* The folded cover that the seal holds shut */
.ld-cover { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; transform-style: preserve-3d; }
.ld-flap {
    position: absolute; left: 0; right: 0; height: 50.5%; background:
        repeating-linear-gradient(45deg, rgba(110, 42, 53, .05) 0 2px, transparent 2px 9px),
        linear-gradient(180deg, #efe4cd, #e2d3b4);
    box-shadow: inset 0 0 0 1px rgba(110, 42, 53, .18);
    transition: transform 1.1s cubic-bezier(.6, .05, .25, 1), opacity .6s 0.6s;
    backface-visibility: hidden;
}
.ld-flap--top { top: 0; transform-origin: top center; border-bottom: 1px solid rgba(0, 0, 0, .12); }
.ld-flap--bot { bottom: 0; transform-origin: bottom center; }
.ld-flap--top::after, .ld-flap--bot::after { content: "HOUGUN MANOR · CONISTON WATER · CUMBRIA"; position: absolute; left: 0; right: 0; text-align: center;
    font: 600 .62rem/1 var(--font-primary); letter-spacing: .3em; color: rgba(110, 42, 53, .55); }
.ld-flap--top::after { top: 1.4rem; }
.ld-flap--bot::after { content: "BY HONORIFIC TITLE"; bottom: 1.4rem; }
.ld-sealbtn {
    position: relative; z-index: 2; width: 38%; aspect-ratio: 1; border: 0; padding: 0; border-radius: 50%;
    background: url(/assets/images/lordship/seal.webp) center / cover; cursor: pointer;
    box-shadow: 0 14px 30px -6px rgba(60, 10, 20, .65), 0 0 0 6px rgba(110, 42, 53, .12);
    transition: transform .3s;
}
.ld-sealbtn:hover { transform: scale(1.04) rotate(-3deg); }
.ld-sealbtn__ring { position: absolute; inset: -10px; border-radius: 50%; }
.ld-sealbtn__ring circle { fill: none; stroke: var(--ld-gold); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transform: rotate(-90deg); transform-origin: center; }
.ld-sealhint { position: absolute; bottom: 18%; left: 0; right: 0; text-align: center; z-index: 2; font-size: .8rem; color: var(--ld-claret); font-weight: 600; letter-spacing: .04em; }
.ld-seal-half { position: absolute; width: 38%; aspect-ratio: 1; background: url(/assets/images/lordship/seal.webp) center / cover; border-radius: 50%; z-index: 5; pointer-events: none; opacity: 0; }
.ld-envelope.is-open .ld-flap--top { transform: rotateX(178deg); opacity: 0; }
.ld-envelope.is-open .ld-flap--bot { transform: rotateX(-178deg); opacity: 0; }
.ld-envelope.is-open .ld-sealbtn, .ld-envelope.is-open .ld-sealhint { display: none; }
.ld-envelope.is-open .ld-cover { pointer-events: none; }
.ld-envelope.is-open .ld-seal-half { animation: ld-crack-l 1.1s forwards; }
.ld-envelope.is-open .ld-seal-half + .ld-seal-half { animation-name: ld-crack-r; }
.ld-seal-half { clip-path: inset(0 50% 0 0); }
.ld-seal-half + .ld-seal-half { clip-path: inset(0 0 0 50%); }
@keyframes ld-crack-l { 0% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translate(-120%, 160%) rotate(-50deg); } }
@keyframes ld-crack-r { 0% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translate(120%, 170%) rotate(45deg); } }
.ld-deed__tabs { display: flex; gap: .4rem; margin: 1.6rem 0 1rem; flex-wrap: wrap; }
.ld-tab { border: 1px solid var(--ld-gold-dim); background: transparent; color: var(--ld-mute); border-radius: 999px; padding: .55rem 1rem; font: 500 .88rem/1 var(--font-primary); cursor: pointer; }
.ld-tab[aria-selected="true"] { background: var(--ld-gold-dim); color: var(--ld-parch); border-color: var(--ld-gold); }
.ld-transcript {
    background: var(--ld-ink-2); border: 1px solid rgba(217, 178, 106, .15); border-radius: var(--ld-r);
    padding: 1.4rem 1.5rem; font-family: var(--ld-serif); font-size: 1.15rem; line-height: 1.6; color: var(--ld-text);
}
.ld-transcript small { display: block; margin-top: .9rem; font: .8rem/1.5 var(--font-primary); color: var(--ld-mute); }
.ld-redact { background: var(--ld-ink-3); color: transparent; border-radius: 3px; padding: 0 .3em; user-select: none; }
.ld-deed__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.4rem; }
.ld-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .8rem; margin-top: 1.6rem; }
.ld-meta div { border-left: 2px solid var(--ld-gold); padding: .2rem 0 .2rem .8rem; }
.ld-meta dt { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ld-mute); }
.ld-meta dd { margin: .25rem 0 0; font-family: var(--ld-serif); font-size: 1.2rem; color: var(--ld-parch); }

/* ---------- Heraldry ---------- */
.ld-arms { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 900px) { .ld-arms { grid-template-columns: 1fr 1fr; } }
.ld-arms__stage { position: relative; width: min(460px, 100%); margin-inline: auto; aspect-ratio: 604 / 640; }
.ld-arms__stage img { width: 100%; height: 100%; object-fit: contain; filter: sepia(.25) saturate(1.4) brightness(1.2); }
.ld-hot {
    position: absolute; width: 34px; height: 34px; translate: -50% -50%; border-radius: 50%; cursor: pointer;
    border: 2px solid var(--ld-gold-2); background: rgba(14, 12, 10, .65); color: var(--ld-gold-2);
    font: 700 .85rem/1 var(--font-primary); display: grid; place-items: center;
}
.ld-hot::before { content: ""; position: absolute; inset: -7px; border-radius: 50%; border: 1px solid var(--ld-gold); animation: ld-ping 2.4s infinite; }
.ld-hot[aria-pressed="true"] { background: var(--ld-gold); color: #1b140a; }
@keyframes ld-ping { 0% { opacity: .9; transform: scale(.8); } 100% { opacity: 0; transform: scale(1.6); } }
.ld-arms__list { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; gap: .6rem; counter-reset: arm; }
.ld-arms__item { border: 1px solid rgba(217, 178, 106, .14); border-radius: 14px; padding: 1rem 1.1rem 1rem 3.3rem; position: relative; transition: background .3s, border-color .3s; cursor: pointer; }
.ld-arms__item::before { counter-increment: arm; content: counter(arm); position: absolute; left: 1rem; top: 1rem; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 700; color: var(--ld-gold-2); border: 1px solid var(--ld-gold); }
.ld-arms__item h3 { margin: 0 0 .25rem; font-family: var(--ld-serif); font-size: 1.35rem; color: var(--ld-parch); }
.ld-arms__item p { margin: 0; color: var(--ld-mute); font-size: .95rem; line-height: 1.6; }
.ld-arms__item.is-on { background: rgba(217, 178, 106, .09); border-color: var(--ld-gold); }
.ld-note { color: var(--ld-mute); font-size: .82rem; margin-top: 1rem; }

/* ---------- Estate ---------- */
.ld-estate { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .ld-estate { grid-template-columns: 1.1fr .9fr; } }
.ld-map {
    position: relative; border-radius: var(--ld-r); overflow: hidden; min-height: 420px; background: var(--ld-ink-2);
    border: 1px solid rgba(217, 178, 106, .18);
}
.ld-map svg { display: block; width: 100%; height: 100%; }
.ld-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.2) contrast(1.05); }
.ld-map__load { position: absolute; right: 1rem; bottom: 1rem; }
.ld-map__pin { animation: ld-pulse 2.2s ease-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes ld-pulse { 0% { opacity: .8; transform: scale(.6); } 100% { opacity: 0; transform: scale(2.4); } }
.ld-facts { display: grid; gap: .9rem; margin: 1.6rem 0 0; padding: 0; list-style: none; }
.ld-facts li { display: grid; grid-template-columns: 2.2rem 1fr; gap: .8rem; align-items: start; color: var(--ld-mute); line-height: 1.6; }
.ld-facts li span:first-child { font-family: var(--ld-serif); font-size: 1.5rem; color: var(--ld-gold); line-height: 1; }
.ld-facts b { color: var(--ld-parch); font-weight: 600; }
.ld-distance { margin-top: 2rem; padding: 1.5rem; border-radius: var(--ld-r); background: linear-gradient(160deg, var(--ld-ink-3), var(--ld-ink-2)); border: 1px solid rgba(217, 178, 106, .18); }
.ld-distance h3 { margin: 0 0 .8rem; font-family: var(--ld-serif); font-size: 1.5rem; color: var(--ld-parch); }
.ld-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.ld-chip { border: 1px solid var(--ld-gold-dim); background: transparent; color: var(--ld-text); border-radius: 999px; padding: .45rem .85rem; font: 500 .82rem/1 var(--font-primary); cursor: pointer; }
.ld-chip[aria-pressed="true"] { border-color: var(--ld-gold); background: var(--ld-gold-dim); }
.ld-distance__out { margin-top: 1.1rem; min-height: 3.6rem; }
.ld-distance__km { font-family: var(--ld-serif); font-size: 2.6rem; color: var(--ld-gold-2); line-height: 1; font-variant-numeric: tabular-nums; }
.ld-distance__sub { color: var(--ld-mute); font-size: .9rem; margin-top: .35rem; }

/* ---------- Address (etiquette) ---------- */
.ld-address { display: grid; gap: 2rem; }
@media (min-width: 960px) { .ld-address { grid-template-columns: .85fr 1.15fr; align-items: start; } }
.ld-opts { display: grid; gap: .5rem; }
.ld-opt { text-align: left; border: 1px solid rgba(217, 178, 106, .14); background: var(--ld-ink-2); color: var(--ld-text); border-radius: 14px; padding: .95rem 1.1rem; cursor: pointer; font: 500 1rem/1.3 var(--font-primary); display: flex; justify-content: space-between; gap: 1rem; }
.ld-opt small { color: var(--ld-mute); font-weight: 400; }
.ld-opt[aria-checked="true"] { border-color: var(--ld-gold); background: rgba(217, 178, 106, .09); }
.ld-card {
    position: relative; border-radius: var(--ld-r); padding: clamp(1.6rem, 4vw, 2.6rem); color: #2a2116;
    background: radial-gradient(120% 90% at 0% 0%, #fffaf0, var(--ld-parch) 55%, #eadfc8);
    box-shadow: 0 30px 70px -30px rgba(0, 0, 0, .8); min-height: 300px;
}
.ld-card::before { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(110, 42, 53, .25); border-radius: 12px; pointer-events: none; }
.ld-card__label { font: 600 .7rem/1 var(--font-primary); letter-spacing: .24em; text-transform: uppercase; color: var(--ld-claret); }
.ld-card__body { margin-top: 1.1rem; font-family: var(--ld-serif); font-size: clamp(1.25rem, 1rem + 1vw, 1.65rem); line-height: 1.45; white-space: pre-line; }
.ld-card__tip { margin-top: 1.2rem; padding-right: 72px; font-size: .88rem; line-height: 1.6; color: #6a5d49; }
.ld-card__copy { position: absolute; top: 1.2rem; right: 1.2rem; border: 1px solid rgba(110, 42, 53, .35); background: transparent; color: var(--ld-claret); border-radius: 999px; padding: .45rem .9rem; font: 600 .78rem/1 var(--font-primary); cursor: pointer; }
.ld-card__crest { position: absolute; right: 1.4rem; bottom: 1.2rem; width: 64px; opacity: .55; }

/* ---------- Honest ---------- */
.ld-honest { display: grid; gap: 1rem; margin-top: 2rem; }
@media (min-width: 800px) { .ld-honest { grid-template-columns: 1fr 1fr; } }
.ld-honest__col { border-radius: var(--ld-r); padding: 1.6rem; border: 1px solid rgba(217, 178, 106, .16); background: var(--ld-ink-2); }
.ld-honest__col h3 { margin: 0 0 1rem; font-family: var(--ld-serif); font-size: 1.6rem; color: var(--ld-parch); }
.ld-honest__col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .75rem; }
.ld-honest__col li { padding-left: 1.7rem; position: relative; color: var(--ld-mute); line-height: 1.6; }
.ld-honest__col li::before { position: absolute; left: 0; top: 0; font-weight: 700; }
.ld-honest__col--is li::before { content: "\2713"; color: var(--ld-gold); }
.ld-honest__col--not li::before { content: "\2715"; color: #c46a78; }

/* ---------- FAQ ---------- */
.ld-faq { margin-top: 2rem; display: grid; gap: .6rem; max-width: 860px; }
.ld-faq details { border: 1px solid rgba(217, 178, 106, .14); border-radius: 14px; background: var(--ld-ink-2); }
.ld-faq summary { cursor: pointer; padding: 1.1rem 1.3rem; font-weight: 600; color: var(--ld-parch); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.ld-faq summary::-webkit-details-marker { display: none; }
.ld-faq summary::after { content: "+"; color: var(--ld-gold); font-size: 1.3rem; line-height: 1; transition: transform .3s; }
.ld-faq details[open] summary::after { transform: rotate(45deg); }
.ld-faq details p { margin: 0; padding: 0 1.3rem 1.2rem; color: var(--ld-mute); line-height: 1.7; }

/* ---------- Share ---------- */
.ld-share { text-align: center; }
.ld-share__row { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin-top: 1.6rem; }
.ld-toast { position: fixed; left: 50%; bottom: 2rem; translate: -50% 20px; opacity: 0; z-index: 90; padding: .8rem 1.2rem; border-radius: 999px; background: var(--ld-gold); color: #1b140a; font-weight: 600; font-size: .9rem; transition: opacity .3s, translate .3s; pointer-events: none; }
.ld-toast.is-on { opacity: 1; translate: -50% 0; }


@media (prefers-reduced-motion: reduce) {
    .ld-reveal { opacity: 1; transform: none; transition: none; }
    .ld-crest::after, .ld-hot::before, .ld-map__pin, .ld-scrollcue::after { animation: none; }
    .ld-flap { transition: none; }
}
