/* ── Landing Page: Cosmic gateway ──────────────────── */

.landing {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* The bottom leaves room for the pointer to what's below */
    padding: 2rem 2rem 4.5rem;
    position: relative;
    overflow: hidden;
}

/* 3D scene background */
#landing-scene {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background:
        radial-gradient(ellipse at 20% 10%, rgba(70, 30, 120, 0.55) 0%, rgba(70, 30, 120, 0) 55%),
        radial-gradient(ellipse at 80% 90%, rgba(20, 60, 140, 0.5) 0%, rgba(20, 60, 140, 0) 55%),
        radial-gradient(circle at 50% 50%, #0a0820 0%, #050512 60%, #000006 100%);
    background-attachment: fixed;
}

#landing-scene canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

/* Remove old static background */
.landing::before {
    display: none;
}

/* Subtle vignette overlay on top of 3D scene: darkened for the new colorful background */
.landing::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at center, rgba(3, 1, 12, 0) 0%, rgba(2, 2, 10, 0.7) 100%);
    z-index: 1;
    pointer-events: none;
}

.landing-content {
    text-align: center;
    max-width: 550px;
    position: relative;
    z-index: 5;
}

.landing-headline {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 400;
    line-height: 1.5;
    color: #ffffff;
    margin-bottom: 1.2rem;
    text-shadow: 0 2px 30px rgba(140, 120, 255, 0.3), 0 0 60px rgba(100, 80, 200, 0.15);
    /* Faintly there from the first frame, never fully transparent: browsers
       only count text painted visibly as the page's main content (LCP). */
    animation: rise-headline 1.4s ease-out 0.3s both;
}

@keyframes rise-headline {
    from {
        opacity: 0.1;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.landing-subtext {
    font-family: 'Inter', sans-serif;
    font-size: clamp(0.95rem, 1.8vw, 1.15rem);
    color: rgba(220, 210, 240, 0.8);
    font-weight: 300;
    font-style: italic;
    line-height: 1.6;
    margin-top: clamp(5rem, 22vw, 14rem);
    margin-bottom: 3rem;
    text-shadow: 0 1px 20px rgba(100, 80, 200, 0.2);
    opacity: 0;
    animation: rise 1.4s ease-out 0.7s forwards;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Date Selectors ────────────────────────────────── */

.birthday-form {
    opacity: 0;
    animation: rise 1.4s ease-out 1.1s forwards;
}

.date-selectors {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.date-select {
    background: rgba(160, 140, 255, 0.06);
    border: 1px solid rgba(180, 160, 255, 0.2);
    color: var(--text);
    color-scheme: dark;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    outline: none;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23a09a90' stroke-width='1.2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    padding-right: 2.2rem;
    backdrop-filter: blur(12px);
}

.date-select:focus {
    border-color: rgba(200, 180, 255, 0.5);
    box-shadow: 0 0 20px rgba(160, 140, 255, 0.15);
}

.date-select:hover {
    border-color: rgba(200, 180, 255, 0.35);
}

.date-select option {
    background: #0a0818;
    color: var(--text);
}

#birth-month {
    min-width: 130px;
}

#birth-day {
    min-width: 80px;
}

#birth-year {
    min-width: 90px;
}

.birthday-input {
    background: rgba(160, 140, 255, 0.06);
    border: 1px solid rgba(180, 160, 255, 0.2);
    color: var(--text);
    color-scheme: dark;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 300;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    outline: none;
    width: 100%;
    max-width: 260px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    backdrop-filter: blur(12px);
}

.birthday-input:focus {
    border-color: rgba(200, 180, 255, 0.5);
    box-shadow: 0 0 20px rgba(160, 140, 255, 0.15);
}

/* ── Show Me Button: glowing, inviting ──────────────── */

.show-me-btn {
    display: inline-block;
    padding: 1rem 3rem;
    background: rgba(180, 160, 255, 0.1);
    border: 1px solid rgba(200, 185, 255, 0.4);
    color: #ffffff;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 0.2em;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(12px);
    text-shadow: 0 0 15px rgba(200, 180, 255, 0.4);
    animation: showMeGlow 2.5s ease-in-out infinite;
}

@keyframes showMeGlow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(160, 140, 255, 0.1), 0 0 50px rgba(130, 100, 255, 0.05);
        border-color: rgba(200, 185, 255, 0.35);
    }

    50% {
        box-shadow: 0 0 35px rgba(180, 160, 255, 0.25), 0 0 80px rgba(140, 120, 255, 0.1);
        border-color: rgba(220, 200, 255, 0.6);
    }
}

.show-me-btn:hover {
    background: rgba(180, 160, 255, 0.2);
    border-color: rgba(230, 220, 255, 0.7);
    transform: scale(1.05) translateY(-2px);
    animation: none;
    box-shadow: 0 4px 40px rgba(180, 160, 255, 0.3), 0 0 80px rgba(140, 120, 255, 0.12);
    letter-spacing: 0.3em;
    text-shadow: 0 0 25px rgba(255, 255, 255, 0.5);
}

/* ── Top corners: logo + blog link, blending with the cosmic backdrop ── */
.landing-logo-link {
    position: absolute;
    top: 1.2rem;
    left: 1.5rem;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    direction: ltr;   /* a Latin wordmark: the mark stays before the name in Arabic too */
    text-decoration: none;
    opacity: 0.92;
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.landing-logo-link:hover {
    opacity: 1;
    transform: translateY(-1px);
}
.landing-logo-link img {
    height: 52px;
    width: auto;
    border-radius: 6px;
    filter: drop-shadow(0 0 12px rgba(160, 130, 255, 0.25));
}
.landing-logo-text {
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    color: rgba(232, 228, 223, 0.85);
    letter-spacing: 0.02em;
    text-shadow: 0 0 18px rgba(160, 130, 255, 0.2);
}

.landing-blog-link {
    position: absolute;
    top: 1.4rem;
    right: 1.5rem;
    z-index: 100;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: rgba(220, 210, 255, 0.55);
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.4rem 0.6rem;
    transition: color 0.4s ease, letter-spacing 0.4s ease, text-shadow 0.4s ease;
}
.landing-blog-link svg {
    stroke: currentColor;
    opacity: 0.75;
    transition: opacity 0.4s ease;
}
.landing-blog-link:hover {
    color: rgba(232, 228, 223, 0.98);
    letter-spacing: 0.22em;
    text-shadow: 0 0 18px rgba(180, 160, 255, 0.35);
}
.landing-blog-link:hover svg { opacity: 1; }

@media (max-width: 600px) {
    .landing-logo-link { top: 1rem; left: 1rem; gap: 0.5rem; }
    .landing-logo-link img { height: 36px; }
    .landing-logo-text { font-size: 0.85rem; }
    .landing-blog-link { top: 1.2rem; right: 1rem; font-size: 0.65rem; padding: 0.3rem 0.4rem; }
}

/* ── Language Selector ─────────────────────────────── */

.lang-selector {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    gap: 0.15rem;
}

.lang-option {
    color: rgba(200, 190, 255, 0.4);
    text-decoration: none;
    font-size: 0.6rem;
    font-weight: 300;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    transition: all 0.3s;
}

.lang-option:hover {
    color: rgba(220, 210, 255, 0.8);
}

.lang-option.active {
    color: rgba(220, 210, 255, 0.9);
}

/* ── Mode Links ────────────────────────────────────── */

/* On the home page, the two other ways in shine: warm gold, a sheen
   passing over them now and then, like the journey's glowing button */
.mode-links-home .mode-link {
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    font-style: italic;
    background: linear-gradient(100deg, #d6ad68 0%, #ecd09a 38%, #fff4dc 50%, #ecd09a 62%, #d6ad68 100%);
    background-size: 260% 100%;
    background-position: 100% 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #e9c98f;
    filter: drop-shadow(0 0 8px rgba(233, 190, 120, 0.35));
    animation: mode-sheen 7s ease-in-out 2.5s infinite;
    transition: filter 0.3s ease;
}
.mode-links-home .mode-link:hover { filter: drop-shadow(0 0 12px rgba(240, 200, 130, 0.7)); }
.mode-links-home .mode-divider { color: rgba(233, 201, 143, 0.5); }
@keyframes mode-sheen {
    0%, 60% { background-position: 100% 0; }
    90%, 100% { background-position: 0% 0; }
}
@media (prefers-reduced-motion: reduce) {
    .mode-links-home .mode-link { animation: none; }
}

.mode-links {
    margin-top: 3rem;
    opacity: 0;
    animation: rise 1.4s ease-out 1.5s forwards;
}

.mode-link {
    color: rgba(200, 190, 230, 0.5);
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 300;
    transition: all 0.3s;
}

.mode-link:hover {
    color: rgba(220, 210, 255, 0.9);
}

.mode-divider {
    color: rgba(200, 190, 230, 0.15);
    margin: 0 0.5rem;
}

.input-label {
    display: block;
    color: rgba(200, 190, 230, 0.5);
    font-size: 0.65rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
}

/* ── Transition Overlay ────────────────────────────── */

.transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg);
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s;
}

.transition-overlay.active {
    opacity: 1;
    pointer-events: all;
}
/* Gift + memorial forms: breathing room between the last field and the button */
#gift-form .show-me-btn,
#memorial-form .show-me-btn {
    margin-top: 1.75rem;
}

.lang-option { white-space: nowrap; }

/* Phones: too narrow for logo, languages and blog link on one row, so the
   languages get their own centred row below. (Kept last so it overrides the
   base .lang-selector rule above.) */
@media (max-width: 600px) {
    .lang-selector {
        top: 4rem;
        width: max-content;
        max-width: calc(100vw - 2rem);
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* Hindi letters hang from one line along the top, and Arabic letters join
   one to the next: spaced apart, every word would break */
html:is([lang="hi"], [lang="ar"]) body * { letter-spacing: normal !important; }
/* and these scripts have no italic: slanted, they only look broken */
html:is([lang="hi"], [lang="ar"], [lang="zh-hans"], [lang="ja"]) :is(.landing-subtext, .home-about h3, .home-reading a, .gift-poetic, .home-story h3, .home-card-link, .home-articles a, .mode-links-home .mode-link) {
    font-style: normal;
}

/* ── What's below: a quiet pointer at the foot of the first screen ── */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

.landing-more {
    position: absolute;
    left: 50%;
    bottom: 1.3rem;
    z-index: 5;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    color: rgba(200, 190, 230, 0.5);
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-decoration: none;
    white-space: nowrap;
    opacity: 0;
    animation: fade-in-more 1.4s ease-out 2s forwards;
    transition: color 0.3s ease;
}
.landing-more:hover { color: rgba(220, 210, 255, 0.9); }
.landing-more svg { animation: more-drift 2.8s ease-in-out 3.4s infinite; }
@keyframes fade-in-more { to { opacity: 1; } }

/* Laptops with short screens: the heading is a line longer than the old
   invitation was, so two gaps close a little and the gift and memorial
   links stay on the first screen */
@media (max-height: 820px) and (min-width: 601px) {
    .landing-subtext { margin-bottom: 2.25rem; }
    .mode-links { margin-top: 2.25rem; }
}
@keyframes more-drift {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

/* ── What the journey is, below the form: the cosmos stays faintly
   behind the words, like the journey's own titles ── */
.home-about {
    position: relative;
    z-index: 5;
    padding: 7rem 1.5rem 6rem;
    background: linear-gradient(to bottom, rgba(4, 3, 14, 0) 0%, rgba(4, 3, 14, 0.86) 10rem, rgba(4, 3, 14, 0.93) 100%);
}
.home-about-inner {
    max-width: 38rem;
    margin: 0 auto;
}
.home-about h2 {
    margin: 4.5rem 0 1.1rem;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.45rem, 3.2vw, 1.95rem);
    font-weight: 400;
    line-height: 1.3;
    color: #f4eee3;
}
.home-about h2:first-child { margin-top: 0; }
.home-about h3 {
    margin: 2.2rem 0 0.45rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-style: italic;
    font-weight: 400;
    color: #e3c38a;
}
.home-about p {
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(232, 228, 223, 0.78);
}
.home-about p + p { margin-top: 1rem; }
.home-about a {
    color: #f0d6a5;
    text-decoration: underline;
    text-decoration-color: rgba(240, 214, 165, 0.35);
    text-underline-offset: 3px;
    transition: text-decoration-color 0.3s ease;
}
.home-about a:hover { text-decoration-color: rgba(240, 214, 165, 0.9); }

.home-reading { list-style: none; }
.home-reading li { margin: 0.7rem 0; }
.home-reading a {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-style: italic;
}

/* And back up to the form */
.home-about .home-begin {
    display: block;
    width: fit-content;
    margin: 4.5rem auto 0;
    color: #ffffff;
    text-decoration: none;
}

/* ── The home page, below the first screen: what the journey is ──
   Wide like the journey itself, words on the left like its titles, the
   moments strung on a thread of gold like the stars of its constellations,
   and each block of text kept to a width that reads well */
.home-story {
    --story-head: #f6f0e6;
    --story-ink: rgba(236, 232, 226, 0.8);
    --story-soft: rgba(236, 232, 226, 0.66);
    --story-gold: #e9c98f;
    --story-line: rgba(205, 190, 255, 0.1);
    position: relative;
    z-index: 5;
    overflow-x: clip;   /* the poster's glow must not widen the page on phones */
    padding: clamp(5rem, 11vw, 9rem) 0 clamp(5rem, 10vw, 8rem);
    /* The first screen's sky fades into a night of its own, so nothing of
       the sun or planets floats behind the words (the sky stops being drawn
       once it is out of view) */
    background:
        radial-gradient(60rem 40rem at 88% 18%, rgba(84, 48, 140, 0.16), rgba(84, 48, 140, 0)),
        radial-gradient(52rem 40rem at 6% 62%, rgba(36, 56, 140, 0.13), rgba(36, 56, 140, 0)),
        linear-gradient(to bottom, rgba(5, 4, 15, 0) 0%, rgba(5, 4, 15, 0.92) 8rem, rgb(5, 4, 15) 14rem);
}
.home-story-inner {
    width: min(72rem, calc(100% - 3rem));
    margin: 0 auto;
}
.home-story h2 {
    font-family: 'Playfair Display', serif;
    font-weight: 400;
    line-height: 1.18;
    color: var(--story-head);
}
.home-story p {
    line-height: 1.8;
    color: var(--story-ink);
}

/* The opening of the section */
.home-story .home-eyebrow {
    margin-bottom: 1.3rem;
    font-size: 0.72rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--story-gold);
}
.home-intro h2 {
    max-width: 17em;
    font-size: clamp(2.1rem, 4.2vw, 3.4rem);
}
.home-story .home-lead {
    max-width: 40rem;
    margin-top: 1.6rem;
    font-size: clamp(1.05rem, 1.35vw, 1.2rem);
}

/* The moments, beside their pictures */
.home-pair {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: clamp(2.5rem, 6vw, 6rem);
    align-items: center;
    margin-top: clamp(4rem, 8vw, 7rem);
}
.home-pair-poster { grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr); }
.home-steps {
    position: relative;
    list-style: none;
    padding-inline-start: 2.3rem;
}
/* the thread, fading in at its ends */
.home-steps::before {
    content: "";
    position: absolute;
    inset-inline-start: 4px;
    top: 0.7rem;
    bottom: 0.7rem;
    width: 1px;
    background: linear-gradient(to bottom, rgba(227, 195, 138, 0), rgba(227, 195, 138, 0.55) 14%, rgba(227, 195, 138, 0.55) 86%, rgba(227, 195, 138, 0));
}
.home-steps li { position: relative; }
.home-steps li + li { margin-top: 2.6rem; }
/* and a star on it for each moment */
.home-steps li::before {
    content: "";
    position: absolute;
    inset-inline-start: -2.3rem;
    top: 0.62rem;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #f7e7c6;
    box-shadow: 0 0 10px rgba(240, 200, 130, 0.9), 0 0 26px rgba(233, 190, 120, 0.45);
}
.home-steps h3 {
    margin-bottom: 0.55rem;
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.25rem, 1.7vw, 1.45rem);
    font-style: italic;
    font-weight: 400;
    color: var(--story-gold);
}
.home-steps p { max-width: 34rem; }
.home-figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(205, 190, 255, 0.08);
}
/* the poster, on a soft warm glow */
.home-figure-poster {
    position: relative;
    justify-self: center;
    width: min(100%, 21rem);
}
.home-figure-poster::before {
    content: "";
    position: absolute;
    inset: -18%;
    background: radial-gradient(closest-side, rgba(233, 190, 120, 0.16), rgba(233, 190, 120, 0));
    pointer-events: none;
}
.home-figure-poster img {
    position: relative;
    border-radius: 6px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65);
}

/* Each part after that */
.home-block { margin-top: clamp(5rem, 10vw, 8rem); }
.home-block > h2 {
    margin-bottom: 2.2rem;
    font-size: clamp(1.8rem, 3.1vw, 2.6rem);
}

/* For someone else: two cards */
.home-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}
.home-card {
    display: flex;
    flex-direction: column;
    padding: clamp(1.7rem, 3vw, 2.5rem);
    border-radius: 22px;
    background: linear-gradient(160deg, rgba(255, 236, 205, 0.06), rgba(255, 236, 205, 0.015));
    border: 1px solid rgba(233, 201, 143, 0.18);
}
/* the memorial one cooler, quieter */
.home-card-memorial {
    background: linear-gradient(160deg, rgba(205, 190, 255, 0.07), rgba(205, 190, 255, 0.015));
    border-color: rgba(205, 190, 255, 0.18);
}
.home-card h3 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.4rem, 2vw, 1.7rem);
    font-weight: 400;
    color: var(--story-head);
}
.home-card p {
    flex: 1;
    margin: 0.9rem 0 1.6rem;
}
.home-card-link {
    align-self: flex-start;
    padding-bottom: 0.15rem;
    border-bottom: 1px solid rgba(233, 201, 143, 0.35);
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    font-style: italic;
    color: var(--story-gold);
    text-decoration: none;
    transition: color 0.3s ease, border-color 0.3s ease, text-shadow 0.3s ease;
}
.home-card-link:hover {
    color: #f7e7c6;
    border-color: rgba(247, 231, 198, 0.8);
    text-shadow: 0 0 16px rgba(233, 190, 120, 0.45);
}
.home-card-link span { display: inline-block; transition: transform 0.4s ease; }
.home-card-link:hover span { transform: translateX(4px); }

/* The science: a quiet passage */
.home-science p { max-width: 44rem; }
.home-science p + p { margin-top: 1rem; }
.home-science .home-card-link {
    display: inline-block;
    margin-top: 1.6rem;
}

/* The questions, in two columns, plain as questions are */
.home-faq {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(2.5rem, 5vw, 4.5rem);
}
.home-faq-item {
    padding: 1.7rem 0;
    border-top: 1px solid var(--story-line);
}
.home-faq-item h3 {
    margin-bottom: 0.6rem;
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.5;
    color: var(--story-head);
}
.home-faq-item p {
    font-size: 0.98rem;
    line-height: 1.75;
    color: var(--story-soft);
}

/* The articles, as small cards */
.home-articles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
    gap: 1rem;
    list-style: none;
}
.home-articles a {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 1.25rem 1.4rem;
    border-radius: 16px;
    border: 1px solid var(--story-line);
    background: rgba(255, 255, 255, 0.025);
    font-family: 'Playfair Display', serif;
    font-size: 1.04rem;
    font-style: italic;
    line-height: 1.45;
    color: rgba(247, 231, 198, 0.9);
    text-decoration: none;
    transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
}
.home-articles a:hover {
    border-color: rgba(233, 201, 143, 0.4);
    background: rgba(255, 236, 205, 0.05);
    color: #fff;
}

/* And back up to the form */
.home-end {
    margin-top: clamp(5rem, 9vw, 7rem);
    text-align: center;
}
.home-end .home-begin {
    color: #ffffff;
    text-decoration: none;
}

/* Arabic: the thread and the arrows follow the words to the right */
[dir="rtl"] .home-card-link span { scale: -1 1; }
[dir="rtl"] .home-card-link:hover span { transform: translateX(-4px); }

/* Narrow screens: one column, the poster after its words */
@media (max-width: 860px) {
    .home-pair,
    .home-pair-poster { grid-template-columns: minmax(0, 1fr); }
    .home-pair-poster .home-figure-poster { order: 2; }
    .home-cards,
    .home-faq { grid-template-columns: minmax(0, 1fr); }
}
