/* ============================================================
   Portfólio — Catarina Castanha
   tema: tinta & código (dark / vermelho / creme)
   ============================================================ */

:root {
    --bg: #0b0708;
    --bg-soft: #140d0e;
    --bg-card: #170f10;
    --ink: #efe6d8;
    --ink-dim: #a89a8c;
    --red: #e23b30;
    --red-deep: #8e1d22;
    --line: rgba(239, 230, 216, 0.12);
    --font-display: 'Fraunces', serif;
    --font-body: 'Space Grotesk', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

::selection { background: var(--red); color: var(--bg); }

a { color: inherit; text-decoration: none; }

/* ---------- grain ---------- */
.grain {
    position: fixed; inset: -50%;
    width: 200%; height: 200%;
    pointer-events: none; z-index: 9998;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
    animation: grain 8s steps(10) infinite;
}
@keyframes grain {
    0%,100% { transform: translate(0,0); }
    20% { transform: translate(-3%,2%); }
    40% { transform: translate(2%,-3%); }
    60% { transform: translate(-2%,-2%); }
    80% { transform: translate(3%,3%); }
}

/* ---------- cursor ---------- */
.cursor-dot, .cursor-ring {
    position: fixed; top: 0; left: 0;
    pointer-events: none; z-index: 9999;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}
.cursor-dot {
    width: 8px; height: 8px;
    background: var(--red);
    transition: transform 0.15s var(--ease), opacity 0.3s;
}
.cursor-ring {
    width: 36px; height: 36px;
    border: 1px solid rgba(226, 59, 48, 0.5);
    transition: width 0.3s var(--ease), height 0.3s var(--ease),
                border-color 0.3s, background 0.3s;
}
.cursor-ring.hovering {
    width: 64px; height: 64px;
    background: rgba(226, 59, 48, 0.12);
    border-color: var(--red);
}
@media (hover: none), (max-width: 768px) {
    body { cursor: auto; }
    .cursor-dot, .cursor-ring { display: none; }
}

/* ---------- progress bar ---------- */
.progress-bar {
    position: fixed; top: 0; left: 0;
    height: 2px; width: 0;
    background: linear-gradient(90deg, var(--red-deep), var(--red));
    z-index: 10000;
    box-shadow: 0 0 12px rgba(226, 59, 48, 0.7);
}

/* ---------- header ---------- */
.header {
    position: fixed; top: 0; left: 0; right: 0;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.1rem 4vw;
    z-index: 1000;
    background: rgba(11, 7, 8, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.4s, background 0.4s;
}
.header.scrolled { border-bottom-color: var(--line); background: rgba(11, 7, 8, 0.85); }

.logo {
    font-family: var(--font-display);
    font-size: 1.35rem; font-weight: 600;
    letter-spacing: -0.02em;
}
.logo span { color: var(--red); font-style: italic; }
.logo sup { font-size: 0.55em; color: var(--ink-dim); }

.nav { display: flex; gap: 2.2rem; }
.nav a {
    font-size: 0.9rem; letter-spacing: 0.04em;
    color: var(--ink-dim); position: relative;
    transition: color 0.3s;
}
.nav a::after {
    content: ''; position: absolute;
    left: 0; bottom: -5px; height: 1px; width: 0;
    background: var(--red);
    transition: width 0.35s var(--ease);
}
.nav a:hover { color: var(--ink); }
.nav a:hover::after { width: 100%; }

.pill-disponivel {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.78rem; letter-spacing: 0.05em;
    border: 1px solid var(--line);
    padding: 0.45rem 1rem; border-radius: 99px;
    color: var(--ink-dim);
    transition: border-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.pill-disponivel:hover {
    border-color: var(--red); color: var(--ink);
    box-shadow: 0 0 18px rgba(226, 59, 48, 0.25);
}
.pulse-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--red);
    animation: pulse 1.8s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(226, 59, 48, 0.6); }
    70% { box-shadow: 0 0 0 9px rgba(226, 59, 48, 0); }
    100% { box-shadow: 0 0 0 0 rgba(226, 59, 48, 0); }
}

.menu-toggle { display: none; background: none; border: none; cursor: pointer; }
.menu-toggle span {
    display: block; width: 26px; height: 2px;
    background: var(--ink); margin: 6px 0;
    transition: transform 0.3s var(--ease), opacity 0.3s;
}
.menu-toggle.open span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-toggle.open span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
    position: fixed; inset: 0; z-index: 999;
    background: rgba(11, 7, 8, 0.97);
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 2rem;
    opacity: 0; pointer-events: none;
    transition: opacity 0.4s var(--ease);
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
    font-family: var(--font-display);
    font-size: 2.2rem; font-style: italic;
    transition: color 0.3s;
}
.mobile-menu a:hover { color: var(--red); }

/* ---------- hero ---------- */
.hero {
    min-height: 100svh;
    display: flex; align-items: center; justify-content: center;
    position: relative; padding: 8rem 4vw 6rem;
    text-align: center;
}
.hero-bg-glow {
    position: absolute; top: 20%; left: 50%;
    width: 60vw; height: 60vw; max-width: 760px; max-height: 760px;
    transform: translateX(-50%);
    background: radial-gradient(circle, rgba(142, 29, 34, 0.28) 0%, transparent 65%);
    filter: blur(40px);
    animation: glowFloat 9s ease-in-out infinite alternate;
    pointer-events: none;
}
@keyframes glowFloat {
    from { transform: translateX(-55%) translateY(0) scale(1); }
    to   { transform: translateX(-45%) translateY(-4%) scale(1.08); }
}

.ink-ornament {
    position: absolute; top: 50%;
    height: 80vh; width: auto;
    color: var(--red-deep); opacity: 0.55;
    pointer-events: none;
}
.ink-left  { left: -2vw;  transform: translateY(-50%); animation: floaty 11s ease-in-out infinite alternate; }
.ink-right { right: -2vw; transform: translateY(-50%); animation: floaty 13s ease-in-out infinite alternate-reverse; }
@keyframes floaty {
    from { transform: translateY(-52%) rotate(-1.5deg); }
    to   { transform: translateY(-48%) rotate(1.5deg); }
}
.draw {
    stroke-dasharray: 1400;
    stroke-dashoffset: 1400;
    animation: draw 3.2s var(--ease) 0.4s forwards;
}
.draw.d2 { animation-delay: 0.9s; animation-duration: 3.8s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.fade-in-slow { opacity: 0; animation: fadeIn 1.5s ease 2.8s forwards; }
@keyframes fadeIn { to { opacity: 1; } }

.hero-content { position: relative; max-width: 900px; }

.hero-kicker {
    font-family: var(--font-mono);
    font-size: 0.85rem; letter-spacing: 0.35em;
    text-transform: uppercase; color: var(--red);
    margin-bottom: 1.6rem;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3.4rem, 12vw, 9rem);
    font-weight: 500; line-height: 0.95;
    letter-spacing: -0.03em;
}
.hero-title .line { display: block; overflow: hidden; }
.hero-title .word {
    display: inline-block;
    transform: translateY(110%);
    animation: riseUp 1.1s var(--ease) forwards;
}
.hero-title .line-accent .word {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--red);
    font-style: italic;
    animation-delay: 0.18s;
    transition: color 0.5s var(--ease), text-shadow 0.5s;
}
.hero-title:hover .line-accent .word {
    color: var(--red);
    text-shadow: 0 0 40px rgba(226, 59, 48, 0.45);
}
@keyframes riseUp { to { transform: translateY(0); } }

.hero-sub {
    max-width: 560px; margin: 2.2rem auto 0;
    color: var(--ink-dim); font-size: 1.1rem; font-weight: 300;
}
.hero-sub strong { color: var(--ink); font-weight: 500; }
.hero-sub em { color: var(--red); font-style: italic; }

.hero-cta { margin-top: 2.6rem; display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.stagger-item { opacity: 0; animation: fadeUp 1s var(--ease) forwards; }
.hero-kicker.stagger-item { animation-delay: 0.1s; }
.hero-sub.stagger-item    { animation-delay: 0.55s; }
.hero-cta.stagger-item    { animation-delay: 0.75s; }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(26px); }
    to   { opacity: 1; transform: translateY(0); }
}

.btn {
    display: inline-block;
    font-size: 0.92rem; letter-spacing: 0.05em;
    padding: 0.85rem 2rem; border-radius: 99px;
    transition: transform 0.3s var(--ease), box-shadow 0.3s, background 0.3s, color 0.3s, border-color 0.3s;
}
.btn-solid { background: var(--red); color: #fff; }
.btn-solid:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 32px rgba(226, 59, 48, 0.35);
}
.btn-ghost { border: 1px solid var(--line); color: var(--ink-dim); }
.btn-ghost:hover { border-color: var(--red); color: var(--ink); transform: translateY(-3px); }

.scroll-cue {
    position: absolute; bottom: 2.2rem; left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-mono); font-size: 0.7rem;
    letter-spacing: 0.3em; text-transform: uppercase;
    color: var(--ink-dim);
    display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
}
.scroll-line {
    width: 1px; height: 44px;
    background: linear-gradient(var(--red), transparent);
    animation: scrollLine 1.8s var(--ease) infinite;
}
@keyframes scrollLine {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    51% { transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- marquee ---------- */
.marquee {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    overflow: hidden; padding: 1.1rem 0;
    background: var(--bg-soft);
}
.marquee-track {
    display: flex; align-items: center; gap: 2.5rem;
    width: max-content;
    animation: marquee 26s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
    font-family: var(--font-display); font-style: italic;
    font-size: 1.25rem; color: var(--ink-dim);
    white-space: nowrap;
}
.marquee-track i { color: var(--red); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: 9rem 6vw; max-width: 1200px; margin: 0 auto; }

.section-head {
    display: flex; align-items: baseline; gap: 1.4rem;
    margin-bottom: 4rem;
}
.section-num {
    font-family: var(--font-mono); font-size: 0.85rem;
    color: var(--red); letter-spacing: 0.2em;
}
.section-head h2 {
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 500; letter-spacing: -0.02em;
}
.section-head h2 em { color: var(--red); }

/* reveal on scroll */
.reveal {
    opacity: 0; transform: translateY(40px);
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- sobre ---------- */
.sobre-grid {
    display: grid; grid-template-columns: 1.6fr 1fr;
    gap: 4rem; align-items: start;
}
.sobre-texto p { color: var(--ink-dim); margin-bottom: 1.4rem; font-weight: 300; }
.sobre-texto .lead { font-size: 1.35rem; color: var(--ink); line-height: 1.5; }
.sobre-texto strong { color: var(--ink); font-weight: 500; }
.sobre-texto .lead strong { color: var(--red); }

.sobre-stats { display: flex; flex-direction: column; gap: 1.2rem; }
.stat {
    border: 1px solid var(--line); border-radius: 14px;
    padding: 1.6rem 1.8rem;
    background: var(--bg-card);
    transition: border-color 0.4s, transform 0.4s var(--ease), box-shadow 0.4s;
}
.stat:hover {
    border-color: var(--red); transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(226, 59, 48, 0.12);
}
.stat-num, .stat-plus {
    font-family: var(--font-display);
    font-size: 2.6rem; color: var(--red); font-weight: 600;
}
.stat-label {
    display: block; font-size: 0.85rem;
    color: var(--ink-dim); letter-spacing: 0.06em;
}

.skills-wrap {
    margin-top: 4rem;
    display: flex; flex-wrap: wrap; gap: 0.7rem;
}
.skill-tag {
    font-family: var(--font-mono); font-size: 0.8rem;
    border: 1px solid var(--line); border-radius: 99px;
    padding: 0.5rem 1.1rem; color: var(--ink-dim);
    position: relative; overflow: hidden;
    transition: color 0.35s, border-color 0.35s;
}
.skill-tag::before {
    content: ''; position: absolute; inset: 0;
    background: var(--red);
    transform: translateY(101%);
    transition: transform 0.35s var(--ease);
    z-index: -1; border-radius: 99px;
}
.skill-tag:hover { color: #fff; border-color: var(--red); }
.skill-tag:hover::before { transform: translateY(0); }

/* ---------- experiência ---------- */
.timeline { position: relative; padding-left: 2.5rem; }
.timeline::before {
    content: ''; position: absolute;
    left: 6px; top: 6px; bottom: 6px; width: 1px;
    background: linear-gradient(var(--red), var(--line));
}
.timeline-item { position: relative; padding-bottom: 3.5rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-marker {
    position: absolute; left: -2.5rem; top: 8px;
    width: 13px; height: 13px; border-radius: 50%;
    background: var(--bg); border: 2px solid var(--red);
    box-shadow: 0 0 14px rgba(226, 59, 48, 0.55);
}
.timeline-periodo {
    font-family: var(--font-mono); font-size: 0.78rem;
    color: var(--red); letter-spacing: 0.12em; text-transform: uppercase;
}
.timeline-item h3 {
    font-family: var(--font-display);
    font-size: 1.55rem; font-weight: 500; margin-top: 0.4rem;
}
.timeline-empresa { color: var(--ink-dim); font-size: 0.95rem; font-style: italic; }
.timeline-item p { color: var(--ink-dim); font-weight: 300; margin-top: 0.7rem; max-width: 640px; }

/* ---------- projetos ---------- */
.projetos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
    gap: 1.4rem;
}
.projeto-card {
    position: relative; display: flex; flex-direction: column;
    border: 1px solid var(--line); border-radius: 18px;
    padding: 2rem; min-height: 240px;
    background: linear-gradient(150deg, var(--bg-card), var(--bg-soft));
    overflow: hidden;
    transition: border-color 0.4s, box-shadow 0.4s, transform 0.2s ease-out;
    will-change: transform;
}
.projeto-card::after {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(226, 59, 48, 0.13), transparent 65%);
    opacity: 0; transition: opacity 0.4s;
    pointer-events: none;
}
.projeto-card:hover { border-color: rgba(226, 59, 48, 0.6); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); }
.projeto-card:hover::after { opacity: 1; }

.projeto-num {
    font-family: var(--font-display); font-style: italic;
    font-size: 2.6rem; color: transparent;
    -webkit-text-stroke: 1px rgba(239, 230, 216, 0.25);
    transition: -webkit-text-stroke-color 0.4s;
}
.projeto-card:hover .projeto-num { -webkit-text-stroke-color: var(--red); }

.projeto-body { margin-top: auto; }
.projeto-body h3 {
    font-family: var(--font-display);
    font-size: 1.5rem; font-weight: 500; margin-bottom: 0.5rem;
}
.projeto-body p { color: var(--ink-dim); font-size: 0.92rem; font-weight: 300; }

.projeto-tags { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1.1rem; }
.projeto-tags span {
    font-family: var(--font-mono); font-size: 0.68rem;
    color: var(--red); border: 1px solid rgba(226, 59, 48, 0.35);
    border-radius: 99px; padding: 0.22rem 0.7rem;
}

.projeto-arrow {
    position: absolute; top: 1.6rem; right: 1.8rem;
    font-size: 1.3rem; color: var(--ink-dim);
    transition: transform 0.35s var(--ease), color 0.35s;
}
.projeto-card:hover .projeto-arrow {
    transform: translate(4px, -4px) rotate(-45deg);
    color: var(--red);
}

.projeto-card.no-link { cursor: default; }
.projeto-card.no-link .projeto-arrow { display: none; }

.projetos-mais { text-align: center; margin-top: 3.5rem; }

/* ---------- footer ---------- */
.footer {
    border-top: 1px solid var(--line);
    padding: 8rem 6vw 3rem;
    background:
        radial-gradient(ellipse 70% 90% at 50% 110%, rgba(142, 29, 34, 0.25), transparent),
        var(--bg-soft);
    text-align: center;
}
.footer-kicker {
    font-family: var(--font-mono); font-size: 0.85rem;
    color: var(--red); letter-spacing: 0.25em;
    margin-bottom: 1.4rem;
}
.footer-title { margin-bottom: 3rem; }
.email-link {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 5vw, 3.6rem);
    font-weight: 500; font-style: italic;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, var(--ink), var(--ink)) no-repeat 0 100% / 0 2px;
    transition: background-size 0.5s var(--ease), color 0.4s;
}
.email-link:hover { color: var(--red); background-size: 100% 2px; background-image: linear-gradient(90deg, var(--red), var(--red)); }

.footer-links { display: flex; justify-content: center; gap: 2.4rem; flex-wrap: wrap; }
.footer-links a {
    font-size: 0.95rem; letter-spacing: 0.05em;
    color: var(--ink-dim);
    transition: color 0.3s, transform 0.3s var(--ease);
    display: inline-block;
}
.footer-links a:hover { color: var(--red); transform: translateY(-3px); }

.footer-base {
    margin-top: 5rem;
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
    font-family: var(--font-mono); font-size: 0.72rem;
    color: var(--ink-dim); letter-spacing: 0.08em;
}

/* ---------- responsivo ---------- */
@media (max-width: 900px) {
    .nav, .pill-disponivel { display: none; }
    .menu-toggle { display: block; }
    .sobre-grid { grid-template-columns: 1fr; gap: 3rem; }
    .sobre-stats { flex-direction: row; flex-wrap: wrap; }
    .stat { flex: 1 1 140px; }
    .section { padding: 6rem 6vw; }
    .ink-ornament { opacity: 0.3; height: 60vh; }
}
@media (max-width: 540px) {
    .footer-base { justify-content: center; text-align: center; }
    .hero-cta .btn { width: 100%; text-align: center; }
}

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

/* ---------- tattoo & art ---------- */
.tattoo-intro { max-width: 680px; margin-bottom: 4rem; }
.tattoo-intro p { color: var(--ink-dim); font-weight: 300; margin-bottom: 1.4rem; }
.tattoo-intro .lead { font-size: 1.35rem; color: var(--ink); line-height: 1.5; }
.tattoo-intro strong { color: var(--red); font-weight: 500; }

.arte-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.4rem;
}
.arte-card {
    position: relative; margin: 0;
    border: 1px solid var(--line); border-radius: 16px;
    background: var(--bg-card);
    aspect-ratio: 3 / 4; overflow: hidden;
    transition: border-color 0.4s, transform 0.5s var(--ease), box-shadow 0.4s;
}
.arte-card:nth-child(even) { transform: translateY(1.6rem); }
.arte-card:hover {
    border-color: var(--red);
    transform: translateY(-6px) rotate(-1deg);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.55), 0 0 30px rgba(226, 59, 48, 0.12);
}
.arte-card:nth-child(even):hover { transform: translateY(1rem) rotate(1deg); }

.arte-card img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    filter: grayscale(85%) contrast(1.05);
    transition: filter 0.6s var(--ease), transform 0.8s var(--ease);
}
.arte-card:hover img { filter: grayscale(0%); transform: scale(1.06); }

.arte-placeholder {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 1rem;
    color: var(--red-deep);
    background:
        radial-gradient(circle at 70% 20%, rgba(142, 29, 34, 0.15), transparent 55%),
        var(--bg-card);
}
.arte-placeholder svg { width: 42%; opacity: 0.8; animation: floaty 9s ease-in-out infinite alternate; }
.arte-placeholder span {
    font-family: var(--font-mono); font-size: 0.68rem;
    color: var(--ink-dim); letter-spacing: 0.08em;
    border: 1px dashed var(--line); border-radius: 99px;
    padding: 0.3rem 0.9rem;
}

.arte-card figcaption {
    position: absolute; left: 0; right: 0; bottom: 0;
    padding: 2.2rem 1.2rem 1.1rem;
    background: linear-gradient(transparent, rgba(11, 7, 8, 0.92));
    transform: translateY(30%); opacity: 0;
    transition: transform 0.45s var(--ease), opacity 0.45s;
}
.arte-card:hover figcaption { transform: translateY(0); opacity: 1; }
.arte-estilo {
    font-family: var(--font-mono); font-size: 0.65rem;
    text-transform: uppercase; letter-spacing: 0.2em; color: var(--red);
}
.arte-card figcaption h3 {
    font-family: var(--font-display); font-weight: 500;
    font-size: 1.15rem; color: var(--ink);
}

.tattoo-mais { text-align: center; margin-top: 4rem; }

@media (max-width: 640px) {
    .arte-card:nth-child(even),
    .arte-card:nth-child(even):hover { transform: none; }
}

/* ---------- language switcher ---------- */
.header-right { display: flex; align-items: center; gap: 1.2rem; }

.lang-switch {
    display: flex; gap: 0.15rem;
    border: 1px solid var(--line); border-radius: 99px;
    padding: 0.2rem;
}
.lang-switch a {
    font-family: var(--font-mono); font-size: 0.68rem;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--ink-dim);
    padding: 0.28rem 0.6rem; border-radius: 99px;
    transition: color 0.3s, background 0.3s;
}
.lang-switch a:hover { color: var(--ink); }
.lang-switch a.active { background: var(--red); color: #fff; }

.lang-switch-mobile { margin-top: 1.5rem; }
.lang-switch-mobile a { font-size: 0.85rem; padding: 0.4rem 0.9rem; }

@media (max-width: 900px) {
    .header-right { display: none; }
}
