-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
360 lines (331 loc) · 20 KB
/
index.html
File metadata and controls
360 lines (331 loc) · 20 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
<!DOCTYPE html>
<html lang="en" data-theme="dark">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Chivintar Amenty</title>
<meta name="description" content="Chivintar Amenty — CV, projects, and a small visual gallery." />
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;800&family=Source+Serif+4:opsz@8..60&display=swap" rel="stylesheet">
<style>
/* =====================
THEME & TOKENS
===================== */
:root{
--bg: #0b0b0d;
--bg-soft: #111115;
--fg: #e9e9ee;
--muted: #b9bbbf;
--brand: #7fd1ae; /* mint */
--brand-2: #a09bff; /* lilac */
--card: #15161a;
--shadow: 0 4px 24px rgba(0,0,0,.25);
--rad: 16px;
--maxw: 1100px;
--border: 1px solid rgba(255,255,255,.10);
--border-softer: 1px solid rgba(255,255,255,.08);
}
/* Light theme overrides (explicit) */
html[data-theme="light"]:root{
--bg:#ffffff; --bg-soft:#f6f7fb; --fg:#111111; --muted:#4d5563; --card:#ffffff; --shadow: 0 6px 24px rgba(0,0,0,.08);
--border: 1px solid rgba(0,0,0,.08); --border-softer: 1px solid rgba(0,0,0,.06);
}
/* Dark theme overrides (explicit) */
html[data-theme="dark"]:root{ /* uses defaults above */ }
/* Auto: follow OS preference unless user set explicit */
@media (prefers-color-scheme: light){
html[data-theme="auto"]:root{ --bg:#ffffff; --bg-soft:#f6f7fb; --fg:#111111; --muted:#4d5563; --card:#ffffff; --shadow: 0 6px 24px rgba(0,0,0,.08); --border: 1px solid rgba(0,0,0,.08); --border-softer: 1px solid rgba(0,0,0,.06); }
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;background:var(--bg);color:var(--fg);font:16px/1.55 Inter,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif}
a{color:inherit;text-decoration:none}
.wrap{max-width:var(--maxw);margin:auto;padding:24px}
/* Sticky utility nav */
.topnav{ position: sticky; top: 0; z-index: 5; background: color-mix(in oklab, var(--bg), transparent 0%); backdrop-filter: blur(6px); padding: 8px 0 6px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; }
.topnav .tabs{ display:flex; gap:10px; align-items:center; }
.topnav a{ padding: 6px 10px; border-radius: 999px; border: var(--border); }
.topnav a:hover{ background: color-mix(in oklab, var(--fg), transparent 90%); }
.topnav a.active{ background: color-mix(in oklab, var(--fg), transparent 85%); }
/* Theme toggle (single icon button) */
.theme-switch{ display:flex; align-items:center; }
.theme-toggle{ border: var(--border); background: transparent; color: var(--fg); border-radius: 999px; padding: 6px 10px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.theme-toggle svg{ width:16px; height:16px; opacity:.95 }
.theme-toggle:focus-visible{ outline:2px solid color-mix(in oklab, var(--fg), transparent 70%); outline-offset:2px }
/* HERO (single column) */
.hero{ padding: 36px 0 8px; }
.hero-inner{ max-width: 70ch; }
.h-title{font-size: clamp(28px, 4vw, 44px); line-height:1.1; font-weight:800; letter-spacing:-.3px}
.h-sub{color:var(--muted);margin-top:10px}
/* Buttons with icons */
.cta{ display:flex; flex-wrap:wrap; gap:10px; margin-top:18px }
.btn{ display:inline-flex; align-items:center; gap:8px; padding:10px 14px; border-radius:12px; border: var(--border); background: var(--card); box-shadow: var(--shadow); font-weight:600; }
.btn svg{ width:18px; height:18px; }
.btn.primary{ background:linear-gradient(135deg,var(--brand),var(--brand-2)); color:#111; border:none }
.btn.ghost{ background: transparent; }
.section{padding:26px 0}
/* CV embed */
.cv-embed{position:relative;overflow:hidden;border-radius:var(--rad);border:var(--border-softer);background: var(--card)}
.cv-embed iframe{width:100%;height:70vh;border:0;background:#fff}
.cv-note{color:var(--muted);font-size:.95rem;margin-top:10px}
/* Gallery */
.grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
@media(max-width:880px){.grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:560px){.grid{grid-template-columns:1fr}}
.tile{position:relative;border-radius:14px;overflow:hidden;border:var(--border-softer);cursor:zoom-in}
.tile img{display:block;width:100%;height:220px;object-fit:cover;transition:transform .35s ease}
.tile:hover img{transform:scale(1.03)}
.tile figcaption{position:absolute;left:8px;bottom:8px;background:rgba(0,0,0,.45);padding:4px 8px;border-radius:8px;font-size:.85rem}
/* Lightbox */
.lightbox{position:fixed;inset:0;background:rgba(0,0,0,.8);display:none;align-items:center;justify-content:center;padding:24px}
.lightbox.open{display:flex}
.lightbox img{max-width:min(1100px, 92vw);max-height:80vh;border-radius:12px}
.lightbox .cap{position:absolute;left:0;right:0;bottom:24px;text-align:center;color:#fff;opacity:.9}
.lightbox button{position:absolute;top:24px;right:24px;border:0;background:rgba(0,0,0,.5);color:#fff;padding:10px 12px;border-radius:10px;cursor:pointer}
footer{color:var(--muted);padding:36px 0}
/* Accordion (click-to-toggle tabs) */
details.acc{border-top:var(--border-softer)}
details.acc:last-of-type{border-bottom:var(--border-softer)}
details.acc > summary{list-style:none;cursor:pointer;padding:18px 6px;font-weight:700;display:flex;align-items:center;justify-content:space-between;}
details.acc > summary::-webkit-details-marker{display:none}
details.acc > summary::marker{display:none}
details.acc > summary .label{letter-spacing:.2px}
details.acc > summary .chev{transition:transform .25s ease;opacity:.85}
details.acc[open] > summary .chev{transform:rotate(90deg)}
details.acc .content{padding:0 6px 20px 6px}
.muted{color:var(--muted)}
</style>
</head>
<body>
<main class="wrap">
<nav class="topnav" role="navigation" aria-label="Section tabs">
<div class="tabs">
<a href="#cv" data-target="cv">CV</a>
<a href="#projects" data-target="projects">Projects</a>
<a href="#gallery" data-target="gallery">Gallery</a>
<a href="#about" data-target="about">More</a>
</div>
<div class="theme-switch" aria-label="Color theme">
<button id="theme-toggle" class="theme-toggle" type="button" title="Toggle theme" aria-label="Toggle theme"></button>
</div>
</nav>
<section class="hero">
<div class="hero-inner">
<h1 class="h-title">Hi, I'm Chivintar</h1>
<p class="h-sub">I study dynamics, causality, and generative models, and I enjoy nice visuals. My page for the moment includes a CV, few selected projects, and a tiny gallery of my creations.</p>
<div class="cta" role="group" aria-label="Primary links">
<a class="btn ghost" href="https://github.com/chivintar" target="_blank" rel="noopener">
<!-- GitHub icon -->
<svg viewBox="0 0 24 24" aria-hidden="true" xmlns="http://www.w3.org/2000/svg"><path fill="currentColor" d="M12 .5a12 12 0 0 0-3.79 23.39c.6.11.82-.26.82-.58v-2.18c-3.34.73-4.04-1.61-4.04-1.61-.55-1.38-1.34-1.75-1.34-1.75-1.09-.74.08-.73.08-.73 1.2.08 1.84 1.24 1.84 1.24 1.07 1.83 2.8 1.3 3.48.99.11-.78.42-1.3.76-1.6-2.66-.3-5.47-1.33-5.47-5.93 0-1.31.47-2.38 1.24-3.22-.12-.3-.54-1.52.12-3.17 0 0 1-.32 3.3 1.23a11.4 11.4 0 0 1 6 0c2.29-1.55 3.29-1.23 3.29-1.23.66 1.65.24 2.87.12 3.17.77.84 1.24 1.91 1.24 3.22 0 4.61-2.81 5.63-5.48 5.93.43.37.81 1.1.81 2.22v3.29c0 .32.22.69.82.58A12 12 0 0 0 12 .5z"/></svg>
</a>
<a class="btn ghost" href="https://www.linkedin.com/in/chivintar/" target="_blank" rel="noopener">
<!-- LinkedIn icon -->
<svg viewBox="0 0 24 24" aria-hidden="true" xmlns="http://www.w3.org/2000/svg"><path fill="currentColor" d="M4.98 3.5C4.98 4.88 3.86 6 2.5 6S0 4.88 0 3.5 1.12 1 2.5 1 4.98 2.12 4.98 3.5zM0 8h5v16H0V8zm7.5 0h4.8v2.2h.07c.67-1.2 2.3-2.46 4.73-2.46 5.06 0 6 3.33 6 7.66V24h-5v-7.6c0-1.82-.03-4.15-2.53-4.15-2.54 0-2.93 1.98-2.93 4.02V24h-5V8z"/></svg>
</a>
</div>
</div>
</section>
<section id="tabs" aria-label="Expandable sections" class="section">
<details class="acc" id="projects">
<summary><span class="label">Selected Projects</span><span class="chev">▸</span></summary>
<div class="content">
<div class="list">
<div class="item" style="padding:0; margin-top:10px">
<strong>Causal discovery in multivariate time series</strong><br/>
<small class="muted">PCMCI vs. Liang–Kleeman information flow · 2025</small><br/>
<a href="https://github.com/chivintar/causal-discovery" target="_blank" rel="noopener">GitHub repo</a>
</div>
<div class="item" style="padding:0; margin-top:10px">
<strong>Opinion polarization with RL agents</strong><br/>
<small class="muted">Network simulations & DQN agents · 2025</small><br/>
<a href="https://github.com/chivintar/reducing-polarization" target="_blank" rel="noopener">GitHub repo</a>
</div>
<div class="item" style="padding:0">
<strong>Iterated Denoising Energy Matching (iDEM) - slide deck & video</strong><br/>
<small class="muted">Generative sampling (paper presentation)· 2024–2025</small><br/>
<a href="./assets/GenAI_course/GenAI-paper-presentation_compressed.pdf" target="_blank" rel="noopener">Slides (PDF)</a>
•
<a href="./assets//GenAI_course/GenAI-paper-presentation-2compressed.mp4" target="_blank" rel="noopener">Talk (MP4)</a>
</div>
</div>
</div>
</details>
<details class="acc" id="gallery">
<summary><span class="label">Tiny (yet) Gallery</span><span class="chev">▸</span></summary>
<div class="content">
<div class="grid" id="grid">
<figure class="tile" data-cap="glaciers - height field study" data-full="assets/gallery/glaciers-study-1.png">
<img src="assets/gallery/glaciers-study-1.png" alt="Glacier flows"/>
<figcaption>.</figcaption>
</figure>
<figure class="tile" data-cap="icebergs" data-full="assets/gallery/glaciers-study-2.png">
<img src="assets/gallery/glaciers-study-2.png" alt="Sedimentation patterns"/>
<figcaption>.</figcaption>
</figure>
<figure class="tile" data-cap="Dust storm " data-full="assets/gallery/godzilla.gif">
<img src="assets/gallery/godzilla.gif" alt="Dust storm"/>
<figcaption>.</figcaption>
</figure>
</div>
<div class="lightbox" id="lightbox" aria-hidden="true">
<button id="lbClose" aria-label="Close">✕</button>
<img id="lbImg" alt=""/>
<div class="cap" id="lbCap"></div>
</div>
</div>
</details>
<details class="acc" id="cv">
<summary><span class="label">CV</span><span class="chev">▸</span></summary>
<div class="content">
<p style="margin:0">I will definitely write a short CV here very, very soon ~ </a>.</p>
<div class="cta" role="group" aria-label="CV actions">
<button id="cvOpenBtn" class="btn primary" type="button" data-href="assets/Chivintar_Amenty_CV.pdf" title="Open CV (PDF)">
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"/><polyline points="7 10 12 15 17 10"/><line x1="12" y1="15" x2="12" y2="3"/></svg>
</button>
<button id="cvCopyBtn" class="btn ghost" type="button" title="Copy CV link" aria-label="Copy CV link">
<!-- Copy icon -->
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><rect x="9" y="9" width="13" height="13" rx="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/></svg>
</button>
</div>
</div>
</details>
<details class="acc" id="about">
<summary><span class="label">More</span><span class="chev">▸</span></summary>
<div class="content">
<p style="margin:0">I work at some intersection of natural sciences and art. For poetry and visual notes, see <a href="https://kiwi.ntropy.eu/" target="_blank" rel="noopener">A hivi in a kiwi</a>. For other media creations, see my <a href="https://open.spotify.com/artist/3Rnab37Gi8YZehnDukZo5w" target="_blank" rel="noopener">Spotify</a> and <a href="https://www.youtube.com/@hivikiwi4656" target="_blank" rel="noopener">YouTube</a> pages. For collaboration or materials not listed here, feel free to <a href="mailto:me@ntropy.eu">mail me!</a>.</p>
<p style="margin-top:12px">
<a class="btn ghost" href="https://open.spotify.com/artist/3Rnab37Gi8YZehnDukZo5w" target="_blank" rel="noopener" title="Spotify">
<!-- Spotify icon -->
<svg viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path d="M12 0C5.4 0 0 5.4 0 12s5.4 12 12 12 12-5.4 12-12S18.6 0 12 0zm5.5 17.4c-.2.4-.6.6-1 .3-2.8-1.7-6.3-2.1-10.4-1.2-.5.1-.8-.2-.9-.6-.1-.5.2-.8.6-.9 4.5-1 8.4-.6 11.6 1.3.4.2.5.7.1 1.1zm1.4-3.1c-.3.5-.8.7-1.3.4-3.2-1.9-8.1-2.5-11.9-1.4-.6.2-1.1-.2-1.3-.7-.2-.6.2-1.1.7-1.3 4.3-1.3 9.7-.7 13.4 1.6.5.2.6.9.4 1.4zm.1-3.3C15.4 8.8 8.9 8.6 5.4 9.6c-.7.2-1.4-.2-1.6-.9-.2-.7.2-1.4.9-1.6 4-1.2 11.2-1 15.6 1.9.6.3.8 1.1.4 1.7-.3.5-1 .7-1.5.4z"/></svg>
Spotify
</a>
<a class="btn ghost" href="https://kiwi.ntropy.eu/" target="_blank" rel="noopener" title="Poetry & visual notes">
<!-- globe icon -->
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="M2 12h20"/><path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"/></svg>
A hivi in a kiwi
</a>
<a class="btn ghost" href="https://www.youtube.com/@hivikiwi4656" target="_blank" rel="noopener" title="YouTube">
<!-- Youtube icon -->
<svg viewBox="0 0 24 24" fill="currentColor" xmlns="http://www.w3.org/2000/svg"><path d="M23.5 6.2s-.2-1.6-.8-2.3c-.8-.9-1.7-.9-2.1-1C17.8 2.5 12 2.5 12 2.5h-.1s-5.8 0-8.6.4c-.4.1-1.3.1-2.1 1-.6.7-.8 2.3-.8 2.3S0 8.1 0 10v1.9c0 1.9.2 3.8.2 3.8s.2 1.6.8 2.3c.8.9 1.9.8 2.4.9 1.8.2 7.6.3 7.6.3s5.8 0 8.6-.4c.4-.1 1.3-.1 2.1-1 .6-.7.8-2.3.8-2.3s.2-1.9.2-3.8V10c0-1.9-.2-3.8-.2-3.8zM9.5 14.7V8.6l6.3 3-6.3 3.1z"/></svg>
YouTube
</a></p>
</div>
</details>
</section>
<footer>
<div>Last updated: <span id="updated">September 2025</span></div>
</footer>
</main>
<script>
// ---------- Theme handling (single toggle) ----------
(function(){
const root = document.documentElement;
const btn = document.getElementById('theme-toggle');
const STORAGE_KEY = 'theme'; // 'light' | 'dark'
const icons = {
sun: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="4"/><path d="M12 2v2m0 16v2M4 12H2m20 0h-2M5 5l1.5 1.5M17.5 17.5 19 19M19 5l-1.5 1.5M5 19l1.5-1.5"/></svg>',
moon: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 12.79A9 9 0 1 1 11.21 3 7 7 0 0 0 21 12.79z"/></svg>'
};
function setTheme(mode){
root.setAttribute('data-theme', mode);
localStorage.setItem(STORAGE_KEY, mode);
renderIcon(mode);
}
function renderIcon(mode){
// Show moon when in dark mode; sun when in light mode
btn.innerHTML = mode === 'dark' ? icons.moon : icons.sun;
btn.setAttribute('aria-pressed', mode === 'dark' ? 'true' : 'false');
btn.setAttribute('title', mode === 'dark' ? 'Switch to light theme' : 'Switch to dark theme');
}
// initial theme: saved -> system preference -> dark
const saved = localStorage.getItem(STORAGE_KEY);
let initial = saved === 'light' || saved === 'dark' ? saved : (window.matchMedia && window.matchMedia('(prefers-color-scheme: light)').matches ? 'light' : 'dark');
setTheme(initial);
btn.addEventListener('click', ()=>{
const next = root.getAttribute('data-theme') === 'dark' ? 'light' : 'dark';
setTheme(next);
});
})();
// ---------- Lightbox logic ----------
const lb = document.getElementById('lightbox');
const lbImg = document.getElementById('lbImg');
const lbCap = document.getElementById('lbCap');
const lbClose = document.getElementById('lbClose');
const grid = document.getElementById('grid');
if(grid && lb){
grid.addEventListener('click', (e)=>{
const fig = e.target.closest('.tile');
if(!fig) return;
lbImg.src = fig.dataset.full;
lbImg.alt = fig.dataset.cap || '';
lbCap.textContent = fig.dataset.cap || '';
lb.classList.add('open');
lb.setAttribute('aria-hidden','false');
});
const closeLB = ()=>{ lb.classList.remove('open'); lb.setAttribute('aria-hidden','true'); lbImg.src=''; };
lb.addEventListener('click', (e)=>{ if(e.target===lb) closeLB(); });
lbClose.addEventListener('click', closeLB);
window.addEventListener('keydown', (e)=>{ if(e.key==='Escape' && lb.classList.contains('open')) closeLB(); });
}
// ---------- Tabs toggle via topnav ----------
const CLOSE_OTHERS = true;
function setActive(id){
document.querySelectorAll('.topnav a').forEach(a=>{
const target = a.dataset.target || (a.getAttribute('href')||'').replace('#','');
a.classList.toggle('active', target === id);
});
}
function openAccordion(id){
const det = document.getElementById(id);
if(!det || det.tagName !== 'DETAILS') return;
if(CLOSE_OTHERS){
document.querySelectorAll('details.acc[open]').forEach(d=>{ if(d!==det) d.removeAttribute('open'); });
}
det.setAttribute('open','');
setActive(id);
det.scrollIntoView({behavior:'smooth', block:'start'});
if(history.replaceState){ history.replaceState(null, '', '#'+id); }
}
document.querySelectorAll('.topnav a').forEach(a=>{
a.addEventListener('click', (e)=>{
const href = a.getAttribute('href')||'';
const id = (a.dataset.target) ? a.dataset.target : (href.startsWith('#')? href.slice(1): null);
if(!id) return;
const det = document.getElementById(id);
if(det && det.tagName === 'DETAILS'){
e.preventDefault();
if(!CLOSE_OTHERS && det.hasAttribute('open')){
det.removeAttribute('open');
setActive('');
} else {
openAccordion(id);
}
}
});
});
// ---------- Last‑update -----------
const updated = document.getElementById('updated');
if(updated){ updated.textContent = 'September 2025'; }
</script>
<script>
// anonymous counter
(function(){
const openBtn = document.getElementById('cvOpenBtn');
const copyBtn = document.getElementById('cvCopyBtn');
if(!openBtn || !copyBtn) return;
const NS = 'chivintar-website';
const KEY = 'cv-views';
const HIT_URL = `https://api.countapi.xyz/hit/${NS}/${KEY}`;
openBtn.addEventListener('click', async ()=>{
const href = openBtn.dataset.href;
try{ await fetch(HIT_URL, {mode:'cors'}); }catch(_){/* noop */}
window.open(href, '_blank', 'noopener');
});
copyBtn.addEventListener('click', async ()=>{
const href = openBtn.dataset.href;
try{ await navigator.clipboard.writeText(new URL(href, location.href).href); }catch(_){/* noop */}
});
})();
</script>
</body>
</html>