/* Visual system inspired by Ryan Fitzgerald's DevPortfolio: IBM Plex Mono, light neutrals, blue accent, and gentle fade-up motion. */
:root {
  --bg: #ffffff;
  --panel: #f9fafb;
  --panel-strong: #f3f4f6;
  --text: #1f2937;
  --body: #4b5563;
  --muted: #6b7280;
  --line: #e5e7eb;
  --accent: #1d4ed8;
  --accent-soft: #dbeafe;
  --font: 'IBM Plex Mono', monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.7; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.site-shell { max-width: 1600px; margin: 0 auto; overflow: hidden; }
.topbar { min-height: 76px; padding: 0 7.2%; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); }
.brand { display: inline-flex; gap: 10px; align-items: center; font-size: 12px; font-weight: 700; letter-spacing: -.4px; }
.brand-mark { font-size: 25px; letter-spacing: -2px; font-weight: 700; }
.brand-mark span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 25px; color: #374151; font-size: 12px; }
.nav-links a { transition: color .3s ease; }
.nav-links a:hover, .text-link:hover, .social-row a:hover, .social-row button:hover { color: var(--accent); }
.nav-contact { padding: 9px 13px; border: 1px solid #d1d5db; border-radius: 6px; }
.nav-contact span { color: var(--accent); margin-left: 7px; }
.menu-toggle { display: none; background: transparent; border: 0; color: var(--text); font-size: 24px; cursor: pointer; }
.section { padding: 96px 10%; }
.hero { min-height: calc(92vh - 76px); display: flex; align-items: center; justify-content: center; padding-top: 65px; padding-bottom: 72px; text-align: center; }
.hero-copy { width: min(100%, 920px); margin: 0 auto; }
.eyebrow, .hero-kicker, .section-label, .section-eyebrow, .project-number, .project-type, .project-status, .experience-date, .edu-date, .contact-label, .visual-caption, .ticker, .back-top { font-family: var(--font); font-size: 11px; letter-spacing: -.2px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--body); border: 0; border-radius: 0; padding: 0; width: auto; font-size: 15px; animation: fadeIn .8s ease-out 0s both; }
.status-dot { display: none; }
.hero-kicker { color: var(--body); margin: 25px 0 12px; font-size: clamp(13px,1.6vw,18px); animation: fadeIn .8s ease-out .1s both; }
.hero h1 { font-size: clamp(43px, 7.4vw, 82px); line-height: 1.16; letter-spacing: -3px; margin: 0; font-weight: 700; color: #1f2937; animation: fadeIn .8s ease-out .2s both; }
.accent { color: var(--accent); }
.hero-intro { max-width: 760px; color: #4b5563; font-size: clamp(14px, 1.65vw, 18px); line-height: 1.9; margin: 24px auto 30px; animation: fadeIn .8s ease-out .4s both; }
.hero-actions { display: flex; align-items: center; justify-content: center; gap: 23px; animation: fadeIn .8s ease-out .6s both; }
.button { display: inline-flex; align-items: center; gap: 18px; padding: 12px 16px; font-size: 12px; border: 1px solid var(--accent); border-radius: 7px; font-weight: 600; transition: background-color .3s ease, color .3s ease, transform .3s ease; }
.button-primary { background: var(--accent); color: #fff; }
.button-primary:hover { background: #1e40af; transform: translateY(-2px); }
.button-primary span { font-size: 17px; }
.text-link { font-size: 12px; color: #374151; transition: color .3s ease; }
.text-link span { color: var(--accent); margin-left: 7px; }
.hero-meta, .hero-visual, .ticker { display: none; }
.section-label { display: none; }
.section-eyebrow { color: var(--accent); font-size: 12px; margin: 0 0 13px; letter-spacing: -.2px; }
.section h2, .contact-section h2 { font-size: clamp(30px, 4vw, 52px); line-height: 1.22; letter-spacing: -1.7px; margin: 0; font-weight: 700; color: #111827; }
.muted { color: #6b7280; }
.about-section { padding-top: 92px; padding-bottom: 100px; border-top: 1px solid var(--line); }
.about-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 8%; }
.about-content p { color: var(--body); font-size: 13px; line-height: 1.95; margin: 0 0 18px; }
.skill-tags, .tech-list { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-tags { margin-top: 24px; }
.skill-tags span { font: 11px var(--font); color: #374151; border: 1px solid #d1d5db; background: #f9fafb; padding: 6px 9px; border-radius: 5px; }
.projects-section { background: #fff; border-top: 1px solid var(--line); padding-top: 90px; padding-bottom: 105px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin-bottom: 32px; gap: 20px; }
.section-heading .section-eyebrow { margin-bottom: 12px; }
.project-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.project-card { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 13px; overflow: hidden; transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease, background-color .3s ease; }
.project-card:hover { transform: translateY(-4px); background: #fff; border-color: #d1d5db; box-shadow: 0 16px 38px rgba(31,41,55,.09); }
.project-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 17px 19px 0; }
.project-number, .project-type { font-size: 10px; color: #6b7280; }
.project-status { font-size: 9px; color: #1d4ed8; display: flex; align-items: center; gap: 6px; }
.project-status i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.project-art { height: 190px; margin: 14px 17px 0; border-radius: 8px; position: relative; overflow: hidden; background: #eff6ff; border: 1px solid #dbeafe; }
.art-soar { background: linear-gradient(135deg,#eff6ff,#f8fafc 60%,#e0e7ff); }
.node { position: absolute; padding: 8px 10px; font: 10px var(--font); background: #fff; border: 1px solid #cbd5e1; border-radius: 6px; color: #374151; z-index: 2; box-shadow: 0 3px 10px rgba(31,41,55,.04); }
.node-a { top: 25px; left: 7%; }.node-b { top: 82px; left: 39%; border-color: #93c5fd; color: var(--accent); }.node-c { top: 25px; right: 7%; border-color: #93c5fd; color: var(--accent); }.node-d { bottom: 24px; right: 20%; }
.connector { position: absolute; height: 1px; background: #93c5fd; transform-origin: left; }.con-a { top: 49px; left: 26%; width: 100px; transform: rotate(23deg); }.con-b { top: 48px; left: 61%; width: 90px; transform: rotate(-22deg); }.con-c { top: 105px; left: 48%; width: 120px; transform: rotate(27deg); background: #60a5fa; }
.art-center { position: absolute; bottom: 12px; left: 12px; color: #64748b; font: 10px var(--font); }
.art-siem { display: grid; place-items: center; background: linear-gradient(135deg,#eff6ff,#f8fafc 55%,#dbeafe); }
.terminal { width: 80%; font: 10px var(--font); color: #4b5563; }.terminal-bar { height: 23px; display: flex; align-items: center; gap: 4px; border-bottom: 1px solid #d1d5db; margin-bottom: 13px; }.terminal-bar i { width: 5px; height: 5px; background: #9ca3af; border-radius: 50%; }.terminal-bar span { margin-left: 7px; font-size: 9px; color: #6b7280; }.terminal p { margin: 9px 0; }.terminal b { color: var(--accent); margin-right: 8px; }.terminal em { font-style: normal; color: #1d4ed8; float: right; }
.art-network { background: linear-gradient(145deg,#f0f9ff,#eff6ff); }.network-lines { position: absolute; inset: 0; background-image: linear-gradient(30deg,transparent 48%,#93c5fd55 49%,#93c5fd55 50%,transparent 51%),linear-gradient(150deg,transparent 48%,#93c5fd55 49%,#93c5fd55 50%,transparent 51%); background-size: 58px 58px; }.network-node { position: absolute; border: 1px solid #bfdbfe; background: #fff; color: #1d4ed8; font: 10px var(--font); padding: 8px 11px; border-radius: 50px; }.n1 { top: 24px; left: 10%; }.n2 { top: 57px; left: 43%; }.n3 { right: 9%; top: 25px; }.n4 { bottom: 50px; left: 35%; border-color: #93c5fd; color: #1d4ed8; }.wave-bars { position: absolute; bottom: 15px; left: 10%; right: 10%; height: 20px; display: flex; align-items: center; gap: 5px; }.wave-bars i { height: 30%; flex: 1; background: #93c5fd; }.wave-bars i:nth-child(3n) { height: 90%; }.wave-bars i:nth-child(2n) { height: 55%; }
.art-scan { display: grid; place-items: center; background: radial-gradient(circle at center,#dbeafe,#eff6ff 66%); }.scan-ring { position: absolute; border: 1px solid #93c5fd; border-radius: 50%; aspect-ratio: 1; }.ring1 { height: 140px; }.ring2 { height: 90px; border-color: #60a5fa; }.scan-cross { font-size: 40px; font-weight: 400; color: var(--accent); z-index: 1; }.scan-label { position: absolute; bottom: 15px; left: 15px; font: 10px var(--font); color: #64748b; }
.project-info { padding: 19px; }.project-info h3, .experience-main h3, .education-card h3 { font-size: 15px; letter-spacing: -.3px; margin: 0 0 9px; font-weight: 700; color: #111827; }.project-info p, .experience-main p, .education-card p { font-size: 11px; color: var(--body); line-height: 1.9; margin: 0; }.project-footer { display: flex; justify-content: space-between; align-items: end; gap: 12px; margin-top: 20px; }.tech-list { gap: 5px; }.tech-list span { font: 9px var(--font); padding: 5px 7px; background: #1f2937; color: #fff; border-radius: 4px; transition: background-color .3s ease; }.project-card:hover .tech-list span { background: #374151; }.icon-link { width: 33px; height: 33px; display: grid; place-items: center; border: 1px solid #d1d5db; border-radius: 50%; color: var(--accent); background: #fff; flex-shrink: 0; transition: transform .3s ease, background .3s ease; }.icon-link:hover { transform: translate(2px,-2px); background: #eff6ff; }
.disclaimer { color: #6b7280; font-size: 10px; margin: 18px 0 0; }
.experience-section { padding-top: 95px; padding-bottom: 100px; border-top: 1px solid var(--line); }.experience-list { border-top: 1px solid var(--line); }.experience-item { display: grid; grid-template-columns: 190px 1fr; gap: 45px; padding: 28px 0; border-bottom: 1px solid var(--line); }.experience-date { color: var(--accent); padding-top: 5px; font-size: 11px; }.experience-date span { display: block; color: #6b7280; font-size: 9px; margin-top: 6px; }.experience-main { max-width: 780px; }.experience-main h3 { font-size: 16px; margin-bottom: 9px; }.experience-title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }.experience-badge { font: 9px var(--font); color: var(--accent); border: 1px solid #bfdbfe; background: #eff6ff; padding: 4px 7px; border-radius: 4px; }.experience-main ul { padding-left: 19px; margin: 13px 0 0; color: var(--body); font-size: 11px; line-height: 2; }
.education-section { background: #f9fafb; border-top: 1px solid var(--line); padding-top: 95px; padding-bottom: 100px; }.education-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 7%; }.education-cards { border-top: 1px solid var(--line); }.education-card { display: grid; grid-template-columns: 44px 1fr 20px; gap: 16px; align-items: start; padding: 22px 0; border-bottom: 1px solid var(--line); }.edu-icon { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #bfdbfe; color: var(--accent); font: 11px var(--font); background: #fff; border-radius: 6px; }.edu-date { color: var(--accent); font-size: 9px; display: block; margin-bottom: 6px; }.education-card h3 { margin-bottom: 5px; font-size: 13px; }.education-card p { font-size: 10px; }.edu-arrow { color: #6b7280; }
.contact-section { position: relative; padding: 95px 10% 85px; background: #fff; border-top: 1px solid var(--line); overflow: hidden; }.contact-glow { display: none; }.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 8%; align-items: center; }.contact-copy { max-width: 400px; color: var(--body); font-size: 13px; line-height: 1.9; margin-top: 22px; }.contact-panel { background: #f9fafb; border: 1px solid var(--line); padding: 25px; border-radius: 12px; }.contact-label { color: #6b7280; font-size: 10px; }.contact-email { display: flex; justify-content: space-between; gap: 15px; align-items: center; font-size: clamp(13px,1.6vw,18px); font-weight: 700; margin: 18px 0 25px; overflow-wrap: anywhere; }.contact-email span { color: var(--accent); }.contact-divider { height: 1px; background: var(--line); }.social-row { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 19px; }.social-row a, .social-row button { font-size: 11px; color: #374151; background: none; border: 0; padding: 0; cursor: pointer; transition: color .3s ease; }.social-row span { color: var(--accent); margin-left: 5px; }.copy-feedback { font-size: 10px; color: var(--accent); min-height: 15px; margin: 12px 0 0; }
.footer { padding: 25px 7.2%; display: flex; align-items: center; gap: 25px; flex-wrap: wrap; border-top: 1px solid var(--line); background: #fff; }.footer p { font-size: 10px; color: #6b7280; margin: 0; flex: 1; }.back-top { font-size: 10px; color: #374151; }.copyright { font-size: 10px; color: #6b7280; }.footer .brand { font-size: 10px; }.footer .brand-mark { font-size: 20px; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 900px) { .section { padding-left: 7%; padding-right: 7%; }.topbar { padding: 0 5%; }.nav-links { gap: 16px; }.about-layout, .education-layout { gap: 5%; }.experience-item { grid-template-columns: 145px 1fr; gap: 25px; }.contact-section { padding-left: 7%; padding-right: 7%; }.project-grid { gap: 14px; } }
@media (max-width: 680px) { .topbar { min-height: 68px; }.menu-toggle { display: block; }.nav-links { display: none; position: absolute; top: 67px; left: 0; right: 0; padding: 22px 7%; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: flex-start; gap: 18px; }.nav-links.open { display: flex; }.nav-contact { width: max-content; }.section { padding: 70px 6%; }.hero { min-height: calc(85vh - 68px); padding-top: 54px; padding-bottom: 60px; }.hero h1 { font-size: clamp(40px, 11vw, 62px); letter-spacing: -2px; }.hero-intro { font-size: 13px; }.hero-actions { gap: 15px; flex-wrap: wrap; }.section h2, .contact-section h2 { font-size: 35px; }.section-heading { align-items: start; gap: 20px; }.desktop-link { display: none; }.about-layout, .education-layout, .contact-layout { grid-template-columns: 1fr; gap: 28px; }.project-grid { grid-template-columns: 1fr; }.project-art { height: 180px; }.experience-item { grid-template-columns: 1fr; gap: 12px; padding: 23px 0; }.experience-date span { display: inline; margin-left: 10px; }.education-card { grid-template-columns: 38px 1fr 15px; gap: 12px; }.contact-panel { padding: 20px; }.contact-section { padding-top: 70px; padding-bottom: 70px; }.footer { padding: 24px 6%; gap: 14px; }.footer p { order: 3; flex-basis: 100%; }.copyright { margin-left: auto; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }


/* Expanded interactive sections: skills, field notes, achievements, and resume. */
.nav-resume { color: var(--accent) !important; border-bottom: 1px solid transparent; transition: border-color .25s ease, letter-spacing .25s ease; }
.nav-resume span { display:inline-block; transition: transform .25s ease; }
.nav-resume:hover { border-color: var(--accent); }
.nav-resume:hover span { transform: translateY(3px); }
.nav-links a.is-current { color: var(--accent); }
.skills-section { background: #f9fafb; }
.skills-heading { margin-bottom: 18px; }
.skills-side-note,.section-side-note { align-self: end; color: #6b7280; font-size: 10px; letter-spacing: .02em; padding-bottom: 8px; white-space: nowrap; }
.skills-side-note span,.section-side-note span { color: var(--accent); margin-left: 7px; }
.skills-intro,.blog-intro { max-width: 750px; margin: 0 0 26px; color: var(--body); font-size: 12px; line-height: 1.9; }
.projects-intro { max-width: 650px; margin: 14px 0 0; color: var(--body); font-size: 12px; line-height: 1.9; }
.skill-filters { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin: 27px 0 25px; }
.skill-filter { display:inline-flex; align-items:center; gap:11px; border:1px solid #d1d5db; background:transparent; color:#4b5563; padding:9px 12px; border-radius:3px; cursor:pointer; font-size:10px; transition: color .25s ease, border-color .25s ease, background .25s ease, transform .25s ease; }
.skill-filter span { color:#9ca3af; font-size:9px; }
.skill-filter:hover { border-color:var(--accent); color:var(--accent); transform:translateY(-2px); }
.skill-filter.is-active { color:#fff; background:var(--accent); border-color:var(--accent); box-shadow:0 5px 16px #1d4ed81c; }
.skill-filter.is-active span { color:#dbeafe; }
.skills-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.skill-card { min-height:175px; padding:16px; border:1px solid #e5e7eb; background:#fff; border-radius:4px; position:relative; overflow:hidden; transition:transform .35s cubic-bezier(.2,.75,.25,1), border-color .3s ease, box-shadow .35s ease; transform-style:preserve-3d; }
.skill-card::before { content:""; position:absolute; width:140px; height:140px; right:-90px; bottom:-95px; border-radius:50%; background:var(--accent-soft); opacity:0; transition:opacity .35s ease, transform .45s ease; }
.skill-card:hover,.skill-card:focus-within { transform:translateY(-5px); border-color:#93b4f8; box-shadow:0 15px 35px #1d4ed80d; }
.skill-card:hover::before { opacity:.85; transform:scale(1.4); }
.skill-index { position:absolute; right:13px; top:12px; color:#9ca3af; font-size:9px; }
.skill-symbol { display:grid; place-items:center; width:36px; height:36px; border:0; background:transparent; border-radius:6px; overflow:hidden; transition:transform .35s cubic-bezier(.2,.8,.25,1); }
.skill-symbol img { display:block; width:100%; height:100%; object-fit:contain; }
.skill-card:hover .skill-symbol { transform:rotate(-5deg) scale(1.08); }
.skill-card h3 { position:relative; margin:15px 0 5px; font-size:13px; letter-spacing:-.25px; }
.skill-card p { position:relative; font-family:var(--font); font-size:12px; color:var(--muted); line-height:1.7; margin:0 0 14px; }
.skill-category { position:relative; font-size:10px; color:#6b7280; text-transform:uppercase; letter-spacing:.04em; }
.skill-card[hidden] { display:none !important; }
.skill-card.filter-enter { animation: skillPop .36s cubic-bezier(.18,.75,.25,1) both; }
@keyframes skillPop { 0% { opacity:0; transform:translateY(10px) scale(.97); } 100% { opacity:1; transform:translateY(0) scale(1); } }
.skills-footer { display:flex; align-items:center; gap:13px; margin-top:22px; padding:15px 17px; border-left:2px solid var(--accent); background:#fff; }
.skills-footer-mark { color:var(--accent); font-size:16px; }
.skills-footer p { color:var(--muted); margin:0; font-size:10px; }
.blog-section { background:#fff; }
.blog-section .section-heading { margin-bottom:18px; }
.blog-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); grid-auto-rows:minmax(300px,auto); gap:17px; align-items:stretch; }
.blog-card { border:1px solid var(--line); background:#fff; border-radius:4px; overflow:hidden; display:flex; flex-direction:column; min-width:0; position:relative; isolation:isolate; transition:transform .35s cubic-bezier(.2,.75,.25,1), box-shadow .35s ease, border-color .3s ease; }
.blog-card:hover { transform:translateY(-5px); border-color:#b6cdfb; box-shadow:0 18px 45px #1d4ed80c; }
.blog-card::after { content:""; position:absolute; left:0; bottom:0; height:2px; width:100%; background:var(--accent); transform:scaleX(0); transform-origin:left; transition:transform .45s cubic-bezier(.2,.8,.25,1); z-index:1; }
.blog-card:hover::after,.blog-card:focus-within::after { transform:scaleX(1); }
.blog-card-featured { grid-row:span 2; min-height:100%; }
.blog-visual { min-height:178px; position:relative; overflow:hidden; background:#f3f6fb; border-bottom:1px solid var(--line); }
.blog-visual-image { min-height:178px; height:178px; background:#eef2f7; }
.blog-visual-image img { display:block; width:100%; height:100%; object-fit:cover; object-position:center; transition:transform .55s cubic-bezier(.2,.75,.25,1); }
.blog-card:hover .blog-visual-image img { transform:scale(1.035); }
.blog-card-featured .blog-visual-image { min-height:255px; height:255px; }
.image-source-label { position:absolute; left:13px; bottom:12px; padding:5px 7px; color:#fff; background:rgba(15,23,42,.72); font-size:8px; letter-spacing:.08em; }
.blog-card-featured .blog-visual { min-height:255px; }
.blog-visual-flow { background:radial-gradient(circle at 56% 47%,#dbeafe 0,transparent 35%),linear-gradient(130deg,#f8fafc,#eff6ff); }
.flow-beam { height:1px; position:absolute; background:#93b4f8; transform-origin:left center; opacity:.8; }
.beam-one { left:18%; top:36%; width:55%; transform:rotate(13deg); animation:beamSweep 4.2s ease-in-out infinite alternate; }
.beam-two { left:26%; top:68%; width:47%; transform:rotate(-20deg); animation:beamSweep 3.3s ease-in-out infinite alternate-reverse; }
.flow-node { position:absolute; z-index:1; padding:9px 12px; border:1px solid #9bbaf3; background:rgba(255,255,255,.85); color:#1d4ed8; font-size:9px; box-shadow:0 6px 20px #1d4ed80d; animation:floatNode 4s ease-in-out infinite; }
.node-alert { left:10%; top:25%; animation-delay:-.5s; }
.node-enrich { left:42%; top:45%; border-color:#6b9bf3; animation-delay:-1.4s; }
.node-respond { right:9%; bottom:22%; animation-delay:-2.2s; }
.flow-matrix { position:absolute; right:13px; top:12px; color:#8ca0bd; font-size:8px; line-height:1.7; text-align:right; }
.visual-corner { position:absolute; left:15px; bottom:13px; color:#7184a1; font-size:8px; letter-spacing:.05em; }
.blog-visual-terminal { background:#111827; color:#cbd5e1; padding:22px 20px; font-size:9px; }
.terminal-tag { display:block; color:#93c5fd; border-bottom:1px solid #334155; padding-bottom:12px; margin-bottom:14px; }
.blog-visual-terminal p { margin:10px 0; color:#cbd5e1; }
.blog-visual-terminal p i { font-style:normal; color:#64748b; margin-right:12px; }
.blog-visual-terminal p b { float:right; font-weight:400; color:#93c5fd; }
.blog-visual-terminal p:last-child { animation:cursorBlink 1.2s steps(2,end) infinite; }
.blog-visual-packet { background:linear-gradient(145deg,#f8fafc,#eaf1fc); }
.packet-grid { position:absolute; inset:0; background-image:linear-gradient(#1d4ed810 1px,transparent 1px),linear-gradient(90deg,#1d4ed810 1px,transparent 1px); background-size:24px 24px; }
.packet-chip { position:absolute; border:1px solid #9bbaf3; background:#fff; color:#1d4ed8; padding:7px 11px; font-size:8px; z-index:1; box-shadow:0 6px 15px #1d4ed810; }
.chip-a { left:12%; top:24%; }.chip-b { left:43%; top:50%; }.chip-c { right:10%; top:23%; }
.packet-wave { position:absolute; left:8%; right:8%; bottom:20px; height:27px; display:flex; align-items:center; gap:4px; }
.packet-wave i { height:20%; flex:1; background:#1d4ed880; transform-origin:center; animation:packetPulse 1.6s ease-in-out infinite alternate; }
.packet-wave i:nth-child(3n) { height:90%; }.packet-wave i:nth-child(2n) { height:45%; animation-delay:-.6s; }.packet-wave i:nth-child(4n) { height:70%; animation-delay:-1s; }
.blog-card-content { padding:20px; display:flex; flex-direction:column; align-items:flex-start; flex:1; }
.blog-grid { transition:opacity .24s ease, transform .24s ease; }
.blog-grid.blog-page-changing { opacity:0; transform:translateY(7px); }
.blog-grid.blog-page-enter { animation:achievementPageEnter .5s cubic-bezier(.2,.75,.25,1) both; }
.blog-controls { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-top:20px; }
.blog-card-actions { display:flex; align-items:center; justify-content:space-between; gap:12px; width:100%; margin-top:auto; }
.blog-meta { display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-bottom:14px; font-size:8px; color:#6b7280; letter-spacing:.04em; }
.draft-status { border:1px solid #d1d5db; padding:3px 6px; color:#6b7280; background:#f9fafb; }
.blog-card h3 { margin:0 0 10px; font-size:15px; line-height:1.5; letter-spacing:-.3px; }
.blog-card p { color:var(--body); font-size:11px; line-height:1.9; margin:0 0 17px; }
.blog-open { display:inline-flex; align-items:center; gap:12px; margin-top:auto; padding:8px 0 1px; color:var(--accent); background:transparent; border:0; border-bottom:1px solid transparent; font-size:10px; cursor:pointer; transition:gap .25s ease,border-color .25s ease; }
.blog-open span { display:inline-block; transition:transform .25s ease; }
.blog-open:hover { gap:18px; border-color:var(--accent); }.blog-open:hover span { transform:translate(2px,-2px); }
.blog-controls .achievement-nav { font-family:var(--font); font-size:10px; padding:8px 10px; min-height:0; line-height:1.2; }
.achievements-section { background:#f9fafb; }
.achievements-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.achievements-grid { transition:opacity .24s ease, transform .24s ease; }
.achievements-grid.achievement-page-changing { opacity:0; transform:translateY(7px); }
.achievements-grid.achievement-page-enter { animation:achievementPageEnter .5s cubic-bezier(.2,.75,.25,1) both; }
@keyframes achievementPageEnter { from { opacity:0; transform:translateY(9px); } to { opacity:1; transform:translateY(0); } }
.achievement-controls { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-top:20px; }
.achievement-pagination { display:flex; align-items:center; justify-content:center; gap:8px; }
.achievement-page-dot { width:7px; height:7px; padding:0; border:0; border-radius:999px; background:#cbd5e1; cursor:pointer; transition:width .25s ease,background .25s ease,transform .25s ease; }
.achievement-page-dot:hover { transform:scale(1.18); }
.achievement-page-dot.is-active { width:25px; background:var(--accent); }
.achievement-nav { display:inline-flex; align-items:center; gap:7px; padding:8px 10px; border:1px solid var(--line); border-radius:4px; background:transparent; color:var(--text); font:inherit; font-size:10px; cursor:pointer; transition:background .2s ease,border-color .2s ease,color .2s ease; }
.achievement-nav:hover { background:var(--accent); border-color:var(--accent); color:#fff; }
@media (max-width:420px) { .achievement-nav span { display:none; } .achievement-controls { gap:8px; } }

.achievement-card { min-height:255px; border:1px solid var(--line); border-radius:4px; background:#fff; padding:20px; display:flex; flex-direction:column; position:relative; overflow:hidden; transition:transform .35s cubic-bezier(.2,.75,.25,1),box-shadow .35s ease,border-color .3s ease,opacity .3s ease; }
.achievement-card-link { position:absolute; inset:0; z-index:2; border-radius:inherit; text-decoration:none; }
.achievement-card-link:focus-visible { outline:2px solid var(--accent); outline-offset:-4px; }
.achievement-card::before { content:""; position:absolute; width:220px;height:220px; right:-155px; top:-160px; border-radius:50%; border:1px solid #bfdbfe; transition:transform .55s ease, opacity .3s ease; opacity:.5; }
.achievement-card::after { content:""; position:absolute; width:150px;height:150px; right:-105px; top:-110px; border-radius:50%; border:1px solid #dbeafe; transition:transform .6s ease; }
.achievement-card.achievement-swapping { opacity:0; transform:translateY(8px); }
.achievement-card.achievement-swap-in { animation:achievementSwapIn .62s cubic-bezier(.2,.75,.25,1) both; }
@keyframes achievementSwapIn { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
.achievement-card:hover { transform:translateY(-5px); border-color:#b6cdfb; box-shadow:0 16px 40px #1d4ed80c; }
.achievement-card:hover::before { transform:scale(1.15); opacity:1; }.achievement-card:hover::after { transform:scale(1.3); }
.achievement-featured { background:#eff6ff; border-color:#dbeafe; }
.achievement-topline { display:flex; align-items:center; justify-content:space-between; gap:12px; color:#6b7280; font-size:9px; letter-spacing:.02em; position:relative; z-index:1; }
.achievement-symbol { display:grid; place-items:center; width:29px;height:29px; border:1px solid #bfdbfe; color:var(--accent); border-radius:50%; transition:transform .4s ease,background .3s ease,color .3s ease; }
.achievement-card:hover .achievement-symbol { transform:rotate(45deg); background:var(--accent); color:#fff; }
.achievement-big { margin:22px 0 12px; color:#1f2937; font-size:35px; line-height:1; letter-spacing:-2px; font-weight:600; position:relative; z-index:1; }
.achievement-big span { color:var(--accent); }
.achievement-stat { margin:22px 0 12px; position:relative; z-index:1; font-size:31px; line-height:1.1; letter-spacing:-1.4px; color:var(--accent); font-weight:600; }
.achievement-cert-mark { display:flex; align-items:center; gap:3px; margin:16px 0 13px; font-size:28px; color:#1d4ed8; letter-spacing:-3px; position:relative; z-index:1; }
.achievement-cert-mark span { display:grid; place-items:center; width:22px;height:22px; border-radius:50%; background:var(--accent); color:#fff; font-size:12px; letter-spacing:0; }
.achievement-card h3 { margin:0 0 9px; font-size:13px; line-height:1.6; position:relative; z-index:1; }
.achievement-card p { margin:0 0 18px; color:var(--body); font-size:10px; line-height:1.9; position:relative; z-index:1; }
.achievement-bottom { display:flex; align-items:center; gap:9px; margin-top:auto; padding-top:13px; border-top:1px solid #e5e7eb; color:#6b7280; font-size:8px; letter-spacing:.04em; position:relative; z-index:1; }
.achievement-dot { width:5px;height:5px; border-radius:50%; background:#22c55e; box-shadow:0 0 0 3px #dcfce7; }
.resume-section { overflow:hidden; background:#fff; }
.resume-layout { display:grid; grid-template-columns:1fr 1fr; gap:8%; align-items:center; }
.resume-copy h2 { font-size:clamp(33px,4.2vw,50px); line-height:1.22; letter-spacing:-2px; margin:0 0 20px; }
.resume-copy > p:not(.section-eyebrow):not(.resume-note) { color:var(--body); font-size:12px; line-height:2; max-width:470px; }
.resume-actions { display:flex; flex-wrap:wrap; gap:18px; align-items:center; margin-top:26px; }
.resume-download { gap:12px; transition:transform .3s ease,box-shadow .3s ease; }
.resume-download:hover { transform:translateY(-3px); box-shadow:0 10px 24px #1d4ed828; }
.download-symbol { display:grid; place-items:center; width:24px;height:24px; border:1px solid #1d4ed84a; border-radius:50%; font-size:15px; transition:transform .3s ease; }
.resume-download:hover .download-symbol { transform:translateY(3px); }
.resume-download .button-arrow { margin-left:5px; transition:transform .3s ease; }
.resume-download:hover .button-arrow { transform:translate(2px,-2px); }
.resume-preview-link { white-space:nowrap; }
.resume-note { display:flex; align-items:center; gap:9px; margin:21px 0 0; color:var(--muted); font-size:9px; }
.resume-note-dot { width:6px;height:6px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 3px #dcfce7; }
.resume-preview-card { min-height:420px; position:relative; display:grid; place-items:center; isolation:isolate; }
.resume-preview-card::before { content:""; position:absolute; width:88%;height:78%; border:1px solid #dbeafe; background:linear-gradient(130deg,#eff6ff66,#f9fafb00); transform:rotate(5deg); border-radius:4px; transition:transform .5s cubic-bezier(.2,.8,.25,1); z-index:-1; }
.resume-preview-card::after { content:""; position:absolute; width:82%;height:82%; right:0; bottom:3%; border:1px solid #e5e7eb; transform:rotate(-4deg); z-index:-2; transition:transform .5s ease; }
.resume-preview-card:hover::before { transform:rotate(2deg) translateY(-5px); }.resume-preview-card:hover::after { transform:rotate(-1deg) translateY(3px); }
.resume-paper { width:min(75%,330px); min-height:385px; padding:24px 25px 17px; background:#fff; border:1px solid #e5e7eb; box-shadow:0 18px 55px #1f29370e; transform:rotate(-1deg); transition:transform .45s cubic-bezier(.2,.8,.25,1),box-shadow .45s ease; }
.resume-preview-card:hover .resume-paper { transform:rotate(0) translateY(-4px); box-shadow:0 23px 60px #1f293716; }
.paper-topline,.paper-footer { display:flex; align-items:center; justify-content:space-between; color:#6b7280; font-size:7px; letter-spacing:.05em; }
.paper-topline { padding-bottom:14px; border-bottom:1px solid #e5e7eb; }
.resume-paper h3 { margin:22px 0 4px; font-size:20px; letter-spacing:-1px; }
.paper-role { color:var(--accent); font-size:7px; margin:0 0 12px; letter-spacing:.03em; }
.paper-rule { height:2px; width:35px; background:var(--accent); margin-bottom:18px; }
.paper-section { display:grid; grid-template-columns:24px 1fr; gap:8px; margin:13px 0; }
.paper-section > span { color:var(--accent); font-size:8px; }
.paper-section b { display:block; color:#374151; font-size:8px; margin-bottom:8px; }
.paper-section i { display:block; width:95%; height:3px; background:#e5e7eb; margin:5px 0; }.paper-section i.short { width:61%; }
.paper-tags { display:flex; gap:4px; flex-wrap:wrap; }.paper-tags i { display:block; width:31px; height:9px; border:1px solid #dbeafe; border-radius:2px; background:#eff6ff; margin:0; }
.paper-footer { padding-top:14px; border-top:1px solid #e5e7eb; margin-top:23px; color:#94a3b8; }
.resume-stamp { position:absolute; bottom:34px; right:0; display:flex; align-items:center; gap:14px; padding:10px 13px; background:var(--accent); color:#fff; font-size:8px; letter-spacing:.04em; box-shadow:0 8px 22px #1d4ed82b; transform:rotate(-2deg); transition:transform .3s ease; }
.resume-preview-card:hover .resume-stamp { transform:rotate(0) translateY(-3px); }
.resume-stamp span { font-size:15px; }
.resume-orbit { position:absolute; border:1px solid #dbeafe; border-radius:50%; pointer-events:none; z-index:-3; }
.orbit-a { width:370px;height:370px; animation:slowOrbit 22s linear infinite; }.orbit-b { width:430px;height:255px; transform:rotate(42deg); animation:slowOrbitReverse 28s linear infinite; }
.scroll-progress { height:2px; background:var(--accent); position:fixed; top:0; left:0; width:0%; z-index:30; transform-origin:left; box-shadow:0 0 8px #1d4ed82e; }
/* Staggered viewport reveals are applied by script.js; content remains visible if scripting is disabled. */
.js-motion .reveal { opacity:0; transform:translateY(20px); transition:opacity .7s cubic-bezier(.2,.75,.25,1) var(--reveal-delay,0ms),transform .7s cubic-bezier(.2,.75,.25,1) var(--reveal-delay,0ms); }
.js-motion .reveal.is-visible { opacity:1; transform:translateY(0); }
.project-card { --spot-x:50%; --spot-y:50%; --tilt-x:0deg; --tilt-y:0deg; transform-style:preserve-3d; will-change:transform; }
.project-card::before { content:""; pointer-events:none; position:absolute; inset:0; z-index:2; opacity:0; background:radial-gradient(320px circle at var(--spot-x) var(--spot-y),#dbeafe75,transparent 65%); transition:opacity .3s ease; }
.project-card:hover::before { opacity:1; }
.project-card > * { position:relative; z-index:1; }
.project-card:hover { transform:perspective(1100px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(-3px); }
.project-card .project-art { transition:filter .35s ease; }.project-card:hover .project-art { filter:saturate(1.08); }
.blog-dialog { width:min(620px,calc(100% - 30px)); max-height:min(82vh,760px); padding:0; border:1px solid #dbeafe; border-radius:5px; background:#fff; color:var(--text); box-shadow:0 25px 90px #11182733; }
.blog-dialog::backdrop { background:#11182770; backdrop-filter:blur(5px); }
.blog-dialog[open] { animation:dialogEnter .35s cubic-bezier(.2,.8,.25,1) both; }
.blog-dialog-inner { padding:28px; }
.blog-dialog-top { display:flex; align-items:center; justify-content:space-between; border-bottom:1px solid var(--line); padding-bottom:15px; }
.blog-dialog-kicker { color:var(--accent); font-size:9px; letter-spacing:.05em; }
.dialog-close { width:33px;height:33px; border:1px solid var(--line); background:#fff; color:var(--text); cursor:pointer; font-size:21px; line-height:1; transition:background .25s ease,color .25s ease,transform .25s ease; }
.dialog-close:hover { background:var(--accent); color:#fff; transform:rotate(90deg); }
.blog-dialog-category { color:var(--accent); font-size:9px; margin:22px 0 8px; text-transform:uppercase; }
.blog-dialog h2 { font-size:clamp(20px,4vw,28px); line-height:1.35; letter-spacing:-1px; margin:0; }
.dialog-blue-rule { width:55px;height:2px;background:var(--accent);margin:18px 0; transform-origin:left; animation:ruleDraw .7s .1s ease both; }
.blog-dialog-body { color:var(--body); font-size:12px; line-height:1.95; }
.blog-dialog-body p { margin:0 0 13px; }.blog-dialog-body ul { padding-left:18px; margin:8px 0 18px; }.blog-dialog-body li { margin:6px 0; }
.blog-dialog-footer { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; border-top:1px solid var(--line); margin-top:23px; padding-top:16px; color:#6b7280; font-size:8px; }
.dialog-done { border:0; color:var(--accent); background:transparent; font-size:10px; cursor:pointer; }.dialog-done span { margin-left:8px; }
@keyframes beamSweep { from { opacity:.4; transform:rotate(7deg) scaleX(.82); } to { opacity:1; transform:rotate(17deg) scaleX(1.05); } }
@keyframes floatNode { 0%,100% { translate:0 0; } 50% { translate:0 -5px; } }
@keyframes cursorBlink { 0%,45% { opacity:1; } 46%,100% { opacity:.45; } }
@keyframes packetPulse { from { transform:scaleY(.55); opacity:.55; } to { transform:scaleY(1); opacity:1; } }
@keyframes slowOrbit { to { rotate:360deg; } }
@keyframes slowOrbitReverse { to { rotate:-360deg; } }
@keyframes dialogEnter { from { opacity:0; translate:0 16px; scale:.985; } to { opacity:1; translate:0 0; scale:1; } }
@keyframes ruleDraw { from { transform:scaleX(0); } to { transform:scaleX(1); } }
@media (max-width:1150px) {
  .topbar { padding-left:4%; padding-right:4%; }
  .brand { gap:7px; font-size:10px; }
  .nav-links { gap:11px; font-size:10px; }
  .nav-contact { padding:7px 9px; }
  .section { padding-left:7%; padding-right:7%; }
  .skills-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:980px) {
  .achievements-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .topbar { min-height:68px; }
  .menu-toggle { display:block; }
  .nav-links { display:none; position:absolute; top:67px; left:0; right:0; max-height:calc(100vh - 75px); overflow:auto; padding:20px 7% 24px; background:rgba(255,255,255,.98); border-bottom:1px solid var(--line); box-shadow:0 20px 35px #1118270d; flex-direction:column; align-items:flex-start; gap:14px; font-size:12px; }
  .nav-links.open { display:flex; }
  .nav-resume { padding-bottom:3px; }
}
@media (max-width:760px) {
  .skills-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:9px; }
  .skill-card { min-height:165px; padding:13px; }
  .skill-card h3 { font-size:12px; }
  .skill-card p { font-size:11px; }
  .skills-side-note,.section-side-note { display:none; }
  .blog-grid { grid-template-columns:1fr; grid-auto-rows:auto; }
  .blog-controls { gap:8px; }
  .blog-card-featured { grid-row:auto; }
  .blog-card-featured .blog-visual { min-height:205px; }
  .achievements-grid { grid-template-columns:1fr; }
  .achievement-card { min-height:220px; }
  .resume-layout { grid-template-columns:1fr; gap:25px; }
  .resume-preview-card { min-height:390px; }
  .resume-paper { width:min(76%,320px); }
  .orbit-a { width:315px;height:315px; }.orbit-b { width:350px;height:210px; }
  .resume-actions { align-items:flex-start; flex-direction:column; }
  .blog-dialog-inner { padding:21px; }
}
@media (hover:none),(pointer:coarse) {
  .project-card:hover { transform:translateY(-2px); }
  .project-card::before { display:none; }
  .skill-card:hover { transform:translateY(-2px); }
}
@media (prefers-reduced-motion:reduce) {
  .js-motion .reveal { opacity:1 !important; transform:none !important; transition:none !important; }
  .project-card,.skill-card,.blog-card,.achievement-card,.resume-paper,.resume-preview-card::before,.resume-preview-card::after { transform:none !important; }
  .flow-beam,.flow-node,.blog-visual-terminal p:last-child,.packet-wave i,.resume-orbit,.blog-dialog[open],.dialog-blue-rule { animation:none !important; }
  .project-card::before { display:none; }
  .achievement-card.achievement-swapping { opacity:1 !important; transform:none !important; transition:none !important; }
  .achievement-card.achievement-swap-in { animation:none !important; }
}

/* Hero and headline motion carried across the expanded edition. */
.section-label { display:flex; align-items:center; gap:16px; margin-bottom:38px; color:var(--accent); font-size:10px; letter-spacing:.05em; }
.section-label .label-line { display:block; height:1px; flex:1; background:var(--line); }
.hero-kicker { display:flex; justify-content:center; align-items:center; gap:9px; flex-wrap:wrap; }
.role-prefix { color:#6b7280; font-size:.82em; letter-spacing:.035em; }
.role-divider { color:#9ca3af; }
.role-text { color:var(--accent); min-width:13ch; text-align:left; }
.type-caret { display:inline-block; width:1px; height:1em; background:var(--accent); margin-left:-5px; vertical-align:-.13em; animation:caretBlink .85s steps(2,end) infinite; }
.name-accent { position:relative; display:inline-block; background:linear-gradient(100deg,#1d4ed8 10%,#60a5fa 33%,#1d4ed8 54%,#1e40af 80%); background-size:220% 100%; -webkit-background-clip:text; background-clip:text; color:transparent; animation:nameShimmer 6s ease-in-out infinite; }
.name-accent::after { content:""; position:absolute; left:0; right:0; bottom:-5px; height:2px; background:linear-gradient(90deg,transparent,#1d4ed8 18%,#93c5fd 52%,#1d4ed8 84%,transparent); transform:scaleX(0); transform-origin:left; animation:nameUnderline .85s .65s cubic-bezier(.2,.8,.25,1) forwards; }
@keyframes caretBlink { 0%,45% { opacity:1; } 46%,100% { opacity:0; } }
@keyframes nameShimmer { 0%,100% { background-position:100% 50%; } 50% { background-position:0% 50%; } }
@keyframes nameUnderline { to { transform:scaleX(1); } }
.contact-pretitle { display:flex; align-items:center; gap:9px; color:#6b7280; font-size:9px; letter-spacing:.05em; margin:0 0 18px; opacity:0; transform:translateY(10px); transition:opacity .55s ease,transform .55s ease; }
.contact-pretitle-dot { width:6px;height:6px;border-radius:50%; background:var(--accent); box-shadow:0 0 0 4px #dbeafe; }
.contact-headline { display:block; font-size:clamp(34px,4.4vw,58px) !important; line-height:1.13 !important; letter-spacing:-2.7px !important; margin:0 !important; }
.headline-line { display:block; overflow:hidden; padding:0 0 .08em; }
.headline-word { display:inline-block; transform:translateY(115%) rotate(2deg); opacity:0; transition:transform .95s cubic-bezier(.16,1,.3,1),opacity .8s ease; }
.headline-line:nth-child(2) .headline-word { transition-delay:.12s; }
.headline-blue { color:var(--accent); position:relative; display:inline-block; background:linear-gradient(100deg,#1d4ed8,#60a5fa,#1d4ed8); background-size:200% 100%; background-clip:text; -webkit-background-clip:text; -webkit-text-fill-color:transparent; animation:nameShimmer 5s ease infinite; }
.headline-underline { width:min(260px,72%); height:2px; background:#dbeafe; margin:18px 0 23px; overflow:hidden; }
.headline-underline span { display:block; width:100%; height:100%; background:var(--accent); transform:scaleX(0); transform-origin:left; }
.contact-copy,.contact-signoff { opacity:0; transform:translateY(12px); transition:opacity .65s ease,transform .65s ease; }
.contact-signoff { display:flex; align-items:center; flex-wrap:wrap; gap:8px; color:#6b7280; font-size:8px; letter-spacing:.05em; margin:18px 0 0; }
.contact-signoff i { width:14px;height:1px;background:#93c5fd; }
.contact-heading-wrap.is-visible .contact-pretitle { opacity:1; transform:translateY(0); transition-delay:.05s; }
.contact-heading-wrap.is-visible .headline-word { transform:translateY(0) rotate(0); opacity:1; }
.contact-heading-wrap.is-visible .headline-underline span { animation:ruleDraw .8s .48s cubic-bezier(.2,.8,.25,1) both; }
.contact-heading-wrap.is-visible .contact-copy { opacity:1; transform:translateY(0); transition-delay:.5s; }
.contact-heading-wrap.is-visible .contact-signoff { opacity:1; transform:translateY(0); transition-delay:.65s; }
/* Keep reveal motion from overriding interactive transforms on hover/focus. */
.js-motion .reveal.is-visible:not(:hover):not(:focus-within) { transform:translateY(0); }
.js-motion .project-card.reveal.is-visible:hover { transform:perspective(1100px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)) translateY(-3px); }
.js-motion .skill-card.reveal.is-visible:hover { transform:translateY(-5px); }
.js-motion .blog-card.reveal.is-visible:hover { transform:translateY(-5px); }
.js-motion .achievement-card.reveal.is-visible:hover { transform:translateY(-5px); }
.js-motion .resume-preview-card.reveal.is-visible:hover { transform:translateY(-3px); }
@media (max-width:760px) {
  .section-label { margin-bottom:27px; }
  .contact-headline { letter-spacing:-1.8px !important; }
  .role-text { min-width:0; }
  .name-accent::after { bottom:-3px; }
}
@media (prefers-reduced-motion:reduce) {
  .type-caret,.name-accent,.headline-blue { animation:none !important; }
  .name-accent { background:none; -webkit-text-fill-color:var(--accent); color:var(--accent); }
  .name-accent::after { animation:none !important; transform:scaleX(1); }
  .headline-word { transform:none !important; opacity:1 !important; transition:none !important; }
  .contact-pretitle,.contact-copy,.contact-signoff { opacity:1 !important; transform:none !important; transition:none !important; }
  .headline-underline span { transform:scaleX(1) !important; animation:none !important; }
}
.project-card { position:relative; }
.project-card::before { z-index:0; }
.project-card > * { z-index:1; }
@media (max-width:680px) { .hero h1 { font-size:clamp(34px,9.6vw,52px); letter-spacing:-2.5px; } }
/* Progressive enhancement: these titles stay readable if JavaScript is unavailable. */
.contact-pretitle,.contact-copy,.contact-signoff { opacity:1; transform:none; }
.headline-word { opacity:1; transform:none; }
.js-motion .contact-pretitle { opacity:0; transform:translateY(10px); }
.js-motion .headline-word { opacity:0; transform:translateY(115%) rotate(2deg); }
.js-motion .contact-copy,.js-motion .contact-signoff { opacity:0; transform:translateY(12px); }
.js-motion .contact-heading-wrap.is-visible .contact-pretitle,
.js-motion .contact-heading-wrap.is-visible .headline-word,
.js-motion .contact-heading-wrap.is-visible .contact-copy,
.js-motion .contact-heading-wrap.is-visible .contact-signoff { opacity:1; transform:translateY(0) rotate(0); }
@media (prefers-reduced-motion:reduce) {
  .contact-pretitle,.contact-copy,.contact-signoff,.headline-word { opacity:1 !important; transform:none !important; }
}


/* MERGED ORIGINAL-SECTION MOTION — isolated from the newer Skills/Blog/Achievements/Resume styles. */
.hero { position: relative; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  width: min(720px, 100vw); height: 520px; left: 50%; top: 3%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 48%, rgba(29,78,216,.075), rgba(96,165,250,.035) 37%, transparent 72%);
  animation: heroGlowDrift 11s ease-in-out infinite alternate;
}
.hero-copy { position: relative; z-index: 1; }
.hero .role-prefix { color: #6b7280; }
.hero .role-divider { color: #9ca3af; }
.hero .type-caret { animation: caretBlink .85s steps(2, start) infinite; }
@keyframes heroGlowDrift { from { opacity: .65; transform: translateX(-50%) translateY(-8px) scale(.98); } to { opacity: 1; transform: translateX(-50%) translateY(12px) scale(1.04); } }
@keyframes caretBlink { 0%, 45% { opacity: 1; } 46%, 100% { opacity: 0; } }

/* Project illustration motion stays confined to existing project visuals. */
.project-card { position: relative; }
.project-card:hover .project-art { border-color: #bfdbfe; }
.project-card:not(.is-visible) .scan-ring { animation-play-state: paused; }
.project-card.is-visible .art-network .network-lines { animation: networkDrift 18s linear infinite; }
.project-card:hover .art-soar .node-a { animation: nodeFloat 2.3s ease-in-out infinite alternate; }
.project-card:hover .art-soar .node-b { animation: nodeFloat 2.3s ease-in-out .16s infinite alternate; }
.project-card:hover .art-soar .node-c { animation: nodeFloat 2.3s ease-in-out .3s infinite alternate; }
.project-card:hover .art-soar .node-d { animation: nodeFloat 2.3s ease-in-out .46s infinite alternate; }
.project-card:hover .art-siem .terminal p { transform: translateX(3px); }
.terminal p { transition: transform .3s ease; }
.terminal p:nth-of-type(2) { transition-delay: 35ms; }
.terminal p:nth-of-type(3) { transition-delay: 70ms; }
.terminal p:nth-of-type(4) { transition-delay: 105ms; }
.connector { animation: connectorBreathe 2.6s ease-in-out infinite alternate; }
.con-b { animation-delay: .35s; }
.con-c { animation-delay: .7s; }
.wave-bars i { transform-origin: center; animation: waveform 1.2s ease-in-out infinite alternate; }
.wave-bars i:nth-child(2n) { animation-delay: .22s; }
.wave-bars i:nth-child(3n) { animation-delay: .4s; }
.scan-ring { animation: scanPulse 3.2s ease-in-out infinite; }
.ring2 { animation-delay: .65s; }
@keyframes connectorBreathe { from { opacity: .45; } to { opacity: 1; } }
@keyframes waveform { from { transform: scaleY(.48); opacity: .65; } to { transform: scaleY(1); opacity: 1; } }
@keyframes scanPulse { 0%, 100% { transform: scale(.96); opacity: .6; } 50% { transform: scale(1.04); opacity: 1; } }
@keyframes nodeFloat { from { transform: translateY(0); } to { transform: translateY(-4px); } }
@keyframes networkDrift { from { background-position: 0 0, 0 0; } to { background-position: 58px 58px, -58px 58px; } }

/* About section only: sheen on the existing About skill tags (not the new Skills cards). */
.about-section .skill-tags span { position: relative; overflow: hidden; }
.about-section .skill-tags span::after {
  content: ""; position: absolute; left: -110%; top: 0; width: 70%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(96,165,250,.16), transparent);
  transition: left .45s ease;
}
.about-section .skill-tags span:hover::after { left: 140%; }

/* Original Experience and Education micro-interactions. */
.experience-item { position: relative; transition: background-color .3s ease, padding-left .3s ease; }
.experience-item::before { content: ""; position: absolute; left: 0; top: 25px; bottom: 25px; width: 2px; background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform .35s ease; }
.experience-item:hover { padding-left: 10px; }
.experience-item:hover::before { transform: scaleY(1); }
.experience-main h3 { transition: color .25s ease, transform .25s ease; }
.experience-item:hover .experience-main h3 { color: var(--accent); transform: translateX(2px); }
.experience-main li::marker { color: #93c5fd; }
.experience-badge { transition: background-color .25s ease, border-color .25s ease; }
.experience-item:hover .experience-badge { background: #dbeafe; border-color: #93c5fd; }
.education-card { position: relative; transition: padding-left .3s ease, background-color .3s ease; }
.education-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .45s cubic-bezier(.16,1,.3,1); }
.education-card:hover, .education-card:focus-within { padding-left: 7px; }
.education-card:hover::after, .education-card:focus-within::after { transform: scaleX(1); }
.education-card .edu-icon { transition: transform .35s cubic-bezier(.2,.7,.2,1), background-color .3s ease; }
.education-card:hover .edu-icon { transform: rotate(-6deg) scale(1.05); background: #eff6ff; }
.education-card .edu-arrow { display: inline-block; transition: color .25s ease, transform .3s cubic-bezier(.2,.7,.2,1); }
.education-card:hover .edu-arrow { color: var(--accent); transform: translate(2px,-2px); }

/* Existing section titles only — deliberately exclude Skills, Blog, Achievements and Resume headings. */
#projects .section-heading h2::after, #experience .section-heading h2::after { content: ""; display: block; width: 0; max-width: 60%; height: 2px; margin-top: 13px; background: var(--accent); transition: width .75s cubic-bezier(.16,1,.3,1) .18s; }
#projects .section-heading.is-visible h2::after, #experience .section-heading.is-visible h2::after { width: 54px; }

/* Navigation feedback; no changes to new section card effects. */
.nav-links a:not(.nav-contact) { position: relative; }
.nav-links a:not(.nav-contact)::after { content: ""; position: absolute; height: 1px; background: var(--accent); left: 0; right: 100%; bottom: -5px; transition: right .25s ease; }
.nav-links a:not(.nav-contact):hover::after, .nav-links a.is-current:not(.nav-contact)::after { right: 0; }
.nav-links a.is-current:not(.nav-contact) { color: var(--accent); }
.nav-contact { transition: border-color .25s ease, background-color .25s ease, transform .25s ease; }
.nav-contact:hover { border-color: #93c5fd; background: #eff6ff; transform: translateY(-1px); }

/* Contact-only editorial headline and luminous contact panel; this does not touch the new feature sections. */
/* Contact headline: editorial, split-line reveal inspired by the reference site's opening animation. */
.contact-section { isolation: isolate; }
.contact-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(620px, 90vw);
  height: 470px;
  top: -80px;
  left: -100px;
  pointer-events: none;
  background: radial-gradient(ellipse at 42% 48%, rgba(29,78,216,.075), rgba(96,165,250,.035) 39%, transparent 72%);
  transform: translate3d(-10px, 8px, 0);
  animation: contactAtmosphere 10s ease-in-out infinite alternate;
}
.contact-heading-wrap { position: relative; z-index: 1; }
.contact-pretitle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  margin: 0 0 20px;
  color: #6b7280;
  font: 500 10px/1.5 var(--font);
  letter-spacing: .08em;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .55s ease, transform .55s cubic-bezier(.2,.7,.2,1);
}
.contact-pretitle-dot {
  display: inline-block;
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(29,78,216,.09);
  animation: pretitlePulse 2s ease-in-out infinite;
}
.contact-headline {
  font-size: clamp(43px, 6.2vw, 76px) !important;
  line-height: 1.04 !important;
  letter-spacing: -.075em !important;
  font-weight: 700 !important;
  margin: 0 !important;
  color: #111827 !important;
  perspective: 700px;
}
.headline-line {
  display: block;
  width: fit-content;
  max-width: 100%;
  overflow: hidden;
  padding: .035em .11em .12em 0;
  margin-left: 0;
}
.headline-word {
  display: inline-block;
  opacity: 0;
  transform: translate3d(0, 115%, 0) rotateX(-12deg);
  transform-origin: 50% 100%;
  transition: opacity .7s ease, transform .95s cubic-bezier(.16,1,.3,1);
  transition-delay: var(--word-delay, 0ms);
  will-change: transform, opacity;
}
.headline-line:nth-child(1) .headline-word { --word-delay: 90ms; }
.headline-line:nth-child(2) .headline-word { --word-delay: 220ms; }
.headline-blue {
  position: relative;
  display: inline-block;
  color: var(--accent);
  background: linear-gradient(105deg, #1d4ed8 0%, #2563eb 34%, #60a5fa 48%, #1d4ed8 64%, #1d4ed8 100%);
  background-size: 240% 100%;
  background-position: 100% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: strongerShimmer 6.5s ease-in-out 1.5s infinite;
}
.headline-underline {
  width: min(250px, 68%);
  height: 2px;
  margin: 14px 0 0;
  position: relative;
  overflow: hidden;
  background: #dbeafe;
  transform: scaleX(.18);
  transform-origin: left center;
  opacity: .7;
  transition: transform .9s cubic-bezier(.16,1,.3,1) .45s, opacity .7s ease .45s;
}
.headline-underline span {
  position: absolute;
  inset: 0;
  display: block;
  width: 36%;
  background: var(--accent);
  transform: translateX(-110%);
}
.contact-heading-wrap.is-visible .headline-underline { transform: scaleX(1); opacity: 1; }
.contact-heading-wrap.is-visible .headline-underline span { animation: underlineSweep 1.1s cubic-bezier(.16,1,.3,1) .85s both; }
.contact-heading-wrap.is-visible .contact-pretitle { opacity: 1; transform: translateY(0); transition-delay: 30ms; }
.contact-heading-wrap.is-visible .headline-word { opacity: 1; transform: translate3d(0,0,0) rotateX(0deg); }
.contact-copy { max-width: 420px; margin-top: 24px !important; opacity: 0; transform: translateY(14px); transition: opacity .65s ease .38s, transform .75s cubic-bezier(.2,.7,.2,1) .38s; }
.contact-heading-wrap.is-visible .contact-copy { opacity: 1; transform: translateY(0); }
.contact-signoff {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  margin: 21px 0 0;
  color: #6b7280;
  font: 10px/1.6 var(--font);
  letter-spacing: .03em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .5s ease .55s, transform .6s ease .55s;
}
.contact-signoff i { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: var(--accent); }
.contact-heading-wrap.is-visible .contact-signoff { opacity: 1; transform: translateY(0); }
.contact-panel { position: relative; overflow: hidden; }
.contact-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  height: 2px;
  width: 70%;
  background: linear-gradient(90deg, transparent, #60a5fa, var(--accent), transparent);
  transition: left .75s cubic-bezier(.16,1,.3,1);
}
.contact-panel:hover::before { left: 150%; }
@keyframes strongerShimmer { 0%, 72%, 100% { background-position: 100% 50%; } 38% { background-position: 0% 50%; } }
@keyframes underlineSweep { 0% { transform: translateX(-110%); } 100% { transform: translateX(320%); } }
@keyframes pretitlePulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(29,78,216,.08); } 50% { box-shadow: 0 0 0 7px rgba(29,78,216,.035); } }
@keyframes contactAtmosphere { from { transform: translate3d(-10px, 8px, 0) scale(.98); opacity: .65; } to { transform: translate3d(18px, -4px, 0) scale(1.04); opacity: 1; } }
@media (max-width: 680px) {
  .contact-headline { font-size: clamp(38px, 11vw, 57px) !important; letter-spacing: -.07em !important; }
  .contact-pretitle { font-size: 9px; margin-bottom: 16px; }
  .headline-underline { margin-top: 9px; }
  .contact-signoff { font-size: 9px; gap: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .contact-section::before, .contact-pretitle-dot, .headline-blue { animation: none !important; }
  .contact-pretitle, .headline-word, .headline-underline, .contact-copy, .contact-signoff { opacity: 1 !important; transform: none !important; transition: none !important; }
  .contact-heading-wrap .headline-underline span { animation: none !important; transform: none !important; }
}

/* Focus states for keyboard access to the existing portfolio interactions. */
.button:focus-visible, .text-link:focus-visible, .nav-links a:focus-visible,
.icon-link:focus-visible, .social-row a:focus-visible, .social-row button:focus-visible,
.education-card:focus-visible { outline: 2px solid #60a5fa; outline-offset: 4px; }

@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero .type-caret, .connector, .wave-bars i, .scan-ring,
  .project-card:hover .art-soar .node-a, .project-card:hover .art-soar .node-b,
  .project-card:hover .art-soar .node-c, .project-card:hover .art-soar .node-d,
  .project-card.is-visible .art-network .network-lines { animation: none !important; }
  .hero::before { opacity: .65; }
}

/* === Requested additions: new motion ONLY in About and Projects === */
#about { position: relative; isolation: isolate; }
#about .about-layout { position: relative; }
#about .about-layout::before {
  content: ""; position: absolute; top: 10%; bottom: 10%; left: 50%; width: 1px;
  background: linear-gradient(180deg, transparent, #bfdbfe 18%, var(--accent) 50%, #bfdbfe 82%, transparent);
  transform: scaleY(0); transform-origin: top; opacity: .75;
  transition: transform 1s cubic-bezier(.16,1,.3,1) .15s;
  pointer-events: none;
}
#about.is-active .about-layout::before { transform: scaleY(1); }
#about .about-layout > div:first-child h2 { position: relative; width: fit-content; max-width: 100%; padding-bottom: 9px; }
#about .about-layout > div:first-child h2::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--accent), #93c5fd 58%, transparent);
  transform: scaleX(0); transform-origin: left; transition: transform .9s cubic-bezier(.16,1,.3,1) .25s;
}
#about.is-active .about-layout > div:first-child h2::after { transform: scaleX(1); }
#about .skill-tags span {
  transition: transform .35s cubic-bezier(.2,.8,.2,1), border-color .3s ease, background-color .3s ease, box-shadow .3s ease;
  will-change: transform;
}
#about .skill-tags span:hover {
  transform: translateY(-3px) rotate(-1deg);
  border-color: #93b4f8; background: #eff6ff; box-shadow: 0 7px 18px rgba(29,78,216,.09);
}
#about .skill-tags span:nth-child(3n):hover { transform: translateY(-3px) rotate(1deg); }

#projects { position: relative; isolation: isolate; }
#projects .project-card { isolation: isolate; }
#projects .project-card::after {
  content: ""; position: absolute; top: 0; left: -75%; width: 48%; height: 2px; z-index: 3;
  pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, #60a5fa, var(--accent), transparent);
}
#projects .project-card:hover::after,
#projects .project-card:focus-within::after { opacity: 1; animation: projectEdgeSweep .95s cubic-bezier(.2,.7,.2,1) both; }
#projects .project-art { isolation: isolate; }
#projects .project-art::after {
  content: ""; position: absolute; inset: -30% -45%; z-index: 4; pointer-events: none;
  opacity: 0; transform: translateX(-115%) skewX(-14deg);
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,0) 43%, rgba(96,165,250,.16) 48%, rgba(255,255,255,.52) 50%, rgba(96,165,250,.17) 52%, transparent 60%);
  transition: opacity .25s ease;
}
#projects .project-card:hover .project-art::after,
#projects .project-card:focus-within .project-art::after {
  opacity: 1; animation: projectScanSweep 1.1s cubic-bezier(.16,1,.3,1) both;
}
#projects .project-card .tech-list span { transition: transform .3s cubic-bezier(.2,.8,.2,1), background-color .3s ease, color .3s ease; }
#projects .project-card:hover .tech-list span:nth-child(1) { transform: translateY(-2px); transition-delay: 20ms; }
#projects .project-card:hover .tech-list span:nth-child(2) { transform: translateY(-3px); transition-delay: 55ms; }
#projects .project-card:hover .tech-list span:nth-child(3) { transform: translateY(-2px); transition-delay: 90ms; }
#projects .project-card:hover .tech-list span:nth-child(4) { transform: translateY(-3px); transition-delay: 125ms; }
@keyframes projectEdgeSweep { 0% { left: -55%; } 100% { left: 125%; } }
@keyframes projectScanSweep { 0% { transform: translateX(-115%) skewX(-14deg); } 100% { transform: translateX(115%) skewX(-14deg); } }
@media (max-width: 680px) {
  #about .about-layout::before { display: none; }
  #about .about-layout > div:first-child h2 { width: auto; }
  #projects .project-card:hover::after,
  #projects .project-card:focus-within::after { animation-duration: .7s; }
}
@media (prefers-reduced-motion: reduce) {
  #about .about-layout::before, #about .about-layout > div:first-child h2::after { transform: none; transition: none; }
  #about .skill-tags span, #projects .project-card .tech-list span { transition: none; }
  #projects .project-card::after, #projects .project-art::after { display: none; animation: none !important; }
}

/* Compact theme icon. Its state only changes colors; section interactions are retained. */
.theme-toggle {
  display: inline-grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; margin-left: 14px;
  border: 1px solid #d1d5db; border-radius: 7px; background: #fff; color: #374151; cursor: pointer;
  transition: color .25s ease, background-color .25s ease, border-color .25s ease, transform .25s ease;
}
.theme-toggle:hover { color: var(--accent); border-color: #93b4f8; background: #eff6ff; transform: translateY(-1px); }
.theme-icon { width: 17px; height: 17px; display: block; }
.theme-icon-sun { display: none; }
.theme-toggle:focus-visible { outline: 2px solid #60a5fa; outline-offset: 3px; }
@media (max-width: 1100px) and (min-width: 681px) {
  .topbar { padding-left: 4%; padding-right: 4%; }
  .nav-links { gap: clamp(6px, 1vw, 12px); font-size: 10px; }
  .theme-toggle { margin-left: 8px; }
}
@media (max-width: 900px) {
  .theme-toggle { margin-left: 10px; }
  .nav-links { gap: clamp(8px, 1.3vw, 16px); }
}
@media (max-width: 680px) {
  .theme-toggle { margin-left: auto; margin-right: 10px; }
  .topbar { gap: 0; }
}

/* Optional dark palette. All motion and section structure above remains untouched. */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000; --panel: #0b0b0b; --panel-strong: #141414;
  --text: #f4f4f4; --body: #c8c8c8; --muted: #9a9a9a;
  --line: #292929; --accent: #79b5ff; --accent-soft: #111111;
}
html[data-theme="dark"] body { background: var(--bg); color: var(--text); }
html[data-theme="dark"] .topbar { background: rgba(0,0,0,.94); border-color: var(--line); }
html[data-theme="dark"] .nav-links { color: #d0d0d0; }
html[data-theme="dark"] .nav-links a.is-current { color: var(--accent); }
html[data-theme="dark"] .nav-contact { border-color: #333333; }
html[data-theme="dark"] .nav-contact:hover { background: #141414; border-color: #527cbb; }
html[data-theme="dark"] .theme-toggle { color: #e1e9f6; background: #080808; border-color: #333333; }
html[data-theme="dark"] .theme-toggle:hover { background: #151515; border-color: #608fcf; color: #b6d6ff; }
html[data-theme="dark"] .theme-icon-moon { display: none; }
html[data-theme="dark"] .theme-icon-sun { display: block; }
html[data-theme="dark"] .menu-toggle { color: var(--text); }
html[data-theme="dark"] .hero h1,
html[data-theme="dark"] .section h2,
html[data-theme="dark"] .contact-section h2,
html[data-theme="dark"] .project-info h3,
html[data-theme="dark"] .experience-main h3,
html[data-theme="dark"] .education-card h3,
html[data-theme="dark"] .skill-card h3,
html[data-theme="dark"] .blog-card h3,
html[data-theme="dark"] .resume-copy h2 { color: var(--text); }
html[data-theme="dark"] .hero-intro,
html[data-theme="dark"] .about-content p,
html[data-theme="dark"] .skills-intro,
html[data-theme="dark"] .blog-intro,
html[data-theme="dark"] .projects-intro,
html[data-theme="dark"] .project-info p,
html[data-theme="dark"] .experience-main p,
html[data-theme="dark"] .experience-main ul,
html[data-theme="dark"] .education-card p,
html[data-theme="dark"] .contact-copy,
html[data-theme="dark"] .resume-copy > p:not(.section-eyebrow):not(.resume-note) { color: var(--body); }
html[data-theme="dark"] .text-link,
html[data-theme="dark"] .social-row a,
html[data-theme="dark"] .social-row button,
html[data-theme="dark"] .back-top { color: #dedede; }
html[data-theme="dark"] .role-prefix,
html[data-theme="dark"] .role-divider,
html[data-theme="dark"] .contact-pretitle,
html[data-theme="dark"] .contact-signoff,
html[data-theme="dark"] .contact-label,
html[data-theme="dark"] .footer p,
html[data-theme="dark"] .copyright,
html[data-theme="dark"] .project-number,
html[data-theme="dark"] .project-type,
html[data-theme="dark"] .disclaimer { color: #999999; }
html[data-theme="dark"] .muted { color: #999999; }
html[data-theme="dark"] .ticker { background: #000000; color: #bcbcbc; border-color: var(--line); }
html[data-theme="dark"] .about-section,
html[data-theme="dark"] .experience-section { background: #000000; border-color: var(--line); }
html[data-theme="dark"] .projects-section,
html[data-theme="dark"] .blog-section,
html[data-theme="dark"] .resume-section,
html[data-theme="dark"] .contact-section,
html[data-theme="dark"] .footer { background: #080808; border-color: var(--line); }
html[data-theme="dark"] .skills-section,
html[data-theme="dark"] .achievements-section,
html[data-theme="dark"] .education-section { background: #0c0c0c; border-color: var(--line); }
html[data-theme="dark"] .label-line,
html[data-theme="dark"] .section-label .label-line { background: var(--line); }
html[data-theme="dark"] .skill-tags span { color: #dedede; border-color: #343434; background: #0b0b0b; }
html[data-theme="dark"] #about .skill-tags span:hover { color: #f5f5f5; border-color: #527cbb; background: #141414; box-shadow: 0 7px 18px rgba(0,0,0,.18); }
html[data-theme="dark"] .project-card,
html[data-theme="dark"] .skill-card,
html[data-theme="dark"] .blog-card,
html[data-theme="dark"] .achievement-card,
html[data-theme="dark"] .contact-panel { background: #0b0b0b; border-color: #2e2e2e; }
html[data-theme="dark"] .project-card:hover,
html[data-theme="dark"] .blog-card:hover,
html[data-theme="dark"] .achievement-card:hover { background: #151515; border-color: #527cbb; }
html[data-theme="dark"] .project-card::before { background: radial-gradient(320px circle at var(--spot-x) var(--spot-y), rgba(96,165,250,.17), transparent 65%); }
html[data-theme="dark"] #projects .project-art { border-color: #383838; }
html[data-theme="dark"] .art-soar,
html[data-theme="dark"] .art-siem { background: linear-gradient(135deg,#111111,#090909 55%,#151515); }
html[data-theme="dark"] .art-network { background: linear-gradient(145deg,#080808,#101010); }
html[data-theme="dark"] .art-scan { background: radial-gradient(circle at center,#151515,#0a0a0a 66%); }
html[data-theme="dark"] .node,
html[data-theme="dark"] .network-node { background: #151515; border-color: #454545; color: #e6e6e6; box-shadow: 0 3px 12px rgba(0,0,0,.12); }
html[data-theme="dark"] .node-b,
html[data-theme="dark"] .node-c,
html[data-theme="dark"] .network-node { color: #a9ceff; }
html[data-theme="dark"] .connector { background: #6395d8; }
html[data-theme="dark"] .con-c { background: #79b5ff; }
html[data-theme="dark"] .art-center,
html[data-theme="dark"] .scan-label { color: #a4a4a4; }
html[data-theme="dark"] .terminal { color: #dedede; }
html[data-theme="dark"] .terminal-bar { border-color: #333333; }
html[data-theme="dark"] .terminal-bar span { color: #a6a6a6; }
html[data-theme="dark"] .terminal em { color: #a9ceff; }
html[data-theme="dark"] .project-status { color: #9fc9ff; }
html[data-theme="dark"] .tech-list span { background: #242424; color: #f1f1f1; }
html[data-theme="dark"] .project-card:hover .tech-list span { background: #303030; }
html[data-theme="dark"] .icon-link { color: #a8ceff; border-color: #383838; background: #111111; }
html[data-theme="dark"] .icon-link:hover { background: #1c1c1c; }
html[data-theme="dark"] .skill-filter { color: #d0d0d0; border-color: #383838; }
html[data-theme="dark"] .skill-filter span { color: #999999; }
html[data-theme="dark"] .skill-filter.is-active { color: #000000; background: #79b5ff; border-color: #79b5ff; }
html[data-theme="dark"] .skill-filter.is-active span { color: #141414; }
html[data-theme="dark"] .skill-card::before { background: #222222; }
html[data-theme="dark"] .skill-card:hover,
html[data-theme="dark"] .skill-card:focus-within { border-color: #608fcf; box-shadow: 0 15px 35px rgba(0,0,0,.18); }
html[data-theme="dark"] .skill-index,
html[data-theme="dark"] .skill-category { color: #a3a3a3; }
html[data-theme="dark"] .skill-symbol { background: transparent; border-color: transparent; }
html[data-theme="dark"] .blog-visual { background: #101010; }
html[data-theme="dark"] .blog-visual-flow { background: radial-gradient(circle at 56% 47%,#1d3d66 0,transparent 38%),linear-gradient(130deg,#090909,#151515); }
html[data-theme="dark"] .blog-visual-packet { background: linear-gradient(145deg,#101010,#171717); }
html[data-theme="dark"] .blog-visual-terminal { background: #050505; color: #dedede; }
html[data-theme="dark"] .blog-dialog { background: #0b0b0b; border-color: #383838; color: var(--text); }
html[data-theme="dark"] .blog-dialog::backdrop { background: rgba(0,0,0,.72); }
html[data-theme="dark"] .dialog-close { background: #151515; border-color: #383838; color: var(--text); }
html[data-theme="dark"] .dialog-close:hover { background: var(--accent); color: #000000; }
html[data-theme="dark"] .blog-dialog-footer { color: #9baac0; }
html[data-theme="dark"] .achievement-featured { background: #101010; border-color: #333333; }
html[data-theme="dark"] .achievement-big { color: #f0f0f0; }
html[data-theme="dark"] .achievement-topline { color: #b8b8b8; }
html[data-theme="dark"] .achievement-symbol { border-color: #414141; }
html[data-theme="dark"] .experience-item { border-color: var(--line); }
html[data-theme="dark"] .experience-item:hover { background: rgba(96,165,250,.045); }
html[data-theme="dark"] .experience-badge { color: #a9ceff; border-color: #3a3a3a; background: #141414; }
html[data-theme="dark"] .experience-item:hover .experience-badge { background: #203b60; border-color: #527cbb; }
html[data-theme="dark"] .education-card { border-color: var(--line); }
html[data-theme="dark"] .edu-icon { background: #111111; border-color: #383838; }
html[data-theme="dark"] .edu-arrow { color: #aaaaaa; }
html[data-theme="dark"] .education-card:hover .edu-icon { background: #202020; }
html[data-theme="dark"] .contact-panel { background: #0b0b0b; }
html[data-theme="dark"] .contact-divider { background: var(--line); }
html[data-theme="dark"] .headline-underline { background: #333333; }
html[data-theme="dark"] .contact-pretitle-dot { box-shadow: 0 0 0 4px rgba(121,181,255,.12); }
html[data-theme="dark"] .resume-preview-card::before { border-color: #383838; background: linear-gradient(130deg,rgba(96,165,250,.12),transparent); }
html[data-theme="dark"] .resume-preview-card::after { border-color: #303030; }
/* The resume mock-up stays paper-white on purpose, like a real downloadable PDF. */
html[data-theme="dark"] .resume-paper { background: #fff; color: #1f2937; border-color: #d1d5db; }
html[data-theme="dark"] .resume-paper h3,
html[data-theme="dark"] .resume-paper .paper-section b { color: #1f2937; }
html[data-theme="dark"] .resume-paper .paper-topline,
html[data-theme="dark"] .resume-paper .paper-footer { color: #6b7280; }
html[data-theme="dark"] .footer { border-color: var(--line); }
html[data-theme="dark"] .nav-contact,
html[data-theme="dark"] .theme-toggle { color-scheme: dark; }
html[data-theme="dark"] .nav-links.open { background: #000000; border-color: var(--line); }
html[data-theme="dark"] .button-primary { color: #000000; background: #79b5ff; border-color: #79b5ff; }
html[data-theme="dark"] .button-primary:hover { background: #9ac8ff; }
html[data-theme="dark"] .resume-note { color: #aaaaaa; }
html[data-theme="dark"] .resume-note-dot { box-shadow: 0 0 0 3px #1b1b1b; }
html[data-theme="dark"] .disclaimer { color: #aaaaaa; }
@media (prefers-reduced-motion: reduce) {
  html[data-theme="dark"] *, html[data-theme="dark"] *::before, html[data-theme="dark"] *::after { scroll-behavior: auto; }
}


/* Black-mode finishing pass: keep all site surfaces neutral-black and text readable. */
html[data-theme="dark"] .about-section,
html[data-theme="dark"] .experience-section,
html[data-theme="dark"] .ticker { background-color: #000000; }
html[data-theme="dark"] .projects-section,
html[data-theme="dark"] .blog-section,
html[data-theme="dark"] .resume-section,
html[data-theme="dark"] .contact-section,
html[data-theme="dark"] .footer { background-color: #080808; }
html[data-theme="dark"] .skills-section,
html[data-theme="dark"] .achievements-section,
html[data-theme="dark"] .education-section { background-color: #0c0c0c; }
html[data-theme="dark"] .project-card,
html[data-theme="dark"] .skill-card,
html[data-theme="dark"] .blog-card,
html[data-theme="dark"] .achievement-card,
html[data-theme="dark"] .contact-panel,
html[data-theme="dark"] .blog-dialog { background-color: #0b0b0b; color: #f4f4f4; }
html[data-theme="dark"] .nav-links.open { background-color: #000000; }
html[data-theme="dark"] ::selection { color: #ffffff; background: #1d4ed8; }

/* Ensure formerly light-only micro-components adapt with the black theme too. */
html[data-theme="dark"] .skills-footer { background: #0b0b0b; border-left-color: var(--accent); }
html[data-theme="dark"] .skills-side-note,
html[data-theme="dark"] .section-side-note,
html[data-theme="dark"] .blog-meta { color: #a6a6a6; }
html[data-theme="dark"] .draft-status { color: #b5b5b5; background: #141414; border-color: #383838; }
html[data-theme="dark"] .flow-node,
html[data-theme="dark"] .packet-chip { background: rgba(12,12,12,.94); color: #a9ceff; border-color: #394b65; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
html[data-theme="dark"] .terminal-tag { border-color: #333333; }
html[data-theme="dark"] .achievement-bottom { color: #a6a6a6; border-color: #303030; }
html[data-theme="dark"] .achievement-card::before { border-color: #333333; }
html[data-theme="dark"] .achievement-card::after { border-color: #242424; }
html[data-theme="dark"] .achievement-dot { box-shadow: 0 0 0 3px #153020; }
html[data-theme="dark"] .skills-footer p { color: #b0b0b0; }


/* Contact headline: keep “Let's make” and “security” white in black dark mode.
   The nested “stronger.” span keeps its original animated blue gradient. */
html[data-theme="dark"] .contact-headline .headline-word {
  color: #ffffff !important;
}

html[data-theme="dark"] .achievement-nav { color:#e5e7eb; border-color:#3a3a3a; }
html[data-theme="dark"] .achievement-page-dot { background:#4b5563; }
html[data-theme="dark"] .achievement-page-dot.is-active { background:var(--accent); }

/* Visually hidden, still announced by screen readers */
.sr-only { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
/* Last achievements page with an odd card count: let the final card span the row */
@media (min-width:761px) { .achievements-grid > .achievement-card:last-child:nth-child(odd) { grid-column:1 / -1; } }
