/* ==========================================================================
   Sahil Ojha — Personal site
   Light & editorial design system
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --bg-tint: #f0f3f8;
  --ink: #0e1b33;          /* deep navy: headings + body */
  --ink-2: #1b2b4b;
  --muted: #5b6678;        /* secondary text */
  --muted-2: #8a93a3;
  --line: #e6e9ef;
  --line-2: #d9dee7;
  --accent: #2a5bd7;       /* confident professional blue */
  --accent-ink: #1c3f9e;
  --accent-soft: #eaf0fc;
  --gold: #b8924a;         /* sparing warm highlight */
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(14, 27, 51, 0.06), 0 1px 3px rgba(14, 27, 51, 0.04);
  --shadow-md: 0 10px 30px -12px rgba(14, 27, 51, 0.18);
  --shadow-lg: 0 30px 60px -20px rgba(14, 27, 51, 0.25);
  --maxw: 1120px;
  --ff-serif: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --ff-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ff-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ff-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  counter-reset: section;
}
.blogs-kicker { font-family: var(--ff-mono); font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin: 22px 0 14px; }
.blogs-title { font-family: var(--ff-serif); font-weight: 560; line-height: 1.04; letter-spacing: -0.02em; color: var(--ink); font-size: clamp(36px, 5.5vw, 58px); margin: 0; }
.blogs-sub { color: var(--muted); font-size: 18.5px; max-width: 580px; margin-top: 16px; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--ff-serif); font-weight: 560; line-height: 1.12; letter-spacing: -0.01em; color: var(--ink); }
p { margin: 0 0 1.1em; }
::selection { background: var(--accent); color: #fff; }

/* ----- Layout ----- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: 56px 0; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--ff-mono);
  font-size: 11.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-2);
  font-weight: 600;
  margin: 0 0 22px;
}
.eyebrow::before {
  content: ""; width: 15px; height: 17px; flex: 0 0 15px; display: inline-block;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 26'%3E%3Cpath d='M12 1 23 7 12 13 1 7Z' fill='%235b8def'/%3E%3Cpath d='M1 7 12 13 12 25 1 19Z' fill='%232a5bd7'/%3E%3Cpath d='M23 7 12 13 12 25 23 19Z' fill='%231c3f9e'/%3E%3C/svg%3E") center / contain no-repeat;
  filter: drop-shadow(0 2px 3px rgba(42,91,215,.3));
  transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
.section-head:hover .eyebrow::before,
.about__body:hover .eyebrow::before { transform: translateY(-2px) rotate(-4deg); }
.section-head { max-width: 640px; margin-bottom: 34px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); }
.section-head p { color: var(--muted); font-size: 18px; margin-top: 14px; }

/* ----- Buttons ----- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--ff-sans); font-weight: 540; font-size: 15.5px;
  padding: 13px 22px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, border-color .18s ease;
}
.btn svg { width: 17px; height: 17px; }
.btn--primary { background: var(--ink); color: #fff; }
.btn--primary:hover { background: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--ink); border-color: var(--line-2); }
.btn--light:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
}
.nav.is-stuck { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(14,27,51,0.4); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand__mark { width: 38px; height: 38px; flex: 0 0 38px; }
.brand__name { font-family: var(--ff-serif); font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.brand__name span { color: var(--muted-2); font-weight: 400; }
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__links a { font-size: 15px; color: var(--ink-2); font-weight: 480; position: relative; padding: 4px 0; transition: color .18s ease; }
.nav__links a::after { content:""; position:absolute; left:0; bottom:-2px; width:0; height:2px; background: var(--accent); border-radius:2px; transition: width .22s ease; }
.nav__links a:hover, .nav__links a.is-active { color: var(--accent); }
.nav__links a:hover::after, .nav__links a.is-active::after { width:100%; }
.nav__cta { display: flex; align-items: center; gap: 14px; }
.nav__toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; cursor: pointer; align-items: center; justify-content: center; }
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after { content:""; display:block; width:18px; height:2px; background: var(--ink); border-radius:2px; position: relative; transition: transform .25s ease, opacity .2s ease; }
.nav__toggle span::before { position:absolute; top:-6px; } .nav__toggle span::after { position:absolute; top:6px; }
.nav.open .nav__toggle span { background: transparent; }
.nav.open .nav__toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav.open .nav__toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; overflow: hidden; padding: 52px 0 58px; }
.hero::before {
  content:""; position:absolute; inset:0; z-index:0;
  background:
    radial-gradient(1100px 460px at 78% -8%, var(--accent-soft) 0%, rgba(234,240,252,0) 60%),
    radial-gradient(700px 380px at 6% 6%, #f3f6fb 0%, rgba(243,246,251,0) 70%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero__eyebrow { font-family: var(--ff-mono); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); font-weight: 600; margin-bottom: 22px; display:flex; align-items:center; gap:10px; }
.hero__eyebrow .dot { width:8px; height:8px; border-radius:50%; background: #1faa59; box-shadow: 0 0 0 4px rgba(31,170,89,.15); }
.hero__eyebrow .ninja { width:20px; height:20px; flex:0 0 20px; display:block; }
.hero h1 { font-family: var(--ff-sans); font-size: clamp(40px, 5.2vw, 66px); line-height: 1.0; letter-spacing: -0.04em; font-weight: 900; }
.hero h1 .accent { color: var(--accent); font-style: normal; }
.hero__role { font-family: var(--ff-mono); font-size: clamp(15px,2vw,18px); color: var(--ink-2); margin-top: 18px; font-weight: 500; min-height: 1.4em; }
.hero__role .cursor { display:inline-block; width:9px; height:1.05em; background: var(--accent); margin-left:3px; transform: translateY(2px); animation: blink 1.1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero__lead { font-size: 18.5px; color: var(--muted); max-width: 520px; margin-top: 22px; }
.hero__cta { display:flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__meta { display:flex; flex-wrap:wrap; gap: 8px 26px; margin-top: 34px; color: var(--muted); font-size: 14.5px; }
.hero__meta span { display:flex; align-items:center; gap:8px; }
.hero__meta svg { width:16px; height:16px; color: var(--accent); }

/* portrait — editorial stacked frame */
.hero__media { position: relative; justify-self: center; }
.portrait { position: relative; width: 340px; max-width: 78vw; }
.portrait__frame {
  position: relative; z-index: 2; border-radius: 22px; overflow: hidden;
  box-shadow: var(--shadow-lg); border: 6px solid #fff; background:#fff;
}
.portrait__frame img { aspect-ratio: 1 / 1; object-fit: cover; object-position: center 14%; width: 100%; height: auto; display:block; }
.portrait__scrim {
  position:absolute; left:0; right:0; bottom:0; z-index:3; padding: 40px 18px 15px;
  display:flex; flex-direction:column; gap:1px;
  background: linear-gradient(to top, rgba(10,16,30,.82) 0%, rgba(10,16,30,.30) 52%, rgba(10,16,30,0) 100%);
}
.portrait__name { font-family: var(--ff-serif); color:#fff; font-size: 21px; font-weight:600; line-height:1.1; letter-spacing:-0.01em; }
.portrait__title { font-family: var(--ff-mono); color:#aebfe0; font-size: 11px; letter-spacing:.05em; }
/* navy block peeking behind, bottom-right */
.portrait__shape { position:absolute; right:-20px; bottom:-20px; width:74%; height:62%; border-radius:22px;
  background: linear-gradient(150deg, var(--ink) 0%, #24407e 100%); z-index:1; }
/* thin accent ring, top-left */
.portrait__ring { position:absolute; top:-16px; left:-16px; width:84px; height:84px; border-radius:50%;
  border:2px solid var(--accent); opacity:.32; z-index:1; }
.portrait__badge {
  position:absolute; left:-26px; bottom: 36px; z-index:4; background:#fff; border:1px solid var(--line);
  border-radius: 14px; padding: 13px 16px; box-shadow: var(--shadow-md); display:flex; align-items:center; gap:12px;
}
.portrait__badge .n { font-family: var(--ff-serif); font-size: 26px; font-weight: 600; color: var(--ink); line-height:1; }
.portrait__badge .l { font-size: 12px; color: var(--muted); line-height:1.25; }
.portrait__chip {
  position:absolute; right:-18px; top: 26px; z-index:4; background: var(--ink); color:#fff;
  border-radius: 12px; padding: 9px 14px; box-shadow: var(--shadow-md); font-size: 13px; font-weight: 500;
  display:flex; align-items:center; gap:8px;
}
.portrait__chip svg { width:15px; height:15px; color:#7fffd0; }

/* ==========================================================================
   Stats strip
   ========================================================================== */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.stats__grid { display:grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 38px 26px; text-align:center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat__n { font-family: var(--ff-serif); font-size: clamp(34px, 4vw, 46px); font-weight: 600; color: var(--ink); line-height:1; }
.stat__n .accent { color: var(--accent); }
.stat__l { margin-top: 10px; font-size: 14px; color: var(--muted); letter-spacing: .01em; }

/* ==========================================================================
   About
   ========================================================================== */
.about__grid { display:grid; grid-template-columns: 1.25fr 0.75fr; gap: 48px; align-items: start; }
.about__body p { font-size: 18.5px; color: var(--ink-2); }
.about__body p.lead { font-size: 22px; font-family: var(--ff-serif); color: var(--ink); line-height:1.4; margin-bottom: 22px; }
.about__aside { }
.focus-card { background: var(--bg-alt); border:1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.focus-card h3 { font-size: 15px; font-family: var(--ff-sans); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; margin-bottom: 18px; }
.focus-list li { display:flex; align-items:flex-start; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 16px; color: var(--ink-2); }
.focus-list li:first-child { border-top: 0; }
.focus-list svg { width: 19px; height: 19px; color: var(--accent); flex:0 0 19px; margin-top: 2px; }
.about-photo { margin-top: 20px; position: relative; border-radius: 14px; overflow: hidden; border:1px solid var(--line); box-shadow: var(--shadow-md); }
.about-photo img { width:100%; display:block; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 26%; }
.about-photo figcaption { position:absolute; left:0; right:0; bottom:0; padding: 36px 16px 14px; color:#fff; font-size: 13px; line-height:1.45; background: linear-gradient(to top, rgba(10,16,30,.92) 0%, rgba(10,16,30,.45) 55%, rgba(10,16,30,0) 100%); }
.about-photo__k { display:block; font-family: var(--ff-mono); font-size: 10.5px; letter-spacing:.1em; text-transform:uppercase; color:#8db4ff; margin-bottom:4px; }

/* ==========================================================================
   Certifications
   ========================================================================== */
.cert-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cert {
  background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 26px;
  display:flex; flex-direction: column; gap: 16px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.cert:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.cert__top { display:flex; align-items:center; justify-content: space-between; gap: 14px; }
.cert__logo { width: 52px; height: 52px; border-radius: 12px; background: var(--bg-alt); border:1px solid var(--line); display:flex; align-items:center; justify-content:center; flex:0 0 52px; }
.cert__logo svg, .cert__logo img { width: 30px; height: 30px; }
.cert__status { font-family: var(--ff-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #1faa59; background: #eafaf1; border:1px solid #cdeedd; padding: 4px 9px; border-radius: 999px; font-weight: 600; }
.cert h3 { font-family: var(--ff-sans); font-size: 17.5px; font-weight: 600; line-height: 1.3; letter-spacing: 0; }
.cert__issuer { font-size: 14px; color: var(--muted); margin-top: -6px; }
.cert__foot { margin-top: auto; display:flex; align-items:center; justify-content: flex-end; padding-top: 8px; }
.cert__year { font-family: var(--ff-mono); font-size: 13px; color: var(--muted-2); }
.cert__verify { font-size: 13.5px; font-weight: 540; color: var(--accent); display:flex; align-items:center; gap:6px; }
.cert__verify svg { width: 14px; height: 14px; transition: transform .18s ease; }
.cert:hover .cert__verify svg { transform: translate(2px,-2px); }
.cert.cert--add { border-style: dashed; align-items:center; justify-content:center; text-align:center; color: var(--muted); background: var(--bg-alt); }
.cert.cert--add .cert__hint { font-size: 14.5px; }
.cert-note { margin-top: 26px; font-size: 14px; color: var(--muted); display:flex; align-items:center; gap:10px; }
.cert-note svg { width:17px; height:17px; color: var(--accent); flex:0 0 17px; }

/* ==========================================================================
   Research / CVEs
   ========================================================================== */
.research__grid { display:grid; grid-template-columns: 1fr; gap: 14px; }
.cve {
  display:grid; grid-template-columns: 168px 1fr auto; gap: 24px; align-items:center;
  background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 18px 24px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.cve:hover { border-color: var(--accent); box-shadow: var(--shadow-sm); transform: translateX(3px); }
.cve__id { font-family: var(--ff-mono); font-size: 14px; font-weight: 600; color: var(--ink); }
.cve__sev { display:inline-block; margin-top:7px; font-family: var(--ff-mono); font-size: 11px; letter-spacing:.06em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; font-weight:600; }
.sev--high { background: #fdecec; color: #c0392b; border:1px solid #f6d2d2; }
.sev--crit { background: #fbe6ef; color: #a02a5a; border:1px solid #f3cbdd; }
.sev--med { background: #fef3e2; color: #b9770e; border:1px solid #f6e2c2; }
.cve__desc { color: var(--ink-2); font-size: 15.5px; }
.cve__desc strong { font-weight: 600; }
.cve__desc .prod { color: var(--muted); font-size: 13.5px; display:block; margin-top: 3px; }
.cve__link { font-size: 13.5px; color: var(--accent); font-weight: 540; white-space: nowrap; display:flex; align-items:center; gap:6px; }
.cve__link svg { width:15px; height:15px; }

/* CVE grid (advisories) */
.cve-grid { display:grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cve-card {
  display:flex; flex-direction:column; gap: 11px; background:#fff;
  border:1px solid var(--line); border-left: 3px solid var(--line-2); border-radius: 12px;
  padding: 15px 18px; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.cve-card[data-sev="CRITICAL"] { border-left-color: #c0392b; }
.cve-card[data-sev="HIGH"]     { border-left-color: #e07b18; }
.cve-card[data-sev="MEDIUM"]   { border-left-color: #d0a420; }
.cve-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); border-color: var(--line-2); }
.cve-card__top { display:flex; align-items:center; justify-content:space-between; gap: 8px; }
.cve-card__id { font-family: var(--ff-mono); font-size: 14px; font-weight: 600; color: var(--ink); transition: color .15s ease; }
.cve-card:hover .cve-card__id { color: var(--accent); }
.cve-sev { font-family: var(--ff-mono); font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; white-space: nowrap; border: 1px solid transparent; }
.cve-sev[data-sev="CRITICAL"] { color:#a02016; background:#fdeceb; border-color:#f6d4d1; }
.cve-sev[data-sev="HIGH"]     { color:#b45309; background:#fdf1e4; border-color:#f7e0c6; }
.cve-sev[data-sev="MEDIUM"]   { color:#8a6d08; background:#faf4dc; border-color:#f0e6bf; }
.cve-card__type { display:flex; align-items:center; justify-content:space-between; gap: 8px; font-size: 13px; color: var(--muted); }
.cve-card__type svg { width: 14px; height: 14px; color: var(--accent); opacity: 0; transform: translateX(-3px); transition: opacity .15s ease, transform .15s ease; flex: 0 0 14px; }
.cve-card:hover .cve-card__type svg { opacity: 1; transform: none; }
.cve-card.cve-extra { display: none; }
.cve-grid.expanded .cve-card.cve-extra { display: flex; }
.cve-foot { text-align:center; margin-top: 30px; }
.cve-toggle { cursor: pointer; }
.cve-toggle .chev { transition: transform .25s ease; }
.cve-toggle.is-open .chev { transform: rotate(180deg); }
.cve-foot__link { display:inline-block; margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.cve-foot__link:hover { color: var(--accent); }
@media (max-width: 820px) { .cve-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .cve-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Responsible disclosure — sliding logo marquee
   ========================================================================== */
.logo-marquee {
  position: relative; overflow: hidden; background:#fff;
  border:1px solid var(--line); border-radius: var(--radius);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.logo-track { display:flex; width:max-content; animation: logo-scroll 40s linear infinite; will-change: transform; }
.logo-marquee:hover .logo-track { animation-play-state: paused; }
.logo-item {
  flex:0 0 auto; display:flex; align-items:center; justify-content:center; gap:11px;
  height:112px; padding: 0 48px; color: var(--ink);
  filter: grayscale(1); opacity:.7; transition: filter .25s ease, opacity .25s ease;
}
.logo-item:hover { filter: grayscale(0); opacity:1; }
.logo-item .lw { font-family: var(--ff-sans); font-weight: 700; font-size: 23px; letter-spacing:-0.01em; white-space:nowrap; line-height:1; }
.logo-item svg { display:block; }
.logo-item .ms-squares { display:flex; align-items:center; gap:9px; }
@keyframes logo-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.logo-cap { text-align:center; margin-top: 22px; font-size: 13.5px; color: var(--muted); display:flex; align-items:center; justify-content:center; gap:9px; }
.logo-cap svg { width:16px; height:16px; color: var(--accent); }
@media (prefers-reduced-motion: reduce) { .logo-track { animation: none; flex-wrap: wrap; width: 100%; justify-content: center; } }
@media (max-width: 430px) { .logo-item { height: 96px; padding: 0 32px; } .logo-item .lw { font-size: 20px; } }

/* ==========================================================================
   Education
   ========================================================================== */
.edu-grid { display:grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.edu {
  display:flex; flex-direction:column; gap: 18px; background:#fff; border:1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.edu:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.edu__logo-img { height: 40px; width:auto; max-width: 210px; object-fit: contain; object-position: left center; }
.edu__body h3 { font-family: var(--ff-sans); font-size:19px; font-weight:600; line-height:1.22; }
.edu__deg { font-size:15.5px; color: var(--ink-2); margin-top:6px; font-weight:540; }
.edu__meta { font-family: var(--ff-mono); font-size:12.5px; color: var(--muted-2); margin-top:10px; letter-spacing:.02em; }
.edu__detail { font-size:14.5px; color: var(--muted); margin-top:12px; display:flex; align-items:center; gap:8px; }
.edu__detail svg { width:16px; height:16px; color: var(--accent); flex:0 0 16px; }
@media (max-width: 820px) { .edu-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Experience
   ========================================================================== */
.exp-note {
  display:inline-flex; align-items:center; gap:9px; margin-bottom: 30px;
  font-family: var(--ff-mono); font-size: 12.5px; letter-spacing:.03em; color: var(--ink-2);
  background:#fff; border:1px solid var(--line); border-radius:999px; padding: 8px 16px;
}
.exp-note .pulse { width:8px; height:8px; border-radius:50%; background:#1faa59; box-shadow:0 0 0 4px rgba(31,170,89,.16); }
.head-row { display:flex; justify-content:space-between; align-items:flex-end; gap:24px; flex-wrap:wrap; max-width:none; }
.head-link { font-size:14.5px; font-weight:540; color:var(--accent); display:inline-flex; align-items:center; gap:7px; margin-bottom:6px; white-space:nowrap; }
.head-link svg { width:15px; height:15px; transition: transform .18s ease; }
.head-link:hover svg { transform: translate(2px,-2px); }

/* timeline */
.timeline { position: relative; margin-top: 4px; }
.timeline::before { content:""; position:absolute; left: 57px; top: 10px; bottom: 14px; width:2px; background: var(--line); }
.tl-item { position: relative; display:grid; grid-template-columns: 50px 1fr; gap: 30px; }
.tl-item:not(:last-child) { margin-bottom: 16px; }
.tl-year { font-family: var(--ff-mono); font-size: 13px; font-weight:600; color: var(--ink); text-align:right; padding-top: 4px; }
.tl-dot { position:absolute; left: 51px; top: 7px; width: 14px; height: 14px; border-radius:50%; background:#fff; border:3px solid var(--accent); z-index:1; }
.tl-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.tl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.tl-card__head { display:flex; align-items:flex-start; gap:14px; }
.tl-logo { width:42px; height:42px; flex:0 0 42px; border-radius:10px; background:var(--ink); display:flex; align-items:center; justify-content:center; overflow:hidden; }
.tl-logo svg { width:42px; height:42px; }
.tl-logo img { width:30px; height:30px; object-fit:contain; }
.tl-logo--img { background:#fff; border:1px solid var(--line); }
.tl-logo--gold { background: radial-gradient(120% 120% at 30% 20%, #1b2c4d 0%, #0c1530 60%, #080e22 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.06), inset 0 0 0 1px rgba(255,255,255,.04); }
.tl-logo--gold img { filter: drop-shadow(0 2px 3px rgba(0,0,0,.55)); }
.tl-titles { flex:1; min-width:0; }
.tl-role { font-family: var(--ff-sans); font-size: 17.5px; font-weight:600; line-height:1.25; }
.tl-co { font-size: 14.5px; color: var(--muted); margin-top:3px; }
.tl-type { font-family: var(--ff-mono); font-size:11px; color: var(--ink-2); background: var(--bg-alt); border:1px solid var(--line); padding:4px 10px; border-radius:999px; white-space:nowrap; }
.tl-meta { font-family: var(--ff-mono); font-size:12.5px; color: var(--muted-2); margin-top:14px; }
.tl-desc { font-size:15px; color: var(--ink-2); margin-top:10px; margin-bottom:0; line-height:1.6; }
.tl-desc .loop-text { color: var(--accent); font-weight: 540; }
.loop-caret { display:inline-block; width:8px; height:1.02em; background: var(--accent); margin-left:2px; transform: translateY(2px); animation: blink 1.1s step-end infinite; }
@media (prefers-reduced-motion: reduce) { .loop-caret { display:none; } }
@media (max-width: 560px) {
  .timeline::before { left: 7px; }
  .tl-item { grid-template-columns: 1fr; gap: 0; padding-left: 30px; }
  .tl-item:not(:last-child){ margin-bottom: 22px; }
  .tl-year { text-align:left; padding-top:0; margin-bottom:10px; }
  .tl-dot { left: 1px; top: 5px; }
  .tl-card__head { flex-wrap:wrap; }
}

/* ==========================================================================
   Projects
   ========================================================================== */
.proj-grid { display:grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.proj {
  position: relative; background:#fff; border:1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; overflow:hidden;
}
.proj:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.proj__icon { width: 50px; height:50px; border-radius: 12px; background: var(--accent-soft); display:flex; align-items:center; justify-content:center; margin-bottom: 20px; }
.proj__icon svg { width: 26px; height:26px; color: var(--accent); }
.proj h3 { font-family: var(--ff-sans); font-size: 20px; font-weight: 600; display:flex; align-items:center; gap:10px; }
.proj h3 .tag { font-family: var(--ff-mono); font-size: 11px; color: var(--muted); border:1px solid var(--line-2); padding:2px 8px; border-radius: 999px; font-weight:500; }
.proj p { color: var(--muted); font-size: 15.5px; margin-top: 12px; }
.proj__link { margin-top: 18px; display:inline-flex; align-items:center; gap:7px; font-size: 14.5px; font-weight:540; color: var(--accent); }
.proj__link svg { width:15px; height:15px; transition: transform .18s ease; }
.proj:hover .proj__link svg { transform: translate(2px,-2px); }

/* ==========================================================================
   Writing
   ========================================================================== */
.posts { display:grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post {
  display:flex; flex-direction:column; background:#fff; border:1px solid var(--line);
  border-radius: var(--radius); overflow:hidden; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.post:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--line-2); }
.post__cover { height: 138px; position: relative; overflow:hidden; display:flex; align-items:flex-end; padding: 16px; }
.post__cover img { position:absolute; inset:0; width:100%; height:100%; object-fit: cover; }
/* full-photo cover: keep the standard card height, fit the whole image (board + Flipper) inside */
.post__cover.is-photo { background: linear-gradient(135deg, #0e1b33 0%, #24407e 100%); }
.post__cover.is-photo img { object-fit: contain; }
.post__cover.gradient { background: linear-gradient(135deg, var(--ink) 0%, #24407e 100%); }
.post__cover.gradient.alt2 { background: linear-gradient(135deg, #143a6b 0%, #2a5bd7 100%); }
.post__cover.gradient.alt3 { background: linear-gradient(135deg, #1a2a4a 0%, #3a6ea5 100%); }
.post__cover.gradient.alt4 { background: linear-gradient(135deg, #0e1b33 0%, #4b3f8f 100%); }
.post__cover .ico { position: relative; z-index:1; width: 46px; height:46px; border-radius: 12px; background: rgba(255,255,255,.14); backdrop-filter: blur(4px); display:flex; align-items:center; justify-content:center; border:1px solid rgba(255,255,255,.22); }
.post__cover .ico svg { width: 24px; height:24px; color:#fff; }
.post__body { padding: 22px 24px 26px; display:flex; flex-direction:column; flex:1; }
.post__meta { display:flex; align-items:center; gap:10px; font-family: var(--ff-mono); font-size: 12px; color: var(--muted); margin-bottom: 12px; flex-wrap:wrap; }
.post__tag { color: var(--accent); border:1px solid var(--accent-soft); background: var(--accent-soft); padding: 2px 9px; border-radius: 999px; font-weight: 600; }
.post h3 { font-family: var(--ff-serif); font-size: 21px; font-weight: 560; line-height: 1.22; }
.post p { color: var(--muted); font-size: 15px; margin-top: 12px; }
.post__more { margin-top: auto; padding-top: 16px; font-size: 14px; font-weight: 540; color: var(--ink); display:flex; align-items:center; gap:7px; }
.post:hover .post__more { color: var(--accent); }
.post__more svg { width:15px; height:15px; transition: transform .18s ease; }
.post:hover .post__more svg { transform: translateX(3px); }

/* card footer: byline on the left, read-more on the right, one row */
.post__foot { margin-top: auto; padding-top: 18px; display:flex; align-items:center; justify-content: space-between; gap: 12px; }
.post__foot .post__more { margin-top: 0; padding-top: 0; flex:0 0 auto; }
.post__author { display:flex; align-items:center; gap: 9px; min-width: 0; }
.post__author img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border:1px solid var(--line-2); flex:0 0 auto; }
.post__author span { font-family: var(--ff-sans); font-size: 13px; font-weight: 560; color: var(--ink); white-space: nowrap; }

/* coming-soon cards */
.post--soon { cursor: default; }
.post--soon:hover { transform: none; box-shadow: none; border-color: var(--line); }
.post--soon h3 { color: var(--ink); }
.post__soon { position:absolute; top: 14px; left: 14px; z-index:1; font-family: var(--ff-sans); font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color:#fff; background: rgba(255,255,255,.16); border:1px solid rgba(255,255,255,.3); padding: 5px 11px; border-radius: 999px; backdrop-filter: blur(4px); }

/* view more toggle */
.posts.is-collapsed .post:nth-child(n+7) { display: none; }
.blogs-more { display:flex; justify-content:center; margin-top: 34px; }
.blogs-more__btn { display:inline-flex; align-items:center; gap: 9px; padding: 12px 24px; border-radius: 999px; border:1px solid var(--line-2); background:#fff; color: var(--ink); font-family: var(--ff-sans); font-weight: 560; font-size: 15px; cursor:pointer; transition: border-color .18s ease, color .18s ease, background .18s ease; }
.blogs-more__btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.blogs-more__btn svg { width: 17px; height: 17px; transition: transform .2s ease; }
.blogs-more__btn.is-open svg { transform: rotate(180deg); }

/* ==========================================================================
   Contact / CTA
   ========================================================================== */
.cta { position: relative; overflow:hidden; }
.cta__card {
  background: var(--ink); color:#fff; border-radius: 24px; padding: 46px 48px; position: relative; overflow:hidden;
}
.cta__card::before { content:""; position:absolute; inset:0; background: radial-gradient(700px 320px at 88% -20%, rgba(42,91,215,.55) 0%, rgba(42,91,215,0) 60%); }
.cta__card::after { content:""; position:absolute; right:-60px; bottom:-80px; width: 280px; height:280px; border-radius:50%; border:1px solid rgba(255,255,255,.1); }
.cta__inner { position: relative; z-index:1; display:grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.cta__card .eyebrow { color: #aebfe0; }
.cta__card h2 { color:#fff; font-size: clamp(30px, 4vw, 44px); }
.cta__card p { color: rgba(255,255,255,.74); font-size: 18px; margin-top: 16px; max-width: 480px; }
.cta__actions, .cta__options { display:flex; flex-direction:column; gap: 13px; }
.cta__options .btn { width:100%; justify-content:flex-start; }
.cta__actions .btn--primary, .cta__options .btn--primary { background:#fff; color: var(--ink); }
.cta__actions .btn--primary:hover, .cta__options .btn--primary:hover { background: var(--accent); color:#fff; }
.cta__actions .btn--ghost, .cta__options .btn--ghost { color:#fff; border-color: rgba(255,255,255,.28); }
.cta__actions .btn--ghost:hover, .cta__options .btn--ghost:hover { border-color:#fff; background: rgba(255,255,255,.08); }

/* contact method cards */
.cta__methods { display:flex; flex-direction:column; gap: 14px; }
.method-card {
  display:flex; align-items:center; gap: 16px; width:100%; text-align:left;
  padding: 16px 18px; border-radius: 16px; cursor:pointer;
  background: rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.13);
  color:#fff; font-family: var(--ff-sans);
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.method-card:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.35); transform: translateY(-2px); }
.method-card__icon {
  flex:0 0 auto; width: 44px; height: 44px; border-radius: 12px;
  display:grid; place-items:center;
  background: rgba(42,91,215,.28); border:1px solid rgba(255,255,255,.14);
}
.method-card__icon svg { width: 21px; height: 21px; color:#dbe5fb; }
.method-card__text { display:flex; flex-direction:column; gap:3px; min-width:0; }
.method-card__title { font-size: 16px; font-weight: 600; color:#fff; line-height:1.2; }
.method-card__desc { font-size: 13px; color: rgba(255,255,255,.6); line-height:1.3; }
.method-card__arrow { flex:0 0 auto; width: 19px; height: 19px; margin-left:auto; color: rgba(255,255,255,.5); transition: transform .18s ease, color .18s ease; }
.method-card:hover .method-card__arrow { transform: translateX(4px); color:#fff; }

/* contact: options <-> message form */
.cta__form { display:block; }
/* message popup */
.modal { position: fixed; inset: 0; z-index: 300; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal.open { display: flex; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(8,13,28,.6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.modal__dialog { position: relative; z-index: 1; width: 100%; max-width: 460px; max-height: 90vh; overflow-y: auto; background: #fff; border-radius: 20px; padding: 30px 28px 26px; box-shadow: var(--shadow-lg); animation: modalIn .26s cubic-bezier(.2,.7,.2,1); }
@keyframes modalIn { from { opacity:0; transform: translateY(14px) scale(.98); } to { opacity:1; transform:none; } }
.modal__close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--muted); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .15s ease, color .15s ease; }
.modal__close svg { width: 18px; height: 18px; }
.modal__close:hover { background: var(--bg-alt); color: var(--ink); }
.modal__title { font-family: var(--ff-serif); font-size: 25px; color: var(--ink); }
.modal__sub { color: var(--muted); font-size: 15px; margin: 7px 0 20px; max-width: 92%; }
@media (prefers-reduced-motion: reduce) { .modal__dialog { animation: none; } }
.cta__back { background:none; border:0; padding:0; cursor:pointer; font-family: var(--ff-sans); font-size: 13px; font-weight: 540; color: var(--muted); display:inline-flex; align-items:center; gap:6px; margin-bottom: 16px; transition: color .15s ease; }
.cta__back svg { width:15px; height:15px; }
.cta__back:hover { color: var(--accent); }
.cform-status { display:none; font-size: 13.5px; line-height:1.45; margin: 0 0 14px; border-radius: 9px; }
.cform-status.show { display:block; padding: 10px 13px; }
.cform-status.ok { background:#eafaf1; color:#1c7a47; border:1px solid #cdeedd; }
.cform-status.err { background:#fdeceb; color:#a02016; border:1px solid #f6d4d1; }
.cform-hp { position:absolute; left:-9999px; width:1px; height:1px; opacity:0; }
.cform-label { display:block; margin-bottom: 13px; }
.cform-label > span { display:block; font-size: 13px; font-weight: 540; color: var(--ink); margin-bottom: 6px; }
.cform-input { width:100%; padding: 11px 13px; border:1px solid var(--line-2); border-radius: 10px; font-family: var(--ff-sans); font-size: 15px; color: var(--ink); background: var(--bg-alt); transition: border-color .15s ease, box-shadow .15s ease, background .15s ease; }
.cform-input::placeholder { color: var(--muted-2); }
.cform-input:focus { outline:none; border-color: var(--accent); background:#fff; box-shadow: 0 0 0 3px var(--accent-soft); }
.cform-textarea { display:block; min-height: 100px; resize: vertical; line-height: 1.5; }
.cform-submit { width:100%; justify-content:center; }
.grecaptcha-badge { visibility: hidden; }
.cform-legal { font-size: 12px; line-height: 1.55; color: var(--muted); margin: 16px 0 0; }
.cform-legal a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
.cform-legal a:hover { color: var(--accent); }

/* schedule (Calendly) */
.schedule { position: relative; z-index:1; margin-top: 22px; background:#fff; border:1px solid var(--line); border-radius: 24px; padding: 16px 16px 8px; box-shadow: var(--shadow-md); }
.schedule__head { padding: 22px 20px 4px; text-align:center; max-width: 560px; margin: 0 auto; }
.schedule__head h3 { font-size: clamp(24px, 3vw, 30px); margin-top: 8px; }
.schedule__sub { color: var(--muted); margin-top: 10px; font-size: 16px; }
.calendly-inline-widget { border-radius: 16px; overflow: hidden; }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { background:#fff; border-top: 1px solid var(--line); padding: 40px 0 30px; }
.footer__top { display:flex; justify-content: space-between; align-items:flex-start; gap: 40px; flex-wrap:wrap; }
.footer__brand { max-width: 320px; }
.footer__brand .brand { margin-bottom: 14px; }
.footer__brand p { color: var(--muted); font-size: 14.5px; }
.footer__cols { display:flex; gap: 64px; flex-wrap:wrap; }
.footer__col h4 { font-family: var(--ff-sans); font-size: 13px; text-transform: uppercase; letter-spacing:.1em; color: var(--muted-2); font-weight:600; margin-bottom: 14px; }
.footer__col a { display:block; color: var(--ink-2); font-size: 15px; padding: 5px 0; transition: color .15s ease; }
.footer__col a:hover { color: var(--accent); }
.footer__bottom { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); display:flex; justify-content: space-between; align-items:center; gap: 18px; flex-wrap:wrap; }
.footer__bottom p { margin:0; color: var(--muted); font-size: 13.5px; }
.socials { display:flex; gap: 10px; }
.socials a { width: 38px; height:38px; border-radius: 10px; border:1px solid var(--line); display:flex; align-items:center; justify-content:center; color: var(--ink-2); transition: all .18s ease; }
.socials a:hover { color:#fff; background: var(--ink); border-color: var(--ink); transform: translateY(-2px); }
.socials svg { width: 18px; height:18px; }

/* ==========================================================================
   Reveal animation
   ========================================================================== */
.reveal { transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.js .reveal { opacity: 0; transform: translateY(22px); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .07s; }
.reveal[data-d="2"] { transition-delay: .14s; }
.reveal[data-d="3"] { transition-delay: .21s; }
.reveal[data-d="4"] { transition-delay: .28s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity:1 !important; transform:none !important; }
  html { scroll-behavior: auto; }
  .hero__role .cursor { animation: none; }
}

/* ==========================================================================
   Article / Blog
   ========================================================================== */
.article-hero { padding: 64px 0 8px; background:
  radial-gradient(900px 380px at 80% -10%, var(--accent-soft) 0%, rgba(234,240,252,0) 60%); border-bottom: 1px solid var(--line); }
.article-hero .wrap { max-width: 820px; }
.back-link { display:inline-flex; align-items:center; gap:8px; font-size:14.5px; color: var(--muted); font-weight:500; margin-bottom: 26px; transition: color .15s ease; }
.back-link:hover { color: var(--accent); }
.back-link svg { width:16px; height:16px; }
.article-tag { display:inline-block; font-family: var(--ff-mono); font-size:12px; letter-spacing:.06em; color: var(--accent); background: var(--accent-soft); border:1px solid #d8e4fb; padding:5px 12px; border-radius:999px; font-weight:600; }
.article-hero h1 { font-size: clamp(32px, 5vw, 52px); line-height:1.08; margin: 22px 0 18px; letter-spacing:-0.02em; }
.article-meta { display:flex; flex-wrap:wrap; gap: 8px 22px; color: var(--muted); font-size: 14.5px; padding-bottom: 40px; }
.article-meta span { display:flex; align-items:center; gap:8px; }
.article-meta svg { width:16px; height:16px; color: var(--accent); }
.article-meta .author { display:flex; align-items:center; gap:10px; font-weight:540; color: var(--ink-2); }
.article-meta .author img { width:30px; height:30px; border-radius:50%; object-fit:cover; }

.article-figure { max-width: 760px; margin: 30px auto 4px; padding: 0 28px; }
.article-figure img { width:100%; max-height: 340px; object-fit: contain; border:1px solid var(--line); border-radius: 16px; background: var(--bg-alt); display:block; }
.article-figure figcaption { text-align:center; font-size:12.5px; color: var(--muted); margin-top: 12px; font-family: var(--ff-mono); letter-spacing:.02em; }
.article-body figure.inline-fig { margin: 1.9em 0; }
.article-body figure.inline-fig img { display:block; max-width:100%; max-height: 480px; width:auto; margin:0 auto; border:1px solid var(--line); border-radius: 14px; background: var(--bg-alt); }
.article-body figure.inline-fig figcaption { text-align:center; font-size:13px; color: var(--muted); margin-top:10px; font-family: var(--ff-mono); }
.video-embed { position:relative; padding-top:56.25%; margin:1.9em 0; border-radius:14px; overflow:hidden; border:1px solid var(--line); background:#000; }
.video-embed iframe { position:absolute; inset:0; width:100%; height:100%; border:0; }

.article-body { padding: 56px 0 40px; }
.article-body .wrap { max-width: 720px; }
.article-body p { font-size: 18.5px; line-height: 1.75; color: var(--ink-2); margin: 0 0 1.4em; }
.article-body .lead { font-size: 22px; font-family: var(--ff-serif); color: var(--ink); line-height:1.5; margin-bottom: 1.2em; }
.article-body h2 { font-size: 28px; margin: 1.8em 0 .6em; letter-spacing:-0.01em; }
.article-body h3 { font-size: 21px; font-family: var(--ff-sans); font-weight:600; margin: 1.6em 0 .4em; }
.article-body ul.bul { margin: 0 0 1.6em; padding: 0; }
.article-body ul.bul li { position: relative; padding: 8px 0 8px 30px; font-size: 18px; color: var(--ink-2); border-top: 1px solid var(--line); }
.article-body ul.bul li:first-child { border-top: 0; }
.article-body ul.bul li::before { content:""; position:absolute; left:4px; top:17px; width:8px; height:8px; border-radius:2px; background: var(--accent); }
.article-body ol { margin: 0 0 1.6em; padding-left: 1.35em; }
.article-body ol li { font-size: 18px; line-height: 1.7; color: var(--ink-2); margin: 0 0 .55em; padding-left: 6px; }
.article-body ol li::marker { color: var(--accent); font-weight: 600; }
.article-body code { font-family: var(--ff-mono); font-size: 0.86em; background: var(--bg-tint); border:1px solid var(--line); padding: 2px 7px; border-radius: 6px; color: var(--accent-ink); }
.article-body pre { background: #0e1b33; color: #e7ecf5; border: 1px solid #1c2c4d; border-radius: 12px; padding: 18px 20px; margin: 1.5em 0; overflow-x: auto; line-height: 1.6; font-size: 13px; -webkit-overflow-scrolling: touch; }
.article-body pre code { display: block; font-family: var(--ff-mono); font-size: 13px; background: none; border: 0; padding: 0; color: inherit; white-space: pre; border-radius: 0; }
.article-body blockquote {
  margin: 1.6em 0; padding: 18px 26px; border-left: 3px solid var(--accent);
  background: var(--bg-alt); border-radius: 0 12px 12px 0; font-family: var(--ff-serif);
  font-size: 20px; font-style: italic; color: var(--ink);
}
.callout {
  display:flex; gap: 16px; align-items:flex-start; margin: 1.8em 0; padding: 20px 22px;
  background: var(--accent-soft); border:1px solid #d8e4fb; border-radius: 14px;
}
.callout svg { width:22px; height:22px; color: var(--accent); flex:0 0 22px; margin-top:2px; }
.callout p { margin:0; font-size: 16px; color: var(--ink-2); }
.callout strong { color: var(--ink); }
.sig { margin-top: 2.4em; padding-top: 1.6em; border-top: 1px solid var(--line); font-family: var(--ff-mono); font-size: 14px; color: var(--muted); }
.sig .ps { font-family: var(--ff-serif); font-style: italic; font-size: 19px; color: var(--ink); }

.article-foot { background: var(--bg-alt); border-top: 1px solid var(--line); padding: 56px 0; }
.article-foot .wrap { max-width: 820px; }
.article-foot h3 { font-size: 24px; margin-bottom: 22px; }
.next-posts { display:grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.next-post { display:flex; flex-direction:column; gap:6px; background:#fff; border:1px solid var(--line); border-radius:12px; padding: 20px 22px; transition: border-color .18s ease, transform .18s ease; }
.next-post:hover { border-color: var(--accent); transform: translateY(-3px); }
.next-post .k { font-family: var(--ff-mono); font-size:11.5px; letter-spacing:.08em; text-transform:uppercase; color: var(--muted-2); }
.next-post .t { font-family: var(--ff-serif); font-size: 18px; color: var(--ink); line-height:1.25; }

@media (max-width: 560px) {
  .article-body p, .article-body ul.bul li, .article-body ol li { font-size: 17px; }
  .next-posts { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .hero__media { order: -1; justify-self: start; }
  .about__grid { grid-template-columns: 1fr; gap: 38px; }
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
  .cta__inner { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 820px) {
  .nav__links, .nav__cta .btn { display: none; }
  .nav__toggle { display: flex; }
  .nav.open .nav__links {
    display: flex; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column;
    gap: 0; background:#fff; border-bottom: 1px solid var(--line); padding: 8px 28px 20px; box-shadow: var(--shadow-md);
  }
  .nav.open .nav__links a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(odd) { border-left: 0; }
  .stat { border-top: 1px solid var(--line); }
  .stat:nth-child(1), .stat:nth-child(2) { border-top: 0; }
  .posts { grid-template-columns: 1fr; }
  .cve { grid-template-columns: 1fr; gap: 12px; }
  .cve__link { white-space: normal; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 46px 0; }
  .wrap { padding: 0 20px; }
  .cert-grid { grid-template-columns: 1fr; }
  .proj-grid { grid-template-columns: 1fr; }
  .cta__card { padding: 40px 26px; }
  .portrait__badge { left: 0; }
}
