/* =========================================================
   Peter Asirvatham — site stylesheet (Flight Path)
   One consolidated stylesheet. Palette + type are locked:
   navy #003655 · ice rgb(236,241,250) · accent #5f88e0 · ink #01143e
   Montserrat 400/500/600/700 only.
   ========================================================= */
/* Metric-matched fallback shown only until Montserrat arrives (prevents layout shift on swap). */
@font-face { font-family: "Montserrat Fallback"; font-weight: 400 600; src: local("Arial"), local("ArialMT"), local("Liberation Sans"), local("Helvetica"); size-adjust: 112.5%; ascent-override: 86%; descent-override: 22.3%; line-gap-override: 0%; }
@font-face { font-family: "Montserrat Fallback"; font-weight: 700; src: local("Arial Bold"), local("Arial-BoldMT"), local("Liberation Sans Bold"), local("Helvetica Bold"); size-adjust: 110.2%; ascent-override: 87.8%; descent-override: 22.8%; line-gap-override: 0%; }
:root {
  --navy: #003655;
  --ice: rgb(236, 241, 250);
  --accent: #5f88e0;
  --ink: #01143e;
  /* channels for alpha tints (same hues) */
  --navy-rgb: 0 54 85;
  --ice-rgb: 236 241 250;
  --accent-rgb: 95 136 224;
  --ink-rgb: 1 20 62;
  /* derived shades (mixes of the palette only) */
  --accent-deep: color-mix(in oklab, var(--accent) 58%, var(--ink));   /* accent text on light */
  --accent-soft: color-mix(in oklab, var(--accent) 55%, var(--ice));   /* accent text on navy */
  --navy-deep: color-mix(in oklab, var(--navy) 55%, var(--ink));
  --white: color-mix(in srgb, var(--ice) 35%, #fff);
  --text: var(--ink);
  --muted: rgb(var(--ink-rgb) / 0.74);
  --font: "Montserrat", "Montserrat Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --maxw: 1200px;
  --gutter: clamp(18px, 4vw, 40px);
  --radius: 18px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header-h: 76px;
}
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; font-family: var(--font); font-weight: 400; font-size: 16px; line-height: 1.65; color: var(--text); background: var(--ice); overflow-x: clip; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
img { height: auto; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 1000; background: var(--ink); color: var(--ice); padding: 10px 16px; border-radius: 10px; font-weight: 600; transition: top .2s; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.is-soon { opacity: .8; font-style: italic; }
.blog-info time:empty, .blog-info:empty { display: none; }

/* ---------- shared header / nav mechanics ---------- */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; }
.nav-wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; }
.brand-logo { width: 87px; height: 87px; max-width: none; margin: calc((var(--header-h) - 87px) / 2 - 2px) 0 calc((var(--header-h) - 87px) / 2 + 2px); }
.site-nav ul { display: flex; gap: clamp(12px, 3vw, 36px); }
.site-nav a { font-weight: 600; font-size: 15px; letter-spacing: .02em; position: relative; padding: 6px 2px; }
.nav-toggle { display: none; }
@media (max-width: 820px) {
  :root { --header-h: 64px; }
  .brand-logo { width: 72px; height: 72px; margin: calc((var(--header-h) - 72px) / 2 - 2px) 0 calc((var(--header-h) - 72px) / 2 + 2px); }
  .nav-toggle { display: inline-grid; place-content: center; gap: 5px; width: 44px; height: 44px; border-radius: 12px; cursor: pointer; border: 1px solid rgb(var(--ice-rgb) / .35); background: rgb(var(--ink-rgb) / .35); color: var(--ice); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
  .nav-toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .35s var(--ease), opacity .2s; }
  .nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  .nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .site-nav { position: absolute; left: 12px; right: 12px; top: calc(100% + 6px); padding: 8px; border-radius: 18px; background: rgb(var(--ink-rgb) / .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 24px 60px rgb(var(--ink-rgb) / .35); opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.98); transform-origin: top right; transition: opacity .3s var(--ease), transform .35s var(--ease), visibility 0s .35s; }
  .nav-open .site-nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .site-nav ul { flex-direction: column; gap: 2px; }
  .site-nav a { display: block; padding: 14px 16px; border-radius: 12px; color: var(--ice) !important; font-size: 17px; }
  .site-nav a.active, .site-nav a:hover { background: rgb(var(--accent-rgb) / .22); }
  .site-nav a::before, .site-nav a::after { display: none !important; }
}

/* ---------- global reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0s !important; transition-delay: 0s !important; }
}

/* =========================================================
   A · FLIGHT PATH
   A dotted flight path that draws itself as you scroll,
   linking every section; kinetic hero type; timeline that
   draws with the reader.
   ========================================================= */
.fp { --paper: var(--white); --card-shadow: 0 1px 0 rgb(var(--ink-rgb) / .04), 0 18px 40px -18px rgb(var(--navy-rgb) / .28); }

/* ---------- header ---------- */
.fp .site-header { color: var(--ice); transition: background-color .4s var(--ease), color .4s var(--ease), box-shadow .4s; }
.fp .site-header.is-scrolled { background: rgb(var(--ice-rgb) / .82); color: var(--ink); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); box-shadow: 0 10px 30px -20px rgb(var(--ink-rgb) / .5); }
.fp .site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.fp .site-nav a:hover::after, .fp .site-nav a.active::after { transform: scaleX(1); transform-origin: left; }
.fp .is-scrolled .nav-toggle { color: var(--ink); background: rgb(var(--ice-rgb) / .7); border-color: rgb(var(--ink-rgb) / .15); }

/* flight progress: the plane crosses the header as you read */
.flight-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 14px; pointer-events: none; display: none; }
.fp-track { position: absolute; inset: 6px 0 auto 0; height: 2px; background: radial-gradient(circle, rgb(var(--accent-rgb) / .55) 1px, transparent 1.6px) 0 50% / 8px 2px repeat-x; }
.fp-fill { position: absolute; inset: 6px 0 auto 0; height: 2px; background: var(--accent); transform-origin: left; transform: scaleX(0); }
.fp-plane { position: absolute; top: -4px; left: 0; color: var(--accent); filter: drop-shadow(0 2px 3px rgb(var(--ink-rgb) / .35)); }
@supports (animation-timeline: scroll()) {
  .flight-progress { display: block; }
  .fp-fill { animation: fp-fill linear both; animation-timeline: scroll(root); }
  .fp-plane { animation: fp-plane linear both; animation-timeline: scroll(root); }
}
@keyframes fp-fill { to { transform: scaleX(1); } }
@keyframes fp-plane { from { left: -4px; } to { left: calc(100% - 28px); } }

/* ---------- hero ---------- */
.fp .hero { position: relative; min-height: 100svh; background: var(--navy); color: var(--ice); overflow: hidden; display: grid; align-items: end; isolation: isolate; }
.hero-art { position: absolute; left: 50%; top: 44%; width: max(100%, calc(100svh * 11 / 7)); aspect-ratio: 11 / 7; transform: translate(-50%, -50%); z-index: -1; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-trails { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ht-trail { fill: none; stroke: var(--ice); stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 0 11; opacity: .85; }
.ht-draw { fill: none; stroke: #fff; stroke-width: 16; stroke-dasharray: 1; stroke-dashoffset: 0; }
.fp .hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 55%; z-index: -1; background: linear-gradient(to top, rgb(var(--navy-rgb) / .96) 12%, rgb(var(--navy-rgb) / 0)); }
.fp .hero-inner { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter) clamp(72px, 12vh, 120px); }
.fp .hero-kicker { font-weight: 500; font-size: clamp(1rem, 1.6vw, 1.25rem); letter-spacing: .04em; color: var(--accent-soft); display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.fp .hero-kicker::before { content: ""; width: 46px; height: 2px; background: radial-gradient(circle, var(--accent-soft) 1.2px, transparent 1.8px) 0 50% / 8px 2px repeat-x; }
.fp .hero-name { font-weight: 700; font-size: clamp(0.9375rem, 2.325vw, 2.025rem); line-height: 1.02; letter-spacing: -.02em; white-space: nowrap; /* full name always on one line */ }
.fp .hero-name .word { display: inline-block; white-space: nowrap; }
.fp .hero-name .word:nth-child(4) { color: var(--accent-soft); }
.fp .ch { display: inline-block; transition: transform .5s var(--ease); }
.fp .ch:hover { transform: translateY(-.08em); }
.hero-scroll { position: absolute; left: 50%; bottom: 26px; translate: -50% 0; width: 26px; height: 42px; border: 2px solid rgb(var(--ice-rgb) / .6); border-radius: 14px; }
.hero-scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--ice); animation: nudge 1.8s var(--ease) infinite; }
@keyframes nudge { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

@media (prefers-reduced-motion: no-preference) {
  .ht-draw { stroke-dashoffset: 1; animation: draw 1.6s var(--ease) forwards; }
  .ht-d1 { animation-delay: .5s; }
  .ht-d2 { animation-delay: 1.3s; animation-duration: 1.2s; }
  .fp .ch { animation: ch-in .9s var(--ease) backwards; animation-delay: calc(var(--c) * 26ms + 120ms); }
  .fp .hero-kicker { animation: fade-up .8s var(--ease) both .05s; }
  .hero-art img { animation: drift 16s ease-in-out infinite alternate; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes ch-in { from { transform: translateY(.32em) rotate(6deg); opacity: .2; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } }
@keyframes drift { to { transform: translate3d(-1.2%, -1.6%, 0) scale(1.03); } }
/* hero lifts off as you scroll away */
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .fp .hero-inner { animation: lift linear both; animation-timeline: scroll(root); animation-range: 0 90vh; }
    .hero-art { animation: art-away linear both; animation-timeline: scroll(root); animation-range: 0 100vh; }
  }
}
@keyframes lift { to { transform: translateY(-12vh); opacity: 0; } }
@keyframes art-away { to { transform: translate(-46%, -62%) scale(1.08); opacity: .45; } }

/* ---------- section shells ---------- */
.fp main > section, .fp .block { position: relative; }
.fp .about, .fp .portfolio, .fp .blogs { padding: clamp(40px, 7vw, 90px) var(--gutter); }
.fp .portfolio-inner, .fp .about-grid, .fp .blogs-head, .fp .blog-rail { max-width: var(--maxw); margin: 0 auto; }
.fp .section-title { text-align: center; font-weight: 700; font-size: clamp(1.6rem, 3.2vw, 2.3rem); color: var(--navy); letter-spacing: -.01em; margin-bottom: clamp(24px, 4vw, 40px); display: flex; flex-direction: column; align-items: center; gap: 12px; }
/* waypoint marker above every title */
.fp .section-title::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px rgb(var(--accent-rgb) / .18), 0 0 0 12px rgb(var(--accent-rgb) / .08); }

/* flight segments */
.flight-seg { max-width: 860px; margin: -18px auto; padding: 0 var(--gutter); pointer-events: none; }
.flight-seg svg { width: 100%; height: auto; overflow: visible; }
.seg-ghost { fill: none; stroke: rgb(var(--accent-rgb) / .22); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 0 12; }
.seg-trail { fill: none; stroke: var(--accent); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 0 12; }
.seg-draw { fill: none; stroke: #fff; stroke-width: 22; stroke-dasharray: 1; stroke-dashoffset: 0; }
.seg-node { fill: var(--accent); }
.seg-plane { color: var(--navy); offset-rotate: auto; offset-distance: 100%; opacity: 0; }
.seg-plane svg { overflow: visible; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .seg-draw { animation: seg-draw linear both; animation-timeline: view(); animation-range: entry 60% exit 35%; }
    .seg-plane { animation: seg-fly linear both; animation-timeline: view(); animation-range: entry 60% exit 35%; }
    .seg-node { animation: node-pop linear both; animation-timeline: view(); animation-range: entry 60% exit 35%; }
  }
}
@keyframes seg-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes seg-fly { 0% { offset-distance: 0%; opacity: 1; } 88% { opacity: 1; } 100% { offset-distance: 100%; opacity: 0; } }
@keyframes node-pop { 0%, 85% { transform: scale(0); } 100% { transform: scale(1); } }
.seg-node { transform-box: fill-box; transform-origin: center; }
/* the dark CTA/tech sections get light trails */
.fp .flight-seg:has(+ .cta) .seg-plane { color: var(--navy); }

/* generic scroll reveal */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .fp .card, .fp .about-photo, .fp .about-text { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(46px) scale(.98); } }

.fp .card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--card-shadow); border: 1px solid rgb(var(--navy-rgb) / .07); }

/* ---------- about ---------- */
.fp .about { background: var(--white); }
.fp .about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.fp .about-photo { position: relative; aspect-ratio: 1; border-radius: 50%; isolation: isolate; }
.fp .about-photo::before { content: ""; position: absolute; inset: -18px; border-radius: 50%; border: 2px dotted rgb(var(--accent-rgb) / .7); z-index: -1; animation: orbit 40s linear infinite; }
.fp .about-photo::after { content: ""; position: absolute; top: -26px; left: 50%; width: 22px; height: 22px; margin-left: -11px; background: var(--accent); clip-path: polygon(0 45%, 100% 0, 70% 100%, 50% 60%); transform-origin: 11px calc(50% + 26px + 11px); }
.fp .about-img { display: block; width: 100%; height: 100%; border-radius: 50%; overflow: hidden; object-fit: cover; object-position: 50% 0%; }
@keyframes orbit { to { transform: rotate(360deg); } }
.fp .about-name { font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2rem); color: var(--navy); margin-bottom: 18px; line-height: 1.2; }
.fp .about-copy p { color: var(--muted); font-size: 1.05rem; margin-bottom: 14px; max-width: 62ch; }
.fp .about-copy p:first-child { color: var(--ink); font-weight: 500; font-size: 1.14rem; border-left: 3px solid var(--accent); padding-left: 16px; }

/* social */
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--navy); color: var(--ice); transition: transform .35s var(--ease), background-color .35s; }
.social svg { fill: currentColor; }
.social a:hover { transform: translateY(-3px) rotate(-4deg); background: var(--accent-deep); }

/* ---------- portfolio ---------- */
.fp .portfolio { background: var(--ice); }
.fp .profile-card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px 32px; padding: clamp(20px, 3vw, 32px); margin-bottom: 8px; }
.fp .profile-photo { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 4px var(--white), 0 0 0 6px var(--accent); }
.fp .profile-name { font-weight: 700; font-size: clamp(1.25rem, 2.2vw, 1.7rem); color: var(--navy); line-height: 1.2; }
.fp .profile-role { color: var(--accent-deep); font-weight: 600; margin-top: 4px; }
.fp .profile-details { border-left: 2px dotted rgb(var(--accent-rgb) / .6); padding-left: 28px; }
.fp .profile-detail { color: var(--muted); font-weight: 500; }
.fp .profile-detail a:hover { color: var(--accent-deep); }
.fp .profile-details .social { margin-top: 10px; }

.summary-grid, .skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(16px, 2vw, 24px); counter-reset: sc; }
.fp .summary-card { padding: 28px 28px 24px; counter-increment: sc; position: relative; overflow: hidden; }
.fp .summary-card::before { content: "0" counter(sc); position: absolute; right: 18px; top: 8px; font-weight: 700; font-size: 3.4rem; line-height: 1; color: rgb(var(--accent-rgb) / .14); }
.fp .summary-card h3 { font-weight: 700; font-size: 1.08rem; color: var(--navy); margin-bottom: 14px; padding-right: 64px; }
.fp .summary-card li, .fp .role-points li { position: relative; padding-left: 22px; color: var(--muted); margin-bottom: 10px; font-size: .97rem; }
.fp .summary-card li::before, .fp .role-points li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 7px; height: 7px; border-radius: 50%; border: 2px solid var(--accent); top: .58em; }
.fp .skill-card { padding: 28px; }
.fp .skill-card h3 { font-weight: 700; font-size: 1.15rem; color: var(--navy); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.fp .skill-card h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgb(var(--accent-rgb) / .2); }
.skill-row { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 4px 16px; padding: 10px 0; border-top: 1px dashed rgb(var(--navy-rgb) / .14); }
.skill-row dt { font-weight: 600; font-size: .9rem; color: var(--accent-deep); }
.skill-row dd { font-size: .93rem; color: var(--ink); }
.fp .cert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 18px; }
.fp .cert-card { display: flex; gap: 18px; align-items: center; padding: 18px 20px; transition: transform .45s var(--ease), box-shadow .45s; }
.fp .cert-card:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -24px rgb(var(--navy-rgb) / .45); }
.fp .cert-badge { width: 84px; height: 84px; flex: none; object-fit: contain; }
.fp .cert-body h3 { font-weight: 700; font-size: .98rem; color: var(--navy); line-height: 1.35; margin-bottom: 6px; }
.fp .cert-id, .fp .cert-verify { font-size: .8rem; color: var(--muted); overflow-wrap: anywhere; }
.fp .cert-verify a { color: var(--accent-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- timeline (draws with you) ---------- */
.timeline-wrap { position: relative; }
.fp .timeline { position: relative; display: grid; gap: 34px; }
.timeline-line { position: absolute; left: 216px; top: 6px; bottom: 6px; width: 3px; background: radial-gradient(circle, rgb(var(--accent-rgb) / .35) 1.3px, transparent 1.8px) 50% 0 / 3px 10px repeat-y; }
.timeline-line span { position: absolute; inset: 0; background: linear-gradient(var(--accent), var(--navy)); border-radius: 3px; transform-origin: top; }
.fp .job { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 0 48px; position: relative; }
.fp .job::before { content: ""; position: absolute; left: 209px; top: 6px; width: 17px; height: 17px; border-radius: 50%; background: var(--ice); border: 3px solid var(--accent); box-shadow: 0 0 0 5px var(--ice); z-index: 1; }
.fp .job-meta { text-align: right; padding-top: 2px; position: sticky; top: calc(var(--header-h) + 24px); align-self: start; }
.fp .job-dates { font-weight: 700; color: var(--accent-deep); font-size: .9rem; letter-spacing: .02em; }
.fp .job-company { font-weight: 700; color: var(--navy); font-size: 1.05rem; line-height: 1.3; margin-top: 2px; }
.fp .job-roles { display: grid; gap: 18px; }
.fp .role { padding: 22px 26px; }
.fp .role-title { font-weight: 700; color: var(--navy); font-size: 1rem; line-height: 1.4; }
.fp .role-meta { font-size: .85rem; font-weight: 500; color: var(--accent-deep); margin: 4px 0 10px; }
.fp .role-summary { color: var(--ink); font-size: .97rem; margin-bottom: 10px; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .timeline-line span { animation: line-grow linear both; animation-timeline: view(); animation-range: cover 45vh cover calc(100% - 55vh); }
    .fp .job::before { animation: dot-on linear both; animation-timeline: view(); animation-range: entry 20% entry 60%; }
    .fp .role { animation: role-in linear both; animation-timeline: view(); animation-range: entry 5% entry 55%; }
  }
}
@keyframes line-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes dot-on { from { transform: scale(.4); background: var(--ice); } to { transform: scale(1); background: var(--accent); } }
@keyframes role-in { from { opacity: 0; clip-path: inset(0 100% 0 0 round 18px); transform: translateX(-24px); } to { opacity: 1; clip-path: inset(0 0 0 0 round 18px); transform: none; } }

.fp .edu-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.fp .edu-card { padding: 24px; border-top: 4px solid var(--accent); }
.fp .edu-card h3 { font-weight: 700; color: var(--navy); font-size: 1rem; line-height: 1.4; margin-bottom: 6px; }
.fp .edu-card p { color: var(--muted); font-weight: 500; font-size: .92rem; }
.edu-sep { color: var(--accent); font-weight: 700; margin-right: 2px; }

/* ---------- CTA: a plane loops across the band ---------- */
.fp .cta { position: relative; overflow: hidden; background: var(--navy); color: var(--ice); padding: clamp(56px, 8vw, 96px) var(--gutter); isolation: isolate; }
.fp .cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(circle, rgb(var(--ice-rgb) / .22) 1.2px, transparent 1.8px) 0 0 / 22px 22px,
  radial-gradient(60% 120% at 100% 0%, rgb(var(--accent-rgb) / .35), transparent 60%);
  -webkit-mask: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); mask: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); }
.fp .cta::after { content: ""; position: absolute; top: 28%; left: -40px; width: 30px; height: 30px; background: var(--ice); clip-path: polygon(0 45%, 100% 0, 70% 100%, 50% 60%); animation: cta-fly 11s linear infinite; opacity: .9; z-index: -1; }
@keyframes cta-fly { 0% { transform: translate(0, 40px) rotate(8deg); } 100% { transform: translate(calc(100vw + 80px), -30px) rotate(-6deg); } }
.fp .cta-inner { max-width: var(--maxw); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.fp .cta-text { font-weight: 500; font-size: clamp(1.15rem, 2.2vw, 1.6rem); line-height: 1.5; max-width: 38ch; }
.btn { flex: none; display: inline-flex; align-items: center; gap: 10px; padding: 15px 28px; border-radius: 999px; font-weight: 700; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; background: var(--ice); color: var(--ink); box-shadow: 0 10px 30px -10px rgb(var(--ink-rgb) / .6); transition: transform .35s var(--ease), background-color .35s, color .35s; }
.btn::after { content: "→"; transition: transform .35s var(--ease); }
.btn:hover { transform: translateY(-2px); background: var(--accent); color: var(--ink); }
.btn:hover::after { transform: translateX(4px); }

/* ---------- blogs ---------- */
.fp .blogs { background: var(--white); }
.fp .blogs-tech { background: var(--ice); }
.fp .blog-rail { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 22px; }
.fp .blog-card { overflow: hidden; display: flex; flex-direction: column; transition: transform .5s var(--ease), box-shadow .5s; }
.fp .blog-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgb(var(--navy-rgb) / .55); }
.fp .blog-img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy); }
.fp .blog-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.fp .blog-card:hover .blog-img img { transform: scale(1.06); }
.fp .blog-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.fp .blog-info { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: .78rem; font-weight: 600; color: var(--accent-deep); text-transform: uppercase; letter-spacing: .05em; }
.fp .blog-info time + .blog-cat::before { content: "✦"; margin-right: 10px; color: var(--accent); }
.fp .blog-title { font-weight: 700; font-size: 1.15rem; color: var(--navy); line-height: 1.3; }
.fp .blog-excerpt { color: var(--muted); font-size: .93rem; }
.fp .read-more { margin-top: auto; padding-top: 6px; align-self: flex-start; font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-deep); border-bottom: 2px dotted var(--accent); }
.fp a.read-more:hover { color: var(--navy); border-bottom-style: solid; }

/* ---------- footer ---------- */
.fp .site-footer { background: var(--navy-deep); color: var(--ice); padding: 36px var(--gutter) 22px; text-align: center; }
.footer-row { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.footer-logo { width: 64px; height: 64px; }
.footer-name { font-weight: 600; font-size: clamp(1.05rem, 2vw, 1.35rem); }
.copyright { margin-top: 18px; padding-top: 14px; border-top: 1px solid rgb(var(--ice-rgb) / .14); font-size: .8rem; color: rgb(var(--ice-rgb) / .8); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .fp .about-grid { grid-template-columns: 1fr; }
  .fp .about-photo { width: min(78%, 340px); margin: 12px auto 0; }
  .fp .profile-card { grid-template-columns: auto 1fr; }
  .fp .profile-details { grid-column: 1 / -1; border-left: 0; border-top: 2px dotted rgb(var(--accent-rgb) / .6); padding: 16px 0 0; }
  .timeline-line { left: 7px; }
  .fp .job { grid-template-columns: 1fr; padding-left: 36px; gap: 12px; }
  .fp .job::before { left: 0; top: 4px; }
  .fp .job-meta { text-align: left; position: static; }
  .fp .cta-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 820px) {
  .fp .hero { display: flex; flex-direction: column; justify-content: flex-end; min-height: 100svh; }
  .fp .hero { min-height: auto; }
  .hero-art { position: relative; left: auto; top: auto; transform: none; width: 122%; margin: calc(var(--header-h) + 4px) 0 0 -13%; flex: none; }
  .fp .hero::after { height: 45%; }
  .fp .hero-inner { padding-bottom: 92px; margin-top: -4%; }
  @supports (animation-timeline: scroll()) { .hero-art { animation-name: art-away-m !important; } }
}
@media (min-width: 561px) and (max-width: 820px) {
  /* tablets: crop the empty sky above/below the paper so the name sits closer to the art */
  .hero-art { width: 112%; margin-left: -6%; aspect-ratio: 2 / 1; }
  .hero-art img { position: absolute; inset: 0; }
  .fp .hero-inner { margin-top: -2%; }
}
@keyframes art-away-m { to { transform: translateY(-8%) scale(1.06); opacity: .5; } }
@media (max-width: 560px) {
  .skill-row { grid-template-columns: 1fr; gap: 2px; }
  .fp .profile-card { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .fp .profile-details .social { justify-content: center; }
  .fp .cert-card { padding: 16px; }
  .fp .cert-badge { width: 64px; height: 64px; }
  .fp .summary-card, .fp .skill-card { padding: 22px 20px; }
  .fp .role { padding: 18px; }
}

/* =========================================================
   BLOG POSTS (pages/*.html, tpages/*.html) + blog-links.html
   ========================================================= */
.post-main { background: var(--ice); }
/* title band: same navy sky as the home hero, a dotted flight path draws across it */
.post-hero { position: relative; overflow: hidden; isolation: isolate; background: var(--navy); color: var(--ice); padding: calc(var(--header-h) + clamp(36px, 6vw, 72px)) var(--gutter) clamp(84px, 10vw, 128px); }
.post-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(circle, rgb(var(--ice-rgb) / .16) 1.2px, transparent 1.8px) 0 0 / 22px 22px,
  radial-gradient(70% 140% at 100% 0%, rgb(var(--accent-rgb) / .38), transparent 62%),
  radial-gradient(60% 120% at 0% 100%, rgb(var(--ink-rgb) / .55), transparent 70%);
  -webkit-mask: linear-gradient(90deg, #000 0 55%, rgb(0 0 0 / .45)); mask: linear-gradient(90deg, #000 0 55%, rgb(0 0 0 / .45)); }
.post-trail { position: absolute; inset: auto 0 0 0; width: 100%; height: 100%; z-index: -1; overflow: visible; }
@media (max-width: 820px) { .post-trail { height: 46%; } }
.pt-ghost { fill: none; stroke: rgb(var(--ice-rgb) / .18); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 0 11; }
.pt-line { fill: none; stroke: rgb(var(--accent-rgb) / .95); stroke-width: 3.2; stroke-linecap: round; stroke-dasharray: 0 11; }
.pt-draw { fill: none; stroke: #fff; stroke-width: 20; stroke-dasharray: 1; stroke-dashoffset: 0; }
.pt-plane { color: var(--ice); offset-rotate: auto; offset-distance: 100%; }
.post-hero-inner, .post-layout { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(28px, 4vw, 56px); }
.post-tech .post-hero-inner, .post-tech .post-layout { grid-template-columns: minmax(0, 1fr); max-width: 1000px; }
.post-title { grid-column: 1; max-width: 17em; font-weight: 700; font-size: clamp(1.75rem, 4.2vw, 3rem); line-height: 1.14; letter-spacing: -.015em; text-wrap: balance; overflow-wrap: break-word; }
/* dotted rule under the title, ending in a waypoint */
.post-title::after { content: ""; display: block; width: min(260px, 70%); height: 12px; margin-top: 22px; background:
  radial-gradient(circle, var(--accent) 5px, transparent 5.6px) 100% 50% / 12px 12px no-repeat,
  radial-gradient(circle, var(--accent-soft) 1.7px, transparent 2.3px) 0 50% / 12px 4px repeat-x; }
@media (prefers-reduced-motion: no-preference) {
  .pt-draw { stroke-dashoffset: 1; animation: draw 2.2s var(--ease) .15s forwards; }
  .pt-plane { animation: pt-fly 2.2s var(--ease) .15s both; }
  .post-title { animation: fade-up .8s var(--ease) both; }
  .post-title::after { animation: rule-in 1.1s var(--ease) .35s both; }
}
@keyframes pt-fly { from { offset-distance: 0%; } to { offset-distance: 100%; } }
@keyframes rule-in { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* article sheet overlaps the band like a boarding card */
.post-layout { position: relative; margin-top: clamp(-72px, -6vw, -44px); padding: 0 var(--gutter) clamp(56px, 8vw, 96px); box-sizing: content-box; align-items: start; }
.post-body { background: var(--white); border-radius: var(--radius); box-shadow: var(--card-shadow); border: 1px solid rgb(var(--navy-rgb) / .07); padding: clamp(24px, 5vw, 60px) clamp(20px, 5vw, 64px); font-size: 1.075rem; line-height: 1.8; color: var(--ink); min-width: 0; }
.post-body > * { max-width: 44em; } /* ≈70 characters of Montserrat */
.post-body > .table-responsive, .post-body > div, .post-body > .post-figure { max-width: none; }
.post-body p, .post-body p2 { display: block; margin: 0 0 1.15em; }
.post-body > :first-child { margin-top: 0; }
.post-body > :last-child { margin-bottom: 0; }
.post-body strong, .post-body b { font-weight: 700; color: var(--navy); }
.post-body em, .post-body cite { font-style: italic; }
.post-body a { color: var(--accent-deep); font-weight: 600; text-decoration: underline; text-decoration-style: dotted; text-decoration-thickness: 2px; text-underline-offset: 4px; text-decoration-color: var(--accent); transition: color .25s; }
.post-body a:hover { color: var(--navy); text-decoration-style: solid; }
.post-body h2, .post-body h3, .post-body h4 { color: var(--navy); font-weight: 700; line-height: 1.3; margin: 1.9em 0 .7em; scroll-margin-top: calc(var(--header-h) + 16px); }
.post-body h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); display: flex; align-items: center; gap: 12px; }
.post-body h2::before { content: ""; flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgb(var(--accent-rgb) / .18); }
.post-body h3 { font-size: 1.18rem; }
.post-body h4, .post-body .h4 { font-size: 1.06rem; color: var(--accent-deep); display: block; }
.post-body .h4::before { content: none; }
.post-body .h3 { font-size: 1.18rem; display: block; }
.post-body .h3::before { content: none; }
.post-body blockquote { margin: 1.4em 0; padding: 18px 22px 18px 24px; border-left: 4px solid var(--accent); border-radius: 0 14px 14px 0; background: linear-gradient(90deg, rgb(var(--accent-rgb) / .12), rgb(var(--accent-rgb) / .04)); color: var(--navy); font-weight: 500; line-height: 1.75; position: relative; }
.post-body blockquote::before { content: "\201C"; position: absolute; right: 14px; top: -6px; font-weight: 700; font-size: 3.6rem; line-height: 1; color: rgb(var(--accent-rgb) / .28); }
.post-body blockquote > :last-child { margin-bottom: 0; }
.post-body ul, .post-body ol { margin: 0 0 1.2em; padding-left: 0; }
.post-body li { margin: 0 0 .55em; position: relative; }
.post-body ul > li { padding-left: 26px; }
.post-body ul > li::before { content: ""; position: absolute; left: 4px; top: .68em; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--accent); }
.post-body ol { list-style: decimal; padding-left: 1.6em; }
.post-body ol > li { padding-left: 6px; }
.post-body ol > li::marker { color: var(--accent-deep); font-weight: 700; }
.post-body li > ul, .post-body li > ol { margin: .5em 0 0; }
/* tables scroll inside their own box on small screens */
.table-responsive { overflow-x: auto; margin: 1.3em 0 1.6em; border-radius: 14px; border: 1px solid rgb(var(--navy-rgb) / .12); -webkit-overflow-scrolling: touch; }
.post-body table { width: 100%; border-collapse: collapse; font-size: .92rem; line-height: 1.55; }
.post-body th { background: var(--navy); color: var(--ice); font-weight: 600; text-align: left; padding: 12px 14px; }
.post-body td { padding: 11px 14px; border-top: 1px solid rgb(var(--navy-rgb) / .1); vertical-align: top; }
.post-body tbody tr:nth-child(even) td { background: rgb(var(--accent-rgb) / .06); }
.post-body td strong { color: var(--navy); }
.post-figure { display: block; margin: 1.6em 0; border-radius: 14px; overflow: hidden; border: 1px solid rgb(var(--navy-rgb) / .1); background: #fff; box-shadow: 0 16px 40px -28px rgb(var(--navy-rgb) / .6); transition: transform .4s var(--ease), box-shadow .4s; }
.post-figure:hover { transform: translateY(-3px); box-shadow: 0 26px 50px -28px rgb(var(--navy-rgb) / .7); }
.post-figure img { width: 100%; }

/* other posts: sticky boarding list on desktop, below the article on phones */
.post-aside { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow: auto; overscroll-behavior: contain; border-radius: var(--radius); background: var(--white); box-shadow: var(--card-shadow); border: 1px solid rgb(var(--navy-rgb) / .07); scrollbar-width: thin; scrollbar-color: rgb(var(--accent-rgb) / .5) transparent; }
.post-list > summary { list-style: none; cursor: pointer; position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 14px; background: var(--white); border-bottom: 2px dotted rgb(var(--accent-rgb) / .5); }
.post-list > summary::-webkit-details-marker { display: none; }
.post-list > summary::after { content: ""; width: 10px; height: 10px; border: solid var(--accent-deep); border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-3px); transition: transform .3s var(--ease); }
.post-list[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.post-list-title { font-weight: 700; font-size: 1.05rem; color: var(--navy); display: flex; align-items: center; gap: 10px; }
.post-list-title::before { content: ""; width: 18px; height: 18px; background: var(--accent); clip-path: polygon(0 45%, 100% 0, 70% 100%, 50% 60%); }
.post-links-wrap { padding: 10px 10px 14px; }
.post-links { display: grid; gap: 2px; }
.post-links a { display: block; padding: 8px 12px; border-radius: 10px; font-size: .92rem; font-weight: 500; line-height: 1.35; color: var(--ink); transition: background-color .25s, color .25s, transform .25s var(--ease); }
.post-links a:hover { background: rgb(var(--accent-rgb) / .12); color: var(--navy); transform: translateX(3px); }
.post-links a.is-current { background: var(--navy); color: var(--ice); font-weight: 600; position: relative; padding-left: 34px; }
.post-links a.is-current::before { content: ""; position: absolute; left: 12px; top: 50%; width: 14px; height: 14px; margin-top: -7px; background: var(--accent-soft); clip-path: polygon(0 45%, 100% 0, 70% 100%, 50% 60%); }
.post-links-group summary { list-style: none; display: flex; align-items: center; gap: 2px; cursor: pointer; border-radius: 10px; }
.post-links-group summary::-webkit-details-marker { display: none; }
.post-links-group summary a { flex: 1; font-weight: 700; color: var(--navy); }
.post-links-caret { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; }
.post-links-caret::before { content: ""; width: 7px; height: 7px; border: solid var(--accent-deep); border-width: 0 2px 2px 0; transform: rotate(-45deg); transition: transform .3s var(--ease); }
.post-links-group details[open] .post-links-caret::before { transform: rotate(45deg); }
.post-links-sub { margin: 2px 0 8px 14px; padding-left: 10px; border-left: 2px dotted rgb(var(--accent-rgb) / .55); display: grid; gap: 1px; }
.post-links-sub a { font-size: .88rem; padding: 6px 10px; }

@media (max-width: 900px) {
  .post-hero-inner, .post-layout { grid-template-columns: minmax(0, 1fr); }
  .post-aside { position: static; max-height: none; overflow: clip; }
  .post-list > summary { position: static; border-bottom-color: transparent; }
  .post-list[open] > summary { border-bottom-color: rgb(var(--accent-rgb) / .5); }
}
@media (max-width: 560px) {
  .post-layout { padding-left: 12px; padding-right: 12px; }
  .post-body { font-size: 1.02rem; line-height: 1.75; padding: 24px 18px; }
  .post-body blockquote { padding: 16px 16px 16px 18px; }
  .post-body th, .post-body td { padding: 9px 10px; }
}
@media print {
  .site-header, .post-aside, .post-trail, .site-footer, .skip-link { display: none !important; }
  .post-hero { background: none; color: var(--ink); padding: 0 0 12px; }
  .post-layout { margin: 0; }
  .post-body { box-shadow: none; border: 0; padding: 0; }
}
