/* =====================================================
   STYLE.CSS — Guilherme Biagi
   Aesthetic: Editorial Dossier · Dark · Warm
   v3.0 — 2026-05
   ===================================================== */

/* ---- Tokens ---- */
:root {
    /* Palette — warm dark editorial */
    --ink:           #0F0E0C;
    --ink-2:         #15140F;
    --ink-3:         #1C1A14;
    --paper:         #EDE5D3;
    --paper-2:       #C8BFAA;
    --muted:         #807A6B;
    --muted-2:       #5C574B;
    --border:        rgba(237, 229, 211, 0.10);
    --border-strong: rgba(237, 229, 211, 0.22);

    /* Signals */
    --gold:          #C8A464;   /* primary accent — luxury, authority */
    --gold-deep:     #9A7E45;
    --rust:          #B05A2C;   /* secondary accent */
    --leaf:          #6B8E5A;
    --sanfarma:      #137CC3;   /* Sanfarma brand blue */
    --sanfarma-dim:  rgba(19, 124, 195, 0.12);

    /* Typography */
    --display: 'Instrument Serif', 'Times New Roman', Georgia, serif;
    --body:    'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --mono:    'JetBrains Mono', 'SF Mono', Consolas, monospace;

    /* Rhythm */
    --container: 1180px;
    --radius:    4px;
    --radius-md: 10px;
    --transition: 280ms cubic-bezier(.22, .61, .36, 1);
}

/* ---- Reset ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--body);
    color: var(--paper);
    background: var(--ink);
    line-height: 1.55;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
ul  { list-style: none; }
a   { color: inherit; text-decoration: none; transition: color var(--transition); }

::selection { background: var(--gold); color: var(--ink); }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 28px;
}

/* ---- Grain / Texture ---- */
.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.04;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.93 0 0 0 0 0.89 0 0 0 0 0.82 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* =====================================================
   NAVBAR
   ===================================================== */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(15, 14, 12, 0.78);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 28px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: baseline;
    gap: 14px;
}

.nav-logo-img {
    height: 22px;
    width: auto;
    align-self: center;
    opacity: 0.7;
    transition: opacity var(--transition);
    filter: brightness(0) saturate(100%) invert(53%) sepia(45%) saturate(601%) hue-rotate(177deg) brightness(92%) contrast(90%);
}

.nav-logo:hover .nav-logo-img {
    opacity: 1;
}

.nav-mark {
    font-family: var(--display);
    font-size: 1.55rem;
    font-style: italic;
    color: var(--gold);
    letter-spacing: -0.02em;
    line-height: 1;
}

.nav-name {
    font-family: var(--mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--muted);
    display: none;
}

@media (min-width: 720px) {
    .nav-name { display: inline; }
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    font-family: var(--mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted);
    position: relative;
    padding-bottom: 4px;
}

.nav-links a:hover {
    color: var(--paper);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 1px;
    background: var(--gold);
    transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta {
    color: var(--paper) !important;
}

.nav-cta::after { width: 30% !important; background: var(--gold); }

@media (max-width: 640px) {
    .nav-links { gap: 18px; }
    .nav-links li:nth-child(2),
    .nav-links li:nth-child(3),
    .nav-links li:nth-child(4) { display: none; }
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    padding: 130px 28px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 80% 0%, rgba(200, 164, 100, 0.10), transparent 55%),
        radial-gradient(ellipse at 0% 100%, rgba(176, 90, 44, 0.06), transparent 50%),
        var(--ink);
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, var(--border) 1px, transparent 1px);
    background-size: calc(100% / 12) 100%;
    opacity: 0.35;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
}

.hero-grid {
    max-width: var(--container);
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 100px 1fr 360px;
    gap: 40px;
    align-items: start;
    position: relative;
    z-index: 1;
}

.hero-meta { padding-top: 8px; }

.kicker {
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold);
    display: inline-block;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--gold);
}

.kicker.dark {
    color: var(--ink);
    border-color: var(--ink);
}

.display {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(3rem, 8.5vw, 6.4rem);
    line-height: 0.96;
    letter-spacing: -0.025em;
    color: var(--paper);
    margin-bottom: 36px;
}

.display em {
    font-style: italic;
    color: var(--paper-2);
}

.hero-accent {
    color: var(--gold);
    font-style: italic;
}

.hero-lede {
    font-size: 1.12rem;
    color: var(--paper-2);
    line-height: 1.65;
    max-width: 580px;
    margin-bottom: 28px;
    font-weight: 300;
}

.hero-lede em {
    color: var(--paper);
    font-style: normal;
    font-weight: 500;
}

.hero-roles {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.role strong {
    color: var(--paper);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.72rem;
    padding: 2px 8px;
    border: 1px solid var(--border-strong);
    border-radius: 2px;
    margin-right: 6px;
}

.dot { color: var(--muted-2); }

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.hero-side { padding-top: 8px; }

.hero-photo {
    position: relative;
    border: 1px solid var(--border-strong);
    background: var(--ink-2);
    padding: 14px 14px 12px;
}

.hero-photo::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px;
    width: 14px; height: 14px;
    border-top: 1px solid var(--gold);
    border-left: 1px solid var(--gold);
}

.hero-photo::after {
    content: '';
    position: absolute;
    bottom: -1px; right: -1px;
    width: 14px; height: 14px;
    border-bottom: 1px solid var(--gold);
    border-right: 1px solid var(--gold);
}

.profile-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(40%) contrast(1.05) sepia(8%);
    transition: filter 800ms ease;
}

.hero-photo:hover .profile-img { filter: grayscale(0%) contrast(1.02); }

.hero-photo figcaption {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cap-line {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--muted);
    letter-spacing: 0.08em;
}

.scroll-cue {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-family: var(--mono);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--muted);
    animation: floaty 3s ease-in-out infinite;
}

.scroll-cue .arrow {
    color: var(--gold);
    font-size: 1.1rem;
    letter-spacing: 0;
}

@keyframes floaty {
    0%, 100% { transform: translate(-50%, 0); }
    50%      { transform: translate(-50%, 6px); }
}

@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .hero-meta { order: -1; }
    .hero-side { order: -1; max-width: 280px; }
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    font-family: var(--mono);
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    border-radius: 2px;
    cursor: pointer;
    transition: all var(--transition);
    border: 1px solid;
    line-height: 1;
}

.btn-primary {
    background: var(--gold);
    color: var(--ink);
    border-color: var(--gold);
}

.btn-primary:hover {
    background: var(--paper);
    border-color: var(--paper);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--paper);
    border-color: var(--border-strong);
}

.btn-ghost:hover {
    border-color: var(--paper);
    transform: translateY(-2px);
}

.btn-primary-light {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}

.btn-primary-light:hover {
    background: transparent;
    color: var(--ink);
    border-color: var(--ink);
}

.btn-ghost-light {
    background: transparent;
    color: var(--ink);
    border-color: rgba(15, 14, 12, 0.3);
}

.btn-ghost-light:hover {
    border-color: var(--ink);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* =====================================================
   STATS BAND
   ===================================================== */
.stats {
    background: var(--ink-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 56px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.stat {
    text-align: center;
    padding: 8px 24px;
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.stat:first-child { border-left: none; }

.stat-num {
    font-family: var(--display);
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    color: var(--gold);
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-label {
    font-family: var(--mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--muted);
    max-width: 180px;
}

@media (max-width: 768px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 36px 0; }
    .stat:nth-child(3) { border-left: none; }
}

/* =====================================================
   SHARED SECTION PIECES
   ===================================================== */
section { padding: 110px 0; position: relative; }

.section-tag {
    font-family: var(--mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--gold);
    padding-bottom: 6px;
    border-bottom: 1px solid var(--border-strong);
    display: inline-block;
}

.section-title {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--paper);
    margin: 24px 0 0;
}

.section-title em {
    font-style: italic;
    color: var(--gold);
}

.section-title-sm {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--paper);
    margin: 16px 0 36px;
}

.section-title-sm em { color: var(--gold); font-style: italic; }

.section-head {
    margin-bottom: 60px;
    max-width: 760px;
}

.section-head.centered {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section-sub {
    margin-top: 18px;
    font-size: 1.05rem;
    color: var(--paper-2);
    line-height: 1.65;
    font-weight: 300;
    max-width: 640px;
}

.section-head.centered .section-sub { margin-left: auto; margin-right: auto; }

/* Split layout: marginalia + body */
.split {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 48px;
    align-items: start;
}

.split-meta { position: sticky; top: 110px; padding-top: 8px; }

@media (max-width: 900px) {
    .split { grid-template-columns: 1fr; gap: 24px; }
    .split-meta { position: static; }
}

/* =====================================================
   MANIFESTO
   ===================================================== */
.manifesto { background: var(--ink); }

.manifesto .section-title { margin-bottom: 36px; }

.lede {
    font-size: 1.18rem;
    color: var(--paper);
    line-height: 1.7;
    font-weight: 300;
    margin-bottom: 22px;
}

.lede em {
    font-family: var(--display);
    font-style: italic;
    font-size: 1.3em;
    color: var(--gold);
    font-weight: 400;
}

.drop-cap {
    font-family: var(--display);
    font-size: 4.2rem;
    line-height: 0.85;
    color: var(--gold);
    float: left;
    margin: 6px 14px 0 0;
    padding-top: 2px;
}

.manifesto p {
    font-size: 1.02rem;
    color: var(--paper-2);
    line-height: 1.75;
    margin-bottom: 24px;
    font-weight: 300;
    max-width: 680px;
}

.manifesto p em {
    color: var(--paper);
    font-style: italic;
    font-family: var(--display);
    font-size: 1.1em;
}

.manifesto code {
    font-family: var(--mono);
    font-size: 0.92em;
    background: var(--ink-3);
    border: 1px solid var(--border-strong);
    padding: 2px 7px;
    border-radius: 2px;
    color: var(--gold);
}

.creed {
    margin-top: 36px;
    border-top: 1px solid var(--border-strong);
    padding-top: 28px;
}

.creed li {
    font-family: var(--display);
    font-size: 1.25rem;
    color: var(--paper);
    padding: 10px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    gap: 18px;
    align-items: baseline;
}

.creed li:last-child { border-bottom: none; }

.creed span {
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--gold);
    letter-spacing: 0.1em;
    min-width: 30px;
}

/* =====================================================
   COMPANIES
   ===================================================== */
.companies-section { background: var(--ink-2); }

.companies-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.company-card {
    background: var(--ink);
    border: 1px solid var(--border-strong);
    padding: 28px 26px;
    display: flex;
    align-items: center;
    gap: 22px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.company-card::after {
    content: '';
    position: absolute;
    top: 0; right: 0;
    width: 0; height: 0;
    border-style: solid;
    border-width: 0 16px 16px 0;
    border-color: transparent var(--gold) transparent transparent;
    opacity: 0;
    transition: opacity var(--transition);
}

.company-card:hover {
    border-color: var(--gold);
    transform: translateY(-3px);
}

/* Sanfarma card — brand blue accent */
.company-card:first-child:hover {
    border-color: var(--sanfarma);
}

.company-card:first-child:hover::after {
    border-color: transparent var(--sanfarma) transparent transparent;
}

.company-card:hover::after { opacity: 1; }

.company-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    flex-shrink: 0;
    filter: brightness(1.05);
}

.logo-round {
    border-radius: 50%;
    object-fit: cover;
}

.company-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.company-role {
    font-family: var(--mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--gold);
}

.company-name {
    font-family: var(--display);
    font-size: 1.4rem;
    color: var(--paper);
    line-height: 1.1;
}

.company-desc {
    font-size: 0.85rem;
    color: var(--muted);
    line-height: 1.5;
    margin-top: 4px;
}

@media (max-width: 768px) {
    .companies-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   TRAJETÓRIA
   ===================================================== */
.trajetoria { background: var(--ink); }

.timeline-card {
    border-left: 1px solid var(--border-strong);
    padding: 0 0 36px 28px;
    position: relative;
    transition: border-color var(--transition);
}

.timeline-card::before {
    content: '';
    position: absolute;
    left: -5px; top: 8px;
    width: 9px; height: 9px;
    background: var(--gold);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--ink);
}

.timeline-card:hover { border-color: var(--gold); }

.timeline-card header {
    margin-bottom: 12px;
}

.t-year {
    display: block;
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    margin-bottom: 6px;
}

.timeline-card h3 {
    font-family: var(--display);
    font-size: 1.7rem;
    font-weight: 400;
    color: var(--paper);
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.timeline-card p {
    color: var(--paper-2);
    line-height: 1.7;
    font-weight: 300;
    margin-bottom: 14px;
    max-width: 680px;
}

.timeline-card em {
    color: var(--paper);
    font-style: italic;
}

.t-list {
    margin-top: 14px;
    padding-left: 0;
}

.t-list li {
    color: var(--paper-2);
    font-size: 0.95rem;
    line-height: 1.7;
    padding: 6px 0 6px 20px;
    position: relative;
    font-weight: 300;
}

.t-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--gold);
}

.timeline-card.education {
    background: var(--ink-2);
    border: 1px solid var(--border);
    border-left: 1px solid var(--gold);
    padding: 24px 28px;
    margin-top: 12px;
}

.timeline-card.education::before { display: none; }

/* =====================================================
   PROJECTS
   ===================================================== */
.projects { background: var(--ink-2); }

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0;
    border: 1px solid var(--border);
}

.project-card {
    padding: 36px 32px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--ink);
    transition: background var(--transition);
    position: relative;
}

.project-card:nth-child(2n) { border-right: none; }
.project-card:nth-last-child(-n+2) { border-bottom: none; }

.project-card:hover {
    background: var(--ink-3);
}

.project-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.project-num {
    font-family: var(--display);
    font-style: italic;
    font-size: 1.5rem;
    color: var(--gold);
}

.project-stack {
    font-family: var(--mono);
    font-size: 0.7rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.project-card h3 {
    font-family: var(--display);
    font-weight: 400;
    font-size: 1.7rem;
    line-height: 1.1;
    letter-spacing: -0.01em;
    color: var(--paper);
    margin-bottom: 12px;
}

.project-card p {
    color: var(--paper-2);
    font-size: 0.95rem;
    line-height: 1.7;
    font-weight: 300;
    margin-bottom: 22px;
}

.project-card code {
    font-family: var(--mono);
    font-size: 0.85em;
    color: var(--gold);
    background: var(--ink-3);
    padding: 1px 6px;
    border-radius: 2px;
}

.project-card em {
    color: var(--paper);
    font-style: italic;
}

.project-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.project-metrics strong {
    color: var(--gold);
    font-weight: 500;
    font-family: var(--display);
    font-style: italic;
    font-size: 1.4em;
    letter-spacing: -0.01em;
    margin-right: 4px;
}

.github-cta {
    margin-top: 56px;
    text-align: center;
    font-family: var(--mono);
    font-size: 0.85rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.github-cta a {
    color: var(--gold);
    border-bottom: 1px solid var(--gold);
    padding-bottom: 2px;
}

.github-cta a:hover { color: var(--paper); border-color: var(--paper); }

@media (max-width: 768px) {
    .projects-grid { grid-template-columns: 1fr; }
    .project-card { border-right: none; }
    .project-card:nth-last-child(2) { border-bottom: 1px solid var(--border); }
}

/* =====================================================
   SKILLS
   ===================================================== */
.skills-section { background: var(--ink); }

.skills-rows {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.skill-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 24px;
    padding: 22px 0;
    border-top: 1px solid var(--border);
    align-items: baseline;
}

.skill-row:last-child { border-bottom: 1px solid var(--border); }

.skill-cat {
    font-family: var(--mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--gold);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    font-family: var(--mono);
    font-size: 0.78rem;
    padding: 6px 14px;
    border: 1px solid var(--border-strong);
    border-radius: 2px;
    color: var(--paper-2);
    transition: all var(--transition);
    letter-spacing: 0.02em;
}

.tag:hover {
    border-color: var(--gold);
    color: var(--gold);
    background: rgba(200, 164, 100, 0.05);
}

@media (max-width: 720px) {
    .skill-row { grid-template-columns: 1fr; gap: 12px; }
}

/* =====================================================
   CONTEÚDO / CHANNELS
   ===================================================== */
.content-section {
    background: var(--ink-2);
    position: relative;
}

.channels-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.channel {
    background: var(--ink);
    border: 1px solid var(--border-strong);
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all var(--transition);
    position: relative;
    min-height: 220px;
}

.channel:hover {
    border-color: var(--gold);
    transform: translateY(-4px);
    background: var(--ink-3);
}

.channel-tag {
    font-family: var(--mono);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--gold);
    padding: 3px 8px;
    border: 1px solid var(--gold);
    border-radius: 2px;
    align-self: flex-start;
    margin-bottom: 4px;
}

.channel h3 {
    font-family: var(--display);
    font-size: 1.7rem;
    font-weight: 400;
    color: var(--paper);
    letter-spacing: -0.01em;
    line-height: 1.1;
}

.channel p {
    font-size: 0.88rem;
    color: var(--paper-2);
    line-height: 1.6;
    font-weight: 300;
    flex-grow: 1;
}

.channel-cta {
    font-family: var(--mono);
    font-size: 0.72rem;
    text-transform: lowercase;
    color: var(--gold);
    letter-spacing: 0.04em;
    margin-top: 8px;
}

@media (max-width: 900px) {
    .channels-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
    .channels-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   CTA FINAL
   ===================================================== */
.cta-section {
    background: var(--paper);
    color: var(--ink);
    padding: 130px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '§';
    position: absolute;
    font-family: var(--display);
    font-style: italic;
    font-size: 32rem;
    line-height: 0.7;
    color: var(--paper-2);
    opacity: 0.25;
    top: -40px;
    right: -50px;
    pointer-events: none;
}

.cta-inner {
    max-width: 880px;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 22px 0 16px;
}

.cta-title em {
    font-style: italic;
    color: var(--rust);
}

.cta-sub {
    font-size: 1.15rem;
    color: var(--muted-2);
    margin-bottom: 38px;
    font-weight: 300;
    max-width: 580px;
}

.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    background: var(--ink);
    border-top: 1px solid var(--border);
    padding: 70px 0 30px;
    color: var(--muted);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 36px;
    padding-bottom: 50px;
    border-bottom: 1px solid var(--border);
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-mark {
    font-family: var(--display);
    font-style: italic;
    font-size: 2rem;
    color: var(--gold);
    line-height: 1;
    margin-bottom: 8px;
}

.footer-col p {
    font-size: 0.92rem;
    color: var(--paper-2);
    line-height: 1.6;
}

.footer-col p span {
    color: var(--muted);
    font-size: 0.82rem;
}

.footer-cat {
    font-family: var(--mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--gold);
    margin-bottom: 6px;
}

.footer-col a {
    font-size: 0.92rem;
    color: var(--paper-2);
    transition: color var(--transition);
}

.footer-col a:hover { color: var(--gold); }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    font-family: var(--mono);
    font-size: 0.74rem;
    color: var(--muted-2);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-bottom .mono { color: var(--muted); }

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

/* =====================================================
   CONTATOS.HTML
   ===================================================== */
.page-header {
    padding: 160px 0 60px;
    background:
        radial-gradient(ellipse at 80% 0%, rgba(200, 164, 100, 0.10), transparent 55%),
        var(--ink);
    border-bottom: 1px solid var(--border);
}

.page-header .container {
    max-width: 800px;
    text-align: center;
}

.page-header h1 {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(2.4rem, 5vw, 4rem);
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--paper);
    margin: 22px 0 18px;
}

.page-header h1 em { font-style: italic; color: var(--gold); }

.page-header p {
    font-size: 1.1rem;
    color: var(--paper-2);
    line-height: 1.65;
    font-weight: 300;
    max-width: 580px;
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 36px;
    align-items: start;
}

.contact-card {
    background: var(--ink-2);
    border: 1px solid var(--border-strong);
    padding: 36px 32px;
    position: relative;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px;
    width: 18px; height: 18px;
    border-top: 1px solid var(--gold);
    border-left: 1px solid var(--gold);
}

.contact-card h3 {
    font-family: var(--display);
    font-size: 1.7rem;
    font-weight: 400;
    color: var(--paper);
    margin-bottom: 22px;
    letter-spacing: -0.01em;
}

.form-note {
    font-size: 0.92rem;
    color: var(--paper-2);
    line-height: 1.6;
    margin-bottom: 24px;
    font-weight: 300;
}

.form-note a {
    color: var(--gold);
    border-bottom: 1px solid var(--gold);
}

/* Social */
.social-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-list li a {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
    border: 1px solid var(--border-strong);
    transition: all var(--transition);
}

.social-list li a:hover {
    border-color: var(--gold);
    transform: translateX(4px);
}

.social-icon {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.li-bg { background: #0A66C2; }
.gh-bg { background: var(--paper); }
.gh-bg svg { fill: var(--ink) !important; }
.tw-bg { background: var(--paper); }
.tw-bg svg { fill: var(--ink) !important; }
.yt-bg { background: #FF0000; }

.social-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.social-text strong {
    font-family: var(--display);
    font-size: 1.15rem;
    font-weight: 400;
    color: var(--paper);
}

.social-text small {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--muted);
    letter-spacing: 0.06em;
}

/* Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-family: var(--mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--gold);
}

.form-group input,
.form-group textarea {
    padding: 14px 16px;
    background: var(--ink);
    border: 1px solid var(--border-strong);
    border-radius: 2px;
    font-family: var(--body);
    font-size: 0.95rem;
    color: var(--paper);
    transition: all var(--transition);
    outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--gold);
    background: var(--ink-3);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--muted-2);
    font-style: italic;
}

@media (max-width: 768px) {
    .contact-grid { grid-template-columns: 1fr; }
    .page-header { padding: 130px 0 50px; }
}

/* =====================================================
   ARTICLES — Header & Body
   ===================================================== */
.article-header {
    padding: 150px 0 60px;
    background: var(--ink);
    border-bottom: 1px solid var(--border);
}

.article-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    font-family: var(--mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.back-link {
    color: var(--gold);
    transition: opacity var(--transition);
}

.back-link:hover { opacity: 0.7; }

.article-date {
    color: var(--muted);
}

.article-title {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(2.5rem, 6vw, 4.2rem);
    line-height: 1.05;
    letter-spacing: -0.025em;
    color: var(--paper);
    margin-bottom: 24px;
    max-width: 860px;
}

.article-summary {
    font-family: var(--body);
    font-size: 1.18rem;
    font-weight: 300;
    color: var(--paper-2);
    line-height: 1.65;
    max-width: 640px;
    margin-bottom: 24px;
}

.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.article-tags .tag {
    font-family: var(--mono);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    background: rgba(200, 164, 100, 0.08);
    border: 1px solid rgba(200, 164, 100, 0.2);
    padding: 3px 10px;
    border-radius: 2px;
}

/* Split article layout */
.split-article {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 56px;
    align-items: start;
}

.article-marginalia {
    position: sticky;
    top: 110px;
    padding-top: 42px;
}

.article-toc {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.toc-label {
    font-family: var(--mono);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--muted);
    margin-bottom: 12px;
    display: block;
}

.toc-h2, .toc-h3 {
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--muted);
    text-decoration: none;
    line-height: 1.6;
    transition: color var(--transition);
    display: block;
}

.toc-h2:hover, .toc-h3:hover { color: var(--gold); }

.toc-h3 {
    padding-left: 16px;
    font-size: 0.68rem;
}

/* Article body */
.article-body {
    padding: 64px 0 110px;
    background: var(--ink);
}

.article-content h2 {
    font-family: var(--display);
    font-weight: 400;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1.15;
    letter-spacing: -0.015em;
    color: var(--paper);
    margin: 48px 0 18px;
}

.article-content h2:first-child { margin-top: 0; }

.article-content h3 {
    font-family: var(--display);
    font-weight: 400;
    font-size: 1.4rem;
    line-height: 1.2;
    color: var(--paper);
    margin: 32px 0 12px;
}

.article-content p {
    font-size: 1.05rem;
    color: var(--paper-2);
    line-height: 1.8;
    font-weight: 300;
    margin-bottom: 22px;
    max-width: 680px;
}

.article-content p em {
    font-family: var(--display);
    font-style: italic;
    color: var(--paper);
    font-size: 1.08em;
}

.article-content p strong {
    color: var(--paper);
    font-weight: 500;
}

.article-content code {
    font-family: var(--mono);
    font-size: 0.88em;
    background: var(--ink-3);
    border: 1px solid var(--border-strong);
    padding: 2px 7px;
    border-radius: 2px;
    color: var(--gold);
}

.article-content pre {
    background: var(--ink-2);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    padding: 24px;
    margin: 24px 0;
    overflow-x: auto;
}

.article-content pre code {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.85rem;
    color: var(--paper-2);
    line-height: 1.7;
}

.article-content ul, .article-content ol {
    margin: 16px 0 24px;
    max-width: 680px;
}

.article-content li {
    color: var(--paper-2);
    font-size: 1.02rem;
    line-height: 1.8;
    font-weight: 300;
    padding: 4px 0 4px 24px;
    position: relative;
}

.article-content li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--gold);
}

.article-content blockquote {
    margin: 28px 0;
    padding: 24px 28px;
    border-left: 3px solid var(--gold);
    background: var(--ink-2);
    max-width: 680px;
}

.article-content blockquote p {
    font-family: var(--display);
    font-style: italic;
    font-size: 1.18rem;
    color: var(--paper);
    line-height: 1.5;
    margin-bottom: 0;
}

.article-content hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 40px 0;
    max-width: 200px;
}

.article-content .drop-cap {
    font-family: var(--display);
    font-size: 4.2rem;
    line-height: 0.8;
    color: var(--gold);
    float: left;
    margin: 8px 14px 0 0;
}

.article-content a {
    color: var(--gold);
    border-bottom: 1px solid rgba(200, 164, 100, 0.3);
    transition: all var(--transition);
}

.article-content a:hover {
    border-color: var(--gold);
    color: var(--paper);
}

@media (max-width: 900px) {
    .split-article { grid-template-columns: 1fr; gap: 24px; }
    .article-marginalia { position: static; padding-top: 0; }
    .article-toc { display: none; }
}

/* =====================================================
   ARTICLES — Index page
   ===================================================== */
.article-index {
    padding: 150px 0 110px;
    background: var(--ink);
    min-height: 60vh;
}

.index-list {
    max-width: 760px;
    margin: 0 auto;
}

.index-card {
    padding: 36px 0;
    border-bottom: 1px solid var(--border);
}

.index-card:first-child {
    border-top: 1px solid var(--border);
}

.index-date {
    font-family: var(--mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--gold);
    display: block;
    margin-bottom: 8px;
}

.index-title {
    font-family: var(--display);
    font-size: 1.7rem;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin-bottom: 10px;
}

.index-title a {
    color: var(--paper);
    text-decoration: none;
    transition: color var(--transition);
}

.index-title a:hover {
    color: var(--gold);
}

.index-excerpt {
    font-size: 0.98rem;
    color: var(--paper-2);
    line-height: 1.65;
    font-weight: 300;
}

.empty-state {
    text-align: center;
    color: var(--muted);
    font-size: 1.05rem;
    padding: 60px 0;
}

.empty-state a {
    color: var(--gold);
    border-bottom: 1px solid rgba(200, 164, 100, 0.3);
}

/* =====================================================
   HOME — Latest articles section
   ===================================================== */
.latest-articles {
    background: var(--ink);
}

.latest-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.latest-card {
    background: var(--ink-2);
    border: 1px solid var(--border);
    padding: 28px;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}

.latest-card:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
}

.latest-card-date {
    font-family: var(--mono);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--gold);
    margin-bottom: 10px;
}

.latest-card h3 {
    font-family: var(--display);
    font-size: 1.35rem;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--paper);
    margin-bottom: 10px;
}

.latest-card p {
    font-size: 0.9rem;
    color: var(--paper-2);
    line-height: 1.6;
    font-weight: 300;
    flex: 1;
    margin-bottom: 16px;
}

.latest-card-link {
    font-family: var(--mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    margin-top: auto;
}

.latest-card-link:hover {
    color: var(--paper);
}

.latest-all-link {
    text-align: center;
    margin-top: 40px;
}

.latest-all-link a {
    font-family: var(--mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gold);
    border: 1px solid var(--border-strong);
    padding: 12px 24px;
    display: inline-block;
    transition: all var(--transition);
}

.latest-all-link a:hover {
    border-color: var(--gold);
    color: var(--paper);
}

@media (max-width: 768px) {
    .latest-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   ABOUT PAGE — Bio, Values, Readings, Mental Models
   ===================================================== */
.bio-text p {
    font-size: 1.05rem;
    color: var(--paper-2);
    line-height: 1.8;
    font-weight: 300;
    margin-bottom: 20px;
    max-width: 680px;
}

.values-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--border);
}

.values-list li {
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.values-list li strong {
    font-family: var(--display);
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--paper);
    letter-spacing: -0.01em;
}

.values-list li span {
    font-size: 0.95rem;
    color: var(--paper-2);
    line-height: 1.7;
    font-weight: 300;
    max-width: 600px;
}

.values-list li code {
    font-family: var(--mono);
    font-size: 0.88em;
    background: var(--ink-3);
    border: 1px solid var(--border-strong);
    padding: 1px 6px;
    border-radius: 2px;
    color: var(--gold);
}

.reading-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 32px;
}

.reading-card {
    background: var(--ink-2);
    border: 1px solid var(--border);
    padding: 28px;
    transition: all var(--transition);
}

.reading-card:hover {
    border-color: var(--gold);
    transform: translateY(-2px);
}

.reading-card h3 {
    font-family: var(--display);
    font-size: 1.2rem;
    font-weight: 400;
    color: var(--paper);
    margin-bottom: 4px;
    line-height: 1.2;
}

.reading-author {
    font-family: var(--mono);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gold);
    display: block;
    margin-bottom: 12px;
}

.reading-card p {
    font-size: 0.9rem;
    color: var(--paper-2);
    line-height: 1.65;
    font-weight: 300;
}

.mental-models {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 24px;
    border-top: 1px solid var(--border);
}

.model-item {
    display: flex;
    gap: 0;
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
}

.model-num {
    font-family: var(--mono);
    font-size: 0.78rem;
    color: var(--gold);
    letter-spacing: 0.14em;
    min-width: 40px;
    padding-top: 3px;
}

.model-item strong {
    font-family: var(--display);
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--paper);
    display: block;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.model-item p {
    font-size: 0.95rem;
    color: var(--paper-2);
    line-height: 1.7;
    font-weight: 300;
    max-width: 600px;
    margin: 0;
}

@media (max-width: 768px) {
    .reading-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   RESPONSIVE FINE-TUNES
   ===================================================== */
@media (max-width: 768px) {
    section { padding: 80px 0; }
    .hero { padding: 110px 24px 70px; }
    .stats { padding: 44px 0; }
    .cta-section { padding: 90px 0; }
    .cta-section::before { font-size: 18rem; right: -30px; }
}

@media (max-width: 480px) {
    .container, .nav-container { padding: 0 20px; }
    .display { font-size: 2.8rem; }
    .nav-name { display: none; }
    .nav-links { gap: 14px; }
    .stat-num { font-size: 2rem; }
    .stat { padding: 0 12px; }
    .companies-grid, .channels-grid { gap: 14px; }
    .creed li { font-size: 1.05rem; }
    .timeline-card h3 { font-size: 1.4rem; }
    .project-card { padding: 28px 22px; }
    .project-card h3 { font-size: 1.4rem; }
}
