@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&display=swap');

:root {
    --ink: #090806;
    --ink-soft: #11100d;
    --charcoal: #17140f;
    --paper: #f0e7d5;
    --paper-dim: #cabda6;
    --gold: #c69a3e;
    --gold-bright: #e7bf63;
    --gold-deep: #765420;
    --rule: rgba(198, 154, 62, 0.25);
    --rule-strong: rgba(198, 154, 62, 0.54);
    --serif-display: 'Cinzel', 'Times New Roman', serif;
    --serif: 'Cormorant Garamond', Georgia, serif;
    --container: 1240px;
    --shadow: 0 28px 80px rgba(0, 0, 0, 0.55);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--paper-dim);
    background:
        radial-gradient(circle at 12% 8%, rgba(198, 154, 62, 0.09), transparent 25rem),
        radial-gradient(circle at 88% 32%, rgba(111, 74, 25, 0.08), transparent 27rem),
        var(--ink);
    font: 400 19px/1.65 var(--serif);
    text-rendering: optimizeLegibility;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    content: '';
    pointer-events: none;
    opacity: 0.14;
    background-image:
        repeating-linear-gradient(90deg, transparent 0, transparent 8px, rgba(255, 255, 255, 0.014) 9px),
        repeating-linear-gradient(0deg, transparent 0, transparent 11px, rgba(255, 255, 255, 0.01) 12px);
}

img {
    display: block;
    max-width: 100%;
}

button, input, select, textarea {
    font: inherit;
}

button, a {
    -webkit-tap-highlight-color: transparent;
}

a {
    color: var(--gold-bright);
    text-decoration: none;
}

p {
    margin: 0 0 1.1rem;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0 0 1rem;
    color: var(--paper);
    font-family: var(--serif-display);
    font-weight: 500;
    line-height: 1.16;
}

h1 {
    font-size: clamp(3.15rem, 7vw, 7.1rem);
    letter-spacing: -0.055em;
}

h2 {
    max-width: 18ch;
    font-size: clamp(2.15rem, 4.1vw, 4.3rem);
    letter-spacing: -0.035em;
}

h3 {
    font-size: clamp(1.2rem, 2vw, 1.7rem);
}

strong {
    color: var(--paper);
    font-weight: 600;
}

em {
    color: var(--gold-bright);
}

::selection {
    color: #0b0906;
    background: var(--gold-bright);
}

:focus-visible {
    outline: 2px solid var(--gold-bright);
    outline-offset: 4px;
}

.skip-link {
    position: fixed;
    top: 0.8rem;
    left: 0.8rem;
    z-index: 1000;
    padding: 0.7rem 1rem;
    color: var(--ink);
    background: var(--gold-bright);
    font: 600 0.78rem/1 var(--serif-display);
    transform: translateY(-170%);
}

.skip-link:focus {
    transform: translateY(0);
}

.container,
.container-narrow {
    width: min(calc(100% - 3rem), var(--container));
    margin-inline: auto;
}

.container-narrow {
    max-width: 820px;
}

.section {
    position: relative;
    padding: clamp(5rem, 9vw, 9rem) 0;
}

.section-dark {
    background: rgba(16, 14, 11, 0.65);
    border-block: 1px solid var(--rule);
}

.section-header {
    max-width: 850px;
    margin: 0 auto clamp(2.5rem, 5vw, 5rem);
    text-align: center;
}

.section-header h1,
.section-header h2 {
    max-width: none;
}

.section-header p {
    max-width: 650px;
    margin-inline: auto;
    color: var(--paper-dim);
    font-size: 1.18rem;
    font-style: italic;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.15rem;
    color: var(--gold-bright);
    font: 500 0.68rem/1.2 var(--serif-display);
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 1.8rem;
    height: 1px;
    content: '';
    background: currentColor;
}

.lead {
    color: var(--paper);
    font-size: clamp(1.25rem, 2.2vw, 1.62rem);
    line-height: 1.52;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0;
    border-bottom: 1px solid var(--rule);
    background: rgba(9, 8, 6, 0.87);
    backdrop-filter: blur(18px);
}

.header-content {
    display: flex;
    width: min(calc(100% - 3rem), 1380px);
    min-height: 80px;
    margin-inline: auto;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.site-logo {
    display: inline-flex;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--paper);
    border: 1px solid rgba(231, 191, 99, 0.38);
    border-radius: 50%;
}

.site-logo img {
    width: 36px;
    height: 36px;
    max-width: 100%;
    object-fit: contain;
    object-position: center;
    border: 0;
    border-radius: 0;
}

.main-nav ul {
    display: flex;
    margin: 0;
    padding: 0;
    align-items: center;
    gap: clamp(0.75rem, 1.7vw, 1.8rem);
    list-style: none;
}

.main-nav a {
    position: relative;
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    color: rgba(240, 231, 213, 0.72);
    font: 500 0.68rem/1 var(--serif-display);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 180ms ease;
}

.main-nav a::after {
    position: absolute;
    right: 0;
    bottom: 7px;
    left: 0;
    height: 1px;
    content: '';
    background: var(--gold-bright);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 180ms ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--paper);
}

.main-nav a:hover::after,
.main-nav a.active::after {
    transform: scaleX(1);
}

.main-nav a[href='order.html'] {
    min-height: 38px;
    padding: 0 1rem;
    color: var(--ink);
    border: 1px solid var(--gold-bright);
    background: var(--gold-bright);
}

.main-nav a[href='order.html']::after {
    display: none;
}

.main-nav a[href='order.html']:hover {
    color: var(--paper);
    background: transparent;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    color: var(--gold-bright);
    border: 0;
    background: transparent;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 1px;
    margin: 6px auto;
    background: currentColor;
    transition: transform 180ms ease;
}

.menu-toggle[aria-expanded='true'] span:first-child {
    transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle[aria-expanded='true'] span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
}

.btn {
    display: inline-flex;
    min-height: 52px;
    padding: 0.2rem 1.5rem;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gold);
    border-radius: 0;
    font: 500 0.7rem/1 var(--serif-display);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: var(--ink);
    background: var(--gold-bright);
    box-shadow: 0 10px 35px rgba(198, 154, 62, 0.13);
}

.btn-primary:hover {
    color: var(--paper);
    background: transparent;
}

.btn-outline {
    color: var(--paper);
    border-color: var(--rule-strong);
    background: rgba(9, 8, 6, 0.24);
}

.btn-outline:hover {
    color: var(--ink);
    background: var(--gold-bright);
}

.text-link {
    display: inline-flex;
    padding: 0.3rem 0;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--rule-strong);
    color: var(--paper);
    font: 500 0.72rem/1.5 var(--serif-display);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 180ms ease, border-color 180ms ease;
}

.text-link:hover {
    color: var(--gold-bright);
    border-color: var(--gold-bright);
}

/* Home */
.launch-hero {
    position: relative;
    display: grid;
    width: min(calc(100% - 3rem), 1380px);
    min-height: calc(100svh - 81px);
    margin-inline: auto;
    padding: clamp(4rem, 7vw, 7.5rem) 2vw;
    grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
    align-items: center;
    gap: clamp(3rem, 7vw, 8rem);
}

.launch-hero::before,
.launch-hero::after {
    position: absolute;
    left: 50%;
    content: '';
    pointer-events: none;
    transform: translateX(-50%);
}

.launch-hero::before {
    top: 6%;
    width: 1px;
    height: 88%;
    background: linear-gradient(transparent, var(--rule), transparent);
}

.launch-hero::after {
    bottom: 0;
    width: 100vw;
    height: 1px;
    background: var(--rule);
}

.hero-orbit {
    position: absolute;
    top: 50%;
    right: 5%;
    width: min(43vw, 650px);
    aspect-ratio: 1;
    border: 1px solid rgba(198, 154, 62, 0.12);
    border-radius: 50%;
    transform: translateY(-50%);
}

.hero-orbit::before,
.hero-orbit::after {
    position: absolute;
    inset: 9%;
    content: '';
    border: 1px solid rgba(198, 154, 62, 0.1);
    border-radius: 50%;
}

.hero-orbit::after {
    inset: 23%;
}

.launch-hero__content {
    position: relative;
    z-index: 2;
    max-width: 760px;
}

.launch-hero__content h1 {
    max-width: 10ch;
    margin-bottom: 1.5rem;
}

.launch-hero__content h1 em {
    font-family: var(--serif);
    font-weight: 400;
}

.launch-copy {
    max-width: 620px;
    margin-bottom: 2.2rem;
    color: var(--paper-dim);
    font-size: clamp(1.25rem, 2vw, 1.55rem);
    line-height: 1.5;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.launch-proof {
    display: flex;
    margin: clamp(3rem, 6vw, 5rem) 0 0;
    gap: 0;
}

.launch-proof div {
    display: grid;
    min-width: 112px;
    padding: 0 1.5rem;
    border-left: 1px solid var(--rule);
}

.launch-proof div:first-child {
    padding-left: 0;
    border-left: 0;
}

.launch-proof dt {
    color: var(--paper);
    font: 500 1.55rem/1 var(--serif-display);
}

.launch-proof dd {
    margin: 0.35rem 0 0;
    color: rgba(202, 189, 166, 0.62);
    font-size: 0.95rem;
    font-style: italic;
}

.launch-hero__media {
    position: relative;
    z-index: 2;
    display: grid;
    min-height: 660px;
    place-items: center;
}

.hero-book-wrap {
    position: relative;
    z-index: 2;
    width: min(68%, 370px);
    padding: 1px;
    background: linear-gradient(145deg, var(--gold-bright), rgba(198, 154, 62, 0.12));
    box-shadow: var(--shadow);
    transform: rotate(1.1deg);
}

.hero-book-wrap::after {
    position: absolute;
    right: 3%;
    bottom: -5%;
    left: 3%;
    z-index: -1;
    height: 12%;
    content: '';
    background: #000;
    filter: blur(24px);
}

.book-cover {
    width: 100%;
}

.hero-card {
    position: absolute;
    z-index: 1;
    width: min(27%, 150px);
    padding: 3px;
    background: var(--gold-deep);
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.6);
}

.hero-card img {
    width: 100%;
}

.hero-card--fool {
    top: 18%;
    left: 4%;
    transform: rotate(-10deg);
}

.hero-card--justice {
    right: 1%;
    bottom: 19%;
    transform: rotate(9deg);
}

.hero-edition {
    position: absolute;
    right: 7%;
    bottom: 2%;
    margin: 0;
    color: rgba(202, 189, 166, 0.62);
    font-size: 0.93rem;
    font-style: italic;
    line-height: 1.35;
    text-align: right;
}

.hero-edition strong {
    font-family: var(--serif-display);
    font-size: 0.62rem;
    font-style: normal;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.system-sequence {
    padding: clamp(4.5rem, 7vw, 7rem) 0;
    background: #0c0b08;
    border-bottom: 1px solid var(--rule);
}

.section-kicker {
    display: flex;
    margin-bottom: 3rem;
    align-items: end;
    justify-content: space-between;
    gap: 2rem;
}

.section-kicker .eyebrow {
    margin: 0 0 0.65rem;
}

.section-kicker h2 {
    max-width: none;
    margin: 0;
}

.sequence-line {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--rule-strong);
}

.sequence-stop {
    position: relative;
    display: flex;
    min-height: 138px;
    padding: 2rem 1.5rem;
    align-items: flex-start;
    gap: 1rem;
    color: var(--paper-dim);
    border-right: 1px solid var(--rule);
    transition: background 180ms ease, transform 180ms ease;
}

.sequence-stop:first-child {
    border-left: 1px solid var(--rule);
}

.sequence-stop::before {
    position: absolute;
    top: -5px;
    left: calc(1.5rem - 4px);
    width: 9px;
    height: 9px;
    content: '';
    border-radius: 50%;
    background: var(--gold-bright);
    box-shadow: 0 0 16px var(--gold);
}

.sequence-stop:hover {
    background: rgba(198, 154, 62, 0.06);
    transform: translateY(-4px);
}

.sequence-stop--hinge {
    background: rgba(198, 154, 62, 0.08);
}

.sequence-number {
    min-width: 3.5rem;
    color: var(--gold-bright);
    font: 500 0.8rem/1.3 var(--serif-display);
    letter-spacing: 0.04em;
}

.sequence-stop strong,
.sequence-stop small {
    display: block;
}

.sequence-stop strong {
    margin-bottom: 0.35rem;
    font-family: var(--serif-display);
    font-size: 0.84rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.sequence-stop small {
    color: rgba(202, 189, 166, 0.6);
    font-size: 1rem;
    font-style: italic;
}

.thesis-grid {
    display: grid;
    grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(4rem, 9vw, 9rem);
}

.thesis-art {
    position: relative;
    padding: clamp(1rem, 2vw, 1.6rem);
    color: #342b20;
    background: #e8deca;
    box-shadow: var(--shadow);
    transform: rotate(-1.3deg);
}

.thesis-art::before {
    position: absolute;
    inset: 0.55rem;
    content: '';
    pointer-events: none;
    border: 1px solid rgba(79, 57, 27, 0.3);
}

.thesis-art img {
    width: 100%;
    max-height: 690px;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.thesis-art--gold {
    padding: clamp(0.65rem, 1.2vw, 1rem);
    overflow: hidden;
    border: 1px solid rgba(231, 191, 99, 0.35);
    background: #070604;
    transform: rotate(-0.6deg);
}

.thesis-art--gold::before {
    inset: 0.55rem;
    z-index: 1;
    border-color: rgba(231, 191, 99, 0.3);
}

.thesis-art--gold img {
    display: block;
    max-height: none;
    object-fit: contain;
    mix-blend-mode: normal;
}

.thesis-art p {
    margin: 1rem 0 0;
    font-size: 0.9rem;
    font-style: italic;
    text-align: center;
}

.thesis-copy h2 {
    margin-bottom: 1.6rem;
}

.thesis-copy blockquote {
    margin: clamp(2rem, 5vw, 4rem) 0 2.5rem;
    padding: 1.8rem 0 1.8rem clamp(1.5rem, 3vw, 2.5rem);
    border-left: 1px solid var(--gold-bright);
}

.thesis-copy blockquote p {
    margin: 0 0 0.6rem;
    color: var(--paper);
    font-size: clamp(1.55rem, 3vw, 2.4rem);
    font-style: italic;
    line-height: 1.25;
}

.thesis-copy cite {
    color: var(--gold-bright);
    font: 500 0.68rem/1.3 var(--serif-display);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.card-passage {
    overflow: hidden;
    background:
        linear-gradient(rgba(7, 7, 5, 0.86), rgba(7, 7, 5, 0.92)),
        radial-gradient(circle at center, rgba(198, 154, 62, 0.28), transparent 46%);
    border-block: 1px solid var(--rule);
}

.passage-heading {
    display: grid;
    margin-bottom: clamp(3rem, 6vw, 5.5rem);
    grid-template-columns: 1fr minmax(280px, 0.55fr);
    align-items: end;
    gap: 3rem;
}

.passage-heading h2 {
    max-width: 14ch;
}

.passage-heading > p {
    color: var(--paper-dim);
    font-size: 1.2rem;
    line-height: 1.55;
}

.featured-pair {
    display: grid;
    max-width: 930px;
    margin-inline: auto;
    grid-template-columns: minmax(220px, 1fr) 180px minmax(220px, 1fr);
    align-items: center;
    gap: clamp(1rem, 4vw, 3rem);
}

.featured-card {
    position: relative;
    display: block;
    color: var(--paper);
}

.featured-card img {
    width: min(100%, 280px);
    margin-inline: auto;
    border: 1px solid var(--gold-deep);
    box-shadow: var(--shadow);
    transition: transform 240ms ease, box-shadow 240ms ease;
}

.featured-card:hover img {
    box-shadow: 0 30px 95px rgba(198, 154, 62, 0.16);
    transform: translateY(-8px);
}

.card-caption {
    display: grid;
    margin-top: 1.35rem;
    text-align: center;
}

.card-caption small {
    margin-bottom: 0.28rem;
    color: var(--gold-bright);
    font: 500 0.62rem/1.2 var(--serif-display);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.card-caption strong {
    font: 500 1rem/1.3 var(--serif-display);
    letter-spacing: 0.05em;
}

.card-caption em {
    margin-top: 0.3rem;
    color: rgba(202, 189, 166, 0.64);
}

.pair-centre {
    display: grid;
    min-height: 250px;
    place-content: center;
    text-align: center;
}

.pair-line {
    position: relative;
    display: block;
    width: 1px;
    height: 90px;
    margin: 0 auto 1.2rem;
    background: linear-gradient(transparent, var(--gold-bright));
}

.pair-line::after {
    position: absolute;
    bottom: -5px;
    left: -4px;
    width: 9px;
    height: 9px;
    content: '';
    border: 1px solid var(--gold-bright);
    border-radius: 50%;
}

.pair-centre p {
    margin: 0;
    color: rgba(202, 189, 166, 0.58);
    font-size: 0.95rem;
    font-style: italic;
}

.pair-centre strong {
    margin: 0.45rem 0;
    color: var(--gold-bright);
    font: 500 0.78rem/1.3 var(--serif-display);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.card-ribbon {
    display: grid;
    max-width: 1040px;
    margin: clamp(5rem, 9vw, 8rem) auto 0;
    grid-template-columns: repeat(7, 1fr);
    align-items: end;
    gap: clamp(0.4rem, 1.5vw, 1rem);
}

.card-ribbon a {
    position: relative;
    opacity: 0.7;
    transition: opacity 180ms ease, transform 180ms ease;
}

.card-ribbon a:nth-child(even) {
    transform: translateY(1.2rem);
}

.card-ribbon a:hover {
    z-index: 2;
    opacity: 1;
    transform: translateY(-0.5rem) scale(1.04);
}

.card-ribbon a:nth-child(even):hover {
    transform: translateY(0.7rem) scale(1.04);
}

.card-ribbon img {
    width: 100%;
    border: 1px solid var(--gold-deep);
}

.card-ribbon span {
    position: absolute;
    right: 0.35rem;
    bottom: 0.35rem;
    padding: 0.14rem 0.28rem;
    color: var(--paper);
    background: rgba(9, 8, 6, 0.86);
    font: 500 0.56rem/1 var(--serif-display);
}

.card-ribbon .card-ribbon__justice {
    opacity: 1;
    transform: translateY(-1rem) scale(1.06);
}

.centred-action {
    margin-top: clamp(4rem, 8vw, 7rem);
    text-align: center;
}

.author-preview {
    background: var(--paper);
    color: #4c4031;
}

.author-preview h2,
.author-preview strong {
    color: #17120e;
}

.author-preview .eyebrow {
    color: #8d682b;
}

.author-preview__grid {
    display: grid;
    grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.22fr);
    align-items: center;
    gap: clamp(4rem, 10vw, 10rem);
}

.author-portrait {
    position: relative;
    padding: 1rem;
    border: 1px solid rgba(75, 55, 29, 0.28);
}

.author-portrait img {
    width: 100%;
    max-height: 610px;
    object-fit: cover;
    object-position: center;
    filter: sepia(0.28) contrast(0.95);
}

.author-portrait span {
    position: absolute;
    right: -1px;
    bottom: -1px;
    padding: 0.7rem 1rem;
    color: var(--paper);
    background: #17120e;
    font: 500 0.62rem/1.2 var(--serif-display);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.author-preview__copy .lead {
    color: #3f3428;
}

.author-links {
    display: flex;
    flex-wrap: wrap;
    margin-top: 2rem;
    gap: 1.4rem;
}

.author-preview .text-link {
    color: #241c14;
    border-color: rgba(78, 55, 25, 0.42);
}

.book-cta {
    position: relative;
    overflow: hidden;
    padding: clamp(5rem, 10vw, 10rem) 0;
    border-top: 1px solid var(--rule);
}

.book-cta__glow {
    position: absolute;
    top: 50%;
    left: 19%;
    width: min(50vw, 680px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: rgba(198, 154, 62, 0.14);
    filter: blur(95px);
    transform: translate(-50%, -50%);
}

.book-cta__grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
    align-items: center;
    gap: clamp(4rem, 10vw, 10rem);
}

.book-cta__cover img {
    width: min(100%, 370px);
    margin-inline: auto;
    border: 1px solid var(--gold-deep);
    box-shadow: var(--shadow);
    transform: rotate(-1deg);
}

.book-cta__copy h2 {
    max-width: 14ch;
}

.book-cta__copy > p:not(.eyebrow) {
    max-width: 630px;
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

/* Card library */
.tabs {
    position: sticky;
    top: 80px;
    z-index: 30;
    display: flex;
    margin: 0 auto 3rem;
    padding: 0.75rem;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem;
    background: rgba(9, 8, 6, 0.9);
    backdrop-filter: blur(15px);
    border: 1px solid var(--rule);
}

.tab-btn {
    min-height: 42px;
    padding: 0.55rem 1rem;
    color: var(--paper-dim);
    border: 1px solid transparent;
    border-radius: 0;
    background: transparent;
    font: 500 0.66rem/1.1 var(--serif-display);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
}

.tab-btn:hover,
.tab-btn.active {
    color: var(--ink);
    border-color: var(--gold-bright);
    background: var(--gold-bright);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: clamp(1.4rem, 3vw, 2.5rem) clamp(0.8rem, 2vw, 1.5rem);
}

.card-item {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    color: inherit;
    border: 0;
    background: transparent;
    font: inherit;
    text-align: center;
    cursor: pointer;
    transition: transform 180ms ease;
}

.card-item:hover,
.card-item:focus-visible {
    transform: translateY(-7px);
}

.card-item img {
    width: 100%;
    aspect-ratio: 0.58;
    object-fit: cover;
    border: 1px solid var(--gold-deep);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
    transition: box-shadow 180ms ease, border-color 180ms ease;
}

.card-item:hover img,
.card-item:focus-visible img {
    border-color: var(--gold-bright);
    box-shadow: 0 20px 46px rgba(198, 154, 62, 0.13);
}

.card-item .card-number {
    margin-top: 0.85rem;
    color: var(--gold-bright);
    font: 500 0.62rem/1.2 var(--serif-display);
}

.card-item .card-name {
    margin-top: 0.25rem;
    color: var(--paper);
    font: 500 0.7rem/1.35 var(--serif-display);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.card-item .card-summary {
    margin-top: 0.45rem;
    color: rgba(202, 189, 166, 0.58);
    font-size: 0.92rem;
    font-style: italic;
    line-height: 1.3;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: none;
    padding: 2rem;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    position: relative;
    width: min(100%, 920px);
    max-height: min(88vh, 840px);
    overflow-y: auto;
    padding: clamp(1.5rem, 5vw, 4rem);
    border: 1px solid var(--rule-strong);
    background: #11100d;
    box-shadow: var(--shadow);
}

.modal-close {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    z-index: 2;
    width: 42px;
    height: 42px;
    color: var(--paper);
    border: 1px solid var(--rule);
    background: #0a0907;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.modal-card-display {
    display: grid;
    grid-template-columns: minmax(180px, 230px) minmax(0, 1fr);
    align-items: start;
    gap: clamp(2rem, 5vw, 4rem);
}

.modal-card-img {
    width: 100%;
    border: 1px solid var(--gold-deep);
    border-radius: 0;
    box-shadow: 0 22px 55px rgba(0, 0, 0, 0.55);
}

.modal-card-info h2 {
    margin-bottom: 0.4rem;
    font-size: clamp(2rem, 5vw, 3.8rem);
}

.modal-meta {
    margin-bottom: 1.5rem;
    color: var(--gold-bright);
    font: 500 0.65rem/1.4 var(--serif-display);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.modal-meaning {
    color: var(--paper-dim);
    line-height: 1.65;
}

.modal-paired {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--rule);
}

.modal-paired h4 {
    color: var(--gold-bright);
}

.card-essence {
    margin: 1.3rem 0 1.7rem;
    padding: 1.35rem;
    border: 1px solid var(--rule);
    background: rgba(198, 154, 62, 0.05);
}

.card-essence__summary {
    color: var(--paper);
    font-size: 1.2rem;
    font-style: italic;
}

.card-essence dl {
    display: grid;
    margin: 0;
    gap: 0.8rem;
}

.card-essence dl div {
    display: grid;
    grid-template-columns: 105px 1fr;
    gap: 0.8rem;
}

.card-essence dt {
    color: var(--gold-bright);
    font: 500 0.58rem/1.5 var(--serif-display);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.card-essence dd {
    margin: 0;
}

.card-essence dl div:first-child dd {
    color: var(--paper);
    font-size: 1.08rem;
}

/* Interior pages */
.about-hero,
.video-hero,
.form-hero,
.fool-section {
    padding: clamp(5rem, 9vw, 8.5rem) 1.5rem !important;
    text-align: center;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(198, 154, 62, 0.15), transparent 58%),
        #0b0a08 !important;
    border-bottom: 1px solid var(--rule);
}

.about-hero h1,
.video-hero h1,
.form-hero h1 {
    max-width: none;
    margin-bottom: 0.6rem;
}

.about-hero .subtitle,
.video-hero > p,
.form-hero > p:not(.eyebrow) {
    color: var(--paper-dim);
    font-size: 1.24rem;
    font-style: italic;
}

.about-content {
    width: min(calc(100% - 3rem), 850px);
    margin-inline: auto;
    padding: 0 !important;
}

.about-intro {
    margin: 0 0 clamp(4rem, 8vw, 7rem);
}

.about-intro img {
    width: 100%;
    border: 1px solid var(--gold-deep);
    box-shadow: var(--shadow);
}

.about-intro figcaption {
    margin-top: 0.8rem;
    color: rgba(202, 189, 166, 0.58);
    font-size: 0.9rem;
    font-style: italic;
    text-align: center;
}

.about-section {
    margin-bottom: clamp(3rem, 7vw, 5.5rem) !important;
}

.about-section h2 {
    max-width: none;
    margin-bottom: 1.5rem !important;
    padding-bottom: 1rem !important;
    color: var(--paper) !important;
    border-bottom: 1px solid var(--rule) !important;
    font-size: clamp(2rem, 4vw, 3.4rem);
}

.quote-block {
    margin: clamp(3rem, 6vw, 5rem) 0 !important;
    padding: clamp(1.5rem, 4vw, 3rem) !important;
    color: var(--paper);
    border: 1px solid var(--rule) !important;
    border-left: 2px solid var(--gold-bright) !important;
    background: rgba(198, 154, 62, 0.05) !important;
    font-size: clamp(1.3rem, 2.5vw, 1.8rem);
    line-height: 1.45;
}

.drawing-gallery {
    display: grid;
    margin: 3rem 0 5rem !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1rem !important;
}

.drawing-item img {
    width: 100%;
    aspect-ratio: 0.78;
    padding: 0.65rem !important;
    object-fit: cover;
    border: 0 !important;
    border-radius: 0 !important;
    background: var(--paper) !important;
}

.drawing-item p {
    color: rgba(202, 189, 166, 0.58) !important;
}

.contact-section,
.playlist-note,
.form-panel {
    padding: clamp(1.6rem, 4vw, 3rem) !important;
    border: 1px solid var(--rule) !important;
    border-radius: 0 !important;
    background: rgba(198, 154, 62, 0.045) !important;
}

.contact-section h3,
.playlist-note h3 {
    color: var(--paper) !important;
}

.channel-link {
    display: inline-flex !important;
    min-height: 48px;
    margin-top: 1.2rem;
    padding: 0 1.2rem;
    align-items: center;
    gap: 0.7rem;
    color: var(--ink) !important;
    background: var(--gold-bright) !important;
    border-radius: 0 !important;
    font: 500 0.68rem/1 var(--serif-display);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.channel-link svg {
    width: 20px;
    fill: currentColor;
}

.video-featured {
    overflow: hidden;
    border: 1px solid var(--rule) !important;
    border-radius: 0 !important;
    background: #0e0d0a !important;
    box-shadow: var(--shadow);
}

.video-featured iframe {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
}

.video-info {
    padding: 1.6rem !important;
}

.topic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 1px !important;
    background: var(--rule);
    border: 1px solid var(--rule);
}

.topic-card {
    padding: 1.7rem !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: var(--ink-soft) !important;
}

.topic-card:hover {
    background: #18150f !important;
    transform: none !important;
}

.topic-card h4 {
    color: var(--paper) !important;
}

.topic-card li {
    color: rgba(202, 189, 166, 0.67) !important;
}

.form-layout {
    display: grid;
    grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
    align-items: start;
    gap: clamp(2rem, 5vw, 4rem);
}

.order-aside {
    position: sticky;
    top: 105px;
}

.order-aside > img {
    width: min(100%, 330px) !important;
    margin: 0 auto 1.5rem;
    border: 1px solid var(--gold-deep);
    box-shadow: var(--shadow) !important;
}

.lead-form {
    display: grid;
    gap: 1.35rem;
}

.field-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.field {
    display: grid;
    gap: 0.45rem;
}

.field label {
    color: var(--paper);
    font: 500 0.65rem/1.3 var(--serif-display);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 50px;
    padding: 0.7rem 0.85rem;
    color: var(--paper);
    border: 1px solid var(--rule-strong) !important;
    border-radius: 0 !important;
    background: rgba(0, 0, 0, 0.34) !important;
}

.field textarea {
    min-height: 145px;
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--gold-bright) !important;
    outline: none;
    box-shadow: 0 0 0 1px var(--gold-bright);
}

.consent-line {
    display: grid !important;
    grid-template-columns: 20px 1fr;
    align-items: start;
    gap: 0.8rem;
}

.consent-line input {
    width: 18px;
    height: 18px;
    accent-color: var(--gold-bright);
}

.honeypot {
    position: absolute !important;
    left: -10000px !important;
}

.thank-you-panel {
    width: min(calc(100% - 3rem), 760px);
    min-height: 70vh;
    margin-inline: auto;
    padding: clamp(5rem, 10vw, 9rem) 0 !important;
    text-align: center;
}

.thank-you-panel h1 {
    max-width: none;
}

/* Purchase page */
.purchase-hero h1 {
    max-width: none;
}

.purchase-section {
    overflow: hidden;
}

.purchase-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
    align-items: center;
    gap: clamp(3rem, 7vw, 7rem);
}

.purchase-book {
    display: grid;
    grid-template-columns: minmax(180px, 0.72fr) minmax(0, 1.28fr);
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3rem);
}

.purchase-cover {
    position: relative;
}

.purchase-cover::before {
    position: absolute;
    inset: 8% -10% -6% 12%;
    z-index: -1;
    content: '';
    background: rgba(198, 154, 62, 0.16);
    filter: blur(34px);
}

.purchase-cover img {
    width: 100%;
    border: 1px solid var(--gold-deep);
    box-shadow: var(--shadow);
    transform: rotate(-1deg);
}

.purchase-details h2 {
    margin-bottom: 1.2rem;
    font-size: clamp(2rem, 3.6vw, 3.5rem);
}

.purchase-details .lead {
    font-size: 1.22rem;
}

.book-facts {
    display: grid;
    margin: 2rem 0 0;
    gap: 0;
    border-top: 1px solid var(--rule);
}

.book-facts div {
    display: grid;
    padding: 0.8rem 0;
    grid-template-columns: 72px 1fr;
    gap: 1rem;
    border-bottom: 1px solid var(--rule);
}

.book-facts dt {
    color: var(--gold-bright);
    font: 500 0.58rem/1.5 var(--serif-display);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.book-facts dd {
    margin: 0;
    color: var(--paper-dim);
    font-size: 1rem;
    line-height: 1.4;
}

.marketplace-panel {
    padding: clamp(1.75rem, 4vw, 3.5rem);
    border: 1px solid var(--rule-strong);
    background:
        radial-gradient(circle at 100% 0%, rgba(198, 154, 62, 0.1), transparent 18rem),
        rgba(17, 16, 13, 0.82);
    box-shadow: var(--shadow);
}

.marketplace-panel h2 {
    margin-bottom: 0.8rem;
    font-size: clamp(2.2rem, 4vw, 3.8rem);
}

.marketplace-note {
    margin-bottom: 2rem;
    color: var(--paper-dim);
}

.marketplace-grid {
    display: grid;
    gap: 0.8rem;
}

.marketplace-card {
    position: relative;
    display: grid;
    min-height: 96px;
    padding: 1.2rem;
    grid-template-columns: 52px 1fr auto;
    align-items: center;
    gap: 1rem;
    color: var(--paper);
    border: 1px solid var(--rule);
    background: rgba(6, 5, 4, 0.38);
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.marketplace-card:hover,
.marketplace-card:focus-visible {
    border-color: var(--gold-bright);
    background: rgba(198, 154, 62, 0.07);
    transform: translateY(-2px);
}

.marketplace-card.is-recommended {
    border-color: var(--gold-bright);
    background: linear-gradient(90deg, rgba(198, 154, 62, 0.12), rgba(198, 154, 62, 0.035));
}

.marketplace-recommendation {
    position: absolute;
    top: 0;
    right: 0;
    display: none;
    padding: 0.36rem 0.55rem;
    color: var(--ink);
    background: var(--gold-bright);
    font: 600 0.49rem/1 var(--serif-display);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.marketplace-card.is-recommended .marketplace-recommendation {
    display: block;
}

.marketplace-flag {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    color: var(--gold-bright);
    border: 1px solid var(--rule-strong);
    border-radius: 50%;
    font: 500 0.68rem/1 var(--serif-display);
    letter-spacing: 0.06em;
}

.marketplace-copy {
    display: grid;
}

.marketplace-copy strong {
    font: 500 0.9rem/1.35 var(--serif-display);
    letter-spacing: 0.04em;
}

.marketplace-copy small {
    margin-top: 0.35rem;
    color: rgba(202, 189, 166, 0.62);
    font-size: 0.92rem;
    font-style: italic;
}

.marketplace-arrow {
    color: var(--gold-bright);
    font-size: 1.3rem;
}

.marketplace-help {
    margin: 1.4rem 0 0;
    color: rgba(202, 189, 166, 0.56);
    font-size: 0.92rem;
    font-style: italic;
}

.purchase-question {
    margin-top: 2rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--rule);
}

.purchase-question p {
    margin: 0;
}

.purchase-question a {
    border-bottom: 1px solid var(--rule-strong);
}

.purchase-afterword .eyebrow {
    justify-content: center;
}

.purchase-afterword h2 {
    max-width: none;
}

.purchase-afterword > .container > p:not(.eyebrow) {
    max-width: 660px;
    margin-inline: auto;
}

.purchase-afterword .hero-actions {
    margin-top: 2rem;
    justify-content: center;
}

.the-key {
    width: min(calc(100% - 3rem), 900px);
    margin: clamp(3rem, 6vw, 5rem) auto;
    padding: clamp(2rem, 4vw, 3.5rem);
    text-align: center;
    border: 1px solid var(--rule);
    border-radius: 0;
    background: rgba(198, 154, 62, 0.05);
}

.the-key h2 {
    max-width: none;
    color: var(--gold-bright);
    font-size: 0.75rem;
    letter-spacing: 0.25em;
}

.pair-lesson {
    border-radius: 0 !important;
}

/* Footer */
.site-footer {
    padding: clamp(3rem, 6vw, 5rem) 0 1.5rem;
    border-top: 1px solid var(--rule);
    background: #070604;
    text-align: left;
}

.footer-inner {
    display: grid;
    width: min(calc(100% - 3rem), var(--container));
    margin-inline: auto;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
}

.footer-brand img,
.footer-logo {
    width: 80px;
    height: 60px;
    margin: 0;
    object-fit: contain;
    object-position: center;
}

.footer-brand p {
    margin: 0.7rem 0 0;
    color: rgba(202, 189, 166, 0.48);
    font-size: 0.9rem;
    font-style: italic;
}

.footer-quote,
.site-footer .quote {
    margin: 0;
    color: var(--paper);
    font-size: 1.2rem;
    font-style: italic;
    text-align: center;
}

.footer-nav,
.footer-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.75rem 1.3rem;
}

.footer-nav a,
.footer-actions a {
    color: var(--paper-dim);
    font: 500 0.62rem/1.4 var(--serif-display);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-nav a:hover,
.footer-actions a:hover {
    color: var(--gold-bright);
}

.footer-credit {
    width: min(calc(100% - 3rem), var(--container));
    margin: 3rem auto 0;
    padding-top: 1.3rem;
    color: rgba(202, 189, 166, 0.36);
    border-top: 1px solid rgba(198, 154, 62, 0.12);
    font-size: 0.78rem;
    text-align: center;
}

.site-footer > .footer-logo,
.site-footer > p,
.site-footer > .footer-actions {
    margin-inline: auto;
}

.site-footer > p {
    margin-top: 0.6rem;
    text-align: center;
}

.site-footer > .footer-actions {
    margin-top: 1rem;
    justify-content: center;
}

.text-center { text-align: center; }
.text-gold { color: var(--gold-bright); }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 600ms ease, transform 600ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0.01ms !important; }
    .reveal { opacity: 1; transform: none; }
}

@media (max-width: 1080px) {
    .header-content {
        width: min(calc(100% - 2rem), 1380px);
    }

    .main-nav ul {
        gap: 0.75rem;
    }

    .main-nav a {
        font-size: 0.6rem;
    }

    .launch-hero {
        grid-template-columns: minmax(0, 1fr) minmax(330px, 0.78fr);
        gap: 2rem;
    }

    .launch-hero__media {
        min-height: 570px;
    }

    .topic-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 860px) {
    body {
        font-size: 18px;
    }

    .container,
    .container-narrow {
        width: min(calc(100% - 2rem), var(--container));
    }

    .header-content {
        min-height: 68px;
    }

    .menu-toggle {
        display: block;
        font-size: 0;
    }

    .main-nav {
        position: absolute;
        top: calc(100% + 1px);
        right: 0;
        left: 0;
        visibility: hidden;
        padding: 1rem;
        background: rgba(9, 8, 6, 0.98);
        border-bottom: 1px solid var(--rule);
        opacity: 0;
        transform: translateY(-8px);
        transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
    }

    .main-nav.active {
        visibility: visible;
        opacity: 1;
        transform: translateY(0);
    }

    .main-nav ul {
        display: grid;
        gap: 0;
    }

    .main-nav a {
        min-height: 50px;
        padding: 0 0.6rem;
        border-bottom: 1px solid rgba(198, 154, 62, 0.12);
        font-size: 0.7rem;
    }

    .main-nav a::after {
        display: none;
    }

    .main-nav a[href='order.html'] {
        margin-top: 0.7rem;
        justify-content: center;
    }

    .launch-hero {
        min-height: auto;
        padding: 5rem 0 4rem;
        grid-template-columns: 1fr;
    }

    .launch-hero::before {
        display: none;
    }

    .launch-hero__content {
        max-width: 680px;
    }

    .launch-hero__media {
        min-height: 650px;
    }

    .hero-orbit {
        top: auto;
        right: 50%;
        bottom: 4rem;
        width: min(86vw, 620px);
        transform: translateX(50%);
    }

    .sequence-line {
        grid-template-columns: repeat(2, 1fr);
    }

    .sequence-stop:nth-child(3),
    .sequence-stop:nth-child(4) {
        border-top: 1px solid var(--rule);
    }

    .thesis-grid,
    .author-preview__grid,
    .book-cta__grid,
    .form-layout,
    .purchase-layout {
        grid-template-columns: 1fr;
    }

    .purchase-book {
        max-width: 680px;
        margin-inline: auto;
    }

    .thesis-art {
        width: min(100%, 580px);
        margin-inline: auto;
    }

    .author-portrait {
        width: min(100%, 540px);
        margin-inline: auto;
    }

    .passage-heading {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 0.5rem;
    }

    .featured-pair {
        grid-template-columns: 1fr 110px 1fr;
    }

    .order-aside {
        position: static;
    }

    .order-aside > img {
        max-width: 270px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .footer-nav {
        justify-content: center;
    }

    .tabs {
        top: 68px;
    }
}

@media (max-width: 600px) {
    h1 {
        font-size: clamp(2.7rem, 15vw, 4.5rem);
    }

    h2 {
        font-size: clamp(2rem, 10vw, 3.1rem);
    }

    .launch-hero {
        width: min(calc(100% - 2rem), 1380px);
        padding-top: 4rem;
    }

    .launch-hero__content h1 {
        max-width: 9ch;
    }

    .hero-actions {
        display: grid;
    }

    .btn {
        width: 100%;
    }

    .launch-proof div {
        min-width: 0;
        padding: 0 1rem;
    }

    .launch-hero__media {
        min-height: 480px;
    }

    .hero-book-wrap {
        width: min(64%, 280px);
    }

    .hero-card {
        width: min(28%, 112px);
    }

    .hero-card--fool {
        left: 0;
    }

    .hero-card--justice {
        right: 0;
    }

    .hero-edition {
        right: 0;
    }

    .section-kicker {
        display: block;
    }

    .sequence-line {
        grid-template-columns: 1fr;
    }

    .sequence-stop {
        min-height: 108px;
        border-top: 1px solid var(--rule);
        border-left: 1px solid var(--rule);
    }

    .featured-pair {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .pair-centre {
        grid-column: 1 / -1;
        grid-row: 1;
        min-height: 100px;
    }

    .pair-line {
        width: 90px;
        height: 1px;
        margin-bottom: 0.8rem;
        background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
    }

    .pair-line::after {
        top: -4px;
        right: -4px;
        bottom: auto;
        left: auto;
    }

    .card-ribbon {
        width: 150%;
        margin-left: -25%;
        gap: 0.4rem;
    }

    .card-ribbon a:nth-child(-n+1),
    .card-ribbon a:nth-last-child(-n+1) {
        opacity: 0.22;
    }

    .drawing-gallery {
        grid-template-columns: 1fr !important;
    }

    .drawing-item img {
        aspect-ratio: 1;
    }

    .topic-grid {
        grid-template-columns: 1fr !important;
    }

    .field-grid {
        grid-template-columns: 1fr;
    }

    .purchase-book {
        grid-template-columns: 1fr;
    }

    .purchase-cover {
        width: min(72%, 290px);
        margin-inline: auto;
    }

    .marketplace-card {
        grid-template-columns: 44px 1fr auto;
        padding: 1rem;
    }

    .marketplace-flag {
        width: 42px;
        height: 42px;
    }

    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .modal-overlay {
        padding: 0;
        align-items: stretch;
    }

    .modal-content {
        width: 100%;
        max-height: 100vh;
        padding: 4rem 1.2rem 2rem;
        border: 0;
    }

    .modal-card-display {
        grid-template-columns: 1fr !important;
        text-align: left !important;
    }

    .modal-card-img {
        width: min(58%, 220px) !important;
        margin-inline: auto !important;
    }

    .card-essence dl div {
        grid-template-columns: 1fr;
        gap: 0.2rem;
    }

    .footer-nav {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}
