/* Realm First: the server's house style -- ink, gold, the KingdomCome hand, filigree corners -- for the web. */

@font-face { font-family: "KingdomCome"; src: url("../fonts/KingdomCome-Regular.ttf") format("truetype"); font-weight: normal; font-style: normal; font-display: swap; }
@font-face { font-family: "KingdomCome"; src: url("../fonts/KingdomCome-Bold.ttf") format("truetype"); font-weight: bold; font-style: normal; font-display: swap; }
@font-face { font-family: "KingdomCome"; src: url("../fonts/KingdomCome-Italic.ttf") format("truetype"); font-weight: normal; font-style: italic; font-display: swap; }

:root {
    --ink: #0c0905; --ink-2: #15100a; --ink-3: #1d160d;
    --panel: rgba(12, 9, 5, 0.86);
    --gold-d: #8a6d1f; --gold: #d4af37; --gold-l: #f6e3a1;
    --text: #f4ede0; --dim: #c2b393; --faint: #7a6c52;
    --crimson: #a8282c; --crimson-d: #5a0d10; --green: #7cc06f;
    --font: "KingdomCome", "Palatino Linotype", "Book Antiqua", Georgia, serif;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
    --wide: 1180px;
    --nav: 68px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav) + 12px); }
body {
    font: 18px/1.55 var(--font); color: var(--text); text-shadow: var(--shadow);
    background:
        radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, 0.06), transparent 60%),
        repeating-linear-gradient(8deg, rgba(212, 175, 55, 0.012) 0 2px, transparent 2px 6px),
        var(--ink);
    -webkit-font-smoothing: antialiased;
}
a { color: var(--gold-l); text-decoration: none; }
img { max-width: 100%; display: block; }
code { font-family: Consolas, "Courier New", monospace; font-size: .85em; padding: 1px 6px; color: var(--gold-l); background: rgba(212, 175, 55, 0.1); border: 1px solid rgba(212, 175, 55, 0.25); text-shadow: none; }
svg.i { width: 18px; height: 18px; flex: 0 0 auto; }
::selection { background: rgba(212, 175, 55, 0.35); color: #fff; }

/* ---------- buttons ---------- */

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 46px; padding: 0 22px;
    font: bold 14px var(--font); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; color: var(--gold-l);
    border: 1px solid var(--gold-d); background: linear-gradient(to bottom, rgba(212, 175, 55, 0.2), rgba(138, 109, 31, 0.1));
    box-shadow: inset 0 0 0 2px rgba(12, 9, 5, 0.85), inset 0 0 0 3px rgba(212, 175, 55, 0.35);
    transition: border-color .2s, background .2s, box-shadow .2s, transform .15s;
}
.btn:hover { border-color: var(--gold); background: linear-gradient(to bottom, rgba(212, 175, 55, 0.32), rgba(138, 109, 31, 0.18)); box-shadow: inset 0 0 0 2px rgba(12, 9, 5, 0.85), inset 0 0 0 3px rgba(212, 175, 55, 0.6), 0 0 16px rgba(212, 175, 55, 0.25); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn.crimson { border-color: #9c3a2c; background: linear-gradient(to bottom, var(--crimson), var(--crimson-d)); color: #fbeee0; box-shadow: inset 0 0 0 2px rgba(44, 6, 8, 0.85), inset 0 0 0 3px rgba(212, 175, 55, 0.35); }
.btn.crimson:hover { border-color: var(--gold); background: linear-gradient(to bottom, #bb3034, #6a1013); }
.btn.ghost { background: rgba(12, 9, 5, 0.45); }
.btn.small { height: 36px; padding: 0 14px; font-size: 12px; }

/* The client's download: the plate's first button, its size beside it like a price. */
.step .btn { margin-top: 14px; }
.dl-note { margin-top: 8px; font-size: 13px !important; color: var(--faint) !important; }
[hidden] { display: none !important; }

/* ---------- the bar along the top ---------- */

.nav {
    position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav); display: flex; align-items: center; gap: 18px; padding: 0 28px;
    transition: background .3s, box-shadow .3s, border-color .3s; border-bottom: 1px solid transparent;
}
.nav.solid { background: rgba(10, 8, 4, 0.94); border-bottom-color: rgba(138, 109, 31, 0.45); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.55); backdrop-filter: blur(6px); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); }
.brand-shield { width: auto; height: 36px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.8)); }
.brand-name { padding-right: .1em; font: bold 23px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; background: linear-gradient(to bottom, #fbeec0 0%, #e2bf55 45%, #b8902a 100%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 10px rgba(212, 175, 55, 0.22)); }
.nav nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.nav nav a:not(.btn) { position: relative; font-size: 15px; letter-spacing: .1em; white-space: nowrap; color: var(--dim); transition: color .2s; }
.nav nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .25s; }
.nav nav a:not(.btn):hover, .nav nav a.on { color: var(--gold-l); }
.nav nav a:not(.btn):hover::after, .nav nav a.on::after { transform: scaleX(1); }
.menu { display: none; margin-left: auto; width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--gold-l); background: rgba(12, 9, 5, 0.6); border: 1px solid var(--gold-d); cursor: pointer; }
.menu svg.i { width: 22px; height: 22px; }

/* ---------- the plate of the loading screen, with its corners ---------- */

.plate, .panel {
    position: relative;
    background: var(--panel);
    border: 1px solid var(--gold-d);
    box-shadow: inset 0 0 0 4px rgba(12, 9, 5, 0.9), inset 0 0 0 5px rgba(212, 175, 55, 0.35), 0 10px 40px rgba(0, 0, 0, 0.6);
}
.corner { position: absolute; width: 72px; height: 72px; overflow: visible; pointer-events: none; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.8)); }
.corner.tl { top: -10px; left: -10px; }
.corner.tr { top: -10px; right: -10px; transform: scaleX(-1); }
.corner.bl { bottom: -10px; left: -10px; transform: scaleY(-1); }
.corner.br { bottom: -10px; right: -10px; transform: scale(-1, -1); }

/* ---------- the opening picture: the title on the picture itself, the realm live under it ---------- */

.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav) + 40px) 0 110px; overflow: hidden; }
.hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; transform: scale(1.04); animation: drift 30s ease-in-out infinite alternate; }
@keyframes drift { to { transform: scale(1.1) translate(-1.2%, -.8%); } }
.hero-shade {
    position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(10, 8, 4, 0.92) 0%, rgba(10, 8, 4, 0.78) 30%, rgba(10, 8, 4, 0.25) 62%, rgba(10, 8, 4, 0.05) 100%),
        linear-gradient(to bottom, rgba(10, 8, 4, 0.45), rgba(10, 8, 4, 0) 22%, rgba(10, 8, 4, 0) 70%, var(--ink));
}
.hero-inner { position: relative; width: min(var(--wide), calc(100% - 40px)); margin: 0 auto; }
.hero-copy { max-width: 880px; animation: rise .9s cubic-bezier(.2, 1, .3, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } }
.eyebrow { display: flex; align-items: center; gap: 14px; font-size: 19px; font-style: italic; letter-spacing: .06em; color: var(--gold-l); }
.eyebrow::after { content: ""; width: 90px; height: 1px; background: linear-gradient(to right, var(--gold), transparent); }
.eyebrow-shield { width: auto; height: 40px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8)); }
h1 {
    /* As wide as its letters, a little over: the gilding is drawn only inside the box, so a letter past it would lose its gold. */
    display: inline-block; padding: 0 .1em .04em 0;
    margin: 10px 0 8px; font: bold clamp(46px, 7vw, 104px)/.95 var(--font); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap;
    background: linear-gradient(to bottom, #fbeec0 0%, #e2bf55 42%, #a07d1c 100%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none;
    filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 22px rgba(212, 175, 55, 0.18));
}
.tagline { font-size: 14px; letter-spacing: .32em; text-transform: uppercase; color: var(--dim); }
.tagline .dia, .dia { display: inline-block; width: 6px; height: 6px; margin: 0 .9em .2em .6em; vertical-align: middle; background: var(--gold); transform: rotate(45deg); }
.lead { max-width: 560px; margin: 22px 0 30px; font-size: 20px; line-height: 1.6; color: var(--text); opacity: .94; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.btn.big { height: 54px; padding: 0 26px; font-size: 15px; }
.btn.icon-only { width: 54px; padding: 0; }
.socials { display: inline-flex; gap: 8px; }
.btn.icon-only svg.i { width: 22px; height: 22px; }
.btn .price { display: inline-flex; align-items: center; padding-left: 12px; margin-left: 4px; border-left: 1px solid rgba(246, 227, 161, 0.35); letter-spacing: .06em; font-size: .85em; opacity: .9; }
.btn .price:empty { display: none; }

/* The realm live, as a line of figures under the buttons. */
.live-strip { display: flex; flex-wrap: wrap; align-items: center; max-width: 740px; margin-top: 34px; padding-top: 18px; border-top: 1px solid rgba(212, 175, 55, 0.25); font-size: 16px; color: var(--dim); }
.live-item { display: inline-flex; align-items: center; gap: 8px; padding: 2px 18px; border-left: 1px solid rgba(212, 175, 55, 0.25); }
.live-item:first-child { padding-left: 0; border-left: none; }
.live-item b { font: bold 22px/1 var(--font); color: var(--gold-l); font-variant-numeric: tabular-nums; }
.live-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--faint); }
.live-strip[data-state="open"] .live-dot { background: var(--green); animation: pulse 2s infinite; }
.live-strip[data-state="open"] .live-word { color: #bfe3b5; }
.live-strip[data-state="shut"] .live-dot { background: #c8463c; }
.live-strip[data-state="shut"] .live-word { color: #f0b2a5; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(124, 192, 111, 0.6); } 70% { box-shadow: 0 0 0 10px rgba(124, 192, 111, 0); } 100% { box-shadow: 0 0 0 0 rgba(124, 192, 111, 0); } }

.scroll-hint { position: absolute; bottom: 26px; left: 50%; width: 26px; height: 42px; margin-left: -13px; border: 1px solid var(--gold-d); border-radius: 14px; }
.scroll-hint span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold); animation: wheel 1.8s infinite; }
@keyframes wheel { 0% { opacity: 1; transform: translateY(0); } 80% { opacity: 0; transform: translateY(14px); } 100% { opacity: 0; } }

/* ---------- sections ---------- */

main { position: relative; }
.section { width: min(var(--wide), calc(100% - 40px)); margin: 0 auto; padding: 90px 0 30px; }
.heading { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 38px; }
.heading.left { align-items: flex-start; text-align: left; margin-bottom: 18px; }
.kicker { font-size: 13px; letter-spacing: .4em; text-transform: uppercase; color: var(--gold); }
h2 {
    font: bold clamp(28px, 4vw, 42px)/1.15 var(--font); letter-spacing: .06em;
    background: linear-gradient(to bottom, #f6e3a1 0%, #d4af37 55%, #a07d1c 100%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none;
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.85));
}
h3 { font: bold 21px/1.3 var(--font); color: var(--gold-l); letter-spacing: .03em; }
.rule { width: 320px; max-width: 80vw; height: 26px; margin-top: 8px; }

/* Shown as they come into view. */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, 1, .3, 1); }
.reveal.seen { opacity: 1; transform: none; }

/* ---------- the realm today ---------- */

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px; }
.stat { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border: 1px solid rgba(138, 109, 31, 0.45); background: linear-gradient(to bottom, rgba(212, 175, 55, 0.07), rgba(12, 9, 5, 0.6)); transition: border-color .25s, transform .25s; }
.stat:hover { border-color: var(--gold); transform: translateY(-2px); }
.stat img { width: 52px; height: 52px; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.8)); }
.stat b { display: block; font: bold 36px/1 var(--font); color: var(--gold-l); font-variant-numeric: tabular-nums; }
.stat span { font-size: 15px; color: var(--dim); }
.stat.reveal:nth-child(2) { transition-delay: .07s; } .stat.reveal:nth-child(3) { transition-delay: .14s; } .stat.reveal:nth-child(4) { transition-delay: .21s; }

.souls { padding: 26px 28px 20px; }
.souls-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.search { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; min-width: 240px; color: var(--dim); border: 1px solid var(--gold-d); background: rgba(6, 5, 3, 0.7); }
.search input { flex: 1; min-width: 0; height: 100%; font: 16px var(--font); color: var(--text); background: none; border: none; outline: none; }
.search input::placeholder { color: var(--faint); font-style: italic; }
.soul-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; max-height: 340px; overflow: auto; padding-right: 4px; }
.soul-list::-webkit-scrollbar { width: 6px; } .soul-list::-webkit-scrollbar-thumb { background: var(--gold-d); }
.soul { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid rgba(138, 109, 31, 0.3); background: rgba(6, 5, 3, 0.45); animation: fadein .4s both; }
.soul .pip { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 6px rgba(212, 175, 55, 0.7); flex: 0 0 auto; }
.soul .who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.soul svg.i { width: 16px; height: 16px; color: var(--dim); }
.soul.fallen { opacity: .6; } .soul.fallen .pip { background: #c8463c; box-shadow: none; }
.soul.masked .who { font-style: italic; color: var(--dim); }
.soul-empty { grid-column: 1 / -1; padding: 22px; text-align: center; font-style: italic; color: var(--dim); }
.soul-note { margin-top: 12px; font-size: 14px; font-style: italic; color: var(--faint); }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } }

/* ---------- the map ---------- */

.split { display: grid; grid-template-columns: 5fr 6fr; gap: 44px; align-items: center; }
.split-text p { color: var(--text); opacity: .92; margin-bottom: 16px; }
.ticks { list-style: none; margin: 0 0 24px; }
.ticks li { position: relative; padding: 4px 0 4px 26px; color: var(--dim); }
.ticks li::before { content: ""; position: absolute; left: 4px; top: 13px; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); }
.preview { position: relative; display: block; aspect-ratio: 12288 / 10240; overflow: hidden; border: 1px solid var(--gold-d); box-shadow: inset 0 0 0 4px rgba(12, 9, 5, 0.9), 0 14px 40px rgba(0, 0, 0, 0.65); }
.preview img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, 1, .3, 1), filter .4s; filter: saturate(.9) brightness(.92); }
.preview:hover img { transform: scale(1.04); filter: saturate(1) brightness(1); }
.preview::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.65); pointer-events: none; }
.preview-marks { position: absolute; inset: 0; transition: transform 1.2s cubic-bezier(.2, 1, .3, 1); }
.preview:hover .preview-marks { transform: scale(1.04); }
.mark { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--gold-l); border: 1px solid #3a2a08; box-shadow: 0 0 8px rgba(246, 227, 161, 0.9); transition: left 2.8s linear, top 2.8s linear; }
.mark.outlaw { width: 12px; height: 12px; margin: -6px 0 0 -6px; background: #8f1d1f; border-color: var(--gold); box-shadow: 0 0 8px rgba(200, 40, 40, 0.8); }
.preview-label { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); padding: 8px 18px; font: bold 13px var(--font); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-l); background: rgba(10, 8, 4, 0.85); border: 1px solid var(--gold-d); opacity: 0; transition: opacity .3s; z-index: 1; }
.preview:hover .preview-label, .preview:focus-visible .preview-label { opacity: 1; }

/* ---------- the gallery: pictures and films, the films playing while in view ---------- */

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 158px; grid-auto-flow: dense; gap: 12px; }
.tile.feature { grid-column: span 2; grid-row: span 2; }
.gallery-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 22px; overflow-anchor: none; }
.gallery-foot .follow { margin-left: 18px; font-style: italic; color: var(--dim); }
.tile { position: relative; overflow: hidden; cursor: zoom-in; padding: 0; font: inherit; color: inherit; text-align: left; border: 1px solid rgba(138, 109, 31, 0.45); background: var(--ink-2); animation: fadein .5s both; }
.tile img, .tile video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .8s cubic-bezier(.2, 1, .3, 1), filter .4s; filter: saturate(.92); }
.tile:hover img, .tile:hover video { transform: scale(1.05); filter: saturate(1.05); }
.tile::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0), inset 0 -70px 60px -40px rgba(0, 0, 0, 0.75); transition: box-shadow .3s; pointer-events: none; }
.tile:hover::after { box-shadow: inset 0 0 0 1px rgba(212, 175, 55, 0.7), inset 0 -70px 60px -40px rgba(0, 0, 0, 0.75); }
.tile .tile-cap { position: absolute; left: 14px; right: 44px; bottom: 10px; z-index: 1; font-size: 15px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .tile-play { position: absolute; right: 10px; bottom: 9px; z-index: 1; width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; background: rgba(10, 8, 4, 0.7); }
.tile .tile-play::before { content: ""; margin-left: 3px; border-left: 9px solid var(--gold-l); border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.gallery-empty { grid-column: 1 / -1; grid-row: span 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 30px; text-align: center; border: 1px dashed rgba(212, 175, 55, 0.35); background: rgba(212, 175, 55, 0.03); color: var(--dim); font-style: italic; }
.gallery-empty img { width: auto; height: 54px; opacity: .8; }

.viewer { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 50px 70px; background: rgba(6, 5, 3, 0.94); backdrop-filter: blur(4px); animation: fadein .2s both; }
.viewer-stage { display: flex; flex-direction: column; align-items: center; max-width: 100%; max-height: 100%; }
.viewer-media { display: flex; align-items: center; justify-content: center; max-width: 100%; max-height: calc(100vh - 140px); }
.viewer-media img, .viewer-media video { max-width: 100%; max-height: calc(100vh - 140px); object-fit: contain; border: 1px solid var(--gold-d); box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8); background: #000; }
.viewer-caption { margin-top: 14px; font-size: 17px; color: var(--dim); text-align: center; }
.viewer-close, .viewer-nav { position: absolute; display: grid; place-items: center; color: var(--gold-l); background: rgba(12, 9, 5, 0.75); border: 1px solid var(--gold-d); cursor: pointer; font: 28px/1 var(--font); transition: border-color .2s, background .2s; }
.viewer-close:hover, .viewer-nav:hover { border-color: var(--gold); background: rgba(212, 175, 55, 0.15); }
.viewer-close { top: 16px; right: 18px; width: 44px; height: 44px; }
.viewer-nav { top: 50%; width: 46px; height: 64px; margin-top: -32px; font-size: 40px; }
.viewer-nav.prev { left: 14px; } .viewer-nav.next { right: 14px; }
.viewer-nav[hidden] { display: none; }

/* ---------- life in the realm ---------- */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { position: relative; padding: 26px 24px 24px; border: 1px solid rgba(138, 109, 31, 0.45); background: linear-gradient(to bottom, rgba(212, 175, 55, 0.07), rgba(12, 9, 5, 0.65)); transition: border-color .25s, transform .25s, box-shadow .25s; }
.card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 18px rgba(212, 175, 55, 0.12); }
.card img { width: 58px; height: 58px; object-fit: contain; margin-bottom: 12px; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.8)); transition: transform .3s; }
.card:hover img { transform: rotate(-6deg) scale(1.08); }
.card h3 { margin-bottom: 8px; }
.card p { font-size: 16px; color: var(--dim); }
.card.reveal:nth-child(3n + 2) { transition-delay: .08s; } .card.reveal:nth-child(3n) { transition-delay: .16s; }

/* ---------- houses ---------- */

.house-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.house { display: flex; align-items: flex-start; gap: 14px; padding: 16px 18px; border: 1px solid rgba(138, 109, 31, 0.4); background: rgba(12, 9, 5, 0.6); animation: fadein .4s both; transition: border-color .25s; }
.house:hover { border-color: var(--gold); }
.house .shield { width: 36px; height: 40px; object-fit: contain; flex: 0 0 auto; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.8)); }
.house.forming .shield { filter: grayscale(.8) brightness(.7); }
.house .names { flex: 1; min-width: 0; }
.house b { display: block; font-size: 19px; line-height: 1.25; color: var(--text); overflow-wrap: anywhere; }
.house span { display: block; font-size: 14px; font-style: italic; color: var(--dim); }
.house .chip { display: inline-flex; margin-top: 6px; font-style: normal; }
.chip { display: inline-flex; align-items: center; padding: 1px 9px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; border: 1px solid var(--gold-d); color: var(--dim); white-space: nowrap; }
.chip.good { color: var(--gold-l); border-color: var(--gold); background: rgba(212, 175, 55, 0.12); }
.house-empty { grid-column: 1 / -1; padding: 26px; text-align: center; font-style: italic; color: var(--dim); border: 1px dashed rgba(212, 175, 55, 0.35); }

/* ---------- join ---------- */

.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { position: relative; padding: 30px 24px 24px; text-align: center; border: 1px solid rgba(138, 109, 31, 0.45); background: rgba(12, 9, 5, 0.6); }
.step .num { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; margin-bottom: 14px; font: bold 22px/1 var(--font); color: var(--gold-l); }
.step .num::before { content: ""; position: absolute; inset: 9px; z-index: -1; border: 1px solid var(--gold); background: rgba(212, 175, 55, 0.12); transform: rotate(45deg); box-shadow: 0 0 12px rgba(212, 175, 55, 0.2); }
.step h3 { margin-bottom: 6px; }
.step p { font-size: 16px; color: var(--dim); }
.step.reveal:nth-child(2) { transition-delay: .08s; } .step.reveal:nth-child(3) { transition-delay: .16s; }
.join-cta { display: flex; justify-content: center; margin-top: 26px; }

/* ---------- the laws, on parchment ---------- */

.parchment {
    position: relative; max-width: 760px; margin: 0 auto; padding: 30px 40px 26px; color: #2b1f12; text-shadow: none;
    background:
        radial-gradient(ellipse at 50% 45%, rgba(255, 246, 214, 0.55), transparent 62%),
        radial-gradient(ellipse at 15% 85%, rgba(120, 72, 30, 0.22), transparent 45%),
        radial-gradient(ellipse at 90% 10%, rgba(120, 72, 30, 0.18), transparent 40%),
        repeating-linear-gradient(8deg, rgba(110, 80, 40, 0.035) 0 2px, transparent 2px 5px),
        linear-gradient(to bottom, #ead9ac, #dcc48e 55%, #cfb377);
    border: 1px solid #3a2a14;
    box-shadow: inset 0 0 0 3px #7a5c2c, inset 0 0 0 4px #2b1f12, inset 0 0 28px rgba(80, 50, 15, 0.55), 0 14px 40px rgba(0, 0, 0, 0.7);
}
.ptitle { display: flex; align-items: center; justify-content: center; gap: 14px; padding-bottom: 10px; border-bottom: 1px solid rgba(43, 31, 18, 0.5); }
.ptitle .shield { width: auto; height: 38px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4)); }
.ptitle h2 { background: none; color: #2b1f12; filter: none; -webkit-background-clip: border-box; background-clip: border-box; }
.pnote { margin: 12px 0; text-align: center; font-style: italic; color: #5a4426; }
.pnote code { color: #5a2a14; background: rgba(90, 42, 20, 0.08); border-color: rgba(90, 42, 20, 0.3); }
.laws { list-style: none; counter-reset: law; max-width: 460px; margin: 0 auto; }
.laws li { counter-increment: law; display: flex; align-items: baseline; gap: 14px; padding: 8px 0; font-size: 21px; border-bottom: 1px dashed rgba(43, 31, 18, 0.3); }
.laws li::before { content: counter(law, upper-roman) "."; min-width: 34px; font-weight: bold; color: #7a2a1c; }

/* ---------- the foot ---------- */

.foot { margin-top: 90px; padding: 46px 20px 36px; text-align: center; border-top: 1px solid rgba(138, 109, 31, 0.35); background: linear-gradient(to bottom, rgba(212, 175, 55, 0.04), transparent); }
.foot-shield { width: auto; height: 54px; margin: 0 auto 10px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8)); }
.foot-name { font: bold 22px var(--font); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-l); }
.foot-crest { font-style: italic; color: var(--dim); }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; margin: 18px 0; }
.foot-links a { letter-spacing: .1em; color: var(--dim); } .foot-links a:hover { color: var(--gold-l); }
.fine { max-width: 560px; margin: 0 auto; font-size: 13px; color: var(--faint); }

/* ---------- smaller screens ---------- */

@media (max-width: 1060px) {
    .nav nav { gap: 16px; }
    .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 150px; }
    .nav nav a:not(.btn) { font-size: 14px; }
    .stats { grid-template-columns: repeat(2, 1fr); }
    .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1100px) {
    :root { --nav: 60px; }
    .nav { padding: 0 16px; background: rgba(10, 8, 4, 0.94); border-bottom-color: rgba(138, 109, 31, 0.45); }
    .menu { display: inline-flex; }
    .nav nav { position: absolute; top: var(--nav); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 16px; background: #0b0805; border-bottom: 1px solid var(--gold-d); box-shadow: 0 12px 24px rgba(0, 0, 0, 0.6); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
    .nav.open nav { transform: none; opacity: 1; pointer-events: auto; }
    .nav nav a:not(.btn) { padding: 12px 4px; font-size: 17px; border-bottom: 1px solid rgba(138, 109, 31, 0.25); }
    .nav nav a:not(.btn)::after { display: none; }
    .nav nav .btn { margin-top: 10px; height: 44px; }
}
@media (max-width: 900px) {
    .hero { align-items: flex-end; padding-bottom: 80px; }
    .hero-shade { background: linear-gradient(to bottom, rgba(10, 8, 4, 0.55), rgba(10, 8, 4, 0.35) 25%, rgba(10, 8, 4, 0.82) 58%, var(--ink)); }
    .hero-art img { object-position: 40% 50%; }
    .split { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .split-text { order: 2; } .preview { order: 1; }
    .steps { grid-template-columns: 1fr; }
    .section { padding-top: 70px; }
}
@media (max-width: 600px) {
    body { font-size: 17px; }
    h1 { white-space: normal; }
    .brand { gap: 9px; min-width: 0; }
    .brand-shield { height: 30px; }
    .brand-name { font-size: 18px; letter-spacing: .06em; }
    .menu { flex: 0 0 auto; }
    .eyebrow { font-size: 16px; }
    .eyebrow::after { width: 40px; }
    .tagline { font-size: 11px; letter-spacing: .2em; }
    .lead { font-size: 18px; margin: 18px 0 24px; }
    .hero-actions .btn.big:not(.icon-only) { flex: 1 1 100%; }
    .hero-actions .btn.ghost.big:not(.icon-only) { flex: 1 1 auto; }
    .btn.big { height: 50px; padding: 0 14px; gap: 8px; font-size: 13px; letter-spacing: .12em; }
    .btn.icon-only { width: 50px; }
    .socials { flex: 1 1 100%; justify-content: center; }
    .live-strip { margin-top: 26px; font-size: 14px; row-gap: 8px; }
    .live-item { padding: 2px 12px; }
    .live-item b { font-size: 19px; }
    .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
    .stat { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px; }
    .stat img { width: 40px; height: 40px; }
    .stat b { font-size: 30px; }
    .cards { grid-template-columns: 1fr; }
    .souls { padding: 22px 16px 16px; }
    .search { min-width: 0; width: 100%; }
    .parchment { padding: 24px 18px 20px; }
    .laws li { font-size: 18px; }
    .corner { width: 54px; height: 54px; }
    .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 96px; gap: 8px; }
    .gallery-foot .follow { flex-basis: 100%; margin: 6px 0 0; text-align: center; }
    .tile .tile-cap { font-size: 13px; }
    .viewer { padding: 50px 8px; }
    .viewer-nav { top: auto; bottom: 14px; margin-top: 0; width: 52px; height: 46px; }
}
/* The smallest phones (320 px): the buttons' words close up and may break. */
@media (max-width: 360px) {
    .btn { letter-spacing: .07em; white-space: normal; text-align: center; line-height: 1.2; }
    .btn.big { font-size: 12px; padding: 0 10px; }
    .brand-name { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal { opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
}
