/* Yokai Research - Ghost Theme */

:root {
    --bg: #171819;
    --bg-2: #1f2021;
    --bg-3: #242526;
    --paper: #f0f0ed;
    --white: #f7f7f4;
    --ink: #111214;
    --muted: #9a9c9f;
    --muted-2: #6c6f73;
    --line: rgba(255,255,255,.13);
    --line-strong: rgba(255,255,255,.28);
    --accent: #ed2b24;
    --shell: 1380px;
    --pad: clamp(20px, 4vw, 64px);
    --display: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    --body: "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--white);
    background: var(--bg);
    font-family: var(--body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { color: inherit; }
::selection { color: #fff; background: var(--accent); }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

.yr-shell {
    width: min(calc(100% - (var(--pad) * 2)), var(--shell));
    margin-inline: auto;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

.yr-noise {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
    opacity: .035;
    background-image:
        radial-gradient(circle at 20% 30%, #fff 0 1px, transparent 1px),
        radial-gradient(circle at 75% 65%, #fff 0 1px, transparent 1px);
    background-size: 5px 5px, 7px 7px;
    mix-blend-mode: screen;
}

/* Header */
.yr-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(18,19,20,.9);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    transition: background .25s ease, box-shadow .25s ease;
}
.yr-header.is-scrolled {
    background: rgba(12,13,14,.96);
    box-shadow: 0 12px 40px rgba(0,0,0,.26);
}
.yr-header__inner {
    min-height: 78px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 34px;
    align-items: center;
}
.yr-brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    min-width: 220px;
}
.yr-brand__mark-wrap {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-strong);
    clip-path: polygon(0 0, 100% 0, 100% 76%, 78% 100%, 0 100%);
    background: rgba(255,255,255,.025);
}
.yr-brand__mark { width: 27px; height: 27px; object-fit: contain; }
.yr-brand__text { display: flex; flex-direction: column; line-height: 1; }
.yr-brand__text strong {
    font-family: var(--display);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .24em;
}
.yr-brand__text small {
    margin-top: 7px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .14em;
}
.yr-header__nav { justify-self: center; }
.yr-nav ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 29px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.yr-nav a {
    position: relative;
    color: #c7c8c8;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .13em;
    text-transform: uppercase;
    transition: color .2s ease;
}
.yr-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: -8px;
    height: 1px;
    background: var(--accent);
    transition: right .2s ease;
}
.yr-nav a:hover,
.yr-nav .is-current a { color: #fff; }
.yr-nav a:hover::after,
.yr-nav .is-current a::after { right: 0; }
.yr-header__actions { display: flex; align-items: center; gap: 10px; }
.yr-lang-toggle { display: flex; border: 1px solid var(--line); }
.yr-lang-toggle__btn {
    padding: 8px 10px;
    background: transparent;
    border: 0;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .1em;
    cursor: pointer;
    transition: color .2s, background .2s;
}
.yr-lang-toggle__btn + .yr-lang-toggle__btn { border-left: 1px solid var(--line); }
.yr-lang-toggle__btn.is-active { color: #fff; background: var(--accent); }
.yr-lang-toggle__btn:not(.is-active):hover { color: #fff; background: rgba(255,255,255,.06); }
.yr-icon-button {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    padding: 0;
    background: transparent;
    border: 1px solid var(--line);
    cursor: pointer;
    transition: border-color .2s, background .2s;
}
.yr-icon-button:hover { border-color: var(--accent); background: rgba(237,43,36,.08); }
.yr-icon-button svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.yr-button {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 0 22px;
    background: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform .2s ease, background .2s ease, border-color .2s ease;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.yr-button:hover { transform: translateY(-2px); background: #ff3b33; border-color: #ff3b33; }
.yr-button--compact { min-height: 42px; padding: 0 17px; }
.yr-button--light { color: #111; background: #fff; border-color: #fff; }
.yr-button--light:hover { color: #fff; background: var(--accent); border-color: var(--accent); }
.yr-button--outline { color: #fff; background: transparent; border-color: var(--line-strong); }
.yr-button--outline:hover { background: rgba(255,255,255,.08); border-color: #fff; }
.yr-menu-toggle { display: none; }
.yr-mobile-nav { display: none; }

/* Hero */
.yr-hero {
    position: relative;
    overflow: hidden;
    min-height: min(820px, calc(100vh - 78px));
    background:
        radial-gradient(circle at 72% 40%, rgba(237,43,36,.13), transparent 33%),
        linear-gradient(180deg, #151617 0%, #1a1b1c 100%);
    border-bottom: 1px solid var(--line);
}
.yr-hero::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, transparent 0 9%, var(--accent) 9% 31%, transparent 31% 73%, var(--accent) 73% 88%, transparent 88%);
    opacity: .85;
}
.yr-hero__grid {
    position: absolute;
    inset: 0;
    opacity: .22;
    background-image:
        linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(90deg, #000 0%, transparent 47%, #000 100%);
}
.yr-hero__inner {
    position: relative;
    z-index: 2;
    min-height: 748px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(430px, .92fr);
    gap: clamp(30px, 5vw, 90px);
    align-items: center;
}
.yr-hero__copy { padding: 78px 0 96px; }
.yr-kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--accent);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
}
.yr-kicker > span {
    display: inline-block;
    width: 32px;
    height: 1px;
    background: var(--accent);
}
.yr-hero h1 {
    max-width: 760px;
    margin: 22px 0 22px;
    font-family: var(--display);
    font-size: clamp(58px, 7vw, 112px);
    line-height: .9;
    letter-spacing: -.035em;
    text-transform: uppercase;
    text-wrap: balance;
}
.yr-hero__copy > p {
    max-width: 650px;
    margin: 0;
    color: #aaaeb1;
    font-size: clamp(16px, 1.25vw, 19px);
    line-height: 1.75;
}
.yr-hero__actions { display: flex; align-items: center; gap: 26px; margin-top: 38px; }
.yr-text-action {
    padding: 10px 0;
    color: #ddd;
    background: none;
    border: 0;
    border-bottom: 1px solid var(--line-strong);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    cursor: pointer;
}
.yr-text-action:hover { color: #fff; border-color: var(--accent); }
.yr-hero__status {
    display: flex;
    gap: 34px;
    margin-top: 64px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: .14em;
}
.yr-hero__status span:first-child { color: #d6d7d7; }
.yr-hero__status i {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 8px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(237,43,36,.11);
}
.yr-hero__visual {
    position: relative;
    min-height: 700px;
    align-self: end;
}
.yr-hero__visual::before {
    content: "";
    position: absolute;
    width: 560px;
    height: 560px;
    left: 50%;
    top: 54%;
    transform: translate(-50%,-50%) rotate(45deg);
    border: 1px solid rgba(255,255,255,.06);
    background: rgba(255,255,255,.014);
}
.yr-hero__image-frame {
    position: absolute;
    inset: 0 0 0 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
    mask-image: radial-gradient(ellipse 78% 88% at 50% 48%, #000 44%, rgba(0,0,0,.92) 64%, transparent 100%);
}
.yr-hero__image-frame img {
    width: min(100%, 670px);
    height: 100%;
    object-fit: cover;
    object-position: 50% 16%;
    filter: contrast(1.03) saturate(.9);
    mix-blend-mode: normal;
}
.yr-orbit {
    position: absolute;
    z-index: 3;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 50%;
    pointer-events: none;
}
.yr-orbit::before, .yr-orbit::after {
    content: "";
    position: absolute;
    width: 7px;
    height: 7px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    background: var(--bg);
}
.yr-orbit--one { width: 430px; height: 430px; left: 50%; top: 43%; transform: translate(-50%,-50%); }
.yr-orbit--one::before { left: 38px; top: 80px; }
.yr-orbit--one::after { right: 52px; bottom: 58px; }
.yr-orbit--two { width: 540px; height: 540px; left: 50%; top: 43%; transform: translate(-50%,-50%); border-style: dashed; opacity: .42; }
.yr-eye {
    position: absolute;
    z-index: 4;
    width: 56px;
    height: 23px;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 100% 0 100% 0;
    transform: rotate(45deg);
    background: #212223;
}
.yr-eye i {
    position: absolute;
    width: 12px;
    height: 12px;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    border: 3px solid var(--accent);
    border-radius: 50%;
    background: #fff;
}
.yr-eye--a { right: 7%; top: 26%; transform: rotate(27deg); }
.yr-eye--b { left: 3%; bottom: 24%; transform: rotate(215deg) scale(.76); }
.yr-hero__vertical {
    position: absolute;
    z-index: 5;
    right: -40px;
    top: 50%;
    color: rgba(255,255,255,.36);
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: .22em;
    transform: rotate(90deg) translateY(-50%);
}
.yr-hero__rail {
    position: absolute;
    z-index: 4;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(4,1fr);
    min-height: 52px;
    border-top: 1px solid var(--line);
    background: rgba(15,16,17,.76);
}
.yr-hero__rail span {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    color: #9b9da0;
    border-right: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 8px;
    font-weight: 700;
    letter-spacing: .16em;
}
.yr-hero__rail span::before {
    content: "";
    width: 7px;
    height: 7px;
    margin-right: 9px;
    border: 1px solid var(--accent);
    transform: rotate(45deg);
}

/* Shared sections */
.yr-featured,
.yr-topics,
.yr-latest { padding-top: clamp(78px, 9vw, 128px); }
.yr-section-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 22px;
    align-items: center;
    margin-bottom: 34px;
}
.yr-section-head > div { display: flex; align-items: center; gap: 14px; }
.yr-section-head h2 {
    margin: 0;
    font-family: var(--display);
    font-size: 18px;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.yr-section-head > a,
.yr-section-head > span:last-child {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.yr-section-head > a:hover { color: var(--accent); }
.yr-index {
    min-width: 27px;
    color: var(--accent);
    font-family: var(--mono);
    font-size: 9px;
}
.yr-section-head__line { height: 1px; background: var(--line); }

/* Featured */
.yr-featured__card {
    display: grid;
    grid-template-columns: 1.18fr .82fr;
    background: var(--bg-2);
    border: 1px solid var(--line);
}
.yr-featured__media { position: relative; overflow: hidden; border-right: 1px solid var(--line); min-height: 100%; }
.yr-featured__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(125deg, transparent 42%, rgba(237,43,36,.12));
    pointer-events: none;
}
.yr-featured__media > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(.75) contrast(1.05);
    transition: transform .5s ease, filter .5s ease;
}
.yr-featured__card:hover .yr-featured__media > img { transform: scale(1.025); filter: saturate(.95) contrast(1.05); }
.yr-featured__fallback {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at center, rgba(237,43,36,.12), transparent 36%),
        linear-gradient(135deg, #191a1b, #242526);
}
.yr-featured__fallback img { width: 170px; opacity: .75; }
.yr-featured__content {
    display: flex;
    flex-direction: column;
    padding: clamp(20px, 3vw, 40px);
    overflow: hidden;
}
.yr-featured__meta { display: flex; justify-content: space-between; color: var(--muted); font-family: var(--mono); font-size: 8px; letter-spacing: .14em; }
.yr-featured__meta span:first-child { color: var(--accent); }
.yr-tag {
    align-self: flex-start;
    margin-top: 14px;
    padding: 5px 8px;
    color: #d9d9d9;
    border: 1px solid var(--line-strong);
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.yr-featured__content h2 {
    margin: 16px 0 12px;
    font-family: var(--display);
    font-size: clamp(22px, 2.5vw, 34px);
    line-height: 1;
    letter-spacing: -.02em;
    text-transform: uppercase;
}
.yr-featured__content h2 a:hover { color: var(--accent); }
.yr-featured__content > p { margin: 0; color: #aaacae; font-size: 14px; line-height: 1.65; }
.yr-featured__foot {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-top: auto;
    padding-top: 14px;
}
.yr-featured__foot > div { display: flex; flex-direction: column; gap: 5px; color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: .1em; }
.yr-arrow-link {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line-strong);
    font-size: 23px;
    transition: background .2s, border-color .2s;
}
.yr-arrow-link:hover { background: var(--accent); border-color: var(--accent); }

/* Topic matrix */
.yr-topic-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}
.yr-topic {
    position: relative;
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(255,255,255,.012);
    overflow: hidden;
    transition: background .25s ease;
}
.yr-topic::before {
    content: "";
    position: absolute;
    inset: auto -20% -50% auto;
    width: 180px;
    height: 180px;
    border: 1px solid rgba(255,255,255,.05);
    transform: rotate(45deg);
}
.yr-topic:hover { background: rgba(237,43,36,.055); }
.yr-topic__num { color: var(--muted); font-family: var(--mono); font-size: 8px; letter-spacing: .12em; }
.yr-topic__glyph {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    align-self: center;
    border: 1px solid var(--line-strong);
    transform: rotate(45deg);
    transition: border-color .25s, transform .25s;
}
.yr-topic__glyph::before,
.yr-topic__glyph::after,
.yr-topic__glyph span {
    content: "";
    position: absolute;
    border: 1px solid rgba(255,255,255,.3);
}
.yr-topic__glyph::before { inset: 16px; }
.yr-topic__glyph::after { width: 17px; height: 17px; background: var(--accent); border-color: var(--accent); }
.yr-topic__glyph span { width: 36px; height: 10px; transform: rotate(-45deg); border-left: 0; border-right: 0; }
.yr-topic:nth-child(2) .yr-topic__glyph::after { border-radius: 50%; }
.yr-topic:hover .yr-topic__glyph { border-color: var(--accent); transform: rotate(135deg); }
.yr-topic__text h3 {
    margin: 0;
    font-family: var(--display);
    font-size: 19px;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.yr-topic__text p { margin: 5px 0 0; color: var(--muted); font-family: var(--mono); font-size: 8px; letter-spacing: .12em; }
.yr-topic__arrow { position: absolute; right: 22px; bottom: 21px; color: var(--muted); }
.yr-topic--placeholder { grid-column: 1 / -1; min-height: 150px; align-items: center; justify-content: center; color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: .14em; }

/* Cards */
.yr-latest { padding-bottom: clamp(80px, 10vw, 140px); }
.yr-card-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.yr-card {
    min-width: 0;
    background: rgba(255,255,255,.012);
    border: 1px solid var(--line);
    transition: transform .25s ease, border-color .25s ease, background .25s ease;
}
.yr-card:hover { transform: translateY(-5px); border-color: rgba(237,43,36,.42); background: rgba(255,255,255,.025); }
.yr-card__media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}
.yr-card__media > img { width: 100%; height: 100%; object-fit: contain; object-position: center; background: #18191a; filter: saturate(.7); transition: transform .4s, filter .4s; display: block; margin: 0 auto; }
.yr-card:hover .yr-card__media > img { transform: scale(1.035); filter: saturate(.95); }
.yr-card__fallback { width: 100%; height: 100%; display: grid; place-items: center; background: radial-gradient(circle, rgba(237,43,36,.1), transparent 35%), #202122; }
.yr-card__fallback img { width: 86px; opacity: .55; }
.yr-card__corner {
    position: absolute;
    top: 0;
    right: 0;
    width: 35px;
    height: 35px;
    border-left: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: rgba(0,0,0,.28);
}
.yr-card__corner::before { content: ""; position: absolute; width: 10px; height: 10px; left: 50%; top: 50%; background: var(--accent); transform: translate(-50%,-50%) rotate(45deg); }
.yr-card__body { padding: 23px; }
.yr-card__meta { display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-family: var(--mono); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.yr-card__meta a { color: var(--accent); }
.yr-card__body h3 {
    margin: 17px 0 12px;
    font-family: var(--display);
    font-size: clamp(23px, 2vw, 31px);
    line-height: 1.02;
    letter-spacing: -.01em;
    text-transform: uppercase;
}
.yr-card__body h3 a:hover { color: var(--accent); }
.yr-card__body > p { min-height: 4.8em; margin: 0; color: #9da0a2; font-size: 13px; line-height: 1.6; }
.yr-card__footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 25px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-family: var(--mono); font-size: 8px; letter-spacing: .11em; }
.yr-card__footer a { color: #ddd; }
.yr-card__footer a:hover { color: var(--accent); }
.yr-pagination {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
    margin-top: 48px;
    padding-top: 25px;
    border-top: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: .13em;
}
.yr-pagination__link:last-child { justify-self: end; }
.yr-pagination__link:hover { color: var(--accent); }
.yr-pagination__count { color: var(--muted); }

/* CTA */
.yr-cta {
    position: relative;
    min-height: 300px;
    display: grid;
    grid-template-columns: 220px 1fr auto;
    gap: 52px;
    align-items: center;
    margin-bottom: clamp(90px, 10vw, 150px);
    padding: clamp(38px, 5vw, 70px);
    color: #111;
    background: var(--paper);
    overflow: hidden;
}
.yr-cta::after {
    content: "";
    position: absolute;
    right: 23%;
    top: -160px;
    width: 320px;
    height: 320px;
    border: 1px solid rgba(17,17,17,.09);
    transform: rotate(45deg);
}
.yr-cta__mark {
    position: relative;
    width: 160px;
    height: 160px;
    display: grid;
    place-items: center;
    background: var(--bg);
}
.yr-cta__mark::before,
.yr-cta__mark::after {
    content: "";
    position: absolute;
    width: 28px;
    height: 28px;
    border-color: rgba(229,57,53,.9);
    border-style: solid;
}
.yr-cta__mark::before {
    top: -14px; left: -14px;
    border-width: 1px 0 0 1px;
}
.yr-cta__mark::after {
    bottom: -14px; right: -14px;
    border-width: 0 1px 1px 0;
}
.yr-cta__mark img {
    position: relative;
    z-index: 1;
    width: 130px;
    filter: drop-shadow(0 0 24px rgba(229,57,53,.12));
}
.yr-cta__copy { position: relative; z-index: 2; }
.yr-cta__copy > span { color: var(--accent); font-family: var(--mono); font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.yr-cta__copy h2 { max-width: 630px; margin: 12px 0 13px; font-family: var(--display); font-size: clamp(34px, 4vw, 54px); line-height: .98; text-transform: uppercase; }
.yr-cta__copy p { max-width: 620px; margin: 0; color: #5e6062; font-size: 14px; }
.yr-cta .yr-button { position: relative; z-index: 2; white-space: nowrap; }

/* Archive filters */
.yr-archive-filters {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin-bottom: 22px;
}
.yr-archive-filter {
    padding: 10px 16px;
    white-space: nowrap;
    flex-shrink: 1;
    min-width: 0;
    background: transparent;
    border: 1px solid var(--line);
    color: var(--muted);
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
    cursor: pointer;
    transition: color .2s, background .2s, border-color .2s;
}
.yr-archive-filter:hover { color: #fff; border-color: var(--line-strong); background: rgba(255,255,255,.04); }
.yr-archive-filter.is-active { color: #fff; background: var(--accent); border-color: var(--accent); }

/* Archive search */
.yr-search {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 34px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.02);
    transition: border-color .2s, background .2s;
}
.yr-search:focus-within {
    border-color: var(--accent);
    background: rgba(255,255,255,.04);
}
.yr-search__icon {
    position: absolute;
    left: 18px;
    width: 17px;
    color: var(--muted);
    pointer-events: none;
}
.yr-search__icon svg {
    width: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}
.yr-search__input {
    width: 100%;
    padding: 18px 60px 18px 48px;
    color: var(--white);
    background: transparent;
    border: 0;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: .08em;
    outline: none;
}
.yr-search__input::placeholder {
    color: var(--muted-2);
}
.yr-search__clear {
    position: absolute;
    right: 14px;
    padding: 4px 8px;
    color: var(--muted);
    background: rgba(255,255,255,.06);
    border: 1px solid var(--line);
    border-radius: 3px;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: .06em;
    cursor: pointer;
}
.yr-search__clear:hover {
    color: var(--white);
    border-color: var(--line-strong);
}
.yr-search__empty {
    padding: 40px 0;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: .1em;
    text-align: center;
}
.yr-card.is-hidden, .yr-card.is-tag-hidden { display: none; }
.is-lang-hidden { display: none; }

/* Archive + taxonomy */
.yr-archive-head,
.yr-taxonomy-head {
    position: relative;
    padding: clamp(90px, 10vw, 150px) 0 clamp(65px, 8vw, 105px);
    border-bottom: 1px solid var(--line);
    background:
        linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px),
        linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
        #1a1b1c;
    background-size: 64px 64px;
}
.yr-archive-head::after,
.yr-taxonomy-head::after {
    content: "";
    position: absolute;
    width: 270px;
    height: 270px;
    right: 8%;
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
    border: 1px solid rgba(237,43,36,.22);
    box-shadow: inset 0 0 0 45px rgba(237,43,36,.02);
}
.yr-archive-head h1,
.yr-taxonomy-head h1,
.yr-page-head h1 {
    position: relative;
    z-index: 2;
    margin: 18px 0 22px;
    font-family: var(--display);
    font-size: clamp(58px, 8vw, 108px);
    line-height: .92;
    text-transform: uppercase;
}
.yr-archive-head__meta { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 30px; max-width: 870px; color: var(--muted); }
.yr-archive-head__meta p { margin: 0; }
.yr-archive-head__meta span { font-family: var(--mono); font-size: 9px; letter-spacing: .12em; }
.yr-latest--archive { padding-top: clamp(60px, 7vw, 90px); }
.yr-taxonomy-head__inner,
.yr-author-head__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 50px; }
.yr-taxonomy-head p { max-width: 700px; margin: 0; color: var(--muted); font-size: 16px; }
.yr-taxonomy-head__stats { min-width: 150px; padding: 18px 20px; border: 1px solid var(--line-strong); background: rgba(0,0,0,.18); }
.yr-taxonomy-head__stats span,
.yr-taxonomy-head__stats small { display: block; color: var(--muted); font-family: var(--mono); font-size: 8px; letter-spacing: .14em; }
.yr-taxonomy-head__stats strong { display: block; margin: 6px 0; color: var(--accent); font-family: var(--display); font-size: 47px; line-height: 1; }
.yr-author-head__profile { display: flex; align-items: center; gap: 30px; }
.yr-author-head__profile > img,
.yr-author-head__fallback { width: 110px; height: 110px; object-fit: cover; border: 1px solid var(--line-strong); }
.yr-author-head__fallback { display: grid; place-items: center; background: #202122; }
.yr-author-head__fallback img { width: 58px; }
.yr-author-head__profile h1 { margin-top: 14px; }

/* Post */
.yr-post { background: #18191a; }
.yr-post-head { position: relative; display: grid; grid-template-columns: 80px 1fr; gap: clamp(28px, 6vw, 90px); padding-top: clamp(70px, 8vw, 115px); padding-bottom: clamp(25px, 3vw, 40px); }
.yr-post-head::after { display: none; }
.yr-post-head__rail { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; color: var(--muted); font-family: var(--mono); font-size: 8px; letter-spacing: .17em; writing-mode: vertical-rl; transform: rotate(180deg); }
.yr-post-head__main { max-width: 1100px; }
.yr-post-head h1 { max-width: 100%; margin: 20px 0 25px; font-family: var(--display); font-size: clamp(44px, 7.5vw, 90px); line-height: .92; letter-spacing: -.025em; text-transform: uppercase; text-wrap: balance; }
.yr-post-head__excerpt { max-width: 850px; margin: 0; color: #aaacae; font-size: clamp(17px, 1.55vw, 21px); line-height: 1.65; }
.yr-post-head__meta { display: grid; grid-template-columns: minmax(220px, 1fr) auto auto; gap: 35px; align-items: center; margin-top: 45px; padding-top: 23px; border-top: 1px solid var(--line); }
.yr-post-head__meta > div { display: flex; flex-direction: column; gap: 4px; }
.yr-post-head__meta span { color: var(--muted); font-family: var(--mono); font-size: 7px; letter-spacing: .13em; }
.yr-post-head__meta strong { font-family: var(--mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; }
.yr-post-head__authors { flex-direction: row !important; align-items: center; }
.yr-post-head__authors > img { width: 56px; height: 56px; margin-right: -11px; object-fit: cover; border: 2px solid #18191a; border-radius: 50%; }
.yr-post-head__authors > div { display: flex; flex-direction: column; margin-left: 14px; }
.yr-post-feature { margin-top: 0; margin-bottom: 0; }
.yr-post-feature--wide { width: 100%; }
.yr-post-feature--contained { padding-top: 50px; }
.yr-post-feature img { width: 88%; display: block; margin-left: auto; }
.yr-post-feature figcaption { padding: 10px var(--pad) 0; color: var(--muted); font-size: 12px; text-align: center; }
.yr-post-layout { display: grid; grid-template-columns: 210px minmax(0, 780px); gap: clamp(55px, 8vw, 120px); justify-content: center; padding-top: clamp(25px, 2.5vw, 40px); padding-bottom: clamp(80px, 10vw, 140px); }
.yr-post-aside__sticky { position: sticky; top: 120px; }
.yr-post-aside__label { color: var(--accent); font-family: var(--mono); font-size: 10px; letter-spacing: .16em; }
.yr-post-aside__rule { height: 1px; margin: 18px 0 20px; background: var(--line); }
.yr-post-aside__tags { display: flex; flex-direction: column; gap: 10px; }
.yr-post-aside__tags a { color: #9fa1a3; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }
.yr-post-aside__tags a:hover { color: var(--accent); }
.yr-post-aside__toc { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.yr-toc-section { display: flex; flex-direction: column; }
.yr-toc-toggle { display: flex; align-items: baseline; gap: 6px; padding: 0; border: none; background: none; color: #9fa1a3; font-family: var(--mono); font-size: 10px; letter-spacing: .05em; text-transform: uppercase; line-height: 1.5; text-align: left; cursor: pointer; transition: color .2s; }
.yr-toc-toggle:hover,
.yr-toc-toggle.is-active { color: var(--accent); }
.yr-toc-arrow { font-size: 8px; transition: transform .2s; }
.yr-toc-section.is-open .yr-toc-arrow { transform: rotate(90deg); }
.yr-toc-subs { display: flex; flex-direction: column; gap: 8px; padding: 0 0 0 16px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .3s ease, opacity .25s ease, padding .3s ease; }
.yr-toc-section.is-open .yr-toc-subs { max-height: 500px; opacity: 1; padding: 8px 0 4px 16px; }
.yr-toc-subs a { color: #9fa1a3; font-family: var(--mono); font-size: 9px; letter-spacing: .05em; text-transform: uppercase; line-height: 1.5; transition: color .2s; }
.yr-toc-subs a:hover,
.yr-toc-subs a.is-active { color: var(--accent); }
.yr-post-aside__back { display: inline-block; margin-top: 40px; color: var(--muted); font-family: var(--mono); font-size: 10px; letter-spacing: .1em; }

/* Ghost content */
.gh-content {
    min-width: 0;
    color: #dadbd9;
    font-size: 18px;
    line-height: 1.8;
}
.gh-content > * { margin-top: 0; margin-bottom: 1.55em; }
.gh-content h2,
.gh-content h3,
.gh-content h4,
.gh-content h5,
.gh-content h6 {
    color: #fff;
    font-family: var(--display);
    line-height: 1.1;
    letter-spacing: -.01em;
    text-transform: uppercase;
}
.gh-content h2 { margin-top: 1.75em; margin-bottom: .65em; font-size: clamp(34px, 4vw, 50px); }
.gh-content h3 { margin-top: 1.7em; margin-bottom: .6em; font-size: 29px; }
.gh-content h4 { font-size: 23px; }
.gh-content a { color: #fff; border-bottom: 1px solid var(--accent); }
.gh-content a:hover { color: var(--accent); }
.gh-content strong { color: #fff; }
.gh-content blockquote {
    margin: 2.1em 0;
    padding: 22px 28px 22px 30px;
    color: #fff;
    border-left: 3px solid var(--accent);
    background: rgba(255,255,255,.025);
    font-family: var(--mono);
    font-size: 15px;
}
.gh-content code { padding: 3px 7px !important; color: #dfe0df !important; background: #0f1011 !important; border: 1px solid rgba(255,255,255,.13) !important; border-left: 1px solid rgba(255,255,255,.13) !important; font-family: var(--mono) !important; font-size: .86em !important; word-break: break-word; }
.gh-content pre {
    overflow-x: auto !important;
    padding: 24px !important;
    color: #dfe0df !important;
    background: #0f1011 !important;
    border: 1px solid rgba(255,255,255,.13) !important;
    border-left: 1px solid rgba(255,255,255,.13) !important;
    font-family: var(--mono) !important;
    font-size: 13px !important;
    line-height: 1.7 !important;
}
.gh-content pre code { padding: 0 !important; color: inherit !important; background: none !important; border: 0 !important; word-break: normal !important; }
.gh-content pre[class*="language-"] { background: #0f1011 !important; border: 1px solid rgba(255,255,255,.13) !important; border-left: 1px solid rgba(255,255,255,.13) !important; margin-top: 0; margin-bottom: 1.55em; }
code[class*="language-"], pre[class*="language-"] { text-shadow: none !important; }
.gh-content hr { height: 1px; margin: 3em 0; border: 0; background: var(--line); }
.gh-content ul,
.gh-content ol { padding-left: 1.25em; }
.gh-content li { margin-bottom: .45em; }
.gh-content table { width: 100%; border-collapse: collapse; font-size: 14px; overflow-x: auto; display: block; }
.gh-content table::-webkit-scrollbar { height: 4px; }
.gh-content table::-webkit-scrollbar-thumb { background: var(--line-strong); }
.gh-content th,
.gh-content td { padding: 12px 13px; border: 1px solid var(--line); text-align: left; }
.gh-content th { color: #fff; background: rgba(255,255,255,.035); font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.gh-content img { height: auto; }
.gh-content figure { margin-left: 0; margin-right: 0; }
.gh-content figcaption { margin-top: 8px; color: var(--muted); font-size: 12px; text-align: center; }

/* Required Ghost content widths/cards */
.gh-content .kg-width-wide { width: min(1100px, calc(100vw - (var(--pad) * 2))); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.gh-content .kg-width-full { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.kg-card img { height: auto; }
.kg-gallery-card,
.kg-image-card { --gap: 1.2rem; }
.kg-gallery-container { display: flex; flex-direction: column; gap: var(--gap); }
.kg-gallery-row { display: flex; flex-direction: row; justify-content: center; gap: var(--gap); }
.kg-gallery-image img { display: block; width: 100%; height: 100%; margin: 0; object-fit: cover; }
.kg-bookmark-card { width: 100%; }
.kg-bookmark-container { display: flex; min-height: 140px; color: inherit !important; border: 1px solid var(--line) !important; border-bottom: 1px solid var(--line) !important; background: #202122; }
.kg-bookmark-content { flex: 1 1 auto; padding: 20px; }
.kg-bookmark-title { color: #fff; font-weight: 700; }
.kg-bookmark-description { margin-top: 7px; color: var(--muted); font-size: 13px; }
.kg-bookmark-thumbnail { position: relative; width: 34%; min-width: 160px; }
.kg-bookmark-thumbnail img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kg-video-card, .kg-video-card video { width: 100%; height: auto; }
.kg-embed-card { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; }
.kg-embed-card iframe, .kg-embed-card object, .kg-embed-card embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.gh-content iframe { max-width: 100%; }
.kg-callout-card { border: 1px solid var(--line); border-left: 3px solid var(--accent); }
.kg-button-card .kg-btn { border-bottom: 0; background: var(--accent); }
.kg-toggle-card { color: #ddd; background: #202122; box-shadow: none; border: 1px solid var(--line); }

/* Post side decorations */
.yr-post-layout { position: relative; }

.yr-post-layout::before {
    content: "";
    position: absolute;
    left: -60px;
    top: 180px;
    width: 90px;
    height: 90px;
    border: 1px solid rgba(255,255,255,.04);
    transform: rotate(45deg);
}
.yr-post-layout::after {
    content: "";
    position: absolute;
    right: -50px;
    top: 320px;
    width: 70px;
    height: 70px;
    border: 1px dashed rgba(237,43,36,.15);
    border-radius: 50%;
}

.yr-post-content::after {
    content: "";
    position: absolute;
    right: -70px;
    top: 65%;
    width: 8px;
    height: 8px;
    background: var(--accent);
    transform: rotate(45deg);
    opacity: .3;
}
.yr-post-content { position: relative; }


.gh-content > h3::before {
    content: "";
    position: absolute;
    left: -30px;
    top: 50%;
    width: 8px;
    height: 8px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 50%;
    transform: translateY(-50%);
}
.gh-content > h3 { position: relative; }

.gh-content > hr::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10px;
    height: 10px;
    background: var(--accent);
    transform: translate(-50%,-50%) rotate(45deg);
    opacity: .5;
}
.gh-content > hr { position: relative; }

.yr-post-footer { display: flex; justify-content: space-between; gap: 30px; padding-top: 16px; padding-bottom: 60px; border-top: 1px solid var(--line); margin-top: 8px; }
.yr-post-footer__author,
.yr-post-footer__share { display: flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: 9px; letter-spacing: .11em; }
.yr-post-footer span { color: var(--muted); }
.yr-post-footer__share button { padding: 0; color: #fff; background: transparent; border: 0; border-bottom: 1px solid var(--accent); font-family: var(--mono); font-size: 9px; letter-spacing: .11em; cursor: pointer; }
.yr-comments { padding-bottom: 100px; }

/* Pages */
.yr-page { padding-top: clamp(70px, 9vw, 120px); padding-bottom: clamp(90px, 10vw, 150px); }
.yr-page-head { margin-bottom: 50px; }
.yr-page-head p { max-width: 760px; margin: 0; color: var(--muted); font-size: 18px; }
.yr-page-content { max-width: 820px; }

/* About */
.yr-about { padding-top: clamp(70px, 9vw, 120px); padding-bottom: clamp(90px, 10vw, 150px); }
.yr-about__content .yr-kicker { margin-bottom: 10px; }
.yr-about__content h1 {
    font-family: var(--display);
    font-size: clamp(48px, 7vw, 88px);
    line-height: .92;
    text-transform: uppercase;
    margin: 18px 0 36px;
}
.yr-about__intro {
    font-size: 20px;
    line-height: 1.6;
    color: var(--muted);
    margin: 0 0 36px;
    padding-left: clamp(80px, 14vw, 220px);
}
.yr-about__intro strong { color: var(--white); }
.yr-about__pillars {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 0;
    margin-left: clamp(80px, 14vw, 220px);
    padding-left: 20px;
    border-left: 2px solid var(--accent);
}
.yr-about__pillars span {
    font-family: var(--mono);
    font-size: 14px;
    letter-spacing: .06em;
    color: var(--white);
}
.yr-about__body { color: var(--muted); font-size: 17px; line-height: 1.75; margin-top: 42px; padding-left: clamp(80px, 14vw, 220px); }
.yr-about__body p { margin: 0 0 20px; }
.yr-about__body strong { color: var(--white); }
.yr-about__body em { font-style: italic; color: var(--white); }
.yr-about__chain {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 32px 0;
    padding-left: 20px;
    border-left: 2px solid var(--accent);
}
.yr-about__chain span {
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: .04em;
    color: var(--white);
}
.yr-about__sign {
    margin-top: 36px;
    font-size: 18px;
    color: var(--white);
}
.yr-about__tagline {
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: .12em;
    color: var(--accent);
    text-transform: lowercase;
}
.yr-about__body .yr-button { margin-top: 16px; }
.yr-about__visual {
    float: right;
    width: 460px;
    margin: 0 60px 30px 40px;
    padding: 28px 24px 20px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.015);
}
.yr-about__visual-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}
.yr-about__visual-label {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
}
.yr-about__visual-id {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: .08em;
    color: var(--accent);
}
.yr-about__yokai { width: 100%; height: auto; opacity: .7; }
.yr-about__visual-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
}
.yr-about__visual-status {
    display: flex;
    align-items: center;
    gap: 6px;
}
.yr-about__visual-status i {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    display: inline-block;
}
.yr-about__content { position: relative; }

@media (max-width: 1100px) {
    .yr-about__visual { width: 300px; }
}
@media (max-width: 860px) {
    [data-about-lang] { display: flex; flex-direction: column; }
    [data-about-lang] h1 { order: 1; }
    [data-about-lang] .yr-about__intro { order: 2; padding-left: 0; }
    [data-about-lang] .yr-about__pillars { order: 3; margin-left: 0; }
    [data-about-lang] .yr-about__visual {
        order: 4;
        float: none;
        width: 280px;
        margin: 20px auto 10px;
    }
    [data-about-lang] .yr-about__body { order: 5; padding-left: 24px; margin-top: 10px; }
}
@media (max-width: 620px) {
    .yr-about__content h1 { font-size: 48px; }
}

/* Error */
.yr-error { min-height: calc(100vh - 250px); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 100px 0; text-align: center; }
.yr-error__mark { width: 120px; height: 120px; display: grid; place-items: center; margin-bottom: 25px; background: rgba(255,255,255,.03); border: 1px solid var(--line); transform: rotate(45deg); }
.yr-error__mark img { width: 72px; transform: rotate(-45deg); }
.yr-error h1 { margin: 20px 0 0; color: var(--accent); font-family: var(--display); font-size: clamp(90px, 15vw, 190px); line-height: .8; }
.yr-error h2 { margin: 25px 0 8px; font-family: var(--display); font-size: 32px; text-transform: uppercase; }
.yr-error p { margin: 0 0 30px; color: var(--muted); }

/* Footer */
.yr-footer { border-top: 1px solid var(--line); background: #111213; }
.yr-footer__grid { min-height: 0; display: grid; grid-template-columns: 1.15fr .85fr 1fr; gap: 50px; align-items: center; padding-top: 34px; padding-bottom: 18px; }
.yr-footer__brand { display: flex; gap: 18px; align-items: center; }
.yr-footer__brand img { width: 55px; }
.yr-footer__brand strong { font-family: var(--display); font-size: 16px; letter-spacing: .2em; }
.yr-footer__brand p { max-width: 320px; margin: 6px 0 0; color: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: .12em; }
.yr-footer__meta { display: flex; flex-direction: column; gap: 7px; color: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: .16em; }
.yr-footer__meta span::before { content: "//"; margin-right: 8px; color: var(--accent); }
.yr-footer__right { justify-self: end; text-align: right; }
.yr-footer__right .yr-nav ul { justify-content: flex-end; gap: 18px; }
.yr-footer__right .yr-nav a { font-size: 11px; }
.yr-footer__team {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 22px 0;
    border-top: 1px solid var(--line);
}
.yr-footer__team span {
    color: var(--muted);
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .16em;
    white-space: nowrap;
}
.yr-footer__team svg {
    height: 40px;
    width: auto;
    color: var(--white);
    transition: opacity .2s;
}
.yr-footer__team a:hover svg { opacity: .75; }
.yr-footer__right .yr-nav a[href*="portal"], .yr-footer__right .yr-nav a[href*="signup"] { display: none; }
.yr-footer__right p { margin: 0; color: var(--muted); font-family: var(--mono); font-size: 13px; letter-spacing: .06em; }

@media (max-width: 1120px) {
    .yr-header__nav { display: none; }
    .yr-header__inner { grid-template-columns: 1fr auto auto; }
    .yr-menu-toggle {
        width: 42px;
        height: 42px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        padding: 0 10px;
        background: transparent;
        border: 1px solid var(--line);
        cursor: pointer;
    }
    .yr-menu-toggle span:not(.sr-only) { width: 100%; height: 1px; background: #fff; transition: transform .2s, opacity .2s; }
    .yr-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
    .yr-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .yr-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
    .yr-mobile-nav {
        display: block;
        position: fixed;
        top: 79px;
        left: 0;
        right: 0;
        z-index: 999;
        border-top: 1px solid var(--line);
        background: rgba(14,15,16,.98);
        backdrop-filter: blur(18px);
        max-height: 0;
        overflow: hidden;
        transition: max-height .35s ease;
    }
    .yr-mobile-nav.is-open { max-height: 500px; }
    .yr-mobile-nav .yr-nav ul { flex-direction: column; gap: 0; }
    .yr-mobile-nav .yr-nav li { border-bottom: 1px solid var(--line); }
    .yr-mobile-nav .yr-nav a { display: block; padding: 14px 0; font-size: 14px; }
    .yr-mobile-nav__actions { display: flex; gap: 14px; padding: 16px 0; justify-content: center; flex-wrap: wrap; }
    .yr-mobile-nav__actions button,
    .yr-mobile-nav__actions a { padding: 10px 18px; background: transparent; border: 1px solid var(--line); color: #fff; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; cursor: pointer; }

    .yr-hero__inner { grid-template-columns: 1fr minmax(360px,.78fr); }
    .yr-hero h1 { font-size: clamp(58px, 8vw, 88px); }
    .yr-hero__visual { min-height: 630px; }
    .yr-topic-grid { grid-template-columns: repeat(2,1fr); }
    .yr-card-grid { grid-template-columns: repeat(2,1fr); }
    .yr-cta { grid-template-columns: 150px 1fr; }
    .yr-cta__mark { width: 140px; height: 140px; }
    .yr-cta__mark img { width: 110px; }
    .yr-cta .yr-button { grid-column: 2; justify-self: start; }
    .yr-footer__grid { grid-template-columns: 1fr 1fr; }
    .yr-footer__meta { text-align: center; }
}

@media (max-width: 860px) {
    .yr-header__actions { display: none; }
    .yr-header__inner { grid-template-columns: 1fr auto; }
    .yr-hero { min-height: auto; }
    .yr-hero__inner { display: flex; flex-direction: column-reverse; min-height: 0; gap: 0; }
    .yr-hero__copy { position: relative; z-index: 5; padding: 0 0 70px; margin-top: -20px; }
    .yr-hero__copy > p { max-width: 560px; }
    .yr-hero__status { max-width: 560px; margin-top: 42px; }
    .yr-hero__visual {
        position: relative;
        width: 100%;
        height: 420px;
        min-height: 0;
        margin: 30px 0 0;
        align-self: center;
    }
    .yr-hero__visual::before {
        width: min(320px, 75vw);
        height: min(320px, 75vw);
        top: 50%;
    }
    .yr-hero__image-frame {
        position: absolute;
        inset: 0;
        mask-image: radial-gradient(ellipse 78% 88% at 50% 48%, #000 44%, rgba(0,0,0,.92) 64%, transparent 100%);
    }
    .yr-hero__image-frame img {
        width: auto;
        height: 100%;
        max-width: none;
        object-fit: contain;
        object-position: center bottom;
    }
    .yr-orbit { display: none; }
    .yr-eye { display: none; }
    .yr-hero__vertical { display: none; }
    .yr-hero__rail { position: relative; grid-template-columns: repeat(2,1fr); }
    .yr-hero__rail span:nth-child(3), .yr-hero__rail span:nth-child(4) { border-top: 1px solid var(--line); }
    .yr-featured__card { grid-template-columns: 1fr; }
    .yr-featured__media { border-right: 0; border-bottom: 1px solid var(--line); }
    .yr-featured__content { min-height: 430px; }
    .yr-tag { margin-top: 30px; }
    .yr-cta { grid-template-columns: 1fr; gap: 28px; text-align: left; }
    .yr-cta__mark { width: 110px; height: 110px; }
    .yr-cta__mark img { width: 80px; }
    .yr-cta .yr-button { grid-column: auto; justify-self: start; }
    .yr-post-layout::before,
    .yr-post-layout::after,
    .yr-post-content::after { display: none; }
    .yr-post-head { grid-template-columns: 1fr; }
    .yr-post-head__rail { display: none; }
    .yr-post-head__meta { grid-template-columns: 1fr auto auto; gap: 20px; }
    .yr-post-head__authors { grid-column: auto; }
    .yr-post-head__authors > img { width: 40px; height: 40px; }
    .yr-post-feature { margin: 0; }
    .yr-post-feature--wide { width: 100%; }
    .yr-post-feature img { width: 100%; max-height: 55vw; object-fit: cover; object-position: center; background: #18191a; display: block; }
    .yr-post-layout { grid-template-columns: 1fr; gap: 0; padding-top: 35px; padding-bottom: 30px; }
    .yr-post-aside { order: 1; border-bottom: 1px solid var(--line); padding-bottom: 6px; margin-bottom: 4px; }
    .yr-post-content { order: 2; }
    .yr-post-aside__sticky { position: static; }
    .yr-post-aside__tags { flex-direction: row; flex-wrap: wrap; gap: 8px; }
    .yr-post-aside__back { margin-top: 20px; }
    .yr-taxonomy-head__inner,
    .yr-author-head__inner { grid-template-columns: 1fr; }
    .yr-taxonomy-head__stats { justify-self: start; }
}

@media (max-width: 620px) {
    :root { --pad: 18px; }
    .yr-header__inner { min-height: 68px; }
    .yr-brand { min-width: 0; }
    .yr-brand__mark-wrap { width: 38px; height: 38px; }
    .yr-brand__text small { font-size: 9px; letter-spacing: .1em; }
    .yr-brand__text strong { font-size: 10px; letter-spacing: .18em; }
    .yr-mobile-nav { top: 69px; }
    .yr-hero__copy { padding-top: 68px; padding-bottom: 30px; }
    .yr-hero h1 { font-size: clamp(50px, 15vw, 74px); }
    .yr-hero__actions { align-items: flex-start; flex-direction: column; gap: 12px; }
    .yr-hero__status { flex-direction: column; gap: 8px; margin-top: 24px; }
    .yr-hero__visual { height: 350px; }
    .yr-hero__visual::before { width: min(260px, 65vw); height: min(260px, 65vw); }
    .yr-hero__rail { grid-template-columns: repeat(2, 1fr); position: relative; }
    .yr-hero__rail span { justify-content: flex-start; padding-left: var(--pad); }
    .yr-hero__rail span:nth-child(3), .yr-hero__rail span:nth-child(4) { border-top: 1px solid var(--line); }
    .yr-section-head { grid-template-columns: 1fr auto; gap: 12px; }
    .yr-section-head__line { display: none; }
    .yr-section-head h2 { font-size: 14px; }
    .yr-featured__media { }
    .yr-featured__content { min-height: 380px; padding: 28px 22px; }
    .yr-featured__content h2 { font-size: 34px; }
    .yr-topic-grid { grid-template-columns: repeat(2, 1fr); }
    .yr-topic { min-height: 210px; }
    .yr-card-grid { grid-template-columns: 1fr; }
    .yr-card__body > p { min-height: 0; }
    .yr-pagination { grid-template-columns: 1fr 1fr; }
    .yr-pagination__count { grid-row: 2; grid-column: 1 / -1; justify-self: center; }
    .yr-cta { padding: 28px 22px; }
    .yr-cta__mark { width: 100px; height: 100px; }
    .yr-cta__mark img { width: 70px; }
    .yr-cta__copy h2 { font-size: 38px; }
    .yr-archive-head h1,
    .yr-taxonomy-head h1,
    .yr-page-head h1 { font-size: 55px; }
    .gh-content > h3::before { display: none; }
    .yr-archive-head::after,
    .yr-taxonomy-head::after { width: 170px; height: 170px; right: -60px; opacity: .6; }
    .yr-archive-head__meta { flex-direction: column; gap: 10px; }
    .yr-author-head__profile { align-items: flex-start; flex-direction: column; }
    .yr-post-head h1 { font-size: clamp(32px, 10vw, 50px); -webkit-line-clamp: unset; display: block; overflow: visible; }
    .yr-post-head__meta { grid-template-columns: 1fr auto auto; gap: 14px; }
    .yr-post-head__authors { grid-column: auto; }
    .yr-post-head__authors > img { width: 34px; height: 34px; }
    .gh-content { font-size: 16px; line-height: 1.75; }
    .gh-content h2 { font-size: 34px; }
    .gh-content blockquote { padding: 18px 20px 18px 22px; }
    .gh-content pre { padding: 18px; font-size: 12px; }
    .gh-content .kg-width-wide,
    .gh-content .kg-width-full { width: calc(100vw - 1px); }
    .kg-bookmark-container { flex-direction: column; }
    .kg-bookmark-thumbnail { width: 100%; min-width: 0; height: 180px; }
    .yr-post-footer { flex-direction: row; flex-wrap: wrap; }
    .yr-footer__grid { grid-template-columns: 1fr; min-height: 0; gap: 30px; text-align: center; }
    .yr-footer__brand { flex-direction: column; align-items: center; }
    .yr-footer__right { justify-self: center; text-align: center; }
    .yr-footer__right .yr-nav ul { justify-content: center; }
}

@media (max-width: 400px) {
    :root { --pad: 14px; }
    .yr-hero h1 { font-size: 42px; }
    .yr-hero__visual { height: 280px; }
    .yr-hero__visual::before { display: none; }
    .yr-orbit--one { width: 280px; height: 280px; }
    .yr-orbit--two { width: 360px; height: 360px; }
    .yr-featured__content h2 { font-size: 28px; }
    .yr-featured__content { min-height: 340px; }
    .yr-cta__copy h2 { font-size: 30px; }
    .yr-archive-head h1,
    .yr-taxonomy-head h1,
    .yr-page-head h1 { font-size: 42px; }
    .yr-post-head h1 { font-size: 38px; }
    .yr-button { min-height: 44px; padding: 0 18px; }
}

/* ---- Flipbook ---- */
.yr-flipbook {
    position: relative;
    max-width: 960px;
    margin: 40px auto;
    user-select: none;
    -webkit-user-select: none;
}
.yr-flipbook__loading {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 500px;
    color: #9fa1a3;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.yr-flipbook__viewport {
    position: relative;
    display: flex;
    justify-content: center;
    background: transparent;
    border: none;
    overflow: visible;
    padding: 24px 32px;
    min-height: 300px;
}
.yr-flipbook__spread {
    display: flex;
    justify-content: center;
    position: relative;
    width: 100%;
    perspective: 2400px;
}
.yr-flipbook__page {
    position: relative;
    flex: 1;
    min-height: 0;
    background: #fff;
}
.yr-flipbook__page--cover {
    flex: none;
    width: 50%;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,.3);
    transition: transform .2s ease, box-shadow .2s ease;
    will-change: transform;
}
.yr-flipbook__page canvas {
    display: block;
    width: 100%;
    height: auto;
}
.yr-flipbook__page--left {
    box-shadow: inset -4px 0 12px rgba(0,0,0,.12);
}
.yr-flipbook__page--right {
    box-shadow: inset 4px 0 12px rgba(0,0,0,.12);
}
.yr-flipbook__page--left,
.yr-flipbook__page--right {
    transition: transform .2s ease, box-shadow .2s ease;
    will-change: transform;
}
.yr-flipbook__cover-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #9fa1a3;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: .12em;
    text-transform: uppercase;
    pointer-events: none;
    opacity: .7;
    animation: yr-pulse 2s ease-in-out infinite;
}
@keyframes yr-pulse {
    0%, 100% { opacity: .4; }
    50% { opacity: .9; }
}
.yr-flipbook__spine {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background: rgba(0,0,0,.15);
    transform: translateX(-50%);
    z-index: 5;
    pointer-events: none;
}
.yr-flipbook__leaf {
    position: absolute;
    top: 0;
    height: 100%;
    transform-style: preserve-3d;
    z-index: 50;
}
.yr-flipbook__leaf.is-flip-next {
    animation: yr-flip-next .55s ease-in-out forwards;
}
.yr-flipbook__leaf.is-flip-prev {
    animation: yr-flip-prev .55s ease-in-out forwards;
}
.yr-flipbook__leaf.is-cover-open {
    animation: yr-cover-open .3s ease-in-out forwards;
}
@keyframes yr-cover-open {
    from { transform: rotateY(0deg); }
    to   { transform: rotateY(-180deg); }
}
.yr-flipbook__leaf.is-cover-close {
    animation: yr-cover-close .6s ease-in-out forwards;
}
@keyframes yr-cover-close {
    from { transform: rotateY(-180deg); }
    to   { transform: rotateY(0deg); }
}
@keyframes yr-flip-next {
    from { transform: rotateY(0deg); }
    to   { transform: rotateY(-180deg); }
}
@keyframes yr-flip-prev {
    from { transform: rotateY(0deg); }
    to   { transform: rotateY(180deg); }
}
.yr-flipbook__leaf-front,
.yr-flipbook__leaf-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    overflow: hidden;
    background: #fff;
}
.yr-flipbook__leaf-front canvas,
.yr-flipbook__leaf-back canvas {
    display: block;
    width: 100%;
    height: auto;
}
.yr-flipbook__leaf-back {
    transform: rotateY(180deg);
}
.yr-flipbook__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 14px 0 0;
}
.yr-flipbook__controls.is-hidden { display: none; }
.yr-flipbook__btn {
    padding: 7px 14px;
    border: 1px solid var(--line);
    background: transparent;
    color: #9fa1a3;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: .1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: color .2s, border-color .2s;
}
.yr-flipbook__btn:hover {
    color: var(--accent);
    border-color: var(--accent);
}
.yr-flipbook__btn:disabled {
    opacity: .25;
    cursor: default;
    pointer-events: none;
}
.yr-flipbook__counter {
    color: #9fa1a3;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: .1em;
    min-width: 60px;
    text-align: center;
}
.yr-flipbook:fullscreen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #0a0a0a;
    padding: 20px;
}
.yr-flipbook:fullscreen .yr-flipbook__viewport {
    flex: 1;
    min-height: 0;
}
.yr-flipbook:fullscreen .yr-flipbook__spread {
    height: 100%;
}
.yr-flipbook:fullscreen .yr-flipbook__page canvas {
    height: 100%;
    object-fit: contain;
}

/* ---- White Paper template ---- */
.yr-whitepaper {
    padding-top: 0;
}
.yr-whitepaper__hero {
    position: relative;
    padding: clamp(60px, 8vw, 120px) 0 clamp(12px, 2vw, 20px);
    text-align: center;
    border-bottom: 1px solid var(--line);
}
.yr-whitepaper__hero .yr-kicker {
    justify-content: center;
    margin-bottom: 20px;
}
.yr-whitepaper__hero h1 {
    max-width: 900px;
    margin: 0 auto 20px;
    font-family: var(--display);
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 700;
    line-height: .96;
    text-transform: uppercase;
    letter-spacing: -.02em;
}
.yr-whitepaper__hero p {
    max-width: 600px;
    margin: 0 auto 24px;
    color: #9fa1a3;
    font-size: 15px;
    line-height: 1.6;
}
.yr-whitepaper__meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    margin-top: 24px;
    color: #9fa1a3;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.yr-whitepaper__meta strong {
    color: #fff;
    font-weight: 600;
}
.yr-whitepaper__viewer {
    padding: clamp(16px, 2vw, 30px) 0 clamp(16px, 2vw, 30px);
}
.yr-whitepaper__viewer .yr-flipbook {
    max-width: 920px;
    margin: 0 auto;
}
.yr-whitepaper__gate {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(24px, 4vw, 48px);
    align-items: center;
    padding: clamp(24px, 4vw, 48px) 0 clamp(40px, 5vw, 60px);
}
.yr-whitepaper__gate-cover img {
    display: block;
    width: 100%;
    height: auto;
    box-shadow: 0 4px 24px rgba(0,0,0,.35);
}
.yr-whitepaper__gate-cta {
    max-width: 480px;
}
.yr-whitepaper__gate-label {
    display: block;
    color: var(--accent);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .16em;
    margin-bottom: 16px;
}
.yr-whitepaper__gate-heading {
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 600;
    line-height: 1.3;
    margin: 0 0 12px;
}
.yr-whitepaper__gate-desc {
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 24px;
}
.yr-whitepaper__gate-signin {
    margin-top: 16px;
    font-size: 13px;
    color: var(--muted);
}
.yr-whitepaper__gate-signin a {
    color: var(--accent);
}

/* White paper access gate: CSS safety layer.
   Ghost adds tag-{slug} classes to <body> via {{body_class}}.
   Hide thumbnail and sidebar on white-paper pages; keep post-layout visible (it holds content). */
body.tag-white-paper .yr-post-feature,
body.tag-white-papers .yr-post-feature,
body.tag-white-paper .yr-post-aside,
body.tag-white-papers .yr-post-aside {
    display: none !important;
}
body.tag-white-paper .yr-post-layout,
body.tag-white-papers .yr-post-layout {
    grid-template-columns: 1fr !important;
}

/* Hide flipbook elements inside the membership gate */
.yr-whitepaper__gate .yr-flipbook {
    display: none !important;
}

.yr-whitepaper__content {
    max-width: 100%;
}
.yr-whitepaper__body {
    max-width: 780px;
    margin: 0 auto;
    padding: 0 var(--pad) clamp(40px, 5vw, 80px);
}
.yr-whitepaper__download {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 30px 0;
    border-top: 1px solid var(--line);
    margin-top: 40px;
}

@media (max-width: 860px) {
    .yr-whitepaper__meta { flex-direction: column; gap: 12px; }
    .yr-whitepaper__gate { grid-template-columns: 1fr; }
    .yr-whitepaper__gate-cover img { max-width: 320px; margin: 0 auto; }
}

@media (max-width: 860px) {
    .yr-flipbook { max-width: 100%; }
    .yr-flipbook__spine { display: none; }
    .yr-flipbook__viewport { border: none; }
    .yr-flipbook__page--cover { width: 80%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}
