
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Manrope:wght@600;700;800&display=swap');

:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-2: #eef2f8;
  --text: #0b1220;
  --muted: #5c6678;
  --line: rgba(11,18,32,.11);
  --blue: #2563eb;
  --blue-2: #6ea8ff;
  --dark: #0b1220;
  --shadow: 0 24px 70px rgba(16,24,40,.11);
  --radius: 26px;
  --container: 1180px;
}

[data-theme="dark"] {
  --bg: #090d15;
  --surface: #111827;
  --surface-2: #172033;
  --text: #f5f7fb;
  --muted: #a5afbf;
  --line: rgba(255,255,255,.11);
  --shadow: 0 24px 80px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  transition: background .3s ease, color .3s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding: 110px 0; position: relative; overflow: hidden; }
.skills-section { padding-bottom: 50px; }
h1,h2,h3,.brand-name { font-family: Manrope, Inter, sans-serif; letter-spacing: -.035em; }
h1,h2,h3,p { margin-top: 0; }
h2 { font-size: clamp(2.2rem, 5vw, 4.6rem); line-height: 1.02; margin-bottom: 28px; }
h3 { font-size: 1.45rem; line-height: 1.15; }
p { color: var(--muted); }
.eyebrow {
  color: var(--blue);
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .76rem;
  margin-bottom: 18px;
}
.skip-link { position: absolute; left: -999px; top: 0; }
.skip-link:focus { left: 16px; top: 16px; z-index: 99; background: white; padding: 10px 14px; color: #111; border-radius: 8px; }

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.nav { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.brand-mark {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 12px; color: white; background: linear-gradient(135deg,#2563eb,#7c3aed);
  font-size: .86rem; letter-spacing: -.02em;
}
.nav-links { display: flex; align-items: center; gap: 26px; font-size: .9rem; font-weight: 700; }
.nav-links a:not(.nav-resume) { color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-resume { border: 1px solid var(--line); padding: 9px 14px; border-radius: 12px; background: var(--surface); }
.theme-toggle { width: 38px; height: 38px; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 50%; cursor: pointer; }
.menu-toggle { display: none; border: 0; background: transparent; padding: 8px; }
.menu-toggle span { display: block; width: 22px; height: 2px; margin: 5px 0; background: var(--text); }

.hero { padding-top: 160px; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 80px; align-items: center; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(3.5rem, 7.5vw, 7.8rem); line-height: .9; margin-bottom: 30px; max-width: 900px; }
.hero h1 span { color: var(--blue); display: block; }
.hero-intro { font-size: clamp(1.05rem, 1.8vw, 1.28rem); max-width: 720px; }
.hero-intro strong { color: var(--text); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 13px; margin: 34px 0 22px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 52px; padding: 0 20px; border-radius: 14px; font-weight: 800; transition: transform .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--text); color: var(--bg); box-shadow: 0 14px 30px rgba(14,22,39,.18); }
.button-secondary { border: 1px solid var(--line); background: var(--surface); }
.hero-links { display: flex; gap: 22px; font-weight: 700; font-size: .9rem; }
.hero-links a { color: var(--muted); }
.hero-links a:hover { color: var(--blue); }

.hero-portrait { position: relative; max-width: 500px; margin-left: auto; }
.portrait-frame {
  border-radius: 42px;
  overflow: hidden;
  aspect-ratio: .78;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.portrait-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.portrait-card {
  position: absolute; left: -38px; bottom: 40px; padding: 14px 18px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: 18px;
  display: flex; align-items: center; gap: 11px;
  box-shadow: var(--shadow);
}
.portrait-card strong { display: block; font-size: .88rem; }
.portrait-card small { display: block; color: var(--muted); margin-top: 2px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 5px rgba(34,197,94,.13); }

.hero-glow { position: absolute; border-radius: 50%; filter: blur(5px); opacity: .18; pointer-events: none; }
.hero-glow-one { width: 520px; height: 520px; background: #2563eb; right: -220px; top: 120px; }
.hero-glow-two { width: 380px; height: 380px; background: #8b5cf6; left: -220px; bottom: 0; }

.impact-strip {
  margin-top: 88px;
  display: grid; grid-template-columns: repeat(4,1fr);
  border: 1px solid var(--line); border-radius: 24px;
  overflow: hidden; background: var(--surface);
}
.impact-strip div { padding: 26px; border-right: 1px solid var(--line); }
.impact-strip div:last-child { border-right: 0; }
.impact-strip strong { display: block; font-family: Manrope; font-size: 2.25rem; letter-spacing: -.05em; }
.impact-strip span { color: var(--muted); font-size: .83rem; }

.two-col { display: grid; grid-template-columns: .9fr 1.1fr; gap: 100px; align-items: start; }
.about-section { background: var(--surface); }
.about-copy { max-width: 670px; }
.about-copy > p { font-size: 1.12rem; }
.education-card { padding: 24px; border-radius: 20px; background: var(--surface-2); margin-top: 34px; }
.education-card span,.education-card small { color: var(--muted); display: block; }
.education-card strong { display: block; font-size: 1.35rem; margin: 5px 0; }
.education-card p { margin-bottom: 5px; }

.work-heading { display: grid; grid-template-columns: 1.4fr .6fr; gap: 70px; align-items: end; margin-bottom: 55px; }
.work-heading > p { padding-bottom: 15px; }
.project-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:25px; align-items:start; }
.project-card { align-self:start; background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); }
.project-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.project-featured { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; }
.project-image { min-height: 360px; background: var(--surface-2); overflow: hidden; }
.project-featured .project-image { min-height: 580px; }
.project-image img { width: 100%; height: 100%; object-fit: cover; }
.project-featured .project-image img { object-position: center 12%; }
.project-body { padding: 32px; }
.project-featured .project-body { padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.project-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.project-meta span { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--blue); background: rgba(37,99,235,.08); padding: 6px 9px; border-radius: 999px; }
.project-body h3 { font-size: 2rem; margin-bottom: 13px; }
.project-body p { margin-bottom: 20px; }
.text-link { font-weight: 800; color: var(--blue); }
.text-link.muted { color: var(--muted); }
.metric-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 10px 0 26px; }
.metric-row span { border: 1px solid var(--line); background: var(--surface-2); padding: 10px 12px; border-radius: 12px; color: var(--muted); font-size: .8rem; }
.metric-row strong { color: var(--text); font-size: 1rem; }
.social-pair { display: grid; grid-template-columns: 1fr 1fr; height: 360px; overflow: hidden; }
.social-pair img { width: 100%; height: 100%; object-fit: cover; }
.site-preview { min-height: 360px; padding: 28px; background: radial-gradient(circle at 70% 20%,#2563eb 0,transparent 35%), linear-gradient(135deg,#07111f,#15223a); color: white; }
.browser-dots { opacity: .55; letter-spacing: 6px; font-size: .7rem; }
.site-preview-inner { min-height: 280px; display: flex; flex-direction: column; justify-content: center; }
.site-preview-inner small { color: #93c5fd; letter-spacing: .15em; font-weight: 800; }
.site-preview-inner strong { font-family: Manrope; font-size: 3.1rem; line-height: .95; max-width: 300px; margin: 12px 0; }
.site-preview-inner span { color: #cbd5e1; }

.dashboard-section { background: var(--dark); color: white; }
.dashboard-section p { color: #9aa7bb; }
.dashboard-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 70px; align-items: center; }
.section-copy { max-width: 480px; }
.dashboard { background: #101827; border: 1px solid rgba(255,255,255,.1); border-radius: 28px; padding: 28px; box-shadow: 0 25px 80px rgba(0,0,0,.24); }
.dash-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.dash-top small { color: #8895a7; display: block; }
.dash-top strong { display: block; margin-top: 3px; }
.live-pill { font-size: .76rem; color: #cbd5e1; border: 1px solid rgba(255,255,255,.13); padding: 7px 10px; border-radius: 999px; }
.live-pill i { width: 7px; height: 7px; background: #22c55e; display: inline-block; border-radius: 50%; margin-right: 6px; }
.dash-metrics { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.dash-metrics div { padding: 18px; border-radius: 16px; background: #172234; }
.dash-metrics span,.dash-metrics small { color: #8592a6; display: block; font-size: .72rem; }
.dash-metrics strong { font-family: Manrope; font-size: 1.65rem; display: block; margin: 6px 0 2px; }
.chart { display: grid; grid-template-columns: 90px 1fr; gap: 14px; align-items: end; height: 210px; margin-top: 24px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 24px; }
.chart-labels { height: 100%; display: flex; flex-direction: column; justify-content: space-around; color: #7f8da2; font-size: .75rem; }
.bars { height: 100%; display: flex; align-items: end; gap: 16px; border-left: 1px solid rgba(255,255,255,.08); padding-left: 18px; }
.bars i { flex: 1; height: var(--h); max-width: 100px; border-radius: 12px 12px 3px 3px; background: linear-gradient(180deg,#6ea8ff,#2563eb); opacity: .9; }

.experience-section { background: var(--surface); }
.timeline { margin-top: 55px; border-top: 1px solid var(--line); }
.timeline-item { display: grid; grid-template-columns: 210px 1fr; gap: 50px; padding: 34px 0; border-bottom: 1px solid var(--line); }
.timeline-date { color: var(--blue); font-weight: 800; font-size: .83rem; }
.timeline-item h3 { margin-bottom: 4px; }
.company { color: var(--text); font-weight: 700; margin-bottom: 9px; }
.timeline-item div p:last-child { max-width: 760px; margin-bottom: 0; }

.skill-columns { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-top: 30px; }
.skill-card { border: 1px solid var(--line); background: var(--surface); border-radius: 22px; padding: 28px; }
.skill-card > span { color: var(--blue); font-weight: 800; font-size: .75rem; }
.skill-card h3 { margin: 24px 0 12px; }
.skill-card p { font-size: .92rem; margin-bottom: 0; }

.contact-section { padding-top: 0; padding-bottom: 60px; }
.contact-panel { background: linear-gradient(135deg,#1d4ed8,#111827); border-radius: 34px; padding: 65px; display: grid; grid-template-columns: 1.25fr .75fr; gap: 50px; align-items: center; color: white; }
.contact-panel h2 { font-size: clamp(2.3rem,4vw,4rem); margin-bottom: 18px; }
.contact-panel p { color: #dbe4f3; max-width: 650px; margin-bottom: 0; }
.contact-panel .eyebrow { color: #bfdbfe; }
.contact-actions { display: flex; justify-content: flex-end; gap: 12px; flex-wrap: wrap; }
.button-light { background: white; color: #111827; }
.button-outline-light { border: 1px solid rgba(255,255,255,.35); color: white; }

.site-footer { border-top: 1px solid var(--line); padding: 38px 0; background: var(--surface); }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; align-items: center; }
.footer-grid p { margin: 4px 0 0; font-size: .85rem; }
.footer-links { display: flex; gap: 22px; font-weight: 700; font-size: .85rem; color: var(--muted); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .hero-grid,.two-col,.dashboard-grid,.contact-panel { grid-template-columns: 1fr; gap: 50px; }
  .hero-portrait { max-width: 420px; margin: 0; }
  .impact-strip { grid-template-columns: 1fr 1fr; }
  .impact-strip div:nth-child(2) { border-right: 0; }
  .impact-strip div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .work-heading { grid-template-columns: 1fr; gap: 12px; }
  .project-featured { grid-column: span 2; grid-template-columns: 1fr; }
  .project-featured .project-image { min-height: 480px; }
  .skill-columns { grid-template-columns: 1fr 1fr; }
  .contact-actions { justify-content: flex-start; }
}

@media (max-width: 760px) {
  .section { padding: 82px 0; }
  .container { width: min(calc(100% - 28px), var(--container)); }
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute; left: 14px; right: 14px; top: 66px;
    display: none; flex-direction: column; align-items: stretch; gap: 4px;
    background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
    padding: 12px; box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-links a,.theme-toggle { padding: 12px; width: 100%; border-radius: 10px; }
  .nav-links a:hover { background: var(--surface-2); }
  .theme-toggle { height: 45px; border-radius: 10px; }
  .hero { padding-top: 125px; }
  .hero h1 { font-size: clamp(3.1rem,15vw,5.2rem); }
  .hero-portrait { max-width: 100%; }
  .portrait-card { left: 14px; bottom: 18px; }
  .impact-strip { margin-top: 55px; }
  .impact-strip strong { font-size: 1.8rem; }
  .impact-strip div { padding: 20px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-featured { grid-column: auto; }
  .project-image,.social-pair,.site-preview { min-height: 300px; height: 300px; }
  .project-featured .project-image { min-height: 390px; }
  .project-featured .project-body,.project-body { padding: 26px; }
  .dash-metrics { grid-template-columns: 1fr 1fr; }
  .timeline-item { grid-template-columns: 1fr; gap: 10px; }
  .skill-columns { grid-template-columns: 1fr; }
  .contact-panel { padding: 34px 24px; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .button,.project-card { transition: none; }
}


/* Einstein case study */
.case-hero { padding-top: 145px; background: linear-gradient(180deg, var(--bg), color-mix(in srgb, var(--surface-2) 55%, var(--bg))); }
.case-hero-grid { display:grid; grid-template-columns:1.08fr .92fr; gap:70px; align-items:center; }
.case-back { display:inline-block; margin-bottom:28px; color:var(--muted); font-weight:700; font-size:.9rem; }
.case-hero h1 { font-size:clamp(3.6rem,8vw,7.5rem); line-height:.9; margin-bottom:18px; }
.case-deck { font-family:Manrope,Inter,sans-serif; color:var(--blue); font-size:clamp(1.3rem,2.4vw,2rem); font-weight:800; max-width:760px; line-height:1.15; }
.case-summary { font-size:1.08rem; max-width:740px; }
.case-cover { border-radius:34px; overflow:hidden; border:1px solid var(--line); background:var(--surface); box-shadow:var(--shadow); }
.case-cover img { width:100%; aspect-ratio:.72; object-fit:cover; object-position:center top; }
.case-stats { padding:0 0 70px; background:color-mix(in srgb, var(--surface-2) 55%, var(--bg)); }
.case-stat-grid { display:grid; grid-template-columns:repeat(4,1fr); background:var(--surface); border:1px solid var(--line); border-radius:24px; overflow:hidden; }
.case-stat-grid div { padding:28px; border-right:1px solid var(--line); }
.case-stat-grid div:last-child { border-right:0; }
.case-stat-grid strong { display:block; font-family:Manrope; font-size:2.3rem; letter-spacing:-.05em; }
.case-stat-grid span { color:var(--muted); font-size:.82rem; }
.case-section-grid { display:grid; grid-template-columns:.75fr 1.25fr; gap:90px; align-items:start; }
.case-copy .lead { font-size:1.2rem; color:var(--text); line-height:1.75; }
.case-callout { margin-top:34px; padding:28px; border-radius:20px; background:var(--surface-2); border-left:4px solid var(--blue); }
.case-callout span { display:block; color:var(--blue); font-size:.74rem; text-transform:uppercase; letter-spacing:.1em; font-weight:800; margin-bottom:8px; }
.case-callout strong { font-size:1.25rem; line-height:1.45; }
.case-alt { background:var(--surface); }
.strategy-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:18px; margin-top:48px; }
.strategy-card { background:var(--surface-2); border:1px solid var(--line); border-radius:22px; padding:28px; }
.strategy-card > span { color:var(--blue); font-weight:800; font-size:.76rem; }
.strategy-card h3 { margin:22px 0 10px; }
.strategy-card p { margin-bottom:0; }
.channel-list { display:grid; gap:14px; margin-top:28px; }
.channel-list > div { padding:22px 24px; border:1px solid var(--line); border-radius:18px; background:var(--surface); }
.channel-list strong { display:block; margin-bottom:6px; }
.channel-list p { margin:0; }
.ai-section { background:linear-gradient(135deg,#0b1220,#132238); color:white; }
.ai-section p { color:#c1ccdc; }
.ai-section h2 { color:white; }
.tool-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:14px; margin-top:28px; }
.tool-grid div { padding:22px; border:1px solid rgba(255,255,255,.12); background:rgba(255,255,255,.05); border-radius:18px; }
.tool-grid strong,.tool-grid span { display:block; }
.tool-grid span { margin-top:5px; color:#9eb0c6; font-size:.88rem; }
.analytics-layout { display:grid; grid-template-columns:1.2fr .8fr; gap:28px; align-items:stretch; margin-top:48px; }
.analytics-notes { border:1px solid var(--line); background:var(--surface); border-radius:24px; padding:30px; }
.analytics-notes h3 { margin-bottom:18px; }
.analytics-notes ul { padding-left:20px; color:var(--muted); }
.analytics-notes li + li { margin-top:12px; }
.research-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-top:26px; }
.research-grid div { padding:22px; background:var(--surface-2); border:1px solid var(--line); border-radius:18px; }
.research-grid strong { display:block; margin-bottom:7px; }
.research-grid p { margin:0; font-size:.9rem; }
.takeaway-tags { display:flex; flex-wrap:wrap; gap:10px; margin-top:26px; }
.takeaway-tags span { padding:9px 12px; background:var(--surface-2); border:1px solid var(--line); border-radius:999px; font-size:.82rem; font-weight:700; color:var(--muted); }
.case-nav { gap:20px; }

@media (max-width: 980px) {
  .case-hero-grid,.case-section-grid,.analytics-layout { grid-template-columns:1fr; gap:45px; }
  .case-cover { max-width:560px; }
  .strategy-grid { grid-template-columns:1fr 1fr; }
  .case-stat-grid { grid-template-columns:1fr 1fr; }
  .case-stat-grid div:nth-child(2) { border-right:0; }
  .case-stat-grid div:nth-child(-n+2) { border-bottom:1px solid var(--line); }
}
@media (max-width: 760px) {
  .case-nav a:not(.nav-resume) { display:none; }
  .strategy-grid,.tool-grid,.research-grid { grid-template-columns:1fr; }
  .case-stat-grid strong { font-size:1.8rem; }
  .case-stat-grid div { padding:20px; }
}

/* Pan De Vida case study */
.pdv-hero .case-deck { max-width: 690px; }
.pdv-cover img { aspect-ratio: 1.15; object-fit: cover; object-position: top center; }
.pdv-mobile-frame { margin-top: 30px; max-width: 430px; border: 1px solid var(--line); border-radius: 34px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.pdv-mobile-frame img { width: 100%; display: block; }
.pdv-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 44px; }
.pdv-gallery figure { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow); }
.pdv-gallery img { width: 100%; aspect-ratio: 1.45; object-fit: cover; object-position: top center; display: block; }
.pdv-gallery figcaption { padding: 24px; }
.pdv-gallery figcaption strong, .pdv-gallery figcaption span { display: block; }
.pdv-gallery figcaption span { color: var(--muted); margin-top: 8px; line-height: 1.6; }
@media (max-width: 760px) { .pdv-gallery { grid-template-columns: 1fr; } .pdv-cover img { aspect-ratio: .9; } }
/* Pan De Vida featured project */
.pandevida-card .project-image {
    min-height: 520px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pandevida-card .project-image img {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: contain;
    object-position: center;
    border-radius: 18px;
}
/* Improve readability on dark analytics section */
.analytics-section,
.analytics-section p,
.analytics-section h1,
.analytics-section h2,
.analytics-section h3 {
  color: #ffffff;
}

.analytics-section .muted {
  color: #e2e8f0;
}
