/* ============================================================
   Esteban Restrepo — CV terminal / trading desk
   Static stylesheet · no build step
   ============================================================ */

:root {
  /* Backgrounds */
  --bg: #0f141a;
  --bg-deep: #0c1117;
  --surface: #151b23;
  --surface-2: #181e26;
  --surface-3: #1c232d;
  --surface-4: #222b37;

  /* Borders */
  --border: #27303f;
  --border-soft: #202835;
  --border-strong: #35435a;

  /* Type */
  --text: #e6edf3;
  --text-soft: #c2ccd8;
  --muted: #8b98a9;
  --faint: #667386;

  /* Accents */
  --emerald: #3ddc97;
  --emerald-dim: #2a9d73;
  --emerald-soft: rgba(61, 220, 151, 0.1);
  --emerald-line: rgba(61, 220, 151, 0.32);
  --amber: #e8b563;
  --amber-soft: rgba(232, 181, 99, 0.1);
  --amber-line: rgba(232, 181, 99, 0.32);
  --blue: #7aa2f7;
  --blue-soft: rgba(122, 162, 247, 0.1);
  --blue-line: rgba(122, 162, 247, 0.3);

  /* Layout */
  --max: 1180px;
  --gutter: 24px;
  --header-h: 72px;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-xs: 4px;

  /* Fonts */
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;

  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

/* ---------- Reset ---------- */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(1100px 560px at 82% -12%, rgba(61, 220, 151, 0.055), transparent 62%),
    radial-gradient(900px 520px at -12% 18%, rgba(122, 162, 247, 0.04), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.8;
}

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

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

button {
  font: inherit;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

p,
h1,
h2,
h3,
h4,
dl,
dd {
  margin: 0;
}

::selection {
  background: rgba(61, 220, 151, 0.26);
  color: #ffffff;
}

:focus-visible {
  outline: 2px solid var(--emerald);
  outline-offset: 3px;
  border-radius: 3px;
}

/* ---------- Shared ---------- */

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

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

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

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 300;
  padding: 10px 14px;
  border: 1px solid var(--emerald-line);
  border-radius: var(--radius-xs);
  background: var(--surface-3);
  color: var(--emerald);
  font-family: var(--mono);
  font-size: 12px;
  transform: translateY(-160%);
  transition: transform 0.18s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.status-dot {
  display: inline-block;
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 3px rgba(61, 220, 151, 0.1);
}

.status-dot.is-live,
.panel-live .status-dot {
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(61, 220, 151, 0.25);
  }
  50% {
    box-shadow: 0 0 0 5px rgba(61, 220, 151, 0);
  }
}

.inline-link {
  color: var(--emerald);
  text-decoration: underline;
  text-decoration-color: rgba(61, 220, 151, 0.35);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.inline-link:hover {
  text-decoration-color: var(--emerald);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(15, 20, 26, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  max-width: var(--max);
  height: var(--header-h);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 1px solid var(--emerald-line);
  border-radius: 6px;
  background: var(--emerald-soft);
  color: var(--emerald);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.brand-name {
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-role {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.nav-link {
  position: relative;
  padding: 8px 11px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.16s ease, background-color 0.16s ease;
}

.nav-link:hover {
  background: var(--surface-2);
  color: var(--text);
}

.nav-link.is-active {
  background: var(--surface-2);
  color: var(--text);
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  right: 11px;
  bottom: 3px;
  left: 11px;
  height: 1px;
  background: var(--emerald);
  opacity: 0.65;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 4px;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 34px;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
}

.lang-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: color 0.16s ease, background-color 0.16s ease;
}

.lang-btn:hover {
  color: var(--text-soft);
}

.lang-btn.is-active {
  background: var(--surface-3);
  color: var(--emerald);
}

.lang-divider {
  color: var(--border-strong);
  font-family: var(--mono);
  font-size: 10px;
}

.menu-toggle {
  display: none;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text-soft);
  cursor: pointer;
}

.menu-icon {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 16px;
}

.menu-icon span {
  display: block;
  width: 100%;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}

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

.menu-toggle[aria-expanded="true"] .menu-icon span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

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

.hero {
  padding-top: 52px;
  padding-bottom: 56px;
  scroll-margin-top: 88px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 48px;
  align-items: start;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--emerald);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 16px 0 18px;
  color: var(--text);
  font-size: clamp(2.2rem, 4vw, 3.3rem);
  font-weight: 600;
  letter-spacing: -0.052em;
  line-height: 0.96;
}

.hero h1 span {
  color: #9eafc0;
}

.hero-lede {
  max-width: 680px;
  margin-top: 22px;
}

.hero-lede p {
  color: var(--text-soft);
  font-size: 14.8px;
  line-height: 1.72;
}

.hero-lede p + p {
  margin-top: 11px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 11px 17px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.btn-primary {
  background: var(--emerald);
  color: #07140e;
}

.btn-primary:hover {
  background: #5ee6aa;
}

.btn-ghost {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text-soft);
}

.btn-ghost:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
}

.btn-arrow {
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1;
}

/* Hero terminal panel */

.hero-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow);
}

.hero-panel::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--emerald), transparent);
  opacity: 0.55;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 42px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(12, 17, 23, 0.7);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.panel-path {
  color: var(--text-soft);
}

.panel-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--faint);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.profile-lockup {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border-bottom: 1px solid var(--border-soft);
}

.profile-img {
  flex: 0 0 auto;
  width: 88px;
  height: 88px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  object-fit: cover;
  filter: grayscale(18%) contrast(1.04);
}

.profile-label {
  color: var(--amber);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
}

.profile-name {
  margin-top: 5px;
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.profile-loc {
  margin-top: 3px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
}

.data-list {
  padding: 5px 20px;
}

.data-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-soft);
}

.data-row:last-child {
  border-bottom: 0;
}

.data-row dt {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.data-row dd {
  color: var(--text-soft);
  font-size: 12px;
  text-align: right;
  overflow-wrap: anywhere;
}

.data-row dd.is-accent {
  color: var(--emerald);
  font-family: var(--mono);
  font-size: 11.5px;
}

.sector-block {
  padding: 14px 20px 18px;
  border-top: 1px solid var(--border-soft);
}

.sector-label {
  margin-bottom: 8px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sector-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sector-tags li {
  padding: 4px 7px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  background: var(--surface);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
}

.panel-foot {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 11px 20px;
  border-top: 1px solid var(--border-soft);
  background: rgba(12, 17, 23, 0.55);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.terminal-cursor {
  display: inline-block;
  width: 6px;
  height: 11px;
  margin-left: 3px;
  background: var(--emerald);
  animation: blink 1.15s steps(1) infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

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

.metrics-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 42px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(21, 27, 35, 0.72);
}

.metric {
  padding: 19px 22px;
  border-right: 1px solid var(--border-soft);
  transition: background-color 0.16s ease;
}

.metric:last-child {
  border-right: 0;
}

.metric:hover {
  background: rgba(28, 35, 45, 0.55);
}

.metric-value {
  color: var(--emerald);
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.metric-label {
  margin-top: 5px;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 500;
}

.metric-sub {
  margin-top: 2px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.02em;
}

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

.section {
  padding: 96px 0;
  border-top: 1px solid var(--border-soft);
  scroll-margin-top: 90px;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 38px;
}

.section-head-main {
  max-width: 760px;
}

.section-kicker {
  color: var(--emerald);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kicker-num {
  color: var(--faint);
}

.section h2 {
  margin: 12px 0 12px;
  color: var(--text);
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.section-desc {
  max-width: 620px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.section-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
  padding-bottom: 4px;
}

.meta-chip {
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  background: var(--surface);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.meta-chip-green {
  border-color: var(--emerald-line);
  background: var(--emerald-soft);
  color: var(--emerald);
}

.meta-chip-amber {
  border-color: var(--amber-line);
  background: var(--amber-soft);
  color: var(--amber);
}

/* ---------- Experience cards ---------- */

.exp-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.exp-card {
  position: relative;
  overflow: hidden;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.exp-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--emerald), transparent 58%);
  opacity: 0.28;
  transition: opacity 0.18s ease;
}

.exp-card:hover {
  border-color: var(--border-strong);
}

.exp-card:hover::before {
  opacity: 0.75;
}

.exp-card-featured {
  grid-column: 1 / -1;
  padding: 26px;
}

.exp-card-featured .achievement-list,
.exp-card-wide .achievement-list,
.exp-card-featured .card-kpis,
.exp-card-wide .card-kpis {
  max-width: 84ch;
}

.exp-card-featured::before {
  background: linear-gradient(90deg, var(--emerald), var(--emerald-line) 45%, transparent 80%);
  opacity: 0.65;
}

.exp-card-dev::before {
  background: linear-gradient(90deg, var(--blue), transparent 58%);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.card-id {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 7px;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: var(--surface);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tag-green {
  border-color: var(--emerald-line);
  background: var(--emerald-soft);
  color: var(--emerald);
}

.tag-amber {
  border-color: var(--amber-line);
  background: var(--amber-soft);
  color: var(--amber);
}

.tag-blue {
  border-color: var(--blue-line);
  background: var(--blue-soft);
  color: var(--blue);
}

.card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.card-title-row h3 {
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.card-period {
  flex: 0 0 auto;
  padding-top: 3px;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.card-company {
  margin-top: 5px;
  color: var(--emerald);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
}

.achievement-list {
  display: grid;
  gap: 7px;
  margin-top: 15px;
}

.achievement-list li {
  position: relative;
  padding-left: 13px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.62;
}

.achievement-list li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 1px;
  background: var(--emerald);
  opacity: 0.7;
}

.exp-card-dev .achievement-list li::before {
  background: var(--blue);
}

.card-kpis {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 17px;
  padding-top: 13px;
  border-top: 1px dashed var(--border-soft);
}

.kpi {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 4px 7px;
  border: 1px solid var(--border-soft);
  border-radius: 3px;
  background: rgba(28, 35, 45, 0.55);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.4;
}

.kpi strong {
  color: var(--emerald);
  font-weight: 500;
}

.exp-subhead {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 46px 0 18px;
  padding-top: 26px;
  border-top: 1px solid var(--border-soft);
}

.exp-subdesc {
  color: var(--muted);
  font-size: 12.5px;
}

.exp-grid-dev {
  grid-template-columns: 1fr;
}

/* ---------- Skills ---------- */

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.panel {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(165deg, var(--surface-2), var(--surface));
}

.skill-body {
  padding: 21px 22px 14px;
}

.skill-title {
  margin-bottom: 10px;
  color: var(--text);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.skill-list li {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) minmax(30px, 1.4fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-soft);
}

.skill-list li:last-child {
  border-bottom: 0;
}

.skill-name {
  color: var(--text-soft);
  font-size: 12.5px;
  white-space: nowrap;
}

.skill-leader {
  height: 1px;
  border-bottom: 1px dotted var(--border-strong);
  opacity: 0.75;
}

.skill-years {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  color: var(--emerald);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.05em;
  text-align: right;
  text-transform: uppercase;
  white-space: nowrap;
}

.skill-years strong {
  color: var(--emerald);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.skill-years span {
  color: var(--muted);
  font-size: 8.5px;
}

.skill-panel-amber .skill-years,
.skill-panel-amber .skill-years strong {
  color: var(--amber);
}

.skills-note {
  margin-top: 16px;
  padding: 11px 14px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  background: rgba(21, 27, 35, 0.5);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
  line-height: 1.65;
}

/* ---------- Education / profile info ---------- */

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

.info-body {
  padding: 20px 22px 24px;
}

.info-label {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.info-body h3 {
  margin: 9px 0 8px;
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.info-primary {
  color: var(--text-soft);
  font-size: 13px;
}

.info-mono {
  margin-top: 13px;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 10.5px;
}

.lang-list li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--border-soft);
  color: var(--text-soft);
  font-size: 13px;
}

.lang-list li:last-child {
  border-bottom: 0;
}

.lang-level {
  color: var(--emerald);
  font-family: var(--mono);
  font-size: 10px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.tag-list li {
  padding: 6px 9px;
  border: 1px solid var(--border);
  border-radius: var(--radius-xs);
  background: var(--surface);
  color: var(--text-soft);
  font-size: 12px;
  transition: border-color 0.16s ease, color 0.16s ease;
}

.tag-list li:hover {
  border-color: var(--emerald-line);
  color: var(--emerald);
}

.interests-card .tag-list li {
  padding: 5px 8px;
  font-size: 11.5px;
}

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

.contact-section {
  padding-bottom: 72px;
}

.contact-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: 48px;
  overflow: hidden;
  padding: 40px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background:
    radial-gradient(620px 300px at 0% 0%, rgba(61, 220, 151, 0.08), transparent 70%),
    linear-gradient(145deg, var(--surface-2), var(--surface));
}

.contact-panel::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--emerald), transparent);
  opacity: 0.6;
}

.contact-panel h2 {
  margin: 12px 0 14px;
  color: var(--text);
  font-size: clamp(2.3rem, 5vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}

.contact-lede {
  max-width: 450px;
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.72;
}

.contact-location {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.contact-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.contact-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 3px;
  justify-content: center;
  min-height: 64px;
  padding: 12px 34px 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(24, 30, 38, 0.72);
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.contact-item:hover {
  border-color: var(--emerald-line);
  background: rgba(28, 35, 45, 0.9);
}

.contact-item-primary {
  grid-column: 1 / -1;
  border-color: var(--emerald-line);
  background: var(--emerald-soft);
}

.contact-item-primary:hover {
  background: rgba(61, 220, 151, 0.14);
}

.contact-label {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.contact-item strong {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.contact-item-primary strong {
  color: var(--emerald);
  font-size: 14px;
}

.contact-item-email {
  padding: 14px;
}

.contact-email-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 2px;
}

.contact-email-link {
  min-width: 0;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 88px;
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid var(--emerald-line);
  border-radius: var(--radius-xs);
  background: rgba(61, 220, 151, 0.08);
  color: var(--emerald);
  font-family: var(--mono);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.copy-btn:hover {
  border-color: var(--emerald);
  background: rgba(61, 220, 151, 0.14);
}

.copy-btn.is-copied {
  border-color: var(--emerald);
  background: var(--emerald);
  color: #07140e;
}

.copy-btn.is-error {
  border-color: var(--amber-line);
  background: var(--amber-soft);
  color: var(--amber);
}

.copy-icon {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
}

.contact-arrow {
  position: absolute;
  top: 50%;
  right: 13px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 14px;
  transform: translateY(-50%);
  transition: color 0.16s ease, transform 0.16s ease;
}

.contact-item:hover .contact-arrow {
  color: var(--emerald);
  transform: translateY(-50%) translate(1px, -1px);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--border-soft);
  background: rgba(12, 17, 23, 0.45);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  padding-top: 22px;
  padding-bottom: 22px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.03em;
}

.footer-sep {
  margin: 0 4px;
  color: var(--border-strong);
}

.footer-role {
  letter-spacing: 0.1em;
}

.footer-top {
  color: var(--muted);
  transition: color 0.16s ease;
}

.footer-top:hover {
  color: var(--emerald);
}

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
    gap: 36px;
  }

}

@media (max-width: 900px) {
  .main-nav {
    position: fixed;
    top: calc(var(--header-h) + 8px);
    right: 20px;
    left: 20px;
    z-index: 110;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    max-height: calc(100vh - var(--header-h) - 24px);
    overflow-y: auto;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-2);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav .nav-link {
    padding: 12px 14px;
    border-radius: 6px;
    font-size: 13px;
  }

  .nav-link.is-active::after {
    top: 50%;
    right: auto;
    bottom: auto;
    left: 5px;
    width: 2px;
    height: 14px;
    transform: translateY(-50%);
  }

  .main-nav .nav-link {
    padding-left: 18px;
  }

  .menu-toggle {
    display: inline-grid;
  }

  .header-actions {
    margin-left: auto;
  }

  .hero {
    padding-top: 44px;
    padding-bottom: 48px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .hero-panel {
    width: 100%;
    max-width: 580px;
  }

  .metrics-bar {
    margin-top: 44px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric:nth-child(2) {
    border-right: 0;
  }

  .metric:nth-child(-n + 2) {
    border-bottom: 1px solid var(--border-soft);
  }

  .section {
    padding: 76px 0;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 30px;
  }

  .section-meta {
    justify-content: flex-start;
  }

  .info-grid {
    grid-template-columns: 1fr 1fr;
  }

  .education-card {
    grid-column: 1 / -1;
  }

  .contact-panel {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 32px;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 64px;
    --gutter: 20px;
  }

  .header-inner {
    gap: 12px;
  }

  .brand-role {
    display: none;
  }

  .main-nav {
    top: calc(var(--header-h) + 6px);
    right: 12px;
    left: 12px;
  }

  .hero {
    padding-top: 38px;
    padding-bottom: 44px;
  }

  .hero h1 {
    margin-top: 14px;
  }

  .hero-lede p {
    font-size: 14.2px;
    line-height: 1.7;
  }

  .metrics-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metric {
    padding: 16px 18px;
  }

  .metric-value {
    font-size: 23px;
  }

  .exp-grid,
  .skills-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .exp-card-featured,
  .exp-card-wide,
  .education-card {
    grid-column: auto;
  }

  .exp-card-featured {
    padding: 22px;
  }

  .exp-subhead {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .contact-section {
    padding-bottom: 56px;
  }

  .contact-links {
    grid-template-columns: 1fr;
  }

  .contact-item-primary {
    grid-column: auto;
  }

  .footer-role {
    display: none;
  }
}

@media (max-width: 480px) {
  .header-inner {
    padding: 0 16px;
  }

  .container {
    padding: 0 16px;
  }

  .brand-mark {
    width: 33px;
    height: 33px;
  }

  .brand-name {
    font-size: 12.5px;
  }

  .lang-switch {
    height: 32px;
  }

  .lang-btn {
    width: 30px;
    height: 26px;
  }

  .menu-toggle {
    width: 38px;
    height: 38px;
  }

  .hero {
    padding-bottom: 40px;
  }

  .eyebrow {
    font-size: 9.5px;
    letter-spacing: 0.1em;
  }

  .hero-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero-panel {
    max-width: none;
  }

  .profile-lockup {
    gap: 14px;
    padding: 18px;
  }

  .profile-img {
    width: 74px;
    height: 74px;
  }

  .profile-name {
    font-size: 16px;
  }

  .data-list {
    padding: 4px 18px;
  }

  .data-row {
    gap: 12px;
  }

  .data-row dd {
    font-size: 11px;
  }

  .sector-block {
    padding-right: 18px;
    padding-left: 18px;
  }

  .metrics-bar {
    grid-template-columns: 1fr;
  }

  .metric {
    border-right: 0;
    border-bottom: 1px solid var(--border-soft);
  }

  .metric:last-child {
    border-bottom: 0;
  }

  .section {
    padding: 64px 0;
  }

  .section h2 {
    font-size: 2rem;
  }

  .exp-card,
  .exp-card-featured {
    padding: 18px;
  }

  .card-title-row {
    flex-direction: column;
    gap: 5px;
  }

  .card-period {
    padding-top: 0;
  }

  .card-title-row h3 {
    font-size: 17px;
  }

  .achievement-list li {
    font-size: 12.5px;
  }

  .skill-body {
    padding: 18px 18px 12px;
  }

  .skill-list li {
    grid-template-columns: minmax(96px, 1fr) minmax(18px, 0.8fr) auto;
    gap: 9px;
  }

  .skill-name {
    font-size: 11.5px;
    white-space: normal;
  }

  .skill-years {
    font-size: 8.5px;
  }

  .skill-years strong {
    font-size: 11.5px;
  }

  .copy-btn {
    min-width: 84px;
  }

  .panel-head {
    padding: 0 14px;
  }

  .contact-panel {
    padding: 24px 20px;
  }

  .contact-item strong {
    font-size: 11.5px;
  }

  .contact-item-primary strong {
    font-size: 13px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 380px) {
  .brand-text {
    display: none;
  }
}

/* ---------- Motion & print ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

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

  .terminal-cursor {
    animation: none;
    opacity: 1;
  }
}

@media print {
  body {
    background: #ffffff;
    color: #111111;
    font-size: 11pt;
  }

  body::before,
  .site-header,
  .hero-panel,
  .hero-cta,
  .metrics-bar,
  .site-footer,
  .contact-links,
  .skip-link {
    display: none !important;
  }

  .container {
    max-width: none;
    padding: 0;
  }

  .hero {
    padding-top: 0;
    padding-bottom: 0;
  }

  .section {
    padding: 18px 0;
    border-top-color: #cccccc;
    break-inside: avoid;
  }

  .hero-grid {
    display: block;
  }

  .hero h1,
  .section h2,
  .card-title-row h3,
  .info-body h3,
  .contact-panel h2 {
    color: #111111;
  }

  .hero h1 span,
  .hero-lede p,
  .achievement-list li,
  .section-desc,
  .contact-lede {
    color: #222222;
  }

  .exp-card,
  .panel,
  .contact-panel {
    border-color: #cccccc;
    background: #ffffff;
    box-shadow: none;
    break-inside: avoid;
  }

  .exp-grid,
  .skills-grid,
  .info-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .exp-card-featured,
  .exp-card-wide {
    grid-column: 1 / -1;
  }

  .card-kpis,
  .card-period,
  .section-kicker,
  .info-mono {
    color: #444444;
  }
}
