/* ============================================================
   Atiqur Rahman — Editorial Portfolio v3
   + Skills grid, recommendations, certificate preview, intent picker
   ============================================================ */

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

:root {
  --ink:        #14151a;
  --ink-2:      #4a4c56;
  --ink-3:      #8a8c96;
  --line:       #e7e7ea;
  --line-soft:  #f0f0f2;
  --bg:         #fbfbfa;
  --paper:      #ffffff;
  --link:       #1c4ed8;
  --green:      #16a34a;

  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --gutter: clamp(20px, 5vw, 72px);
  --maxw: 1180px;
}

html {
  overscroll-behavior: none;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior-y: none;
  min-height: 100vh;
}

body.nav-open,
body.modal-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

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

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

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(251, 251, 250, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); }

.nav__inner {
  max-width: var(--maxw); margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
}

.nav__brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 500; font-size: 0.94rem; letter-spacing: -0.01em;
}
.nav__mark {
  width: 26px; height: 26px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--paper);
  font-family: var(--serif); font-weight: 500; font-size: 0.9rem;
  border-radius: 6px; font-style: italic;
}

.nav__links { display: flex; align-items: center; gap: 32px; font-size: 0.9rem; color: var(--ink-2); }
.nav__links a { position: relative; }
.nav__links a:hover { color: var(--ink); }
.nav__links a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 1px; background: var(--ink); transform: scaleX(0);
  transform-origin: left; transition: transform .3s var(--ease-out);
}
.nav__links a:not(.nav__cta):hover::after { transform: scaleX(1); }

.nav__cta {
  padding: 8px 16px; border: 1px solid var(--ink); border-radius: 999px;
  color: var(--ink); transition: background .25s var(--ease), color .25s var(--ease);
}
.nav__cta:hover { background: var(--ink); color: var(--paper); }

.nav__toggle { display: none; width: 32px; height: 32px; position: relative; }
.nav__toggle span {
  position: absolute; left: 6px; right: 6px; height: 1.5px;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav__toggle span:nth-child(1) { top: 12px; }
.nav__toggle span:nth-child(2) { bottom: 12px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */

   .portrait__caption em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink);
}
.hero {
  padding: 130px var(--gutter) 90px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}
.hero__portrait { position: sticky; top: 110px; }

.portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: linear-gradient(160deg, #f0f0f3 0%, #e4e4e9 100%);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 30px 60px -30px rgba(20,21,26,0.25),
    0 12px 30px -20px rgba(20,21,26,0.2);
}
.portrait img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
  transition: opacity .4s var(--ease);
}
.portrait img.is-missing { opacity: 0; }

.portrait__fallback {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,0.9), transparent 60%),
    linear-gradient(160deg, #ececf1, #dce0e6);
  font-family: var(--serif);
  font-size: 5.5rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.04em;
  opacity: 0.55;
  z-index: 0;
}

.portrait__caption {
  margin-top: 16px;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.82rem; color: var(--ink-2);
}

.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(22,163,74,0.12);
  animation: softPulse 2.4s var(--ease) infinite;
}
@keyframes softPulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(22,163,74,0.12); }
  50%      { box-shadow: 0 0 0 7px rgba(22,163,74,0.05); }
}

.eyebrow {
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 24px;
}
.hero__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.1rem, 4.6vw, 3.7rem);
  line-height: 1.05; letter-spacing: -0.025em; color: var(--ink);
  margin-bottom: 28px;
}
.hero__title em { font-style: italic; color: var(--ink-2); }

.hero__lede {
  font-size: clamp(1rem, 1.1vw, 1.08rem);
  line-height: 1.7; color: var(--ink-2);
  max-width: 560px; margin-bottom: 34px;
}
.hero__lede strong { color: var(--ink); font-weight: 500; }

.hero__actions {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
  margin-bottom: 40px;
}

.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px;
  background: var(--ink); color: var(--paper);
  font-size: 0.92rem; font-weight: 500;
  transition: transform .25s var(--ease-out), background .25s var(--ease);
}
.btn-primary:hover { transform: translateY(-1px); background: #000; }
.btn-primary--lg { padding: 16px 28px; font-size: 1rem; }
.btn-primary__arrow { transition: transform .3s var(--ease-out); }
.btn-primary:hover .btn-primary__arrow { transform: translateX(3px); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 20px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink);
  background: transparent;
  font-size: 0.92rem; font-weight: 500;
  transition: border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease-out);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--paper); transform: translateY(-1px); }
.btn-ghost i { font-size: 0.88rem; color: var(--ink-2); }
.btn-ghost--sm { padding: 9px 15px; font-size: 0.85rem; }

.hero__meta {
  list-style: none; display: flex; flex-direction: column; gap: 0;
  border-top: 1px solid var(--line); max-width: 560px;
}
.hero__meta li {
  display: grid; grid-template-columns: 96px 1fr; gap: 20px;
  padding: 14px 0; border-bottom: 1px solid var(--line-soft);
  font-size: 0.9rem; color: var(--ink-2);
}
.hero__meta li:last-child { border-bottom: 0; }
.hero__meta li span {
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3); padding-top: 3px;
}
.hero__meta a:hover { color: var(--link); }

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: 100px var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.section__head {
  display: grid; grid-template-columns: 60px 1fr auto;
  gap: 24px; align-items: baseline; margin-bottom: 56px;
}
.section__num { font-family: var(--serif); font-size: 0.9rem; color: var(--ink-3); font-style: italic; }
.section__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  letter-spacing: -0.02em; color: var(--ink);
}
.section__sub { font-size: 0.88rem; color: var(--ink-3); text-align: right; }

/* ============================================================
   SKILLS GRID (new)
   ============================================================ */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 22px;
}

.skill-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px 24px;
  background: var(--paper);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease), border-color .35s var(--ease);
  position: relative;
  overflow: hidden;
}
.skill-card::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease-out);
}
.skill-card:hover {
  transform: translateY(-4px);
  border-color: var(--ink);
  box-shadow: 0 20px 40px -20px rgba(20,21,26,0.25);
}
.skill-card:hover::after { transform: scaleX(1); }

.skill-card__icon {
  display: inline-flex;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--line-soft);
  color: var(--ink);
  font-size: 1.1rem;
  margin-bottom: 18px;
  transition: background .35s var(--ease), color .35s var(--ease), transform .4s var(--ease-out);
}
.skill-card:hover .skill-card__icon {
  background: var(--ink); color: var(--paper);
  transform: rotate(-4deg) scale(1.05);
}

.skill-card__title {
  font-family: var(--serif); font-weight: 500;
  font-size: 1.15rem; letter-spacing: -0.015em;
  margin-bottom: 8px;
}
.skill-card__desc {
  font-size: 0.92rem; color: var(--ink-2); line-height: 1.55;
  margin-bottom: 16px;
}
.skill-card__tags {
  list-style: none;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.skill-card__tags li {
  font-size: 0.7rem; letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: var(--line-soft);
  padding: 4px 10px;
  border-radius: 999px;
}

/* ============================================================
   SKILLS MATRIX (editorial rows)
   ============================================================ */
.stack {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.stack__row {
  display: grid;
  grid-template-columns: 200px 1fr;
  column-gap: 48px;
  align-items: baseline;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.3s var(--ease);
}

.stack__row:hover {
  padding-left: 8px;
}

.stack__label {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--ink);
  letter-spacing: -0.005em;
  line-height: 1.4;
}

.stack__value {
  font-size: 0.98rem;
  color: var(--ink-2);
  line-height: 1.75;
}

.stack__value em {
  font-style: normal;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 1px;
}

/* Responsive */
@media (max-width: 780px) {
  .stack__row {
    grid-template-columns: 1fr;
    row-gap: 6px;
    padding: 18px 0;
  }
  .stack__label {
    font-family: var(--sans);
    font-style: normal;
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ink-3);
  }
  .stack__value {
    font-size: 0.94rem;
  }
}

/* ============================================================
   WORK ENTRIES
   ============================================================ */
.entries { list-style: none; border-top: 1px solid var(--line); }
.entry { border-bottom: 1px solid var(--line); transition: background .3s var(--ease); }
.entry.is-open { background: var(--paper); }

.entry__row {
  display: grid;
  grid-template-columns: 56px 1fr auto 40px;
  gap: 20px; align-items: center;
  padding: 22px 0; width: 100%; text-align: left;
  transition: padding .3s var(--ease);
}

/* Thumbnail with BW → color swap */
.entry__thumb {
  position: relative;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--line-soft);
  overflow: hidden;
  transition: background .3s var(--ease), transform .35s var(--ease-out);
}
.entry:hover .entry__thumb { background: #fff; transform: scale(1.04); }

.thumb-img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 12px;
  transition: opacity .35s var(--ease), filter .35s var(--ease);
}
.thumb-img--bw { filter: grayscale(1) contrast(1.05); opacity: 1; }
.thumb-img--color { filter: grayscale(0); opacity: 0; }

.entry:hover .thumb-img--bw { opacity: 0; }
.entry:hover .thumb-img--color { opacity: 1; }

.entry__main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.entry__title {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.5vw, 1.28rem);
  font-weight: 400; letter-spacing: -0.015em; color: var(--ink);
  transition: color .25s var(--ease);
}
.entry__row:hover .entry__title { color: var(--link); }
.entry__meta { font-size: 0.82rem; color: var(--ink-3); }

.entry__stores {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px; border-radius: 999px;
}
.store {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--line-soft);
  color: var(--ink-2);
  font-size: 0.72rem;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.entry__row:hover .store { background: var(--paper); color: var(--ink); }

.entry__plus { position: relative; width: 22px; height: 22px; justify-self: end; }
.entry__plus::before,
.entry__plus::after {
  content: ""; position: absolute; background: var(--ink);
  transition: transform .35s var(--ease-out), opacity .3s var(--ease);
}
.entry__plus::before { top: 50%; left: 0; right: 0; height: 1.5px; transform: translateY(-50%); }
.entry__plus::after { left: 50%; top: 0; bottom: 0; width: 1.5px; transform: translateX(-50%); }
.entry.is-open .entry__plus::after { transform: translateX(-50%) scaleY(0); }
.entry.is-open .entry__plus::before { transform: translateY(-50%) rotate(180deg); }

.entry__body {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .45s var(--ease-out);
}
.entry.is-open .entry__body { grid-template-rows: 1fr; }
.entry__body-inner { overflow: hidden; opacity: 0; transition: opacity .35s var(--ease) .05s; }
.entry.is-open .entry__body-inner { opacity: 1; }
.entry.is-open .entry__row { padding-bottom: 6px; }

.prose {
  font-size: 0.95rem; line-height: 1.75; color: var(--ink-2);
  max-width: 720px; padding: 0 0 18px; margin-left: 76px;
}
.prose strong { color: var(--ink); font-weight: 500; }

.taglist {
  list-style: none; display: flex; flex-wrap: wrap; gap: 8px;
  padding: 0 0 18px; margin-left: 76px;
}
.taglist li {
  font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-2); padding: 4px 10px;
  border: 1px solid var(--line); border-radius: 999px;
}
.linklist {
  list-style: none; display: flex; flex-wrap: wrap; gap: 22px;
  padding: 0 0 26px; margin-left: 76px;
}
.linklist a {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.88rem; font-weight: 500; color: var(--ink);
  border-bottom: 1px solid transparent; padding-bottom: 2px;
  transition: border-color .25s var(--ease);
}
.linklist a:hover { border-color: var(--ink); }
.linklist a i { color: var(--ink-2); }

/* ============================================================
   JOBS
   ============================================================ */
.jobs { list-style: none; border-top: 1px solid var(--line); }
.job { border-bottom: 1px solid var(--line); transition: background .3s var(--ease); }
.job.is-open { background: var(--paper); }

.job__row {
  display: grid;
  grid-template-columns: 130px 44px 1fr 34px;
  gap: 20px; align-items: center;
  padding: 24px 0; width: 100%; text-align: left;
}
.job__when { font-family: var(--serif); font-style: italic; font-size: 0.92rem; color: var(--ink-3); }

.job__brand {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  border-radius: 10px; background: var(--line-soft);
  transition: background .3s var(--ease);
}
.brand-mark {
  font-family: var(--serif); font-weight: 500;
  font-size: 1.05rem; color: var(--ink); font-style: italic;
}
.job:hover .job__brand { background: var(--ink); }
.job:hover .brand-mark { color: var(--paper); }

.job__main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.job__role {
  font-family: var(--serif); font-weight: 400;
  font-size: 1.15rem; letter-spacing: -0.015em; color: var(--ink);
}
.job__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 0.82rem; color: var(--ink-3);
}
.job__company { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }
.job__sep { opacity: 0.6; }
.job__globe {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  font-size: 0.6rem; color: var(--ink-3); background: var(--line-soft);
  transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--ease-out);
}
.job__globe:hover { background: var(--ink); color: var(--paper); transform: scale(1.1); }

.job__summary {
  font-size: 0.82rem; color: var(--ink-3); margin-top: 4px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.job__plus { position: relative; width: 20px; height: 20px; justify-self: end; }
.job__plus::before,
.job__plus::after {
  content: ""; position: absolute; background: var(--ink);
  transition: transform .35s var(--ease-out), opacity .3s var(--ease);
}
.job__plus::before { top: 50%; left: 0; right: 0; height: 1.5px; transform: translateY(-50%); }
.job__plus::after { left: 50%; top: 0; bottom: 0; width: 1.5px; transform: translateX(-50%); }
.job.is-open .job__plus::after { transform: translateX(-50%) scaleY(0); }
.job.is-open .job__plus::before { transform: translateY(-50%) rotate(180deg); }

.job__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease-out); }
.job.is-open .job__body { grid-template-rows: 1fr; }
.job__body-inner { overflow: hidden; opacity: 0; transition: opacity .35s var(--ease) .05s; }
.job.is-open .job__body-inner { opacity: 1; }
.job.is-open .job__row { padding-bottom: 6px; }

.job__points {
  list-style: none; display: flex; flex-direction: column; gap: 8px;
  margin-left: 194px; padding-bottom: 28px;
}
.job__points li {
  font-size: 0.92rem; line-height: 1.7; color: var(--ink-2);
  padding-left: 18px; position: relative;
}
.job__points li::before { content: "—"; position: absolute; left: 0; color: var(--ink-3); }
.job__points strong { color: var(--ink); font-weight: 500; }

/* ============================================================
   ABOUT
   ============================================================ */
.about { display: grid; gap: 56px; }
.about__prose {
  max-width: 720px; display: flex; flex-direction: column; gap: 18px;
  font-size: 1.02rem; line-height: 1.75; color: var(--ink-2);
}
.about__prose strong { color: var(--ink); font-weight: 500; }
.about__prose em { font-family: var(--serif); color: var(--ink); font-size: 1.05em; }

.about__cols {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
  padding-top: 40px; border-top: 1px solid var(--line);
}
.col__head {
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 18px;
}
.plainlist { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 0.9rem; color: var(--ink-2); }
.plainlist strong { color: var(--ink); font-weight: 500; }

/* ============================================================
   CERTIFICATIONS — click to preview
   ============================================================ */
.certs { list-style: none; border-top: 1px solid var(--line); }
.cert { border-bottom: 1px solid var(--line); transition: background .3s var(--ease); }
.cert:hover { background: var(--paper); }

.cert__row {
  display: grid;
  grid-template-columns: 60px 1fr 40px;
  gap: 24px; align-items: center;
  padding: 24px 0; width: 100%; text-align: left;
  transition: padding-left .3s var(--ease);
}
.cert:hover .cert__row { padding-left: 8px; }

.cert__idx { font-family: var(--serif); font-style: italic; font-size: 0.95rem; color: var(--ink-3); }
.cert__main { min-width: 0; }
.cert__title {
  font-family: var(--serif); font-weight: 400;
  font-size: 1.08rem; letter-spacing: -0.015em; color: var(--ink);
  margin-bottom: 3px;
}
.cert__meta { font-size: 0.82rem; color: var(--ink-3); }

.cert__badge {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--ink-2);
  background: var(--line-soft);
  font-size: 0.85rem;
  transition: background .3s var(--ease), color .3s var(--ease), transform .35s var(--ease-out);
  justify-self: end;
}
.cert:hover .cert__badge { background: var(--ink); color: #f5d742; transform: rotate(-8deg) scale(1.06); }

/* ============================================================
   RECOMMENDATIONS (new)
   ============================================================ */
.recs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}
.rec {
  padding: 26px 24px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease), border-color .35s var(--ease);
  display: flex; flex-direction: column; gap: 20px;
}
.rec:hover {
  transform: translateY(-4px);
  border-color: var(--ink);
  box-shadow: 0 20px 40px -20px rgba(20,21,26,0.22);
}

.rec__quote {
  font-family: var(--serif);
  font-size: 1.02rem; line-height: 1.6;
  color: var(--ink);
  letter-spacing: -0.005em;
  position: relative;
  padding-left: 26px;
}
.rec__quote::before {
  content: "“";
  position: absolute; left: 0; top: -4px;
  font-family: var(--serif); font-size: 2rem;
  color: var(--ink-3); line-height: 1;
}

.rec__by {
  display: flex; align-items: center; gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  margin-top: auto;
}
.rec__avatar {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--ink); color: var(--paper);
  font-family: var(--serif); font-weight: 500;
  font-size: 0.95rem; font-style: italic;
}
.rec__who { display: flex; flex-direction: column; line-height: 1.35; }
.rec__who strong { font-size: 0.9rem; color: var(--ink); font-weight: 600; }
.rec__who span { font-size: 0.78rem; color: var(--ink-3); }

/* ============================================================
   CONTACT
   ============================================================ */
.section--contact { padding-bottom: 120px; }
.contact { display: grid; gap: 40px; max-width: 820px; }

.contact__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.1; letter-spacing: -0.025em; color: var(--ink);
}
.contact__sub { font-size: 1rem; color: var(--ink-2); max-width: 620px; line-height: 1.7; }

.contact__primary {
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.contact__hint { font-size: 0.84rem; color: var(--ink-3); }

.contact__links {
  display: flex; flex-direction: column;
  border-top: 0; margin-top: 0;
}
.contact__link {
  display: grid; grid-template-columns: 120px 1fr 32px; gap: 24px;
  align-items: center; padding: 22px 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left .3s var(--ease);
}
.contact__link:hover { padding-left: 8px; }
.contact__label {
  font-size: 0.72rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-3);
}
.contact__value {
  font-family: var(--serif); font-size: 1.05rem;
  color: var(--ink); letter-spacing: -0.01em;
}
.contact__arrow {
  justify-self: end; font-size: 1.1rem; color: var(--ink-3);
  transition: transform .3s var(--ease-out), color .3s var(--ease);
}
.contact__link:hover .contact__arrow { transform: translateX(6px); color: var(--ink); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--line); padding: 30px var(--gutter); }
.footer__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  font-size: 0.82rem; color: var(--ink-3);
}

/* ============================================================
   FLOATING WHATSAPP
   ============================================================ */
.wa-fab {
  position: fixed; bottom: 24px; right: 24px;
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--ink); color: var(--paper);
  display: grid; place-items: center;
  font-size: 1.35rem; z-index: 90;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  transition: transform .3s var(--ease-out), background .3s var(--ease);
}
.wa-fab:hover { background: #128C7E; transform: translateY(-3px); }

/* ============================================================
   MODALS
   ============================================================ */
.modal {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  padding: 24px;
}
.modal[hidden] { display: none; }

.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(20, 21, 26, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .3s var(--ease);
}
.modal.is-open .modal__backdrop { opacity: 1; }

.modal__panel {
  position: relative;
  width: min(960px, 100%);
  height: min(88vh, 900px);
  background: var(--bg);
  border-radius: 20px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  transform: translateY(12px) scale(0.98);
  opacity: 0;
  transition: transform .35s var(--ease-out), opacity .3s var(--ease);
}
.modal.is-open .modal__panel { transform: translateY(0) scale(1); opacity: 1; }

.modal__panel--intent { height: auto; max-height: 90vh; }

.modal__head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.modal__title h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: 1.1rem; letter-spacing: -0.015em; color: var(--ink);
  margin-bottom: 2px;
}
.modal__title p { font-size: 0.78rem; color: var(--ink-3); }
.modal__actions { display: flex; align-items: center; gap: 10px; }

.modal__close {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--line-soft);
  color: var(--ink-2);
  font-size: 0.95rem;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.modal__close:hover { background: var(--ink); color: var(--paper); }

.modal__viewer { background: #f4f4f6; position: relative; }
.modal__viewer object { width: 100%; height: 100%; border: 0; }

/* Certificate image viewer */
.modal__viewer--image {
  display: grid;
  place-items: center;
  padding: 8px;
  background: #f4f4f6;
  overflow: auto;
}

.modal__viewer--image img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.9) inset,
    0 30px 60px -30px rgba(20,21,26,0.25),
    0 12px 30px -20px rgba(20,21,26,0.18);
  background: #fff;
}

/* Optional: click to zoom */
.modal__viewer--image img:hover {
  transform: scale(1.05);
}

/* Small helper text under image, if you want it */
.modal__viewer--image::after {
  content: "";
}

.pdf-fallback {
  height: 100%; display: grid; place-items: center;
  text-align: center; gap: 16px; padding: 24px;
  color: var(--ink-2); font-size: 0.95rem;
}

/* ============================================================
   Résumé viewer — native iframe (simplest, most reliable)
   ============================================================ */
.modal__viewer {
  position: relative;
  background: #f4f4f6;
  overflow: hidden;
}

.modal__viewer iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #ffffff;
}

/* ============================================================
   INTENT PICKER (2x2 grid)
   ============================================================ */
.intent-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border-radius: 0 0 20px 20px;
  overflow: hidden;
}

.intent {
  position: relative;
  background: var(--bg);
  padding: 30px 26px;
  display: flex; flex-direction: column; gap: 8px;
  transition: background .3s var(--ease), transform .3s var(--ease-out);
}
.intent:hover { background: var(--paper); }

.intent__icon {
  display: inline-flex;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--line-soft);
  color: var(--ink);
  font-size: 1.05rem;
  margin-bottom: 12px;
  transition: background .3s var(--ease), color .3s var(--ease), transform .35s var(--ease-out);
}
.intent:hover .intent__icon { background: var(--ink); color: var(--paper); transform: rotate(-4deg) scale(1.05); }

.intent h4 {
  font-family: var(--serif); font-weight: 500;
  font-size: 1.05rem; letter-spacing: -0.015em;
  color: var(--ink);
}
.intent p { font-size: 0.88rem; color: var(--ink-2); line-height: 1.55; padding-right: 24px; }

.intent__arrow {
  position: absolute; top: 30px; right: 26px;
  font-size: 1rem; color: var(--ink-3);
  transition: transform .3s var(--ease-out), color .3s var(--ease);
}
.intent:hover .intent__arrow { transform: translateX(4px); color: var(--ink); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav__links { gap: 20px; font-size: 0.85rem; }
}

@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__portrait { position: static; max-width: 280px; }
  .about__cols { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 780px) {
  .nav__links {
    position: fixed; inset: 62px 0 auto 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    flex-direction: column; gap: 0;
    padding: 8px var(--gutter) 24px; align-items: flex-start;
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease);
  }
  .nav__links.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav__links a {
    width: 100%; padding: 14px 0;
    border-bottom: 1px solid var(--line-soft); font-size: 1rem;
  }
  .nav__links a:not(.nav__cta)::after { display: none; }
  .nav__cta { border: 0; border-radius: 0; padding: 14px 0; width: 100%; }
  .nav__cta:hover { background: transparent; color: var(--ink); }
  .nav__toggle { display: block; }

  .hero { padding: 110px var(--gutter) 60px; }

  .section { padding: 70px var(--gutter); }
  .section__head {
    grid-template-columns: 40px 1fr; gap: 12px 16px; margin-bottom: 40px;
  }
  .section__sub { grid-column: 1 / -1; text-align: left; }

  
  .entry__row { grid-template-columns: 48px 1fr auto; gap: 14px; padding: 18px 0; }
  .entry__thumb { width: 48px; height: 48px; }
  .thumb-img { padding: 9px; }
  .entry__plus { display: none; }
  .prose, .taglist, .linklist { margin-left: 0; }

  .job__row { grid-template-columns: 44px 1fr 26px; gap: 12px; padding: 20px 0; }
  .job__when { grid-column: 1 / -1; padding-bottom: 6px; font-size: 0.82rem; }
  .job__summary { white-space: normal; }
  .job__points { margin-left: 0; padding-bottom: 20px; }

  .cert__row { grid-template-columns: 40px 1fr 34px; gap: 14px; padding: 20px 0; }
  .cert__badge { width: 30px; height: 30px; font-size: 0.78rem; }

  .recs { grid-template-columns: 1fr; }
  .rec { padding: 22px 20px; }

  .contact__link { grid-template-columns: 1fr 24px; gap: 8px 16px; padding: 18px 0; }
  .contact__label { grid-column: 1 / -1; }
  .contact__value { font-size: 0.98rem; }
  .contact__primary { padding: 22px 0; }

  .modal { padding: 12px; }
  .modal__panel { border-radius: 16px; }
  .modal__head { padding: 14px 16px; }
  .modal__title h3 { font-size: 1rem; }
  .modal__title p { display: none; }

  .intent-grid { grid-template-columns: 1fr; }
  .intent { padding: 24px 20px; }
}

@media (max-width: 480px) {
  .hero__title { font-size: 1.9rem; }
  .hero__actions { gap: 10px; }
  .btn-primary, .btn-ghost { padding: 11px 16px; font-size: 0.86rem; }
  .btn-primary--lg { padding: 14px 22px; font-size: 0.94rem; }
  .section__head { grid-template-columns: 1fr; }
  .section__num { display: none; }
  .skills-grid { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; }
  .wa-fab { bottom: 16px; right: 16px; width: 46px; height: 46px; font-size: 1.2rem; }
  .entry__stores { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .nav, .footer, .wa-fab, .entry__plus, .job__plus, .portrait__caption,
  .hero__actions, .modal, .contact__primary { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .section, .hero { padding: 16px 0; border-top: 1px solid #ccc; }
  .entry__body, .job__body { grid-template-rows: 1fr !important; }
  .entry__body-inner, .job__body-inner { opacity: 1 !important; }
  .entry__row, .job__row { padding: 10px 0; }
  .hero__grid { grid-template-columns: 1fr; }
}

.footer__privacy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
}
.footer__privacy i {
  color: var(--green);
  font-size: 0.75rem;
}

@media (max-width: 480px) {
  .footer__privacy { font-size: 0.78rem; }
}
.rec__verify {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-3);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color .25s var(--ease), border-color .25s var(--ease);
}
.rec__verify:hover {
  color: var(--link);
  border-color: var(--link);
}
.rec__verify i {
  font-size: 0.6rem;
  opacity: 0.7;
}
.hero__vitals {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding: 20px 0;
  margin-bottom: 32px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--ink-3);
}

.hero__vitals span {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.hero__vitals strong {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-feature-settings: "tnum";
}

.hero__vitals em {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--ink-2);
}

@media (max-width: 780px) {
  .hero__vitals { gap: 18px; font-size: 0.8rem; }
  .hero__vitals strong { font-size: 1.1rem; }
}