/* ==========================================================================
   eduazeredo.com — styles
   ========================================================================== */

:root {
  --bg: #0D1014;
  --surface: #12161B;
  --surface-2: #151A20;
  --line: #252C35;
  --line-2: #333C47;
  --text: #E8ECEF;
  --text-2: #C9D2DB;
  --muted: #A9B4C0;
  --faint: #8C98A5;
  --accent: #C3F55A;
  --accent-hover: #E2FFA6;
  --accent-dim: #6E7C3A;

  --font-sans: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --radius: 12px;
  --radius-sm: 8px;
  --max: 1240px;
  --gutter: 24px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ol, ul { margin: 0; }
img { max-width: 100%; display: block; }

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  padding: 12px 16px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 700;
  z-index: 100;
}
.skip-link:focus { left: 8px; }

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

.mono { font-family: var(--font-mono); }
.accent { color: var(--accent); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 16, 20, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
}
.brand {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
  padding: 12px 0;
}
.brand:hover { color: var(--text); }
.brand span { color: var(--accent); }

.nav {
  display: flex;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 14px;
}
.nav a {
  padding: 12px 14px;
  color: var(--muted);
  text-decoration: none;
  border-radius: var(--radius-sm);
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--text); }

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
  padding: 0;
}

@media (max-width: 720px) {
  .menu-btn { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a:last-child { border-bottom: 0; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--bg); }
.btn-primary:hover { background: var(--accent-hover); color: var(--bg); }
.btn-ghost { border-color: var(--line-2); color: var(--text); font-weight: 500; }
.btn-ghost:hover { border-color: var(--muted); color: var(--text); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(64px, 10vw, 112px) clamp(48px, 8vw, 96px);
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--muted);
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}
.display {
  font-size: clamp(42px, 7.4vw, 104px);
  line-height: 0.98;
  font-weight: 700;
  letter-spacing: -0.035em;
  max-width: 1120px;
}
.display--case { font-size: clamp(38px, 6.4vw, 88px); line-height: 1; }
.lead {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.6;
  color: var(--muted);
  max-width: 720px;
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; }
.chip {
  padding: 8px 14px;
  border: 1px solid var(--line-2);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-2);
}

/* ---------- Metrics ---------- */

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.metric {
  background: var(--surface);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.metric-label { font-family: var(--font-mono); font-size: 13px; color: var(--faint); }
.metric-value {
  font-size: clamp(40px, 4.4vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--accent);
}
.metric-desc { font-size: 15px; line-height: 1.5; color: var(--muted); }

@media (max-width: 640px) {
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric { padding: 18px; gap: 8px; }
  .metric-label { display: none; }
  .metric-value { font-size: 26px; white-space: nowrap; }
  .metric-desc { font-size: 13px; line-height: 1.4; }
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(64px, 8vw, 96px); }
.section--tight-top { padding-top: 0; }
.band { background: var(--surface); border-block: 1px solid var(--line); }
.section-title {
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 40px;
}

/* ---------- Projects ---------- */

.project-list { display: flex; flex-direction: column; gap: 16px; }
.project {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 40px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s ease;
}
.project:hover { color: var(--text); border-color: var(--line-2); }
.project:hover .project-cta { color: var(--accent-hover); }
.project-meta { flex: 0 0 200px; font-family: var(--font-mono); font-size: 13px; color: var(--faint); }
.project-body { flex: 999 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.project-title { font-size: clamp(20px, 2vw, 24px); font-weight: 500; line-height: 1.25; }
.project-desc { font-size: 15px; line-height: 1.5; color: var(--muted); }
.project-cta { font-family: var(--font-mono); font-size: 14px; color: var(--accent); }

@media (max-width: 640px) {
  .project { padding: 20px; gap: 8px; flex-direction: column; align-items: flex-start; }
  .project-meta { flex: none; }
  .project-body { flex: none; }
}

/* ---------- Career ---------- */

.career { display: flex; flex-wrap: wrap; gap: 56px; }
.career-main { flex: 999 1 560px; min-width: 0; }
.career-side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }

.timeline {
  list-style: none;
  padding: 0 0 0 24px;
  border-left: 1px solid var(--line-2);
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.timeline li { display: flex; flex-direction: column; gap: 4px; }
.timeline .date { font-family: var(--font-mono); font-size: 13px; color: var(--faint); }
.timeline li:first-child .date { color: var(--accent); }
.timeline .role { font-size: 20px; font-weight: 500; }

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.card-title { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--faint); text-transform: uppercase; }
.card p { font-size: 16px; line-height: 1.6; }

/* ---------- Contact ---------- */

.contact { border-top: 1px solid var(--line); }
.contact .container { padding-block: clamp(64px, 8vw, 96px) 64px; display: flex; flex-direction: column; gap: 32px; }
.big-mail {
  font-size: clamp(28px, 5.4vw, 72px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.big-mail:hover { color: var(--accent); }

.site-footer { border-top: 1px solid var(--line); }
.site-footer .container {
  padding-block: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--faint);
}
.site-footer a { color: var(--faint); text-decoration: none; padding: 12px 0; }
.site-footer a:hover { color: var(--text); }

/* ==========================================================================
   Case study pages
   ========================================================================== */

.back-link {
  font-family: var(--font-mono);
  font-size: 14px;
  text-decoration: none;
  padding: 12px 0;
  align-self: flex-start;
}

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.fact { background: var(--surface); padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.fact dt { font-family: var(--font-mono); font-size: 12px; color: var(--faint); text-transform: uppercase; }
.fact dd { margin: 0; font-size: 17px; }

.split { display: flex; flex-wrap: wrap; gap: 32px 80px; }
.split-label { flex: 1 1 260px; display: flex; flex-direction: column; gap: 8px; }
.split-kicker { font-family: var(--font-mono); font-size: 14px; font-weight: 500; color: var(--accent); }
.split-heading { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.split-body {
  flex: 999 1 560px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 19px;
  line-height: 1.7;
  color: var(--text-2);
}
.stack { display: flex; flex-direction: column; gap: 48px; }

.flow-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.flow-box--highlight { border-color: var(--accent); }
.flow-label { font-family: var(--font-mono); font-size: 13px; color: var(--faint); }
.flow-box--highlight .flow-label { color: var(--accent); }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; list-style: none; padding: 0; }
.flow li { display: flex; align-items: center; gap: 12px; }
.flow li + li::before { content: "→"; color: var(--faint); }
.flow--equation li + li::before { content: none; }
.step {
  padding: 14px 18px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  font-size: 16px;
}
.step--accent { border-color: var(--accent); color: var(--accent); }
.op { color: var(--faint); font-size: 20px; }

@media (max-width: 640px) {
  .flow { flex-direction: column; align-items: stretch; }
  .flow li { flex-direction: column; align-items: stretch; }
  .flow li + li::before { content: "↓"; text-align: center; }
  .flow--equation li + li::before { content: none; }
  .op { text-align: center; }
  .flow-box { padding: 20px; }
}

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.tiles--small { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.tile {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}
a.tile { background: var(--surface); }
a.tile:hover { color: var(--text); border-color: var(--line-2); }
.tile--accent { border-color: var(--accent); }
a.tile--accent:hover { border-color: var(--accent-hover); }
.tile-kicker { font-family: var(--font-mono); font-size: 12px; color: var(--faint); }
.tile--accent .tile-kicker,
a.tile .tile-kicker { color: var(--accent); }
.tile h3 { font-size: 20px; font-weight: 500; }
.tile-name { font-size: 24px; font-weight: 500; }
.tile p { font-size: 16px; line-height: 1.6; color: var(--muted); }

.results { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.result { display: flex; flex-direction: column; gap: 10px; }
.result-value {
  font-size: clamp(56px, 7vw, 72px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--accent);
}
.result-value--xl { font-size: clamp(64px, 10vw, 140px); letter-spacing: -0.04em; line-height: 0.9; }
.result-desc { font-size: 17px; line-height: 1.5; color: var(--text-2); max-width: 620px; }
.result-desc--lg { font-size: 20px; }

.feature {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 80px;
  align-items: flex-end;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
}
.feature-main { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.feature-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }

.press {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--line-2);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  text-decoration: none;
}
.press:hover { color: var(--text); border-color: var(--muted); }
.press-source { font-family: var(--font-mono); font-size: 11px; color: var(--faint); text-transform: uppercase; }
.press-title { font-size: 17px; font-weight: 500; line-height: 1.35; }
.press-cta { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }

.bars { display: flex; flex-direction: column; gap: 10px; max-width: 640px; }
.bar-row { display: flex; align-items: center; gap: 16px; font-size: 14px; }
.bar-row-label { flex: 0 0 96px; color: var(--muted); }
.bar-track { flex: 1; height: 14px; background: var(--line); border-radius: 7px; overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 7px; background: var(--accent); }
.bar-fill--dim { background: var(--accent-dim); }
.bar-row-value { flex: 0 0 44px; text-align: right; }

.share {
  display: flex;
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.share-part { display: flex; align-items: center; padding: 8px 16px; font-size: 15px; }
.share-part--accent { flex: 0 0 25%; background: var(--accent); color: var(--bg); font-weight: 700; }
.share-part--rest { flex: 1; background: var(--surface-2); color: var(--muted); }
@media (max-width: 640px) {
  .share-part--accent { flex-basis: 40%; font-size: 13px; }
  .share-part--rest { font-size: 13px; }
}

.quote { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.45; color: var(--text); }

.lessons { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.lesson { border-top: 1px solid var(--line-2); padding-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.lesson-kicker { font-family: var(--font-mono); font-size: 12px; color: var(--accent); }
.lesson p { font-size: 17px; line-height: 1.5; color: var(--text-2); }

.case-nav { border-top: 1px solid var(--line); }
.case-nav .container {
  padding-block: 64px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
}
.case-nav a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 0;
  color: var(--text);
  text-decoration: none;
}
.case-nav a:hover { color: var(--accent); }
.case-nav .next { text-align: right; margin-left: auto; }
.case-nav-kicker { font-family: var(--font-mono); font-size: 13px; color: var(--faint); }
.case-nav-title { font-size: 24px; font-weight: 500; }
.external { font-family: var(--font-mono); font-size: 14px; text-decoration: none; padding: 12px 0; align-self: flex-start; }
