-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlightifier.html
More file actions
435 lines (400 loc) · 16.6 KB
/
Copy pathlightifier.html
File metadata and controls
435 lines (400 loc) · 16.6 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
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-3T9WK8SN55"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-3T9WK8SN55');
</script>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="color-scheme" content="light only">
<meta name="supported-color-schemes" content="light">
<title>Lightifier | Art & Science</title>
<meta name="author" content="Brandon Walowitz">
<meta name="theme-color" content="#FFFFFF">
<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=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,600;1,9..144,300;1,9..144,400&family=Archivo:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap" rel="stylesheet">
<style>
:root{
--paper:#FFFFFF;
--paper-2:#F6F6F2;
--ink:#1E1E1B;
--ink-soft:#6E6E66;
--line:#E4E4DD;
--accent:#1A38F5;
--accent-warm:#E24B26;
--font-display:'Fraunces', serif;
--font-body:'Archivo', sans-serif;
--font-mono:'IBM Plex Mono', monospace;
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth;background:#FFFFFF !important;color-scheme:light only}
body{
background:#FFFFFF !important;
color:var(--ink);
font-family:var(--font-body);
font-size:16px;
line-height:1.5;
-webkit-font-smoothing:antialiased;
overflow-x:hidden;
}
body::before{content:'';position:fixed;inset:0;z-index:-1;background:#FFFFFF}
body::after{
content:'';position:fixed;inset:0;pointer-events:none;z-index:9999;opacity:.4;
background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.035 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' fill='%23ffffff' fill-opacity='0' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection{background:var(--accent);color:#fff}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%}
.mono{font-family:var(--font-mono);font-size:11px;letter-spacing:.08em;text-transform:uppercase}
section{background:#FFFFFF}
header.site-header{
position:fixed;top:0;left:0;right:0;z-index:100;
display:flex;align-items:center;justify-content:space-between;gap:20px;
padding:18px 32px;border-bottom:1px solid var(--line);
background:#FFFFFF;
}
.logo{font-family:var(--font-display);font-weight:600;font-size:17px;letter-spacing:-.01em;white-space:nowrap}
.logo em{font-weight:300;font-style:italic;color:var(--ink-soft)}
.header-actions{display:flex;align-items:center;gap:24px}
.header-actions a,.back{color:var(--ink-soft);transition:color .25s}
.header-actions a:hover,.back:hover{color:var(--accent)}
.back{display:flex;align-items:center;gap:10px}
.back .arr{display:inline-block;transition:transform .3s}
.back:hover .arr{transform:translateX(-5px)}
@media(max-width:720px){
header.site-header{padding:16px 20px;gap:12px}
.header-actions a:not(.back){display:none}
}
@media(max-width:520px){
.logo em{display:none}
}
.hero{padding:132px 32px 48px}
.crumb{
display:flex;justify-content:space-between;gap:24px;
border-bottom:1px solid var(--line);padding-bottom:14px;margin-bottom:34px;
color:var(--ink-soft);
}
.hero h1{
font-family:var(--font-display);font-weight:300;
font-size:clamp(3rem,9vw,8rem);line-height:.96;letter-spacing:-.028em;
max-width:12ch;
}
.hero h1 em{font-style:italic;color:var(--accent)}
.intro{
margin-top:34px;max-width:58ch;
font-size:clamp(17px,1.8vw,24px);line-height:1.55;color:#3B3B36;
}
@media(max-width:720px){
.hero{padding:112px 24px 36px}
.crumb{display:block}
.crumb span + span{display:block;margin-top:8px}
}
.meta{
display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
border-top:1px solid var(--line);border-bottom:1px solid var(--line);
margin:0 32px;padding:0;
}
.meta div{padding:20px 24px 24px;border-right:1px solid var(--line)}
.meta div:last-child{border-right:none}
.meta .mono{color:var(--ink-soft);display:block;margin-bottom:8px}
.meta strong,.meta a{font-family:var(--font-display);font-weight:400;font-size:18px}
.meta a{border-bottom:1px solid var(--line);transition:color .25s,border-color .25s}
.meta a:hover{color:var(--accent);border-color:var(--accent)}
@media(max-width:720px){
.meta{margin:0 24px;grid-template-columns:1fr}
.meta div{border-right:none}
}
.plate{
margin:60px 32px 0;height:min(62vh,560px);
border:1px solid var(--ink);position:relative;overflow:hidden;background:var(--paper-2);
}
.plate img{width:100%;height:100%;object-fit:cover;object-position:center}
.plate.contain img{object-fit:contain;padding:clamp(20px,5vw,54px)}
.plate .tag,.fig .tag{
position:absolute;left:18px;bottom:16px;
font-family:var(--font-mono);font-size:10px;letter-spacing:.1em;text-transform:uppercase;
color:var(--ink-soft);background:#fff;border:1px solid var(--line);padding:6px 10px;
}
.caption{
margin:14px 32px 0;
font-family:var(--font-mono);font-size:11px;line-height:1.55;text-transform:uppercase;color:var(--ink-soft);
}
@media(max-width:720px){
.plate{margin:42px 24px 0;height:360px}
.caption{margin-left:24px;margin-right:24px}
}
.wrap{padding:100px 32px}
.split{display:grid;grid-template-columns:280px minmax(0,1fr);gap:60px;align-items:start;margin-bottom:90px}
.split:last-child{margin-bottom:0}
.split .label{position:sticky;top:100px}
.split .label .mono{color:var(--accent-warm)}
.split h2{
font-family:var(--font-display);font-weight:300;
font-size:clamp(1.7rem,3.4vw,2.6rem);letter-spacing:-.015em;margin-top:10px;line-height:1.1;
}
.split h2 em{font-style:italic;color:var(--accent)}
.prose{max-width:62ch;font-size:17px;color:#3B3B36}
.prose p{margin-bottom:22px}
.prose p:last-child{margin-bottom:0}
@media(max-width:820px){
.wrap{padding:78px 24px}
.split{grid-template-columns:1fr;gap:24px;margin-bottom:72px}
.split .label{position:static}
}
.figures{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin-top:44px}
.fig{border:1px solid var(--ink);height:300px;position:relative;overflow:hidden;background:#fff}
.fig.wide{grid-column:1/-1;height:380px}
.fig.video{height:auto;aspect-ratio:16/9;background:#000}
.fig img,.fig iframe{width:100%;height:100%;border:0}
.fig img{object-fit:cover;object-position:center}
.fig.contain img{object-fit:contain;padding:18px}
.fig-caption{
grid-column:1/-1;
font-family:var(--font-mono);font-size:11px;line-height:1.55;text-transform:uppercase;color:var(--ink-soft);
margin-top:-10px;
}
@media(max-width:700px){
.figures{grid-template-columns:1fr}
.fig.wide{height:300px}
.fig.video.wide{height:auto}
}
.next{
background:var(--accent);color:#fff;padding:110px 32px;text-align:left;
position:relative;overflow:hidden;display:block;
}
.next .mono{color:rgba(255,255,255,.65)}
.next h2{
font-family:var(--font-display);font-weight:300;
font-size:clamp(2.2rem,7vw,5.6rem);letter-spacing:-.025em;line-height:1;margin-top:18px;
transition:transform .4s cubic-bezier(.2,.7,.2,1);
}
.next h2 em{font-style:italic;color:#FFD84D}
.next:hover h2{transform:translateX(20px)}
.next .arr{position:absolute;right:40px;top:50%;transform:translateY(-50%);font-size:52px;transition:transform .35s}
.next:hover .arr{transform:translateY(-50%) translateX(10px)}
@media(max-width:720px){.next{padding:84px 24px}.next .arr{display:none}}
.notfound{min-height:70vh;padding:150px 32px;display:flex;flex-direction:column;justify-content:center;gap:24px}
.notfound h1{font-family:var(--font-display);font-weight:300;font-size:clamp(40px,7vw,90px);line-height:1}
footer{
background:#fff;color:var(--ink-soft);
display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;
padding:26px 32px;border-top:1px solid var(--line);
font-family:var(--font-mono);font-size:11px;letter-spacing:.08em;text-transform:uppercase;
}
footer a:hover{color:var(--ink)}
.reveal{opacity:0;transform:translateY(26px);transition:opacity .8s ease, transform .8s cubic-bezier(.2,.7,.2,1)}
.reveal.in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){*{animation-duration:.001s !important;transition:none !important}.reveal{opacity:1;transform:none}}
</style>
</head>
<body data-project="lightifier">
<header class="site-header">
<a class="logo" href="index.html">Brandon Walowitz <em>| Art & Science</em></a>
<div class="header-actions mono">
<a class="back" href="index.html#projects"><span class="arr">←</span> All Projects</a>
<a href="index.html#contact">Contact</a>
</div>
</header>
<main id="main"></main>
<footer>
<span>© <span id="yr"></span> Brandon Walowitz · Art & Science</span>
<a href="https://www.linkedin.com/in/walowitz/">LinkedIn ↗</a>
<span>Designed & built in-house</span>
</footer>
<script src="projects-data.js?v=20260707-video-roles"></script>
<script>
const PROJECT_PAGE_VERSION='20260707-video-roles';
const params=new URLSearchParams(location.search);
const fileSlug=location.pathname.split('/').pop().replace(/\.html$/,'');
const id=document.body.dataset.project || params.get('id') || (fileSlug !== 'project' ? fileSlug : '');
const idx=PROJECTS.findIndex(project=>project.slug===id);
const main=document.getElementById('main');
document.getElementById('yr').textContent=new Date().getFullYear();
function esc(value){
return String(value ?? '').replace(/[&<>"]/g, character => ({'&':'&','<':'<','>':'>','"':'"'}[character]));
}
function projectUrl(project){
return project.slug === 'redwood-logistics'
? 'work/redwood/'
: `${project.slug}.html?v=${PROJECT_PAGE_VERSION}`;
}
function displayTitle(title){
const words=String(title).trim().split(/\s+/);
if(words.length < 2) return esc(title);
const last=words.pop();
return `${esc(words.join(' '))} <em>${esc(last)}</em>`;
}
function detailRows(project){
const rows=(project.details || []).slice();
if(!rows.length){
rows.push(['Project', project.title], ['Discipline', project.category]);
}
return rows.map(([label,value,url]) => {
const rendered=url
? `<a href="${esc(url)}" target="_blank" rel="noopener noreferrer">${esc(value)} ↗</a>`
: `<strong>${esc(value)}</strong>`;
return `<div><span class="mono">${esc(label)}</span>${rendered}</div>`;
}).join('');
}
function normalizedSections(project){
if(project.sections && project.sections.length){
return project.sections.map(section => ({
eyebrow:'',
heading:section.heading || 'Project detail',
body:section.body || []
}));
}
const body=(project.body && project.body.length ? project.body : [project.summary || project.intro].filter(Boolean));
const labels=['01 / Overview','02 / Approach','03 / Result'];
const headings=['What it needed to do','How the work took shape','Where it landed'];
return body.map((paragraph,index) => ({
eyebrow:labels[index] || `${String(index + 1).padStart(2,'0')} / Detail`,
heading:headings[index] || 'Project detail',
body:[paragraph]
}));
}
function mediaItems(project){
return (project.shots || []).map((shot,index)=>({...shot,index}));
}
function mediaChunks(items,count){
const chunks=Array.from({length:Math.max(count,1)},()=>[]);
if(!items.length) return chunks;
const size=Math.ceil(items.length / chunks.length);
items.forEach((item,index)=>chunks[Math.min(Math.floor(index / size), chunks.length - 1)].push(item));
return chunks;
}
function imageStyle(shot){
const classes=['fig'];
if(shot.wide) classes.push('wide');
if(shot.fit === 'contain') classes.push('contain');
return classes.join(' ');
}
function styleAttribute(styles){
const filtered=styles.filter(Boolean);
return filtered.length ? ` style="${filtered.join(';')}"` : '';
}
function imageElementStyles(item){
const styles=[];
if(item.position) styles.push(`object-position:${esc(item.position)}`);
if(item.fit && item.fit !== 'contain') styles.push(`object-fit:${esc(item.fit)}`);
if(item.padding) styles.push(`padding:${esc(item.padding)}`);
return styles;
}
function plateStyles(item){
const styles=[];
if(item.background || item.coverBackground) styles.push(`background:${esc(item.background || item.coverBackground)}`);
if(item.aspect) styles.push(`aspect-ratio:${esc(item.aspect)}`, 'height:auto');
return styles;
}
function renderFigures(items,counter){
if(!items.length) return '';
const html=[];
html.push('<div class="figures">');
for(const shot of items){
const fig=String(counter.value).padStart(2,'0');
counter.value += 1;
if(shot.video){
const title=shot.title || 'Project video';
html.push(`<div class="fig video ${shot.wide ? 'wide' : ''}">
<iframe src="https://www.youtube-nocookie.com/embed/${encodeURIComponent(shot.video)}?rel=0"
title="${esc(title)}" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
<span class="tag">Fig. ${fig} / Video</span>
</div>`);
html.push(`<p class="fig-caption">${esc(title)}</p>`);
continue;
}
const img=shot.image || '';
const alt=shot.caption || 'Project image';
html.push(`<div class="${imageStyle(shot)}"${styleAttribute(plateStyles(shot))}>
<img src="${esc(img)}" alt="${esc(alt)}"${styleAttribute(imageElementStyles(shot))}>
<span class="tag">Fig. ${fig}</span>
</div>`);
if(shot.caption) html.push(`<p class="fig-caption">${esc(shot.caption)}</p>`);
}
html.push('</div>');
return html.join('');
}
function renderProject(project){
document.title=`${project.title} | Art & Science`;
const number=String(PROJECTS.indexOf(project)+1).padStart(3,'0');
const sections=normalizedSections(project);
const chunks=mediaChunks(mediaItems(project),sections.length);
const figCounter={value:2};
const next=PROJECTS[(PROJECTS.indexOf(project)+1)%PROJECTS.length];
const cover=project.cover;
const coverClass=['plate'];
if(project.coverFit === 'contain') coverClass.push('contain');
const coverStyle=styleAttribute(plateStyles(project));
const coverImgStyle=styleAttribute(imageElementStyles({
fit:project.coverFit,
position:project.coverPosition,
padding:project.coverPadding
}));
const coverPlate=cover ? `<div class="${coverClass.join(' ')}"${coverStyle}>
<img src="${esc(cover)}" alt="${esc(project.title)}"${coverImgStyle}>
<span class="tag">Fig. 01 / Cover</span>
</div>` : '';
const coverCaption=project.coverCaption ? `<p class="caption reveal">${esc(project.coverCaption)}</p>` : '';
main.innerHTML=`
<section class="hero">
<div class="crumb mono">
<span>Case Study № ${number}</span>
<span>${esc(project.category || 'Project')}</span>
</div>
<h1>${displayTitle(project.title)}</h1>
<p class="intro">${esc(project.intro || project.summary)}</p>
</section>
<div class="meta reveal">${detailRows(project)}</div>
${coverPlate}
${coverCaption}
<section class="wrap">
${sections.map((section,index)=>`
<article class="split reveal">
<div class="label">
<span class="mono">${esc(section.eyebrow || `${String(index + 1).padStart(2,'0')} / Case Study`)}</span>
<h2>${esc(section.heading)}</h2>
</div>
<div class="prose">
${section.body.map(paragraph=>`<p>${esc(paragraph)}</p>`).join('')}
${renderFigures(chunks[index] || [],figCounter)}
</div>
</article>`).join('')}
</section>
<a class="next reveal" href="${projectUrl(next)}">
<span class="mono">Next / № ${String(PROJECTS.indexOf(next)+1).padStart(3,'0')}</span>
<h2>${displayTitle(next.title)} <span class="arr">→</span></h2>
</a>`;
observeReveals();
}
function renderNotFound(){
document.title='Project not found | Art & Science';
main.innerHTML=`<section class="notfound">
<p class="mono">404 / Project not found</p>
<h1>That project isn't here.</h1>
<a class="back mono" href="index.html#projects"><span class="arr">←</span> Back to all projects</a>
</section>`;
}
function observeReveals(){
const observer=new IntersectionObserver(entries=>{
entries.forEach(entry=>{
if(entry.isIntersecting){
entry.target.classList.add('in');
observer.unobserve(entry.target);
}
});
},{threshold:.12});
document.querySelectorAll('.reveal').forEach(element=>observer.observe(element));
}
if(idx >= 0) renderProject(PROJECTS[idx]);
else if(!id) renderProject(PROJECTS[0]);
else renderNotFound();
</script>
</body>
</html>