/* =========================================================
   ViewsViral — Main stylesheet
   Editorial minimalist design with slash-underline animations
   ========================================================= */

:root {
    --vv-bg: #ffffff;
    --vv-fg: #0a0a0a;
    --vv-muted: #6b6b6b;
    --vv-line: #111111;
    --vv-accent: #ff2a2a;
    --vv-soft: #f5f5f3;
    --vv-easing: cubic-bezier(.77,0,.175,1);
    --vv-font-display: "Helvetica Neue", "Inter", "Arial", sans-serif;
    --vv-font-body: "Inter", "Helvetica Neue", "Arial", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; text-size-adjust: 100%; }
body {
    font-family: var(--vv-font-body);
    color: var(--vv-fg);
    background: var(--vv-bg);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Loader ---------- */
.vv-loading {
    position: fixed; inset: 0;
    background: var(--vv-bg);
    display: flex; align-items: center; justify-content: center;
    flex-direction: column;
    z-index: 9999;
    transition: opacity .6s var(--vv-easing), visibility .6s var(--vv-easing);
}
.vv-loading.is-done { opacity: 0; visibility: hidden; }
.vv-loading_name {
    font-family: var(--vv-font-display);
    font-weight: 800;
    font-size: clamp(28px, 5vw, 56px);
    letter-spacing: .05em;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
}
.vv-loading_name .termination { color: var(--vv-accent); }
.vv-loading_bar {
    margin-top: 28px;
    width: 220px;
    max-width: 60vw;
    height: 2px;
    background: rgba(0,0,0,.08);
    position: relative;
    overflow: hidden;
}
.vv-loading_bar::after {
    content: ""; position: absolute; inset: 0;
    background: var(--vv-fg);
    transform: scaleX(0); transform-origin: left;
    animation: vv-bar 1.4s var(--vv-easing) forwards;
}
@keyframes vv-bar {
    0%   { transform: scaleX(0); }
    100% { transform: scaleX(1); }
}

/* ---------- Header ---------- */
.vv-header {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 50;
    padding: 22px 36px;
    display: flex; justify-content: space-between; align-items: center;
    mix-blend-mode: difference;
    color: #fff;
    pointer-events: none;
}
.vv-header > * { pointer-events: auto; }
.vv-header_home {
    font-family: var(--vv-font-display);
    font-weight: 800;
    letter-spacing: .08em;
    font-size: 14px;
    text-transform: uppercase;
}
.vv-header_about {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 12px;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.vv-header_about svg { width: 32px; height: 6px; fill: currentColor; }

/* underline + slash hover effect (signature animation) */
.vv-underline {
    position: relative;
    display: inline-block;
}
.vv-underline::after {
    content: "";
    position: absolute; left: 0; bottom: -3px;
    width: 100%; height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .5s var(--vv-easing);
}
.vv-underline:hover::after,
a:hover .vv-underline::after { transform: scaleX(1); transform-origin: left; }
.vv-underline .termination { color: var(--vv-accent); }

/* sns */
.vv-sns {
    position: fixed; left: 36px; bottom: 28px;
    z-index: 40;
    display: flex; gap: 22px;
    font-size: 11px;
    letter-spacing: .2em;
    text-transform: uppercase;
    mix-blend-mode: difference;
    color: #fff;
}

/* Menu trigger (hamburger) */
.vv-menu-trigger {
    position: fixed; right: 36px; bottom: 28px;
    z-index: 60;
    width: 44px; height: 44px;
    cursor: pointer;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    gap: 5px;
    mix-blend-mode: difference;
    color: #fff;
    transition: transform .4s var(--vv-easing);
}
.vv-menu-trigger span {
    display: block; width: 26px; height: 1px;
    background: currentColor;
    transition: transform .5s var(--vv-easing), opacity .3s var(--vv-easing);
}
body.menu-open .vv-menu-trigger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
body.menu-open .vv-menu-trigger span:nth-child(2) { opacity: 0; }
body.menu-open .vv-menu-trigger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.vv-hero {
    min-height: 100vh;
    display: flex; align-items: center;
    padding: 120px 36px 80px;
    position: relative;
    background: var(--vv-fg);
    color: #fff;
    overflow: hidden;
}
.vv-hero_inner {
    max-width: 1400px; margin: 0 auto; width: 100%;
}
.vv-hero_eyebrow {
    font-size: 12px; letter-spacing: .25em; text-transform: uppercase;
    color: var(--vv-muted); margin-bottom: 28px;
}
.vv-hero_title {
    font-family: var(--vv-font-display);
    font-weight: 800;
    font-size: clamp(48px, 9vw, 148px);
    line-height: 0.94;
    letter-spacing: -.02em;
    text-transform: uppercase;
}
.vv-hero_title .accent { color: var(--vv-accent); }
.vv-hero_meta {
    margin-top: 48px;
    display: flex; gap: 60px; flex-wrap: wrap;
    font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
    color: var(--vv-muted);
}
.vv-hero_meta strong { color: #fff; display: block; font-size: 28px; letter-spacing: 0; font-weight: 700; }

/* ---------- Works/Article list ---------- */
.vv-list {
    padding: 120px 36px 160px;
    max-width: 1400px; margin: 0 auto;
}
.vv-list_intro {
    display: flex; justify-content: space-between; align-items: flex-end;
    border-bottom: 1px solid var(--vv-line);
    padding-bottom: 28px;
    margin-bottom: 60px;
    flex-wrap: wrap; gap: 24px;
}
.vv-list_intro h1 {
    font-family: var(--vv-font-display);
    font-size: clamp(36px, 6vw, 72px);
    font-weight: 800;
    text-transform: uppercase; letter-spacing: -.01em;
}
.vv-list_intro p {
    font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
    color: var(--vv-muted); max-width: 360px;
}
.vv-list_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 64px 36px;
}
.vv-list_item { position: relative; }
.vv-list_item a {
    display: block; position: relative;
    transition: transform .8s var(--vv-easing);
}
.vv-list_item a:hover { transform: translateY(-4px); }
.vv-list_num {
    position: absolute; top: 16px; left: 16px;
    z-index: 2;
    color: #fff;
    font-family: var(--vv-font-display);
    font-weight: 800;
    font-size: 13px; letter-spacing: .14em;
    mix-blend-mode: difference;
}
.vv-list_thumb {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    position: relative;
    background: var(--vv-soft);
}
.vv-list_thumb img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 1.4s var(--vv-easing), filter .8s var(--vv-easing);
    filter: saturate(.95);
}
.vv-list_item a:hover .vv-list_thumb img { transform: scale(1.06); filter: saturate(1.1); }
.vv-list_thumb::after {
    content: "";
    position: absolute; inset: auto 0 0 0; height: 2px;
    background: var(--vv-fg);
    transform: scaleX(0); transform-origin: right;
    transition: transform .8s var(--vv-easing);
}
.vv-list_item a:hover .vv-list_thumb::after { transform: scaleX(1); transform-origin: left; }
.vv-list_meta {
    display: flex; gap: 14px; align-items: center;
    margin-top: 18px;
    font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
    color: var(--vv-muted);
}
.vv-list_title {
    margin-top: 12px;
    font-family: var(--vv-font-display);
    font-weight: 700;
    font-size: 22px;
    line-height: 1.25;
    letter-spacing: -.01em;
}
.vv-list_title span { background: linear-gradient(transparent 92%, var(--vv-fg) 92%); background-size: 0 100%; background-repeat: no-repeat; transition: background-size .6s var(--vv-easing); padding-bottom: 2px; }
.vv-list_item a:hover .vv-list_title span { background-size: 100% 100%; }

/* ---------- Slash menu (off-canvas) ---------- */
.vv-menu {
    position: fixed; inset: 0;
    background: var(--vv-fg);
    color: #fff;
    z-index: 55;
    transform: translateY(-100%);
    transition: transform .9s var(--vv-easing);
    display: flex; align-items: center; justify-content: center;
    padding: 80px 36px;
}
body.menu-open .vv-menu { transform: translateY(0); }
.vv-menu nav ul { display: grid; gap: 18px; text-align: center; }
.vv-menu nav a {
    font-family: var(--vv-font-display);
    font-size: clamp(28px, 5vw, 56px);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -.01em;
}

/* ---------- Article page ---------- */
.vv-article {
    padding: 140px 36px 120px;
    max-width: 860px; margin: 0 auto;
}
.vv-article_eyebrow {
    font-size: 12px; letter-spacing: .25em; text-transform: uppercase;
    color: var(--vv-muted); margin-bottom: 24px;
}
.vv-article_title {
    font-family: var(--vv-font-display);
    font-weight: 800;
    font-size: clamp(36px, 6vw, 72px);
    line-height: 1.05;
    letter-spacing: -.02em;
    margin-bottom: 32px;
}
.vv-article_meta {
    display: flex; gap: 20px; align-items: center;
    border-top: 1px solid var(--vv-line);
    border-bottom: 1px solid var(--vv-line);
    padding: 18px 0; margin-bottom: 48px;
    font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
    color: var(--vv-muted);
}
.vv-article_hero {
    margin: 0 0 56px;
    aspect-ratio: 16/9; overflow: hidden; background: var(--vv-soft);
}
.vv-article_hero img { width: 100%; height: 100%; object-fit: cover; }
.vv-article_body { font-size: 18px; line-height: 1.75; color: #1a1a1a; }
.vv-article_body p { margin-bottom: 1.4em; }
.vv-article_body h2 {
    font-family: var(--vv-font-display);
    font-weight: 800;
    font-size: 32px; line-height: 1.2;
    margin: 56px 0 20px;
    letter-spacing: -.01em;
}
.vv-article_body h3 {
    font-family: var(--vv-font-display);
    font-weight: 700;
    font-size: 22px; line-height: 1.3;
    margin: 36px 0 14px;
}
.vv-article_body ul, .vv-article_body ol {
    margin: 0 0 1.4em 1.4em;
}
.vv-article_body li { margin-bottom: .5em; }
.vv-article_body blockquote {
    border-left: 3px solid var(--vv-accent);
    padding: 8px 0 8px 24px;
    margin: 32px 0;
    font-family: var(--vv-font-display);
    font-size: 22px; line-height: 1.4;
    color: #000;
}
.vv-article_body img { margin: 32px 0; }
.vv-article_body a { border-bottom: 1px solid currentColor; }

/* ---------- Footer ---------- */
.vv-footer {
    background: var(--vv-fg);
    color: #fff;
    padding: 80px 36px 40px;
}
.vv-footer_inner {
    max-width: 1400px; margin: 0 auto;
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}
.vv-footer h3 {
    font-size: 11px; letter-spacing: .25em; text-transform: uppercase;
    color: var(--vv-muted); margin-bottom: 18px;
}
.vv-footer ul li { margin-bottom: 10px; font-size: 14px; }
.vv-footer ul li a:hover { color: var(--vv-accent); }
.vv-footer_brand .vv-footer_logo {
    font-family: var(--vv-font-display);
    font-weight: 800;
    font-size: 26px; letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.vv-footer_brand p { font-size: 14px; color: var(--vv-muted); max-width: 280px; line-height: 1.6; }
.vv-footer_bottom {
    max-width: 1400px; margin: 60px auto 0;
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 24px;
    display: flex; justify-content: space-between; flex-wrap: wrap;
    font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
    color: var(--vv-muted);
}

/* ---------- Back to top ---------- */
.vv-back-to-top {
    position: fixed; right: 36px; bottom: 90px;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: var(--vv-fg); color: #fff;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity .4s var(--vv-easing), transform .4s var(--vv-easing);
    z-index: 40;
}
.vv-back-to-top.is-visible { opacity: 1; pointer-events: auto; }
.vv-back-to-top:hover { transform: translateY(-4px); }
.vv-back-to-top span {
    width: 8px; height: 8px;
    border-top: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    transform: rotate(-45deg);
    margin-top: 4px;
}

/* ---------- Page (institutional) ---------- */
.vv-page {
    padding: 140px 36px 120px;
    max-width: 820px; margin: 0 auto;
}
.vv-page h1 {
    font-family: var(--vv-font-display);
    font-weight: 800;
    font-size: clamp(40px, 6vw, 80px);
    line-height: 1.05;
    text-transform: uppercase;
    letter-spacing: -.02em;
    margin-bottom: 36px;
}
.vv-page .vv-article_body { font-size: 17px; }

/* ---------- Reveal on scroll ---------- */
.vv-reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--vv-easing), transform .9s var(--vv-easing); }
.vv-reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .vv-header { padding: 18px 20px; }
    .vv-sns { left: 20px; bottom: 18px; }
    .vv-menu-trigger { right: 20px; bottom: 18px; }
    .vv-hero { padding: 100px 20px 60px; }
    .vv-list { padding: 80px 20px 100px; }
    .vv-article, .vv-page { padding: 110px 20px 80px; }
    .vv-footer_inner { grid-template-columns: 1fr 1fr; }
    .vv-list_grid { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 540px) {
    .vv-footer_inner { grid-template-columns: 1fr; }
    .vv-hero_meta { gap: 24px; }
}

/* ---------- WordPress default classes (alignment, captions, etc.) ---------- */
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { display: block; margin: 24px auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 12px; color: var(--vv-muted); margin-top: 8px; }
.screen-reader-text { position: absolute; left: -9999px; }
