/* =====================================================================
   ABDULKERIM MUSTEFA — PORTFOLIO STYLES
   ---------------------------------------------------------------------
   1. Design tokens (colors for light & dark mode, fonts, spacing)
   2. Base (reset, layout helpers, section headers, scroll reveal)
   3. Components (buttons, nav, badges, chips, project cards, modal)
   4. Sections (hero, projects, skills, AI, data, roadmap, background,
      about, experience, code, contact, footer)
   5. Project preview illustrations
   6. Icons & theme-switch helpers
   Tip: to change the whole color scheme, edit section 1 only.
   ===================================================================== */


/* ##################################################################### */
/* TOKENS */
/* ##################################################################### */
/* ============================================================
   DESIGN TOKENS
   Identity: "clinical precision meets code". Warm lab-paper light
   mode, graphite dark mode; deep teal as the one main accent and
   amber reserved for status signals.
   ============================================================ */

:root,
[data-theme="light"] {
  color-scheme: light;

  --bg: #f6f5f1;            /* warm paper */
  --bg-alt: #efede6;
  --surface: #ffffff;
  --surface-2: #f3f2ed;
  --surface-3: #e9e7df;
  --ink: #15181e;
  --ink-2: #2b2f37;
  --muted: #5d6370;
  --faint: #8a8f99;
  --line: rgb(21 24 30 / .10);
  --line-strong: rgb(21 24 30 / .18);

  --accent: #09705f;        /* deep clinical teal */
  --accent-hover: #075c4e;
  --accent-ink: #ffffff;
  --accent-soft: rgb(11 122 104 / .09);
  --accent-line: rgb(11 122 104 / .28);

  --signal: #b4560c;        /* amber, only for "in development" signals */
  --signal-soft: rgb(180 86 12 / .10);
  --ok: #18794e;
  --ok-soft: rgb(24 121 78 / .10);
  --violet: #5b4bc4;
  --violet-soft: rgb(91 75 196 / .09);

  --grid-line: rgb(21 24 30 / .045);
  --shadow-sm: 0 1px 2px rgb(21 24 30 / .06), 0 1px 1px rgb(21 24 30 / .04);
  --shadow-md: 0 10px 30px -12px rgb(21 24 30 / .18), 0 2px 6px rgb(21 24 30 / .05);
  --shadow-lg: 0 30px 60px -20px rgb(21 24 30 / .25);
}

[data-theme="dark"] {
  color-scheme: dark;

  --bg: #0b0e13;            /* graphite, not navy */
  --bg-alt: #0f1319;
  --surface: #12161d;
  --surface-2: #181d26;
  --surface-3: #1f2530;
  --ink: #e9ebef;
  --ink-2: #cdd2da;
  --muted: #9aa2b0;
  --faint: #6c7482;
  --line: rgb(255 255 255 / .075);
  --line-strong: rgb(255 255 255 / .14);

  --accent: #3cc4ab;
  --accent-hover: #5ad3bd;
  --accent-ink: #04140f;
  --accent-soft: rgb(60 196 171 / .11);
  --accent-line: rgb(60 196 171 / .35);

  --signal: #eaa34a;
  --signal-soft: rgb(234 163 74 / .12);
  --ok: #4cc38a;
  --ok-soft: rgb(76 195 138 / .12);
  --violet: #a597ff;
  --violet-soft: rgb(165 151 255 / .11);

  --grid-line: rgb(255 255 255 / .035);
  --shadow-sm: 0 1px 2px rgb(0 0 0 / .4);
  --shadow-md: 0 14px 34px -14px rgb(0 0 0 / .7), 0 2px 6px rgb(0 0 0 / .3);
  --shadow-lg: 0 40px 70px -24px rgb(0 0 0 / .8);
}

:root {
  --font-head: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --container: 1200px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --section-y: clamp(4.5rem, 9vw, 7.5rem);
  --nav-h: 68px;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ##################################################################### */
/* BASE */
/* ##################################################################### */
/* ============ Reset & base ============ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: clamp(1rem, .96rem + .15vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}

img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-style: normal; color: var(--accent); }

h1, h2, h3 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -.025em;
  text-wrap: balance;
}
h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; }
p { text-wrap: pretty; }

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

/* ============ Layout helpers ============ */
.container {
  width: min(var(--container), 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.section { padding-block: var(--section-y); position: relative; }
.section--alt { background: var(--bg-alt); }

.mono { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: fixed; left: 1rem; top: -4rem; z-index: 200;
  background: var(--accent); color: var(--accent-ink);
  padding: .6rem 1rem; border-radius: var(--radius-sm); font-weight: 600;
  transition: top .2s;
}
.skip-link:focus { top: 1rem; }

/* ============ Section header ============ */
.section-header { max-width: 760px; margin-bottom: clamp(2.5rem, 5vw, 3.5rem); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .7rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.eyebrow__index { color: var(--faint); }
.eyebrow__rule { width: 28px; height: 1px; background: var(--accent-line); }

.section-lead {
  margin-top: 1.1rem;
  font-size: 1.12em;
  color: var(--muted);
  max-width: 62ch;
}

/* ============ Scroll reveal ============ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
  transition-delay: var(--delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal,
  .reveal .chips li,
  .reveal .stack li { opacity: 1 !important; transform: none !important; }
}

@media print {
  .nav, .skip-link, .filters, .hero__visual { display: none !important; }
  .reveal { opacity: 1; transform: none; }
  body { background: #fff; color: #000; }
}

/* ##################################################################### */
/* COMPONENTS */
/* ##################################################################### */
/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  height: 42px;
  padding: 0 1.15rem;
  border-radius: 999px;
  font-size: .94rem;
  font-weight: 600;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn--sm { height: 36px; padding: 0 .95rem; font-size: .86rem; }
.btn--lg { height: 50px; padding: 0 1.5rem; font-size: 1rem; }

.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 8px 20px -8px var(--accent-line); }

.btn--ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); background: var(--surface); }

.btn.is-disabled { opacity: .5; cursor: not-allowed; }
.btn.is-disabled:hover { transform: none; background: transparent; border-color: var(--line-strong); }

.icon-btn {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  color: var(--ink);
  border: 1px solid var(--line);
  background: var(--surface);
  transition: background-color .2s, border-color .2s, transform .2s;
}
.icon-btn:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.theme-toggle svg { transition: transform .5s var(--ease); }
.theme-toggle:hover svg { transform: rotate(25deg); }

/* ============ Navigation ============ */
.nav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background-color .3s;
}
.nav--scrolled { border-bottom-color: var(--line); }
.nav__inner { height: 100%; display: flex; align-items: center; gap: 1.5rem; }

.brand { display: flex; align-items: center; gap: .65rem; font-family: var(--font-head); font-weight: 700; letter-spacing: -.01em; }
.brand__mark {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--ink); color: var(--bg);
  font-size: .8rem; font-weight: 800; letter-spacing: .02em;
  position: relative;
}
.brand__mark::after {
  content: ""; position: absolute; right: -3px; bottom: -3px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--bg);
}
.brand__name { font-size: .98rem; }

.nav__menu { margin-left: auto; display: flex; align-items: center; gap: 1.75rem; }
.nav__menu ul { display: flex; gap: .3rem; }
.nav__link {
  position: relative;
  padding: .45rem .75rem;
  border-radius: 999px;
  font-size: .92rem;
  font-weight: 500;
  color: var(--muted);
  transition: color .2s, background-color .2s;
}
.nav__link:hover { color: var(--ink); }
.nav__link.is-active { color: var(--ink); background: var(--surface-3); }

.nav__actions { display: flex; align-items: center; gap: .5rem; }
.nav__burger { display: none; }

@media (max-width: 960px) {
  .nav__burger { display: grid; }
  .nav__actions { margin-left: auto; }
  .nav__menu {
    position: fixed; left: 0; right: 0; top: var(--nav-h);
    flex-direction: column; align-items: stretch; gap: 1rem;
    padding: 1rem var(--gutter) 1.5rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .nav--open .nav__menu { opacity: 1; transform: none; visibility: visible; }
  .nav__menu ul { flex-direction: column; gap: 0; }
  .nav__link { display: block; padding: .85rem .25rem; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav__link.is-active { background: none; color: var(--accent); }
  .nav__cta { height: 46px; }
}
@media (max-width: 420px) {
  .brand__name { display: none; }
}

/* ============ Status badge ============ */
.status {
  display: inline-flex; align-items: center; gap: .45rem;
  height: 26px; padding: 0 .65rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 500;
  white-space: nowrap;
  background: var(--surface-3);
  color: var(--muted);
}
.status__dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status--live    { background: var(--ok-soft); color: var(--ok); }
.status--dev     { background: var(--signal-soft); color: var(--signal); }
.status--planned { background: var(--surface-3); color: var(--muted); }
.status--planned .status__dot { background: transparent; border: 1.5px solid currentColor; }
 .status--dev .status__dot { animation: blink 2.4s infinite; }
@keyframes blink { 50% { opacity: .35; } }

/* ============ Chips & tags ============ */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li {
  padding: .38rem .8rem;
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 500;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-2);
  transition: border-color .2s, color .2s, transform .2s var(--ease);
}
.chips li:hover { border-color: var(--accent-line); color: var(--accent); transform: translateY(-1px); }
.chips--soft li { background: var(--surface-2); }

.tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.tags li {
  font-size: .72rem; font-weight: 600; letter-spacing: .02em;
  padding: .15rem .55rem; border-radius: 6px;
  color: var(--muted); background: var(--surface-2); border: 1px solid var(--line);
}

.tech { display: flex; flex-wrap: wrap; gap: .4rem; }
.tech li {
  font-family: var(--font-mono);
  font-size: .74rem;
  padding: .2rem .55rem;
  border-radius: 6px;
  color: var(--ink-2);
  background: var(--surface-3);
}

.pulse-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent);
  animation: pulse 2.2s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.check-list li { display: flex; gap: .55rem; align-items: flex-start; margin-bottom: .45rem; }
.check-list svg { color: var(--accent); flex-shrink: 0; margin-top: .3rem; }

/* ============ Project card ============ */
.project {
  height: 100%;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.project:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }

.project__media { display: block; width: 100%; text-align: left; cursor: zoom-in; border-bottom: 1px solid var(--line); }
.project__media .pv { transition: transform .6s var(--ease); }
.project:hover .project__media .pv-win { transform: translateY(-4px) scale(1.01); }

.project__body { display: flex; flex-direction: column; gap: .85rem; padding: 1.4rem 1.5rem 1.5rem; flex: 1; }
.project__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.project__title { font-size: 1.28rem; }
.project__summary { color: var(--muted); font-size: .96rem; }

.project__ps { display: grid; gap: .8rem; padding: 1rem 1.1rem; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); }
.project__ps dt { font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); margin-bottom: .2rem; }
.project__ps dd { font-size: .92rem; color: var(--ink-2); }

.project__actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; padding-top: .4rem; }

/* Featured: preview + content side by side */
.project--featured { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); }
.project--featured .project__media { border-bottom: 0; border-right: 1px solid var(--line); }
.project--featured .project__media { min-width: 0; }
.project--featured .project__media .pv { aspect-ratio: auto; height: 100%; min-height: 340px; align-items: center; padding-bottom: clamp(1rem, 3vw, 1.75rem); }
.project--featured .pv-win { height: auto; aspect-ratio: 16 / 11; border-radius: 10px; border-bottom: 1px solid rgb(21 24 30 / .12); }
.project--featured .project__body { padding: clamp(1.4rem, 3vw, 2.2rem); }
.project--featured .project__title { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.8rem); }

@media (max-width: 900px) {
  .project--featured { grid-template-columns: 1fr; }
  .project--featured .project__media .pv { aspect-ratio: 16 / 10; height: auto; min-height: 0; align-items: flex-end; padding-bottom: 0; }
  .project--featured .pv-win { height: 88%; aspect-ratio: auto; border-radius: 10px 10px 0 0; border-bottom: 0; }
  .project--featured .project__media { border-right: 0; border-bottom: 1px solid var(--line); }
}

/* ============ Modal (case study) ============ */
.modal {
  width: min(920px, 100% - 2rem);
  max-height: min(92vh, 900px);
  margin: auto;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
}
.modal::backdrop { background: rgb(5 8 12 / .62); backdrop-filter: blur(4px); }
.modal[open] { animation: modal-in .35s var(--ease); }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.985); } }
.modal__inner { position: relative; }
.modal__close { position: absolute; top: 1rem; right: 1rem; z-index: 2; }
.modal .pv { border-bottom: 1px solid var(--line); }
.modal__content { padding: clamp(1.4rem, 4vw, 2.5rem); display: grid; gap: 1rem; }
.modal__content h2 { font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.2rem); }
.modal__summary { color: var(--muted); font-size: 1.05rem; }
.case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem 2rem; margin: .75rem 0 .5rem; }
.case-grid h3 { font-family: var(--font-mono); font-size: .74rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: .45rem; }
.case-grid h3:not(:first-child) { margin-top: 1.1rem; }
.case-grid p, .case-grid li { font-size: .95rem; color: var(--ink-2); }
@media (max-width: 640px) { .case-grid { grid-template-columns: 1fr; } }

/* Modal preview: shorter, and keep the label clear of the close button */
.modal .pv { aspect-ratio: 16 / 8; }
.modal .pv__note { right: auto; left: .9rem; top: .9rem; }
@media (max-width: 640px) {
  .modal .pv { aspect-ratio: 16 / 10; }
  /* On phones, Problem/Solution lives in the case study to keep the page short */
  .project--featured .project__ps { display: none; }
}

/* ##################################################################### */
/* SECTIONS */
/* ##################################################################### */
/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(2.5rem, 5vw, 3.5rem); overflow: hidden; }

/* Signature: faint lab-notebook grid, fading out */
.hero__grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(80% 70% at 70% 30%, #000 20%, transparent 75%);
          mask-image: radial-gradient(80% 70% at 70% 30%, #000 20%, transparent 75%);
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
.hero__loc { display: inline-flex; align-items: center; gap: .3rem; color: var(--muted); }

.hero__title {
  font-size: clamp(2.3rem, 1.3rem + 4.2vw, 4.25rem);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -.035em;
  margin-top: .25rem;
}
[data-theme="dark"] .hero__title-accent { color: var(--faint); }
.hero__intro { margin-top: 1.5rem; max-width: 56ch; font-size: 1.12em; color: var(--muted); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.formula { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: 2.2rem; }
.formula li { display: flex; align-items: center; gap: .4rem; }
.formula__item {
  font-family: var(--font-mono); font-size: .8rem; font-weight: 500;
  padding: .3rem .65rem; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2);
}
.formula li:first-child .formula__item { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.formula__plus { color: var(--faint); font-family: var(--font-mono); }

.now-strip {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  display: grid; grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.now-strip > div { padding: 1.1rem 1.4rem; }
.now-strip > div + div { border-left: 1px solid var(--line); }
.now-strip dt { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin-bottom: .25rem; }
.now-strip dd { font-weight: 600; font-size: .98rem; }

/* ---------- Hero visual: system pipeline ---------- */
.system {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.system__head {
  display: flex; align-items: center; gap: .75rem;
  padding: .8rem 1.1rem;
  border-bottom: 1px solid var(--line);
  font-size: .78rem; color: var(--muted);
  background: var(--surface-2);
}
.system__dots { display: flex; gap: 5px; }
.system__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.system__live { margin-left: auto; display: inline-flex; align-items: center; gap: .45rem; color: var(--ok); }
.system__query, .system__out { padding: .85rem 1.2rem; font-size: .78rem; color: var(--ink-2); }
.system__query { border-bottom: 1px dashed var(--line); }
.system__out { border-top: 1px dashed var(--line); display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.system__out svg { color: var(--ok); }

.system__stages { position: relative; padding: .9rem 1rem; display: grid; gap: .4rem; }
.system__stages::before {         /* vertical rail */
  content: ""; position: absolute; left: calc(1rem + 22px); top: 1.6rem; bottom: 1.6rem;
  width: 2px; background: var(--line);
}
.system__stages::after {          /* travelling signal */
  content: ""; position: absolute; left: calc(1rem + 19px);
  top: calc(1.6rem + var(--active) * (100% - 3.2rem) / 4 - 4px);
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft);
  transition: top .6s var(--ease);
}
.stage {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: .85rem;
  padding: .55rem .75rem .55rem 0;
  border-radius: 12px;
  cursor: default;
  transition: background-color .35s var(--ease);
}
.stage__icon {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line);
  color: var(--faint);
  transition: color .35s, border-color .35s, background-color .35s, transform .35s var(--ease);
}
.stage__text { display: grid; line-height: 1.35; }
.stage__text strong { font-family: var(--font-head); font-size: .98rem; color: var(--ink-2); transition: color .35s; }
.stage__text span { font-size: .74rem; color: var(--faint); }
.stage__step { font-size: .7rem; color: var(--faint); }

.stage.is-done .stage__icon { color: var(--accent); border-color: var(--accent-line); }
.stage.is-active { background: var(--accent-soft); }
.stage.is-active .stage__icon { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); transform: scale(1.04); }
.stage.is-active .stage__text strong { color: var(--ink); }
.stage.is-active .stage__step { color: var(--accent); }

@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 560px; }
}
@media (max-width: 720px) {
  .now-strip { grid-template-columns: 1fr; }
  .now-strip > div + div { border-left: 0; border-top: 1px solid var(--line); }
}

/* ============================================================
   PROJECTS
   ============================================================ */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filter {
  display: inline-flex; align-items: center; gap: .5rem;
  height: 40px; padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-size: .9rem; font-weight: 600; color: var(--muted);
  transition: all .2s var(--ease);
}
.filter:hover { color: var(--ink); border-color: var(--ink); }
.filter.is-active { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.filter__count { font-family: var(--font-mono); font-size: .72rem; opacity: .65; }

.projects-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
.projects-grid__item.is-featured { grid-column: 1 / -1; }

@media (max-width: 1024px) { .projects-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .projects-grid { grid-template-columns: 1fr; } }

/* ============================================================
   SKILLS
   ============================================================ */
.skills-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.25rem; }
.skill-card {
  grid-column: span 2;
  display: flex; flex-direction: column; gap: 1.3rem;
  padding: 1.6rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: border-color .3s, box-shadow .3s, transform .3s var(--ease);
}
.skill-card:hover { border-color: var(--accent-line); box-shadow: var(--shadow-md); transform: translateY(-3px); }
.skill-card__head { display: flex; gap: 1rem; align-items: flex-start; }
.skill-card__head p { color: var(--muted); font-size: .9rem; margin-top: .2rem; }
.skill-card__icon {
  display: grid; place-items: center; flex-shrink: 0;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
}
.skill-card--ai .skill-card__icon { background: var(--violet-soft); color: var(--violet); }

.skill-card .chips li { opacity: 0; transform: translateY(6px); }
.reveal.is-visible .chips li {
  opacity: 1; transform: none;
  transition: opacity .4s var(--ease), transform .4s var(--ease), border-color .2s, color .2s;
  transition-delay: calc(var(--i) * 45ms + 150ms), calc(var(--i) * 45ms + 150ms), 0s, 0s;
}

@media (max-width: 1024px) {
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .skill-card { grid-column: span 1; }
}
@media (max-width: 640px) { .skills-grid { grid-template-columns: 1fr; } }

/* ============================================================
   AI & AUTOMATION
   ============================================================ */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; counter-reset: flow; }

@media (max-width: 1024px) {
  .flow { grid-template-columns: 1fr; gap: .75rem; }
}

/* ============================================================
   DATA ANALYTICS
   ============================================================ */
.stack {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
  margin-bottom: 1.25rem;
}
.stack li {
  position: relative;
  display: grid; gap: .2rem;
  padding: 1.4rem 1.6rem;
}
.stack li + li { border-left: 1px solid var(--line); }
.stack li:not(:last-child)::after {
  content: "→"; position: absolute; right: -.6rem; top: 50%; transform: translateY(-50%);
  z-index: 1; width: 1.2rem; height: 1.2rem; display: grid; place-items: center;
  font-size: .75rem; color: var(--accent); background: var(--surface); border-radius: 50%;
}
.reveal .stack li { opacity: 0; }
.reveal.is-visible .stack li { opacity: 1; transition: opacity .5s var(--ease); transition-delay: calc(var(--i) * 120ms); }
@media (max-width: 640px) {
  .stack { grid-template-columns: 1fr 1fr; }
  .stack li:nth-child(3) { border-left: 0; }
  .stack li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stack li:nth-child(2)::after { display: none; }
}

/* ============================================================
   ROADMAP
   ============================================================ */
.roadmap__progress { flex: 1 1 180px; min-width: 140px; height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.roadmap__progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--ok), var(--accent)); width: 0; transition: width 1.2s var(--ease) .2s; }
.road {
  position: relative;
  display: grid; grid-template-columns: auto 1fr; gap: .25rem 1rem; align-items: start;
  padding: 1.25rem 1.3rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform .3s var(--ease), border-color .3s;
}
.road:hover { transform: translateY(-2px); }
.road h3 { font-size: 1.05rem; }
.road p { font-size: .86rem; color: var(--muted); }
.road--active { border-color: var(--accent-line); background: linear-gradient(180deg, var(--accent-soft), var(--surface) 70%); }

/* chevrons between steps */
.road:not(:last-child)::after {
  content: ""; position: absolute; right: -.62rem; top: 50%;
  width: .55rem; height: .55rem;
  border-top: 2px solid var(--line-strong); border-right: 2px solid var(--line-strong);
  transform: translateY(-50%) rotate(45deg);
}
.road:nth-child(3n)::after { display: none; }

@media (max-width: 900px) {
  .road:not(:last-child)::after { display: block; right: auto; left: 2.05rem; top: auto; bottom: -.62rem; transform: rotate(135deg); }
}

/* ============================================================
   WHY MY BACKGROUND MATTERS
   ============================================================ */
[data-theme="light"] .section--advantage .eyebrow { color: #5ad3bd; }
[data-theme="dark"] .adv__icon { color: var(--accent-ink); background: var(--accent); }
[data-theme="dark"] .adv__result { background: linear-gradient(160deg, #3cc4ab, #2a9e89); color: #04140f; }
[data-theme="dark"] .adv__result em { text-decoration-color: rgb(4 20 15 / .35); }

/* In dark mode the inverted band would be light; keep it as a raised dark panel instead */
[data-theme="dark"] .section--advantage { background: #10151c; color: var(--ink); border-block: 1px solid var(--line); }
[data-theme="dark"] .section--advantage h2,
[data-theme="dark"] .section--advantage h3 { color: var(--ink); }
[data-theme="dark"] .section--advantage .section-lead,
[data-theme="dark"] .adv__to { color: var(--muted); }
[data-theme="dark"] .adv__row { border-color: var(--line); background: var(--surface); }
[data-theme="dark"] .adv__row:hover { background: var(--surface-2); border-color: var(--line-strong); }
[data-theme="dark"] .adv__arrow { background: var(--line-strong); }
[data-theme="dark"] .adv__arrow i { background: linear-gradient(90deg, transparent, var(--accent)); }
[data-theme="dark"] .section--advantage .eyebrow__index { color: var(--faint); }

/* ============================================================
   ABOUT
   ============================================================ */
.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.about .section-header { margin-bottom: 1.5rem; }
.about__copy p { color: var(--ink-2); margin-bottom: 1rem; max-width: 62ch; }
.about__lead { font-family: var(--font-head); font-size: clamp(1.2rem, 1rem + .8vw, 1.45rem); font-weight: 600; line-height: 1.45; color: var(--ink) !important; letter-spacing: -.01em; }
.about__copy .chips { margin-top: 1.5rem; }

.about__photo img {
  width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
.about__caption { margin-top: .8rem; font-size: .78rem; color: var(--faint); }

@media (max-width: 900px) {
  .about { grid-template-columns: 1fr; }
  .about__photo { max-width: 360px; }
}

/* ============================================================
   EXPERIENCE & EDUCATION
   ============================================================ */
.exp-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.timeline { position: relative; padding-left: 1.75rem; }
.timeline::before { content: ""; position: absolute; left: 5px; top: .6rem; bottom: .6rem; width: 2px; background: var(--line); }
.tl { position: relative; padding-bottom: 2rem; }
.tl:last-child { padding-bottom: 0; }
.tl__dot { position: absolute; left: calc(-1.75rem + 0px); top: .45rem; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--faint); }
.tl--tech .tl__dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.tl__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem .8rem; }
.tl__head h3 { font-size: 1.15rem; }
.tl__period { font-size: .72rem; padding: .1rem .5rem; border-radius: 6px; background: var(--accent-soft); color: var(--accent); }
.tl__org { color: var(--muted); font-weight: 500; margin-top: .15rem; }
.tl ul { margin-top: .6rem; display: grid; gap: .35rem; }
.tl li { position: relative; padding-left: 1rem; font-size: .94rem; color: var(--ink-2); }
.tl li::before { content: ""; position: absolute; left: 0; top: .7em; width: 5px; height: 5px; border-radius: 50%; background: var(--faint); }

.exp-side { display: grid; gap: 1rem; }
.edu, .cred { padding: 1.4rem; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); }
.edu h3, .cred h3 { display: flex; align-items: center; gap: .5rem; font-size: 1rem; margin-bottom: .8rem; }
.edu h3 svg { color: var(--accent); }
.edu li, .cred li { display: grid; padding: .6rem 0; border-top: 1px solid var(--line); }
.edu strong { font-size: .95rem; }
.edu span, .cred span { font-size: .85rem; color: var(--muted); }

@media (max-width: 900px) { .exp-layout { grid-template-columns: 1fr; } }

/* ============================================================
   CODE / GITHUB
   ============================================================ */

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(2.5rem, 7vw, 5rem) clamp(1.25rem, 5vw, 4rem);
  border-radius: calc(var(--radius-lg) + 6px);
  border: 1px solid var(--line);
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--surface);
}
.contact h2 { font-size: clamp(2.1rem, 1.3rem + 3.4vw, 3.6rem); font-weight: 800; letter-spacing: -.035em; }
.contact .section-lead { margin-inline: auto; }
.copy-btn {
  display: inline-flex; align-items: center; gap: .75rem;
  height: 50px; padding: 0 .5rem 0 1.2rem;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  font-size: .86rem;
  max-width: 100%;
  transition: border-color .2s;
}
.copy-btn:hover { border-color: var(--ink); }
.copy-btn .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 480px) {
   .copy-btn { width: 100%; }
  .copy-btn { justify-content: space-between; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding: 1.75rem 0; font-size: .86rem; color: var(--muted); }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer__formula { font-size: .78rem; color: var(--faint); }
.footer__top:hover { color: var(--accent); }
@media (max-width: 640px) { .footer__inner { flex-direction: column; text-align: center; } }

/* ##################################################################### */
/* PREVIEWS */
/* ##################################################################### */
/* ============================================================
   PROJECT PREVIEW ILLUSTRATIONS
   Used until real screenshots are added (clearly labelled).
   ============================================================ */
.pv {
  position: relative;
  aspect-ratio: 16 / 10;
  padding: clamp(1rem, 3vw, 1.75rem) clamp(1rem, 3vw, 1.75rem) 0;
  display: flex; align-items: flex-end;
  overflow: hidden;
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 22px 22px,
    var(--surface-2);
}
.pv--image { padding: 0; display: block; }
.pv--image img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.pv__note {
  position: absolute; top: .7rem; right: .7rem; z-index: 2;
  font-family: var(--font-mono); font-size: .62rem;
  padding: .15rem .45rem; border-radius: 5px;
  background: var(--surface); color: var(--faint); border: 1px solid var(--line);
}

/* Window frame — always a light "app" for UI previews */
.pv-win {
  width: 100%; height: 88%;
  display: flex; flex-direction: column;
  border-radius: 10px 10px 0 0;
  background: #ffffff;
  border: 1px solid rgb(21 24 30 / .12); border-bottom: 0;
  box-shadow: 0 20px 40px -18px rgb(21 24 30 / .35);
  overflow: hidden;
  transition: transform .6s var(--ease);
  color: #15181e;
}
.pv-win__bar { display: flex; gap: 5px; padding: 8px 10px; background: #f1f2f4; border-bottom: 1px solid #e4e6ea; }
.pv-win__bar i { width: 7px; height: 7px; border-radius: 50%; background: #cfd3da; }
.pv-win__body { flex: 1; min-height: 0; }
.pv-win--dark { background: #12161d; border-color: rgb(255 255 255 / .08); }
.pv-win--dark .pv-win__bar { background: #181d26; border-color: rgb(255 255 255 / .06); }
.pv-win--dark .pv-win__bar i { background: #2c3340; }

/* bar placeholders */
.pv span, .pv b { display: block; border-radius: 4px; } .w60 { width: 60%; } .w80 { width: 80%; }

/* --- Pharma system --- */
.pv small { display: block; font-family: var(--font-mono); font-size: clamp(.45rem, .9vw, .58rem); color: #7b8290; margin-bottom: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* --- Finance --- */

/* --- Data --- */

/* --- AI workflow --- */

/* --- Web --- */
.pv-web { height: 100%; padding: 4% 5%; display: grid; grid-template-rows: auto 1fr auto; gap: 7%; }
.pv-web__nav { display: flex; align-items: center; gap: 6%; }
.pv-web__nav b { width: 14px; height: 14px; border-radius: 4px; background: #15181e; margin-right: auto; }
.pv-web__nav span { width: 12%; height: 5px; background: #d5d9e0; }
.pv-web__hero { display: grid; align-content: center; gap: 7px; }
.pv-web__hero span { height: 9px; background: #15181e; }
.pv-web__hero .w60 { background: #c3c7cf; }
.pv-web__hero em { display: block; width: 22%; height: 12px; border-radius: 99px; background: #0b7a68; margin-top: 4px; }
.pv-web__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.pv-web__cards span { height: 28px; background: #f1f2f4; border: 1px solid #e4e6ea; }

/* #####################################################################
   ICONS & THEME HELPERS (plain-HTML version)
   ##################################################################### */
.icon {
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* Show the sun in dark mode and the moon in light mode */
[data-theme="dark"] .theme-toggle .icon-moon,
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
/* Burger shows "menu" when closed, "close" when open */
.nav__burger .icon-close,
.nav--open .nav__burger .icon-menu { display: none; }
.nav--open .nav__burger .icon-close { display: block; }
/* Filtered-out project cards */
.projects-grid__item[hidden] { display: none; }


/* #####################################################################
   WEB DEV & UI/UX VERSION — additions
   ##################################################################### */

/* Small italic note on a project card */
.project__note { font-size: .82rem; font-style: italic; color: var(--muted); }

/* Product-homepage illustration (Apple clone placeholder) */
.pv-show { height: 100%; display: grid; grid-template-rows: auto 1fr auto; gap: 7%; padding: 4% 6% 0; }
.pv-show__nav { display: flex; justify-content: center; gap: 7%; }
.pv-show__nav span { width: 9%; height: 4px; border-radius: 2px; background: rgb(255 255 255 / .22); }
.pv-show__hero { display: grid; justify-items: center; align-content: center; gap: 7px; }
.pv-show__hero b { width: 46%; height: 11px; border-radius: 3px; background: #e9ebef; }
.pv-show__hero span { width: 30%; height: 6px; border-radius: 3px; background: rgb(255 255 255 / .35); }
.pv-show__hero em { width: 16%; height: 10px; border-radius: 99px; background: #3cc4ab; margin-top: 3px; }
.pv-show__hero i { width: 22%; aspect-ratio: 1.6; margin-top: 6px; border-radius: 8px; background: linear-gradient(160deg, #2e3542, #181d26); border: 1px solid rgb(255 255 255 / .08); }
.pv-show__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pv-show__tiles span { height: 36px; border-radius: 6px 6px 0 0; background: #e9ebef; }
.pv-show__tiles span:last-child { background: #232a35; }

/* Skills: six equal cards, three per row */
.skills-grid .skill-card { grid-column: span 2; }
@media (max-width: 1024px) { .skills-grid .skill-card { grid-column: span 1; } }

/* ---------- Contact: info on the left, form on the right ---------- */
.contact--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4rem);
  text-align: left;
  align-items: start;
}
.contact--split h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3rem); }
.contact--split .section-lead { margin-inline: 0; }

.contact-list { margin-top: 2rem; display: grid; gap: 1.25rem; }
.contact-list li { display: flex; gap: .9rem; align-items: flex-start; }
.contact-list > li > .icon { color: var(--accent); margin-top: .2rem; }
.contact-list div { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .6rem; min-width: 0; }
.contact-list a { font-weight: 600; color: var(--accent); word-break: break-all; }
.contact-list a:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact-list__label { display: block; width: 100%; font-size: .8rem; color: var(--muted); }

.copy-btn {
  height: auto; padding: .2rem .65rem; gap: .35rem;
  border-radius: 999px; font-size: .78rem; font-weight: 600;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--ink);
}
.copy-btn:hover { border-color: var(--accent); color: var(--accent); }

.contact-form {
  display: grid; gap: 1.1rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--radius-lg);
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: .95rem; }
.field input, .field textarea {
  width: 100%;
  padding: .8rem 1rem;
  font: inherit; font-size: 1rem;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.field__error { display: none; font-size: .85rem; color: #e5484d; }
[data-theme="dark"] .field__error { color: #ff8a7a; }
.field.is-invalid input, .field.is-invalid textarea { border-color: #e5484d; }
.field.is-invalid .field__error { display: block; }
.contact-form__submit { width: 100%; }
.form-status { min-height: 1.4em; font-weight: 600; font-size: .95rem; }
.form-status.is-success { color: var(--accent); }
.form-status.is-error { color: #e5484d; }

@media (max-width: 900px) {
  .contact--split { grid-template-columns: 1fr; }
}
@media (max-width: 480px) { .contact-list .copy-btn { width: auto; justify-content: center; } }

/* Hero program card: "Done" label in teal */
.system__stages[data-static] .stage.is-active .stage__step { font-weight: 600; }
.system__stages[data-static]::after { display: none; }   /* no travelling dot on the program card */

/* Hero course card: every module shown in teal (a course outline, not progress) */
.system__stages--course .stage__icon { color: var(--accent); border-color: var(--accent-line, var(--accent)); }
.system__stages--course::before { background: var(--accent-line, var(--line)); }


/* #####################################################################
   FINAL QUALITY FIXES
   ##################################################################### */
/* Small grey text readable in both themes (WCAG AA contrast) */
[data-theme="dark"] { --faint: #8a92a0; }
[data-theme="light"] { --faint: #61666f; }

/* "Coming soon" buttons: clearly unavailable but still readable */
.btn.is-disabled {
  opacity: 1;
  color: var(--muted);
  border: 1px dashed var(--line-strong);
  background: transparent;
  cursor: not-allowed;
}
.btn.is-disabled:hover { transform: none; color: var(--muted); }
.btn.is-disabled::after { content: " · soon"; font-weight: 400; font-size: .85em; }


/* #####################################################################
   ONE BRAND — teal accent, Manrope + Inter, in both themes
   ##################################################################### */
/* Hero: name as the headline, role line underneath */
.hero__loc { font-size: .9rem; margin-bottom: .9rem; }
.hero__loc .icon { color: var(--accent); }
.hero__role {
  margin-top: .7rem;
  font-family: var(--font-head);
  font-size: clamp(1.15rem, .9rem + 1vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--accent);
}

/* Soft teal glow behind the headline */
.hero::before {
  content: ""; position: absolute; left: 2%; top: 18%;
  width: 460px; height: 460px; pointer-events: none; z-index: 0;
  background: radial-gradient(circle, var(--accent-soft), transparent 70%);
}
.hero__inner { z-index: 1; }

/* Teal corner frame around the About photo */
.about__photo { position: relative; }
.about__photo::before {
  content: ""; position: absolute; top: -12px; left: -12px;
  width: 42%; height: 38%; pointer-events: none;
  border-top: 3px solid var(--accent); border-left: 3px solid var(--accent);
  border-radius: 20px 0 0 0;
}

/* About: "What my background brings" */
.about__sub {
  margin: 1.8rem 0 .9rem;
  font-size: 1.05rem; font-weight: 700;
}
.brings { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: .7rem; }
.brings li {
  display: flex; gap: .85rem; align-items: flex-start;
  padding: .85rem 1rem;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface);
}
.brings__icon {
  flex: none; display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 10px;
  color: var(--accent); background: var(--accent-soft);
}
.brings strong { display: block; font-size: .95rem; }
.brings p { margin: .1rem 0 0; font-size: .9rem; color: var(--muted); }

/* Hero: small round photo with location and status */
.hero__id { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.1rem; }
.hero__avatar {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none;
  border: 2px solid var(--bg);
  box-shadow: 0 0 0 2px var(--accent), var(--shadow-md);
}
.hero__id .hero__loc { margin-bottom: .15rem; }
.hero__status { display: flex; align-items: center; gap: .45rem; font-size: .88rem; font-weight: 600; color: var(--ink-2); margin: 0; }
.hero__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-soft); }
@media (max-width: 480px) { .hero__avatar { width: 56px; height: 56px; } }
