/* ============================================================
   Eslam Ashraf Antar — profile site
   Warm-paper editorial system. Soft light palette, hairline
   rules, dotted leaders, one muted-gold thread throughout.
   ============================================================ */

:root {
  --paper: #faf5ec;
  --paper-deep: #f3ecdc;
  --card: #fffdf8;
  --ink: #3b414d;
  --ink-strong: #2b3038;
  --muted: #6f7480;
  --faint: #9aa0a8;
  --line: #e6dbc4;
  --line-soft: #eee4cd;
  --gold: #a97f2f;
  --gold-soft: #c8a75a;
  --sage: #7c8b6f;
  --clay: #bd7f4e;
  --dusty: #6e84a3;
  --shadow: 0 1px 2px rgba(94, 78, 44, .05), 0 10px 30px -12px rgba(94, 78, 44, .14);
  --shadow-lift: 0 2px 4px rgba(94, 78, 44, .06), 0 18px 40px -14px rgba(94, 78, 44, .22);
  --radius: 14px;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
section[id] { scroll-margin-top: 88px; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: #efdfba; color: var(--ink-strong); }

/* ---------- layered background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: var(--paper); }
.bg-wash { position: absolute; border-radius: 50%; filter: blur(10px); }
.bg-wash--peach {
  width: 62vw; height: 62vw; top: -28vw; left: -14vw;
  background: radial-gradient(circle, rgba(236, 205, 163, .5) 0%, rgba(236, 205, 163, 0) 65%);
}
.bg-wash--sage {
  width: 55vw; height: 55vw; top: 22vh; right: -22vw;
  background: radial-gradient(circle, rgba(196, 208, 182, .45) 0%, rgba(196, 208, 182, 0) 65%);
}
.bg-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(101, 86, 52, .07) 1px, transparent 1.4px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 96%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 96%);
}

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .62rem clamp(1.1rem, 4vw, 2.4rem);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
  box-shadow: 0 14px 34px -28px rgba(101, 86, 52, .45);
}
.topbar__brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink-strong); }
.topbar__mark { width: 44px; height: 44px; flex: none; }
.topbar__mark img { width: 100%; height: 100%; display: block; object-fit: contain; }
.topbar__name {
  font-family: var(--font-display); font-weight: 600; font-size: 1.14rem;
  line-height: 1.05; letter-spacing: .005em; white-space: nowrap;
}
.topbar__nav { display: flex; gap: .3rem; }
.topbar__nav a {
  color: var(--muted); text-decoration: none; font-size: .9rem; font-weight: 500;
  padding: .42rem .78rem; border-radius: 999px;
  transition: color .2s, background .2s, box-shadow .2s;
}
.topbar__nav a:hover { color: var(--ink-strong); background: var(--paper-deep); }
.topbar__nav a.is-active {
  color: var(--ink-strong); background: var(--paper-deep);
  box-shadow: inset 0 -2px 0 var(--gold);
}
.topbar__menu-btn {
  display: none; align-items: center; gap: .55rem;
  font: inherit; font-size: .9rem; font-weight: 500; color: var(--muted);
  background: transparent; border: 1px solid var(--line-soft); border-radius: 999px;
  padding: .45rem .95rem; cursor: pointer;
  transition: color .2s, background .2s, border-color .2s;
}
.topbar__menu-btn:hover, .topbar__menu-btn.is-open {
  color: var(--ink-strong); background: var(--paper-deep);
}
.topbar__menu-icon { display: inline-flex; flex-direction: column; gap: 4px; }
.topbar__menu-icon i {
  display: block; width: 15px; height: 2px; border-radius: 2px;
  background: currentColor; transition: transform .25s;
}
.topbar__menu-btn.is-open .topbar__menu-icon i:first-child { transform: translateY(3px) rotate(45deg); }
.topbar__menu-btn.is-open .topbar__menu-icon i:last-child { transform: translateY(-3px) rotate(-45deg); }
.topbar__menu {
  position: absolute; top: calc(100% + 8px); right: clamp(1.1rem, 4vw, 2.4rem);
  min-width: 232px; padding: .5rem;
  background: var(--card); border: 1px solid var(--line-soft); border-radius: 16px;
  box-shadow: 0 24px 50px -20px rgba(101, 86, 52, .35);
  display: none; flex-direction: column; gap: 2px;
}
.topbar__menu[hidden] { display: none; }
.topbar__menu a {
  display: flex; align-items: baseline; gap: .7rem;
  padding: .55rem .7rem; border-radius: 10px;
  color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 500;
  transition: background .15s, color .15s;
}
.topbar__menu a:hover { background: var(--paper-deep); color: var(--ink-strong); }
.topbar__menu a.is-active {
  background: var(--paper-deep); color: var(--ink-strong);
  box-shadow: inset 2px 0 0 var(--gold);
}
.topbar__menu-no { font-family: var(--font-mono); font-size: .68rem; color: var(--gold); }
.topbar__menu-btn:active { transform: scale(.97); }
.topbar__menu-btn { transition: color .2s, background .2s, border-color .2s, transform .15s; }

/* menu motion — a soft settle in, links arriving one after another;
   on the way out it simply fades. Kept quiet, in the site's own register. */
@keyframes menu-in {
  from { opacity: 0; transform: translateY(-6px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes menu-link-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes menu-out {
  to { opacity: 0; transform: translateY(-4px) scale(.99); }
}
.topbar__menu { transform-origin: top right; }
.topbar__menu.is-open { animation: menu-in .24s cubic-bezier(.22, .8, .32, 1) both; }
.topbar__menu.is-open a { animation: menu-link-in .3s ease both; }
.topbar__menu.is-open a:nth-child(2) { animation-delay: .03s; }
.topbar__menu.is-open a:nth-child(3) { animation-delay: .055s; }
.topbar__menu.is-open a:nth-child(4) { animation-delay: .08s; }
.topbar__menu.is-open a:nth-child(5) { animation-delay: .105s; }
.topbar__menu.is-open a:nth-child(6) { animation-delay: .13s; }
.topbar__menu.is-closing { animation: menu-out .18s ease both; pointer-events: none; }
.topbar__menu a { transition: background .15s, color .15s, transform .15s; }
.topbar__menu a:hover { transform: translateX(2px); }

/* ---------- layout ---------- */
main { max-width: 1120px; margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2.4rem); }
.section { padding: clamp(3.2rem, 7vw, 5.2rem) 0 0; }

.section__head { display: flex; gap: 1.1rem; align-items: baseline; margin-bottom: 2rem; }
.section__no {
  font-family: var(--font-mono); font-size: .82rem; color: var(--gold);
  border: 1px solid var(--line); background: var(--card);
  padding: .18rem .5rem; border-radius: 999px; margin: 0; white-space: nowrap;
}
.section__title {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  color: var(--ink-strong); margin: 0; letter-spacing: -.01em;
}
.section__sub { color: var(--muted); margin: .35rem 0 0; max-width: 56ch; }

/* ---------- hero ---------- */
.hero { padding: clamp(3rem, 8vw, 5.5rem) 0 0; }
.kicker {
  display: flex; align-items: center; gap: .8rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 1.4rem;
}
.kicker__rule { width: 44px; height: 1px; background: var(--gold); display: inline-block; }
.hero__name {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(3rem, 9vw, 5.6rem); line-height: 1.02; letter-spacing: -.015em;
  color: var(--ink-strong); margin: 0;
}
.hero__name em { font-style: italic; font-weight: 400; color: var(--gold); }
.hero__role {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem); font-weight: 600; color: var(--ink);
  margin: 1.3rem 0 0; letter-spacing: .01em;
}
.hero__role-sep { color: var(--gold-soft); }
.hero__lede { max-width: 62ch; font-size: 1.06rem; color: #4c5260; margin: 1.1rem 0 0; }

.hero__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }
.btn {
  display: inline-flex; align-items: center; gap: .45rem;
  font-weight: 600; font-size: .95rem; text-decoration: none;
  padding: .68rem 1.25rem; border-radius: 999px;
  transition: transform .18s, box-shadow .18s, background .18s, color .18s;
}
.btn--solid { background: var(--ink-strong); color: #fdf9ef; box-shadow: var(--shadow); }
.btn--solid:hover { transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.btn--ghost { background: transparent; color: var(--ink-strong); border: 1px solid var(--line); }
.btn--ghost:hover { border-color: var(--gold-soft); color: var(--gold); }

.socials { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.6rem; }
.socials__item {
  display: inline-flex; align-items: center; gap: .5rem;
  color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 500;
  background: var(--card); border: 1px solid var(--line-soft);
  padding: .48rem .9rem; border-radius: 999px;
  transition: border-color .2s, color .2s, transform .2s;
}
.socials__item:hover { border-color: var(--gold-soft); color: var(--gold); transform: translateY(-1px); }
.socials--footer { margin-top: .8rem; }
.socials--footer .socials__item { background: transparent; border: none; padding: .2rem .1rem; border-radius: 0; }
.socials--footer .socials__item:hover { transform: none; }

/* stat band */
.statband {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
  margin: 3rem 0 0; padding: 1.4rem 0 1.2rem;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.statband__item { padding: 0 1.1rem; border-left: 1px dotted #d8c9a4; }
.statband__item:first-child { padding-left: 0; border-left: none; }
.statband dt {
  font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 .3rem;
}
.statband dd {
  font-family: var(--font-display); font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 600;
  color: var(--ink-strong); margin: 0; line-height: 1.1; font-variant-numeric: tabular-nums;
}
.statband__note { color: var(--faint); font-size: .88rem; margin: .8rem 0 0; }

/* ---------- featured cards ---------- */
.featured { display: grid; grid-template-columns: 1fr 1fr; gap: 1.3rem; }
.fcard {
  position: relative; background: var(--card); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 1.7rem 1.7rem 1.5rem; box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column; gap: .8rem; overflow: hidden;
}
.fcard::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--gold-soft), transparent 70%);
  opacity: .8;
}
.fcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.fcard--wide { grid-column: 1 / -1; }
.fcard__top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.fcard__no { font-family: var(--font-mono); font-size: .8rem; color: var(--faint); }
.fcard__name {
  font-family: var(--font-display); font-size: 1.55rem; font-weight: 600;
  color: var(--ink-strong); margin: 0; letter-spacing: -.01em;
}
.fcard__name a { color: inherit; text-decoration: none; }
.fcard__name a:hover { color: var(--gold); }
.fcard__summary { color: #4c5260; margin: 0; flex: 1; }
.fcard__meta { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.chip {
  font-size: .78rem; font-weight: 600; padding: .22rem .6rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.chip--gold { border-color: #e3d3a8; background: #faf1da; color: #7c5f16; }
.chip--sage { border-color: #d3dbc6; background: #eff3e7; color: #55663f; }
.fcard__langs { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: var(--paper-deep); }
.fcard__langs span { display: block; height: 100%; }
.fcard__langline { font-size: .82rem; color: var(--muted); margin: 0; font-variant-numeric: tabular-nums; }
.fcard__cta { font-weight: 600; font-size: .92rem; color: var(--gold); text-decoration: none; }
.fcard__cta:hover { text-decoration: underline; text-underline-offset: 3px; }

.badge {
  font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: .24rem .55rem; border-radius: 999px; white-space: nowrap;
}
.badge--public { background: #eef3e6; color: #55663f; border: 1px solid #d3dbc6; }
.badge--private { background: #f6ecdd; color: #8a6a1f; border: 1px solid #e8d9b8; }
.badge--merged { background: #ece7f5; color: #5b4a86; border: 1px solid #d8cff0; }

/* ---------- project index ---------- */
.group { margin-top: 2.4rem; }
.group:first-child { margin-top: 0; }
.group__head { display: flex; align-items: baseline; gap: .9rem; margin-bottom: .4rem; }
.group__title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--ink-strong); margin: 0; }
.group__count { font-family: var(--font-mono); font-size: .8rem; color: var(--faint); }
.group__rule { flex: 1; border-top: 1px solid var(--line-soft); transform: translateY(-4px); }

.rows { border-top: 1px solid var(--line-soft); }
.row {
  display: grid; grid-template-columns: minmax(180px, 240px) minmax(0, 1fr) minmax(0, 290px); gap: 1.2rem;
  align-items: baseline; padding: .95rem .2rem; border-bottom: 1px solid var(--line-soft);
  transition: background .15s;
}
.row:hover { background: rgba(255, 253, 248, .7); }
.row__name { font-weight: 600; color: var(--ink-strong); font-size: .99rem; }
.row__name a { color: inherit; text-decoration: none; }
.row__name a:hover { color: var(--gold); }
.row__summary { color: var(--muted); font-size: .93rem; margin: 0; }
.row__meta {
  font-family: var(--font-mono); font-size: .8rem; color: var(--muted);
  display: flex; gap: .4rem .9rem; align-items: baseline; flex-wrap: wrap;
  justify-content: flex-end; justify-self: end; text-align: right;
  font-variant-numeric: tabular-nums; line-height: 1.5;
}
.row__meta .badge { font-family: var(--font-body); }

/* ---------- language table ---------- */
.langtable { border-top: 1px solid var(--line); }
.langrow {
  display: grid; grid-template-columns: 150px 1fr 92px 70px; gap: 1.1rem; align-items: center;
  padding: .8rem .2rem; border-bottom: 1px solid var(--line-soft);
}
.langrow__name { font-weight: 600; color: var(--ink-strong); display: flex; align-items: center; gap: .55rem; }
.langrow__dot { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.langrow__bar { height: 8px; background: var(--paper-deep); border-radius: 4px; overflow: hidden; }
.langrow__fill { height: 100%; border-radius: 4px; min-width: 3px; }
.langrow__lines { font-family: var(--font-mono); font-size: .88rem; text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.langrow__pct { font-family: var(--font-mono); font-size: .88rem; text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.langtable__total {
  display: flex; justify-content: space-between; padding: .9rem .2rem 0;
  font-weight: 600; color: var(--ink-strong); font-variant-numeric: tabular-nums;
}

/* ---------- activity chart ---------- */
.chart {
  margin: 0; background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 1.8rem 1.6rem 1.2rem; box-shadow: var(--shadow);
}
.chart__plot { display: flex; align-items: flex-end; gap: clamp(3px, 1vw, 9px); height: 190px; }
.chart__col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: .5rem; height: 100%; justify-content: flex-end; }
.chart__bar {
  width: 100%; max-width: 34px; border-radius: 5px 5px 2px 2px;
  background: linear-gradient(180deg, var(--gold-soft), var(--clay));
  opacity: .9; min-height: 3px; transition: opacity .15s;
}
.chart__col:hover .chart__bar { opacity: 1; }
.chart__label { font-family: var(--font-mono); font-size: .64rem; color: var(--faint); white-space: nowrap; transform: rotate(-38deg); transform-origin: top center; margin-top: .2rem; }
.chart__note { color: var(--muted); font-size: .9rem; margin-top: 1.4rem; border-top: 1px dotted #d8c9a4; padding-top: .9rem; }

/* ---------- contribution board (GitHub-style) ---------- */
.board {
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 1.5rem 1.6rem 1.15rem; box-shadow: var(--shadow);
}
.board__head {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: .4rem 1.6rem; margin-bottom: 1rem;
}
.board__total { margin: 0; color: var(--muted); font-size: .98rem; }
.board__total strong {
  font-family: var(--font-display); font-size: 1.55rem; font-weight: 600;
  color: var(--ink-strong); margin-right: .35rem; font-variant-numeric: tabular-nums;
}
.board__stats { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; color: var(--muted); font-size: .86rem; }
.board__stats strong { color: var(--ink-strong); font-variant-numeric: tabular-nums; }
.board__scroll { overflow-x: auto; padding-bottom: .35rem; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.heatmap { --cell: 11px; --cgap: 3px; min-width: max-content; padding: .1rem .1rem 0; }
.hm__months {
  display: grid; grid-template-columns: repeat(var(--weeks, 53), var(--cell)); gap: var(--cgap);
  margin-left: 31px; height: 15px; position: relative;
}
.hm__month {
  font-family: var(--font-mono); font-size: .64rem; color: var(--faint);
  white-space: nowrap; overflow: visible; min-width: 0; line-height: 1;
}
.hm__body { display: flex; gap: 5px; }
.hm__days {
  display: grid; grid-template-rows: repeat(7, var(--cell)); gap: var(--cgap); width: 26px; flex: none;
  font-family: var(--font-mono); font-size: .62rem; color: var(--faint);
}
.hm__days span { line-height: var(--cell); text-align: right; }
.hm__grid { display: grid; grid-template-rows: repeat(7, var(--cell)); grid-auto-flow: column; grid-auto-columns: var(--cell); gap: var(--cgap); }
.hm__cell {
  width: var(--cell); height: var(--cell); border-radius: 2px; display: block;
  outline: 1px solid rgba(94, 78, 44, .08); outline-offset: -1px;
}
/* wider screens: grow the cells so the board fills its card instead of
   leaving dead space on the right */
@media (min-width: 900px) and (max-width: 949px) { .heatmap { --cell: 10.5px; } }
@media (min-width: 950px) and (max-width: 1024px) { .heatmap { --cell: 11.5px; } }
@media (min-width: 1025px) and (max-width: 1099px) { .heatmap { --cell: 12.5px; } }
@media (min-width: 1100px) and (max-width: 1199px) { .heatmap { --cell: 13.5px; } }
@media (min-width: 1200px) { .heatmap { --cell: 14px; } }
.hm__cell--future { visibility: hidden; }
.lg0 { background: #eee8d5; }
.lg1 { background: #9be9a8; }
.lg2 { background: #40c463; }
.lg3 { background: #30a14e; }
.lg4 { background: #216e39; }
.board__foot {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: .4rem 1.4rem; margin-top: .8rem; border-top: 1px dotted #d8c9a4; padding-top: .85rem;
}
.board__note { color: var(--muted); font-size: .88rem; max-width: 68ch; }
.board__legend {
  display: inline-flex; align-items: center; gap: 3px;
  color: var(--muted); font-size: .8rem; white-space: nowrap;
}
.board__legend .lg { width: 11px; height: 11px; border-radius: 2px; display: inline-block; outline: 1px solid rgba(94, 78, 44, .08); outline-offset: -1px; }
.board__legend .lg:first-child { margin-left: .35rem; }
.board__legend .lg:last-child { margin-right: .35rem; }

/* ---------- open source ---------- */
.prs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.prs__row {
  display: grid; grid-template-columns: 1fr auto auto; gap: 1.2rem; align-items: center;
  padding: 1.05rem .2rem; border-bottom: 1px solid var(--line-soft);
}
.prs__main { min-width: 0; }
.prs__project { font-weight: 600; color: var(--ink-strong); margin: 0; font-size: .95rem; }
.prs__repo { font-family: var(--font-mono); font-weight: 400; font-size: .8rem; color: var(--faint); margin-left: .4rem; overflow-wrap: anywhere; }
.prs__title { color: var(--ink); text-decoration: none; font-size: 1rem; }
.prs__title:hover { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.prs__no { font-family: var(--font-mono); color: var(--muted); font-size: .88rem; }

/* ---------- CV card ---------- */
.cvcard {
  display: flex; gap: 2rem; align-items: center;
  background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow);
}
.cvcard__doc {
  flex: none; width: 168px; height: 224px; border-radius: 8px; padding: 1.1rem .95rem;
  background: linear-gradient(165deg, #fffefb, #f6efdd);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: .5rem; transform: rotate(-1.6deg);
}
.cvcard__doc-name { font-family: var(--font-display); font-weight: 600; font-size: .92rem; color: var(--ink-strong); letter-spacing: .04em; }
.cvcard__doc-role { font-size: .6rem; color: var(--gold); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; line-height: 1.5; }
.cvcard__doc-line { height: 5px; border-radius: 3px; background: #e9dfc9; margin-top: .35rem; }
.cvcard__doc-line--short { width: 62%; }
.cvcard__title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--ink-strong); margin: 0 0 .4rem; }
.cvcard__text { color: var(--muted); margin: 0 0 1.2rem; max-width: 46ch; }
.cvcard__actions { display: flex; gap: .7rem; flex-wrap: wrap; }

/* ---------- footer ---------- */
.footer { margin-top: clamp(3.5rem, 8vw, 5.5rem); border-top: 1px solid var(--line); background: var(--paper-deep); }
.footer__inner { max-width: 1120px; margin: 0 auto; padding: 2.6rem clamp(1.1rem, 4vw, 2.4rem) 3rem; }
.footer__logo {
  width: 66px; height: 66px; display: block; object-fit: contain;
  margin-bottom: .9rem;
}
.footer__name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--ink-strong); margin: 0; }
.footer__line { color: var(--muted); margin: .25rem 0 0; }
.footer__dot { color: var(--gold-soft); }
.footer__colophon { color: var(--faint); font-size: .86rem; margin: 1.4rem 0 0; max-width: 62ch; }

/* ---------- reveal (hidden state only when JS drives it) ---------- */
html.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
html.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  .topbar__menu.is-open, .topbar__menu.is-open a, .topbar__menu.is-closing { animation: none; }
  .topbar__menu a:hover { transform: none; }
  .topbar__menu-icon i, .topbar__menu-btn { transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .row { grid-template-columns: minmax(150px, 200px) minmax(0, 1fr) minmax(0, 250px); gap: 1rem; }
  .row__meta { font-size: .76rem; }
}
@media (max-width: 900px) {
  .statband { grid-template-columns: repeat(3, 1fr); gap: 1.2rem 0; }
  .statband__item { border-left: none; padding-left: 0; }
  .featured { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; gap: .25rem; }
  .row__meta { white-space: normal; font-size: .8rem; }
  .topbar__mark { width: 40px; height: 40px; }
  .topbar__nav { display: none; }
  .topbar__menu-btn { display: inline-flex; }
  .topbar__menu { display: flex; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .topbar { padding: .55rem 1.1rem; }
  .topbar__mark { width: 40px; height: 40px; }
  .topbar__name { font-size: 1.02rem; }
  .topbar__menu { left: 1.1rem; right: 1.1rem; transform-origin: top center; }
  .statband { grid-template-columns: repeat(2, 1fr); }
  .hero__lede { font-size: 1rem; }
  .fcard { padding: 1.3rem 1.15rem 1.15rem; }
  .fcard__name { font-size: 1.35rem; }
  .langrow { grid-template-columns: 104px 1fr 70px; gap: .8rem; }
  .langrow__pct { display: none; }
  .langrow__lines { font-size: .8rem; }
  .cvcard { flex-direction: column; align-items: flex-start; padding: 1.4rem; gap: 1.4rem; }
  .prs__row { grid-template-columns: 1fr auto; gap: .8rem; }
  .prs__no { display: none; }
  .prs__title { font-size: .95rem; }
  .board { padding: 1.15rem .95rem 1rem; }
  .board__total strong { font-size: 1.35rem; }
  .board__stats { gap: .25rem 1rem; font-size: .82rem; }
  .board__foot { flex-direction: column; gap: .55rem; }
  .chart { padding: 1.3rem .9rem 1rem; overflow: hidden; }
  .chart__plot { gap: 2px; height: 150px; }
  .chart__label { font-size: .55rem; }
  .chart__col:nth-child(even) .chart__label { visibility: hidden; }
}
@media (max-width: 400px) {
  .topbar__name { font-size: .98rem; }
  .topbar__menu-btn { padding: .42rem .8rem; font-size: .86rem; }
}
