/* Base */
:root {
    --sidebar-bg: #070b16;
    --body-bg: #0a1120;
    --text-main: #eaf2f8;
    --text-muted: #93aac2;
    --accent: #22d3ee;
    --accent-gradient: linear-gradient(135deg, #22d3ee 0%, #6366f1 100%);
    --accent-gradient-reverse: linear-gradient(135deg, #6366f1 0%, #22d3ee 100%);
    --card-bg: #101a30;
    --border-light: rgba(148, 197, 227, 0.16);
    --text-copy: #c3d4e6;
    --transition: all 0.35s ease;
    font-size: 16px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Poppins", sans-serif;
    color: var(--text-main);
    background: radial-gradient(circle at 20% 10%, rgba(34, 211, 238, 0.1) 0%, transparent 45%),
        radial-gradient(circle at 80% 0%, rgba(99, 102, 241, 0.12) 0%, transparent 40%),
        radial-gradient(circle at 50% 100%, rgba(34, 211, 238, 0.08) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%2322d3ee' stroke-opacity='0.1' stroke-width='1'%3E%3Cpath d='M0 40 H60 V0'/%3E%3Cpath d='M160 60 H100 V100 H160'/%3E%3Cpath d='M0 130 H40 V160'/%3E%3Cpath d='M90 160 V125 H160'/%3E%3C/g%3E%3Cg fill='%2322d3ee' fill-opacity='0.3'%3E%3Ccircle cx='60' cy='40' r='2'/%3E%3Ccircle cx='100' cy='100' r='2'/%3E%3Ccircle cx='40' cy='130' r='2'/%3E%3Ccircle cx='90' cy='125' r='2'/%3E%3C/g%3E%3C/svg%3E"),
        var(--body-bg);
    background-repeat: no-repeat, no-repeat, no-repeat, repeat, no-repeat;
    background-size: auto, auto, auto, 160px 160px, auto;
    min-height: 100vh;
}

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

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

h1,
h2,
h3,
h4 {
    margin: 0;
    font-weight: 600;
}

p {
    margin: 0;
}

button {
    font: inherit;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
}

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

/* Layout */
.layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    background: var(--sidebar-bg);
    color: #eef3f7;
    width: clamp(220px, 16vw, 280px);
    padding: 32px 24px;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1000;
    transform: translateX(0);
    transition: var(--transition);
    height: 100vh;
    display: flex;
    flex-direction: column;
    gap: 24px;
    overflow-y: auto;
    border-right: 1px solid rgba(148, 197, 227, 0.08);
}

.sidebar__inner {
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem 2.5rem;
    height: 100%;
    display: flex;
    align-items: center;
}

.brand span {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.1rem;
    display: inline-flex;
    position: relative;
}

.brand span::after {
    content: "";
    position: absolute;
    inset: auto 0 -8px 0;
    height: 5px;
    background: var(--accent-gradient);
    border-radius: 999px;
    opacity: 0;
    transform: scaleX(0.4);
    transition: var(--transition);
}

.brand:hover span::after {
    opacity: 1;
    transform: scaleX(1);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    margin: 3rem 0;
}

.sidebar__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    position: relative;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    color: rgba(238, 243, 247, 0.75);
    transition: var(--transition);
    padding-bottom: 0.4rem;
}

.sidebar__link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 1.8rem;
    height: 3px;
    background: var(--accent-gradient);
    transform-origin: left;
    transform: scaleX(0);
    transition: var(--transition);
}

.sidebar__link:hover,
.sidebar__link.active {
    color: #eef3f7;
}

.sidebar__link:hover::after,
.sidebar__link.active::after {
    transform: scaleX(1);
}

.sidebar__social {
    display: grid;
    grid-template-columns: repeat(3, 2.5rem);
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.sidebar__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: rgba(238, 243, 247, 0.08);
    font-size: 0.9rem;
    font-weight: 500;
    color: #e6e6e6;
    transition: var(--transition);
}

.sidebar__social a:hover {
    background: var(--accent-gradient);
    color: #eef3f7;
    transform: translateY(-3px);
}

.sidebar__social a {
    position: relative;
}

.sidebar__social a::after {
    content: attr(data-tooltip);
    position: absolute;
    left: calc(100% + 10px);
    top: 50%;
    transform: translateY(-50%) translateX(-6px);
    white-space: nowrap;
    padding: 5px 10px;
    border-radius: 8px;
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    color: var(--text-main);
    font-size: 0.78rem;
    letter-spacing: normal;
    text-transform: none;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.sidebar__social a:hover::after,
.sidebar__social a:focus-visible::after {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

.sidebar__footer {
    margin-top: auto;
    font-size: 0.75rem;
    line-height: 1.6;
    color: rgba(238, 243, 247, 0.6);
}

/* Mobile menu button */
.mobile-menu {
    position: fixed;
    top: 1.5rem;
    left: 1.5rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: rgba(7, 11, 22, 0.85);
    border: 1px solid rgba(148, 197, 227, 0.2);
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    flex-direction: column;
    z-index: 1100;
    transition: var(--transition);
}

.mobile-menu__line {
    width: 1.6rem;
    height: 2px;
    background: #ffffff;
    border-radius: 999px;
    transition: var(--transition);
}

.mobile-menu[aria-expanded="true"] .mobile-menu__line:first-child {
    transform: translateY(7px) rotate(45deg);
}

.mobile-menu[aria-expanded="true"] .mobile-menu__line:nth-child(2) {
    opacity: 0;
}

.mobile-menu[aria-expanded="true"] .mobile-menu__line:last-child {
    transform: translateY(-7px) rotate(-45deg);
}

.overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 15, 15, 0.55);
    backdrop-filter: blur(3px);
    z-index: 900;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

/* Main */
.main-content {
    flex: 1 1 auto;
    min-width: 0;
    padding: 56px 72px;
    margin-left: clamp(220px, 16vw, 280px);
}

.section {
    padding: 5rem 5vw;
    position: relative;
}

/* Dim the circuit background pattern inside internal sections so text stays legible;
   the hero keeps the pattern at full visibility. */
.section:not(.hero)::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: rgba(8, 13, 24, 0.25);
    pointer-events: none;
}

.section:not(.hero) > * {
    position: relative;
    z-index: 1;
}

.section-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
}

.section-label::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--accent-gradient);
}

.section-title {
    font-size: clamp(2.25rem, 2.5vw + 2rem, 3.4rem);
    line-height: 1.1;
    margin-bottom: 2rem;
}

.section-subtitle {
    margin: 2rem 0 1rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.section__content {
    display: grid;
    gap: 1rem;
    color: var(--text-copy);
    line-height: 1.7;
    max-width: 48rem;
}

.section__intro {
    margin: 0 0 2rem;
    max-width: 48rem;
    color: var(--text-copy);
    line-height: 1.7;
}

.feature-list {
    margin: 2rem 0 0;
    padding-left: 1.2rem;
    display: grid;
    gap: 0.6rem;
    color: var(--text-main);
}

/* Hero */
.hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 32px;
    margin: -56px -72px 0;
    width: calc(100% + 144px);
    padding: 0 72px clamp(72px, 9vh, 140px);
    min-height: 100vh;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(ellipse 42% 55% at 70% 32%, rgba(34, 211, 238, 0.16), transparent 70%);
    pointer-events: none;
}

.hero__portrait {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% 18%;
    -webkit-mask-image:
        linear-gradient(to right, transparent 0%, transparent 34%, #000 62%, #000 100%),
        linear-gradient(to bottom, #000 0%, #000 78%, transparent 98%);
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(to right, transparent 0%, transparent 34%, #000 62%, #000 100%),
        linear-gradient(to bottom, #000 0%, #000 78%, transparent 98%);
    mask-composite: intersect;
    pointer-events: none;
}

.hero__portrait-veil {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(to right,
            rgba(4, 13, 28, 0.9) 0%,
            rgba(4, 13, 28, 0.72) 22%,
            rgba(4, 13, 28, 0.38) 38%,
            rgba(4, 13, 28, 0.12) 52%,
            transparent 64%);
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 78%, transparent 98%);
    mask-image: linear-gradient(to bottom, #000 0%, #000 78%, transparent 98%);
    pointer-events: none;
}

.hero__heading,
.hero__content {
    position: relative;
    z-index: 1;
    display: grid;
}

.hero__heading {
    gap: 14px;
    max-width: 580px;
}

.hero__content {
    gap: 28px;
    max-width: 650px;
}

.hero__title {
    margin: 0;
    font-size: clamp(3.4rem, 2.2rem + 4vw, 5.5rem);
    line-height: 0.98;
    letter-spacing: -0.02em;
}

.hero__subtitle {
    margin: 0;
    color: var(--text-muted);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.hero__description {
    margin: 0;
    color: var(--text-main);
    line-height: 1.6;
}

.hero__actions {
    display: inline-flex;
    align-items: center;
    gap: 16px;
}

.hero__actions-arrow {
    display: inline-flex;
    align-items: center;
    color: var(--text-muted);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 500;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

.section-cta {
    margin-top: 3rem;
    text-align: center;
}

.btn--primary {
    background: var(--accent-gradient);
    color: #071019;
    box-shadow: 0 15px 35px rgba(34, 211, 238, 0.25);
}

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

.btn--secondary {
    border: 1px solid var(--border-light);
    background: var(--body-bg);
}

.btn--secondary:hover {
    border-color: rgba(148, 197, 227, 0.35);
}

.hero__meta-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.hero__meta-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    display: grid;
    place-items: center;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}

.contact-list {
    display: grid;
    gap: 12px;
    margin-top: 1.5rem;
}

.contact-cta {
    margin-top: 1.5rem;
}

.project-category__title {
    margin: 3rem 0 1.25rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-main);
}

.project-category__title:first-of-type {
    margin-top: 0.5rem;
}

.project-category__title--secondary {
    color: var(--text-muted);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.project-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .project-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) {
    .project-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.project-grid--secondary {
    opacity: 0.9;
}

.project-card {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    height: 100%;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.project-card .tag-list {
    margin: 0;
}

.project-card > .btn {
    margin-top: auto;
    align-self: flex-start;
}

.project-desc {
    margin: 0;
    color: var(--text-copy);
    font-size: 0.95rem;
    line-height: 1.6;
}

.project-thumb {
    height: 160px;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: flex-end;
    font-weight: 600;
    color: #121212;
    background: linear-gradient(140deg, #0d1730 0%, #16233f 100%);
    position: relative;
    overflow: hidden;
}

.project-thumb::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 15, 16, 0) 35%, rgba(15, 15, 16, 0.45) 100%);
    z-index: 1;
}

.project-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.95) contrast(0.95);
}

.project-thumb span {
    background: rgba(238, 243, 247, 0.9);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.9rem;
    position: relative;
    z-index: 2;
}

.project-thumb--shiai::after {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 14px;
    border: 1px solid rgba(148, 197, 227, 0.15);
}

.project-thumb--shiai {
    background: linear-gradient(140deg, #0d1730 0%, rgba(34, 211, 238, 0.28) 100%);
}

.project-thumb--portfolio {
    background: linear-gradient(140deg, #0d1730 0%, rgba(99, 102, 241, 0.2) 100%);
}

.project-thumb--academia {
    background: linear-gradient(140deg, #0d1730 0%, rgba(139, 94, 52, 0.18) 100%);
}

.project-thumb--sisarb {
    background: linear-gradient(140deg, #0d1730 0%, rgba(59, 92, 222, 0.22) 100%);
}

.project-thumb--sensei {
    background: linear-gradient(140deg, #0d1730 0%, rgba(139, 94, 52, 0.22) 100%);
}

.project-thumb--augustus {
    background: linear-gradient(140deg, #0d1730 0%, rgba(217, 61, 61, 0.2) 100%);
}

.project-thumb--travapon {
    background: linear-gradient(140deg, #0d1730 0%, rgba(34, 211, 238, 0.3) 100%);
}

.project-thumb--travapon::after {
    content: "";
    position: absolute;
    inset: 12px;
    border-radius: 14px;
    border: 1px dashed rgba(148, 197, 227, 0.3);
}

.project-thumb--keiko {
    background: linear-gradient(140deg, #0d1730 0%, rgba(139, 94, 52, 0.22) 100%);
}

.project-thumb--backoffice {
    background: linear-gradient(140deg, #0d1730 0%, rgba(99, 102, 241, 0.28) 100%);
}

.project-thumb--ftth {
    background: linear-gradient(140deg, #0d1730 0%, rgba(34, 211, 238, 0.24) 100%);
}

.project-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 500;
    font-size: 0.92rem;
    border: 1px dashed var(--border-light);
    color: var(--text-muted);
}

.project-card h3 {
    margin: 0;
    font-size: 1.3rem;
}

.project-tool {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Motion */
@keyframes fade-right {
    from {
        opacity: 0;
        transform: translateX(-24px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

[data-animate="fade-right"] {
    animation: fade-right 0.8s ease both;
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Responsive */
@media (max-width: 1024px) {
    .sidebar {
        position: fixed;
        width: 240px;
        inset: 0 auto 0 0;
        height: 100vh;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        padding: 96px 24px 32px;
        transform: translateX(-100%);
    }

    .sidebar.is-open {
        transform: translateX(0);
    }

    .sidebar__inner {
        padding: 0;
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .sidebar-nav {
        margin: 2.5rem 0 0;
    }

    .sidebar__social {
        margin-top: auto;
    }

    .sidebar__social a {
    }

    .sidebar__footer {
        display: block;
        margin-top: 20px;
        font-size: 0.75rem;
        color: #b8b8b8;
    }

    .mobile-menu {
        display: inline-flex;
    }

    .main-content {
        padding: 40px 28px 64px;
        margin-left: 0;
        width: 100%;
    }

    .hero {
        margin: -40px -28px 0;
        width: calc(100% + 56px);
        padding: 0 28px clamp(64px, 9vh, 120px);
    }

    .hero__portrait {
        object-position: 76% 14%;
        -webkit-mask-image:
            linear-gradient(to right, transparent 0%, transparent 28%, #000 58%, #000 100%),
            linear-gradient(to bottom, #000 0%, #000 78%, transparent 98%);
        -webkit-mask-composite: source-in;
        mask-image:
            linear-gradient(to right, transparent 0%, transparent 28%, #000 58%, #000 100%),
            linear-gradient(to bottom, #000 0%, #000 78%, transparent 98%);
        mask-composite: intersect;
    }

    .hero__portrait-veil {
        background: linear-gradient(to right,
                rgba(4, 13, 28, 0.92) 0%,
                rgba(4, 13, 28, 0.74) 18%,
                rgba(4, 13, 28, 0.4) 32%,
                rgba(4, 13, 28, 0.12) 46%,
                transparent 58%);
        -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 78%, transparent 98%);
        mask-image: linear-gradient(to bottom, #000 0%, #000 78%, transparent 98%);
    }

    .hero__heading {
        max-width: 480px;
    }

    .hero__content {
        max-width: 520px;
    }
}

@media (max-width: 1200px) {
    .section {
        padding-inline: 8vw;
    }
}

@media (min-width: 1025px) and (max-width: 1200px) {
    .hero {
        padding-inline: 72px;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 4rem 1.5rem;
    }

    .sidebar {
        position: fixed;
        width: 240px;
        height: 100vh;
        inset: 0 auto 0 0;
        padding: 96px 20px 32px;
    }

    .sidebar__inner {
        padding: 0;
        align-items: flex-start;
        width: 100%;
        height: 100%;
        justify-content: space-between;
    }

    .sidebar-nav {
        margin: 1.5rem 0 0;
    }

    .sidebar__social {
        margin-top: auto;
        margin-bottom: 1.5rem;
    }

    .sidebar__footer {
        margin-top: 0;
    }

    .sidebar__link {
        letter-spacing: 0.1rem;
    }

    .sidebar__social a::after {
        left: 50%;
        top: auto;
        bottom: calc(100% + 8px);
        transform: translateX(-50%) translateY(6px);
    }

    .sidebar__social a:hover::after,
    .sidebar__social a:focus-visible::after {
        transform: translateX(-50%) translateY(0);
    }

    .main-content {
        padding: 32px 20px 48px;
        margin-left: 0;
    }

    .mobile-menu {
        display: flex;
    }

    .hero {
        margin: -32px -20px 0;
        width: calc(100% + 40px);
        min-height: auto;
        padding: 5.5rem 1.25rem 2.5rem;
        gap: 20px;
    }

    .hero::before,
    .hero__portrait-veil {
        display: none;
    }

    .hero__heading {
        order: 1;
        gap: 10px;
    }

    .hero__title {
        font-size: clamp(2.25rem, 1.6rem + 5vw, 3rem);
        line-height: 1.08;
    }

    .hero__portrait {
        order: 2;
        position: relative;
        inset: auto;
        margin-inline: -1.25rem;
        width: calc(100% + 2.5rem);
        max-width: calc(100% + 2.5rem);
        height: auto;
        aspect-ratio: 3 / 2;
        border-radius: 0;
        object-position: 60% 22%;
        -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 86%, transparent 100%);
        mask-image: linear-gradient(to bottom, transparent 0%, #000 14%, #000 86%, transparent 100%);
    }

    .hero__content {
        order: 3;
        gap: 20px;
    }

    .hero__heading,
    .hero__content {
        max-width: none;
    }
}

@media (max-width: 640px) {
    .hero__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero__actions-arrow {
        display: none;
    }

    .hero__actions .btn {
        min-height: 48px;
    }
}

/* Animations */
.js-enabled [data-animate] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease, transform 0.8s ease;
    transition-delay: var(--delay, 0s);
}

.js-enabled [data-animate].is-visible {
    opacity: 1;
    transform: none;
}

.js-enabled [data-animate="fade-right"] {
    transform: translateX(-60px);
}

.js-enabled [data-animate="fade-left"] {
    transform: translateX(60px);
}

.js-enabled [data-animate="zoom-in"] {
    transform: scale(0.85);
}

.js-enabled [data-animate="tilt-in"] {
    transform: perspective(900px) rotateX(16deg) translateY(40px);
    transform-origin: top center;
}

.js-enabled [data-animate="fade-up"] {
    transform: translateY(60px);
}

/* Currículo */
.curriculo-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.curriculo-role {
    color: var(--text-muted);
    font-weight: 500;
    margin: 0.4rem 0 1rem;
}

.curriculo-contact {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    color: var(--text-muted);
    font-size: 0.92rem;
}

.curriculo-contact a:hover {
    color: var(--text-main);
    text-decoration: underline;
}

.curriculo-entry {
    margin-bottom: 1.75rem;
}

.curriculo-entry:last-child {
    margin-bottom: 0;
}

.curriculo-entry-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.curriculo-entry-head h3 {
    font-size: 1.05rem;
    font-weight: 600;
}

.curriculo-period {
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.curriculo-meta {
    font-size: 0.9rem;
    font-style: italic;
    color: var(--text-muted);
    margin: 0.2rem 0 0.6rem;
}

.curriculo-stack {
    margin-top: 0.6rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.skills-grid h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}

.tag-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-list li {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 0.82rem;
}

/* Case pages */
.case-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.case-back:hover {
    color: var(--text-main);
}

.case-header {
    margin-bottom: 2.5rem;
}

.case-tags {
    list-style: none;
    margin: 1.25rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.case-tags li {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.85rem;
    color: var(--text-copy);
}

.case-section {
    margin: 2.5rem 0;
    max-width: 48rem;
}

.case-section:first-of-type {
    margin-top: 0;
}

.case-section h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.9rem;
}

.case-section p {
    color: var(--text-copy);
    line-height: 1.7;
}

.case-section p + p {
    margin-top: 0.75rem;
}

.case-flow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 0.5rem;
}

.case-flow__step {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 10px 18px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
}

.case-flow__arrow {
    color: var(--text-muted);
    font-size: 1.1rem;
}

@media (max-width: 640px) {
    .case-flow {
        flex-direction: column;
        align-items: stretch;
    }

    .case-flow__step {
        text-align: center;
    }

    .case-flow__arrow {
        text-align: center;
        transform: rotate(90deg);
    }
}

@media print {
    :root {
        --sidebar-bg: #0a0f1c;
        --body-bg: #ffffff;
        --text-main: #0d1321;
        --text-muted: #45536b;
        --card-bg: #f1f5f9;
        --border-light: rgba(13, 19, 33, 0.12);
    }

    .sidebar,
    .mobile-menu,
    .overlay,
    .no-print {
        display: none !important;
    }

    .main-content {
        margin-left: 0;
        padding: 0;
    }

    body {
        background: #fff;
    }

    .section {
        padding: 1.5rem 0;
    }
}
