/* ==========================================================
   della wirfel — portfolio
   swiss / international style: grid, helvetica, lowercase.

   EDIT HERE FIRST — these variables control the whole site.
   ========================================================== */

:root {
  --bg: #ffffff;
  --text: #000000;
  --muted: #8a8a8a;
  --line: #000000;
  --accent: #ff3b00;          /* swiss red — used sparingly. set to #000 to remove */
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --pad: 24px;                /* outer page margin */
  --gap: 24px;                /* grid gutter */
  --ease: cubic-bezier(.2, .7, .1, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.4;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--accent); color: var(--bg); }

/* ---------- 12-column grid ---------- */
.grid12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: var(--gap);
  padding-left: var(--pad); padding-right: var(--pad);
}
.c1-3  { grid-column: 1 / 4; }
.c4-12 { grid-column: 4 / 13; }
.c4-9  { grid-column: 4 / 10; }
.c1-12 { grid-column: 1 / 13; }

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding-top: var(--pad); padding-bottom: 12px;
  background: var(--bg);
  align-items: baseline;
}
.logo { grid-column: 1 / 4; font-weight: 700; font-size: 15px; }
.site-header nav { grid-column: 4 / 13; display: flex; gap: var(--gap); }
.site-header nav a { position: relative; }
.site-header nav a.active::before {
  content: ""; position: absolute; left: -12px; top: 50%;
  width: 6px; height: 6px; background: var(--accent); border-radius: 50%;
  transform: translateY(-50%);
}

/* ---------- home: practice / based in / currently ---------- */
.hero-meta {
  position: absolute; left: 0; right: 0; top: calc(var(--pad) + 60px);
  row-gap: 6px;
}
.hero-meta p { opacity: 0; animation: fade .8s var(--ease) 1s forwards; }
.hero-meta .label { color: var(--muted); }
/* each label sits directly above its answer */
.hm span { display: block; }
.hm .label { font-size: 13px; margin-bottom: 4px; }
.hm-v { font-size: clamp(22px, 2.6vw, 38px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; }
.hm-s { font-size: 15px; line-height: 1.3; max-width: 260px; }
.hm-1 { grid-column: 1 / 7; } .hm-2 { grid-column: 7 / 10; } .hm-3 { grid-column: 10 / 13; }
@keyframes fade { to { opacity: 1; } }

/* ---------- typed intro (home) ---------- */
:root { --type-font: "Helvetica Neue", Arial, sans-serif; }   /* thin, computer-ish type for the intro */
.home .logo { visibility: hidden; }
.home.past-hero .logo { visibility: visible; }
.type-hero { position: relative; height: 330vh; padding-top: 0; }
.type-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.type-hero .hero-meta { position: absolute; top: calc(var(--pad) + 60px); left: 0; right: 0;
  transition: opacity .5s var(--ease), transform .5s var(--ease); }
.type-hero.typing .hero-meta { opacity: 0; transform: translateY(-12px); pointer-events: none; }
.type-body { position: absolute; left: var(--pad); right: var(--pad); top: 34vh; font-family: var(--type-font); font-weight: 300; }
.type-name { font-size: 13vw; font-weight: 300; letter-spacing: -0.045em; line-height: .86; margin: 0 0 .25em -.04em; }
.type-msg { font-size: clamp(20px, 2.4vw, 40px); line-height: 1.22; letter-spacing: -0.015em; max-width: 1180px; }
.type-msg .pick { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .14em; pointer-events: none; }
.type-msg .pick.ready { pointer-events: auto; }
.type-msg .pick-data { color: #ff3b00; }    /* data: red, like design */
.type-msg .pick-design { color: #ff3b00; }    /* design: the red used on the project pages */
.type-msg .pick:hover { color: var(--text); }
.caret { display: inline-block; width: .06em; height: .95em; margin-left: .04em; background: var(--text);
  vertical-align: -.1em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.type-hint { position: absolute; right: var(--pad); bottom: 20px; color: var(--muted); transition: opacity .4s; }
.type-hero.started .type-hint { opacity: 0; }

/* ---------- marquee ---------- */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; white-space: nowrap; padding: 10px 0;
}
.marquee-track { display: inline-block; animation: marquee 30s linear infinite; }
.marquee-track span { margin-right: 48px; }
.marquee-track span.dot { color: var(--accent); font-size: 8px; vertical-align: middle; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- pages ---------- */
main { padding-top: 120px; padding-bottom: 120px; }
.home main { padding-top: 0; }
section { padding-top: 80px; }

.page-title {
  font-size: 12vw; font-weight: 700; line-height: .85; letter-spacing: -0.05em;
  padding: 0 var(--pad); margin-bottom: 64px;
}
.label { color: var(--muted); }
.big { font-size: 28px; line-height: 1.2; letter-spacing: -0.01em; }


/* ---------- rows (about + project list) ---------- */
.row {
  border-top: 1px solid var(--line);
  padding-top: 12px; padding-bottom: 32px;
}
.row:last-child { border-bottom: 1px solid var(--line); }
.row .when { grid-column: 1 / 4; color: var(--muted); }
.row .what { grid-column: 4 / 9; }
.row .detail { grid-column: 9 / 13; color: var(--muted); }

.skills { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); column-gap: var(--gap); }
.skills li { border-top: 1px solid var(--line); padding: 8px 0 20px; }

/* ---------- project list ---------- */
.filters { display: flex; gap: 16px; margin-bottom: 32px; }
.filters button {
  font: inherit; text-transform: inherit; background: none; border: 0;
  color: var(--muted); cursor: pointer; padding: 0;
}
.filters button.active, .filters button:hover { color: var(--text); }
.filters button.active::after { content: " ●"; color: var(--accent); font-size: 9px; vertical-align: middle; }

.plist { list-style: none; }
.plist li a {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gap);
  border-top: 1px solid var(--line); padding: 14px var(--pad);
  font-size: 32px; letter-spacing: -0.02em; line-height: 1.1;
  transition: padding .4s var(--ease), color .2s;
}
.plist li:last-child a { border-bottom: 1px solid var(--line); }
.plist .num { grid-column: 1 / 2; font-size: 15px; color: var(--muted); padding-top: 8px; }
.plist .name { grid-column: 2 / 9; }
.plist .tags { grid-column: 9 / 11; font-size: 15px; color: var(--muted); padding-top: 8px; }
.plist .year { grid-column: 11 / 13; font-size: 15px; color: var(--muted); padding-top: 8px; text-align: right; }
.plist li a:hover { padding-left: calc(var(--pad) + 24px); color: var(--accent); }
.plist li.hidden { display: none; }

/* image that follows the cursor over the project list */
.cursor-img {
  position: fixed; top: 0; left: 0; z-index: 40; pointer-events: none;
  width: 300px; aspect-ratio: 4 / 3; background: #f4f4f2 center / cover no-repeat;
  border: 6px solid #fff; border-radius: 10px;                       /* a white passe-partout frame... */
  outline: 1px solid rgba(0,0,0,.14);                                 /* ...with a hairline edge */
  box-shadow: 0 18px 50px -12px rgba(0,0,0,.28), 0 2px 6px rgba(0,0,0,.06);
  display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px;
  opacity: 0; transform: translate(-50%, -50%) scale(.9) rotate(-2deg);
  transition: opacity .3s var(--ease), transform .5s var(--ease);
}
.cursor-img.show { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0deg); }

/* ---------- project detail ---------- */
.meta { row-gap: 16px; margin-bottom: 64px; }
.meta div { grid-column: span 3; border-top: 1px solid var(--line); padding-top: 8px; }
.meta span { display: block; color: var(--muted); }
.img-box {
  background: #eeeeee; color: var(--muted); aspect-ratio: 16 / 9;
  display: flex; align-items: center; justify-content: center; margin: 48px 0;
  overflow: hidden;
}
.img-box img { width: 100%; height: 100%; object-fit: cover; }
.next {
  display: block; border-top: 1px solid var(--line); padding: 16px var(--pad) 0;
  font-size: 8vw; font-weight: 700; letter-spacing: -0.05em; line-height: .9;
}
.next .label { display: block; font-size: 15px; font-weight: 400; letter-spacing: 0; margin-bottom: 8px; }

/* ---------- embedded dashboards (tableau etc.) ---------- */
.embed {
  margin: 48px 0 8px; outline: 1px solid var(--line); background: transparent; color: var(--muted);
  overflow: hidden;            /* main.js sizes this box to the dashboard exactly */
}
.embed iframe { border: 0; display: block; transform-origin: 0 0; max-width: none; }
/* a clear layer over each dashboard so scrolling the page never scrolls inside it; click to use it */
.embed { position: relative; }
.embed-shield { position: absolute; inset: 0; z-index: 3; border: 0; background: transparent; cursor: pointer;
  font: inherit; display: flex; align-items: flex-end; justify-content: flex-end; padding: 12px; }
.embed-shield span { background: var(--text); color: var(--bg); font-size: 12px; padding: 4px 8px; opacity: 0; transition: opacity .3s; }
.embed-shield:hover span { opacity: 1; }
.embed.live .embed-shield { display: none; }
.embed-caption { margin-bottom: 48px; }
.embed-group .embed { margin-top: 12px; }
.embed.hidden { display: none; }
/* frame switch (reframing the same body): a big two-part toggle; a black panel slides under the active side */
.embed-switch { position: relative; display: grid; grid-template-columns: 1fr 1fr; margin-top: 48px; max-width: 1200px;   /* same width as the dashboards */
  border: 1px solid var(--text); }
.embed-switch::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 50%; background: var(--text);
  transition: transform .6s var(--ease); }
.embed-switch:has(button[data-i="1"].active)::before { transform: translateX(100%); }
.embed-switch button {
  position: relative; z-index: 1; font: inherit; text-transform: inherit; background: none; border: 0;
  color: var(--text); cursor: pointer; padding: 16px 20px 18px; text-align: left; transition: color .4s var(--ease);
}
.embed-switch button.active { color: var(--bg); }
.embed-switch button:not(.active):hover .sw-v { color: var(--accent); }
.sw-k { display: block; font-size: 13px; opacity: .65; margin-bottom: 4px; }
.sw-v { display: block; font-size: clamp(32px, 5vw, 72px); font-weight: 500; letter-spacing: -0.04em; line-height: .95; }

/* ---------- contact ---------- */
.contact-big a {
  display: block; font-size: 6vw; font-weight: 700; letter-spacing: -0.04em; line-height: 1;
  border-top: 1px solid var(--line); padding: 12px 0 24px;
}

/* ---------- index, about + contact: white with the red highlight, lighter type ---------- */
body.info { --bg: #ffffff; --accent: #ff3b00; --muted: #8a8a8a; }   /* white with the red highlight, like the projects */
.info .row { background: none !important; padding-bottom: 28px; }   /* fewer rules: spacing does the separating */
.info .row:last-child { border-bottom: 0; }
.info .contact-big a { font-weight: 300; letter-spacing: -0.035em; }   /* same light weight as the name on the home page */
.info .marquee { border: 0; color: var(--accent); }
.info .page-title { font-weight: 300; letter-spacing: -0.045em; }
.page-title-sm { font-size: 7vw; margin-bottom: 20px; }
.page-sub { margin-bottom: 24px; }
.page-sub p { font-size: 20px; letter-spacing: -0.01em; }
.page-sub a { color: var(--accent); }
.page-sub a:hover { text-decoration: underline; }
.resume-head { padding-top: 120px; padding-bottom: 24px; }
.resume-head h2 { font-size: 7vw; font-weight: 300; letter-spacing: -0.05em; line-height: .85; color: var(--accent); }
.c1-9 { grid-column: 1 / 10; } .c10-12 { grid-column: 10 / 13; }
.resume-dl { align-self: end; text-align: right; font-size: 20px; }
.resume-dl a { color: var(--accent); }
.resume-dl a:hover { text-decoration: underline; }
[id] { scroll-margin-top: 90px; }
/* about: one portrait, kept small and quiet in the label column beside the bio */
.portrait { margin-top: 18px; max-width: 260px; }
.portrait img { width: 100%; aspect-ratio: 6 / 7; object-fit: cover; filter: grayscale(1) contrast(1.04); transition: filter .9s var(--ease); }
.portrait.in img { transform: none; }                             /* not the media zoom */
.portrait:hover img { filter: none; }                               /* color comes back on hover */
.portrait figcaption { margin-top: 8px; font-size: 12px; }

/* contact: the handle fades in, in red, when you hover a link */
.contact-big a { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.contact-big .handle { font-size: 18px; font-weight: 400; letter-spacing: 0; color: var(--accent);
  opacity: 0; transform: translateX(-8px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.contact-big a:hover .handle { opacity: .55; transform: none; }
@media (hover: none) { .contact-big .handle { opacity: .55; transform: none; } }

/* ---------- footer ---------- */
footer { padding-top: 12px; padding-bottom: var(--pad); border-top: 1px solid var(--line); margin: 0 var(--pad); padding-left: 0; padding-right: 0; }
footer .grid12 { padding-left: 0; padding-right: 0; }
footer .right { grid-column: 10 / 13; text-align: right; }
footer .left { grid-column: 1 / 10; color: var(--muted); }

/* ---------- motion + wayfinding ---------- */

/* thin progress line at the very top: how far down the page you are */
.progress { position: fixed; top: 0; left: 0; height: 2px; width: 100%; background: var(--accent);
  transform-origin: 0 0; transform: scaleX(0); z-index: 80; }

/* "you are here" locator, bottom-left: page / current section / % */
.locator {
  position: fixed; left: var(--pad); bottom: 16px; z-index: 70;
  display: flex; gap: 10px; align-items: baseline; font-size: 12px;
  background: var(--bg); padding: 4px 8px 4px 0;
  mix-blend-mode: normal;
}
.locator .loc-page { font-weight: 700; }
.locator .loc-sec { color: var(--muted); transition: opacity .3s; }
.locator .loc-sec.swap { opacity: 0; }
.locator .loc-pct { color: var(--accent); font-variant-numeric: tabular-nums; }

/* page transition: a panel wipes over, then off, between pages */
.wipe {
  position: fixed; inset: 0; z-index: 100; background: var(--text); color: var(--bg);
  display: flex; align-items: flex-end; padding: var(--pad);
  font-size: 12vw; font-weight: 700; letter-spacing: -0.05em; line-height: .85;
  transform: translateY(0); transition: transform .7s var(--ease);
  pointer-events: none;
}
.wipe.out { transform: translateY(-100%); }
.wipe.in-from-below { transform: translateY(100%); transition: none; }

/* split titles: each letter rises out of a mask */
.split .mask { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .06em .06em; margin: 0 -.06em; }
.split .char { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); }
.split.go .char { transform: none; }

/* lines draw in from the left instead of just appearing */
.row, .meta div { border-top: 0 !important;
  background: linear-gradient(var(--line), var(--line)) top left / 0% 1px no-repeat;
  transition: background-size 1.2s var(--ease), opacity 1s var(--ease), transform 1s var(--ease); }
.row.in, .meta.in div { background-size: 100% 1px; }
.meta div:nth-child(2) { transition-delay: .08s; } .meta div:nth-child(3) { transition-delay: .16s; } .meta div:nth-child(4) { transition-delay: .24s; }

/* images + embeds: a panel lifts off, then the image comes into focus (blur to sharp) */
.img-box.reveal, .embed.reveal, .media.reveal { opacity: 1; transform: none; position: relative; }
.img-box.reveal::after, .embed.reveal::after, .media.reveal::after {
  content: ""; position: absolute; inset: 0; background: var(--bg); pointer-events: none;
  transform-origin: 50% 0; transition: transform 1.1s var(--ease); z-index: 2; }
.img-box.reveal.in::after, .embed.reveal.in::after, .media.reveal.in::after { transform: scaleY(0); }
.img-box img, .media img, .media video { transform: scale(1.1); opacity: 0;
  transition: transform 1.6s var(--ease), opacity 1s var(--ease); }
.in img, .in video { transform: scale(1.04); opacity: 1; }
.media.wait img, .img-box.wait img { opacity: 0; transform: scale(1.1); }
.media.wait { min-height: 40vh; }
.media.wait, .img-box.wait { animation: imgwait 1.4s ease-in-out infinite alternate; }
@keyframes imgwait { from { background-color: #f1f1f0; } to { background-color: #e4e4e2; } }

/* project list rows slide in one after another */
.plist li { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.plist li.in { opacity: 1; transform: none; }

/* full-bleed media (mockups, video) */
.media { margin: 48px 0; overflow: hidden; background: #eee; }
.media img, .media video { width: 100%; height: auto; display: block; }
.media.dark { background: #000; }

/* screen filmstrip: drag or scroll sideways through app screens */
.strip-wrap { margin: 24px 0 8px; }
.strip { display: flex; gap: var(--gap); overflow-x: auto; padding: 8px var(--pad) 24px;
  scroll-snap-type: x mandatory; scroll-padding-left: var(--pad); cursor: grab; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
.strip.dragging { cursor: grabbing; scroll-snap-type: none; }
.strip figure { flex: 0 0 auto; width: min(260px, 60vw); scroll-snap-align: start; }
.strip img { width: 100%; border-radius: 22px; border: 1px solid #ddd; pointer-events: none;
  transition: transform .5s var(--ease); }
.strip figure:hover img { transform: translateY(-8px); }
.strip figcaption { margin-top: 10px; font-size: 13px; display: flex; gap: 10px; }
.strip figcaption span { color: var(--muted); }
.strip-meta { display: flex; justify-content: space-between; padding: 0 var(--pad); font-size: 13px; color: var(--muted); }
.strip-meta .strip-count { color: var(--accent); font-variant-numeric: tabular-nums; }

/* scroll-scrubbed banner: frames swap as you scroll through it */
.scrub { position: relative; height: 320vh; margin-bottom: 64px; }
.scrub-sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  justify-content: center; padding: 80px var(--pad) 24px; }
.scrub-frames { position: relative; width: 100%; aspect-ratio: 1920 / 1400; max-height: calc(100vh - 140px); margin: 0 auto; }
.scrub-frames img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: 0; }
.scrub-frames img.on { opacity: 1; }
.scrub-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 12px; }
.scrub-count { color: var(--accent); font-variant-numeric: tabular-nums; }

/* scroll-driven topic circles (CUNY dissertation topics) */
.bubbles { position: relative; height: 440vh; margin: 64px 0 0; }
.bubbles-sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding-top: 72px; overflow: hidden; }
.bubbles-head { align-items: end; padding-bottom: 8px; border-bottom: 1px solid var(--line); margin: 0 var(--pad); padding-left: 0; padding-right: 0; }
.bub-year { display: block; font-size: 72px; font-weight: 700; letter-spacing: -0.04em; line-height: .9; font-variant-numeric: tabular-nums; }
.bub-range { display: block; margin-top: 6px; }
.bub-lede { font-size: 17px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; max-width: 720px; }
/* the in-depth notes between the circles and the dashboard; the big bottom padding keeps the dashboard well away */
.bub-notes { padding-top: 120px; padding-bottom: 35vh; }
.bub-notes p, .bub-points { margin-bottom: 16px; }
.bub-points { list-style: none; }
.bub-points li { border-top: 1px solid var(--line); padding: 8px 0 12px; }
.bub-rows { position: relative; z-index: 2; flex: 1; display: grid; grid-template-rows: auto 1fr auto 1fr; padding: 8px var(--pad) 40px; min-height: 0; }
.bub-rowlabel { font-size: 13px; color: var(--muted); padding-top: 8px; }
.bub-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); min-height: 0; }
.bub-cell { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; min-height: 0; }
.bub-stage { flex: 1; width: 100%; display: flex; align-items: center; justify-content: center; min-height: 0; }
.bub { border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff; text-align: center; line-height: 1.1; transition: width .45s var(--ease), height .45s var(--ease); }
.bub .bt { font-size: 11px; font-weight: 700; }
.bub .bw { font-size: 11px; font-variant-numeric: tabular-nums; }
.bub-name { font-size: 13px; margin-top: 6px; text-align: center; }
.bub-pp { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
/* the tossing hand (CUNY page): sits at the right edge, behind the circles. move it with top / width */
.hand { position: absolute; right: 0; top: 22vh; z-index: 1; width: min(46vw, 640px); aspect-ratio: 3196 / 2400;
  overflow: visible; pointer-events: none; }
.hand img { position: absolute; top: 0; left: 0; width: 100%; height: auto; transform: translateX(115%);
  transform-origin: 95% 15%; will-change: transform; }
.hand .hand-open { opacity: 0; }

/* design-choice experiment (reframing the same body): slim bars + a list of the four choices being applied */
.reorder { position: relative; height: 340vh; margin: 64px 0 25vh; }
.reorder-sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding-top: 72px; overflow: hidden; }
.reorder-head { align-items: end; padding-bottom: 10px; border-bottom: 1px solid var(--line); margin: 0 var(--pad); padding-left: 0; padding-right: 0; }
.ro-lede { font-size: 17px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; max-width: 720px; }
.ro-body { flex: 1; min-height: 0; padding-top: 32px; }
.ro-chart { position: relative; min-height: 0; height: 100%; }
.ro-bar { position: absolute; left: 0; top: 0; bottom: 22px; transition: opacity .3s; }
.ro-fill { position: absolute; left: 0; right: 0; bottom: 0; }
.ro-bar.missing .ro-fill { border: 1px dashed var(--muted); }
.ro-val { position: absolute; left: -20px; right: -20px; text-align: center; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; transition: opacity .3s; }
.ro-bar.dim .ro-val { opacity: .35; }
.ro-bar.hl .ro-val { color: var(--text); font-weight: 700; }
.ro-m { position: absolute; left: -10px; right: -10px; bottom: -20px; text-align: center; font-size: 12px; color: var(--muted); }
.ro-levers { list-style: none; align-self: start; }
.ro-levers li { position: relative; display: grid; grid-template-columns: 28px 1fr; column-gap: 8px; padding: 10px 0 12px; border-top: 1px solid #ddd; }
.ro-levers li::before { content: ""; position: absolute; top: -1px; left: 0; height: 1px; width: calc(var(--p, 0) * 100%); background: var(--text); }
.lv-n { font-size: 12px; color: var(--muted); padding-top: 2px; }
.lv-name { font-size: 15px; }
.lv-s { grid-column: 2; font-size: 13px; color: var(--muted); }
.lv-a, .lv-b { transition: color .3s; }
.ro-levers li:not(.on) .lv-a, .ro-levers li.on .lv-b { color: var(--text); font-weight: 700; }
.ro-reads { margin-top: 18px; border-top-color: var(--text) !important; }
.ro-reads .lv-n, .ro-zero .lv-n { grid-column: 1 / 3; }
.ro-word { grid-column: 1 / 3; position: relative; display: block; height: 1.1em; overflow: hidden; font-size: clamp(28px, 3vw, 44px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; }
.ro-a, .ro-b { position: absolute; left: 0; top: 0; white-space: nowrap; }
.ro-b { transform: translateY(110%); }
.ro-zero-n { grid-column: 1 / 3; font-size: clamp(28px, 3vw, 44px); font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.ro-foot { padding-top: 34px; padding-bottom: 56px; }   /* clears the locator in the bottom-left */
@media (max-width: 760px) {
  .ro-body { display: flex; flex-direction: column-reverse; gap: 12px; }
  .ro-chart { flex: 1; }
  .ro-levers { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
  .ro-levers li { padding: 6px 0 8px; grid-template-columns: 20px 1fr; }
  .lv-name { font-size: 13px; } .lv-s { font-size: 11px; }
  .ro-reads { margin-top: 0; }
  .ro-word, .ro-zero-n { font-size: 22px; }
  .ro-lede { font-size: 13px; }
}

/* layered 311 map (NYC 311 page) */
.map311 { position: relative; height: 420vh; margin: 64px 0 25vh; }
.map311-sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding-top: 72px; overflow: hidden; }
.map311-head { align-items: end; padding-bottom: 10px; border-bottom: 1px solid var(--line); margin: 0 var(--pad); padding-left: 0; padding-right: 0; }
.map311-body { flex: 1; min-height: 0; padding-top: 16px; }
.c1-8 { grid-column: 1 / 9; } .c9-12 { grid-column: 9 / 13; }
.map311-map { position: relative; min-height: 0; height: 100%; }
.map311-map svg { display: block; }
.map311-map circle { mix-blend-mode: multiply; fill-opacity: .55; }
.map311-panel { align-self: start; padding-top: 8px; }
.m3-layers { list-style: none; }
.m3-layers li { position: relative; display: grid; grid-template-columns: 28px 1fr; column-gap: 8px; padding: 9px 0 10px; border-top: 1px solid #ddd; color: var(--muted); transition: color .3s; }
.m3-layers li::before { content: ""; position: absolute; top: -1px; left: 0; height: 1px; width: calc(var(--p, 0) * 100%); background: var(--text); }
.m3-layers li.on { color: var(--text); }
.m3-layers li.cur .lv-name { font-weight: 700; }
.m3-layers .lv-name i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.m3-detail { margin-top: 22px; min-height: 220px; }
.m3-k { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.m3-row { display: grid; grid-template-columns: 96px 1fr 70px; gap: 8px; align-items: center; font-size: 13px; padding: 3px 0; }
.m3-row span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.m3-bar { height: 6px; background: #f0f0f0; }
.m3-bar i { display: block; height: 100%; }
.m3-top { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.m3-top span { font-size: 13px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
@media (max-width: 760px) {
  .map311-body { display: flex; flex-direction: column; gap: 8px; }
  .map311-map { flex: 1; }
  .m3-layers { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
  .m3-layers li { padding: 5px 0 6px; grid-template-columns: 20px 1fr; font-size: 12px; }
  .m3-detail { display: none; }
}

/* a row of images with a caption (e.g. social stories, email newsletters) */
.img-grid-wrap { margin: 48px 0; }
.img-grid { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: var(--gap); align-items: start; }
.img-grid img { width: 100%; height: auto; display: block; }
.img-cap { margin-top: 10px; }

/* file links (pdfs) */
.file-links a { display: flex; justify-content: space-between; border-top: 1px solid var(--line);
  padding: 12px 0 20px; font-size: 28px; letter-spacing: -0.01em; transition: padding .4s var(--ease), color .2s; }
.file-links a:last-child { border-bottom: 1px solid var(--line); }
.file-links a span { font-size: 15px; color: var(--muted); padding-top: 8px; }
.file-links a:hover { padding-left: 16px; }

/* ---------- scroll reveal (any element with class="reveal") ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- mobile ---------- */
@media (max-width: 760px) {
  :root { --pad: 16px; --gap: 12px; }
  .c1-3, .c4-12, .c4-9, .row .when, .row .what, .row .detail { grid-column: 1 / 13; }
  .logo { grid-column: 1 / 13; }
  .site-header nav { grid-column: 1 / 13; margin-top: 4px; }
  .site-header nav a.active::before { display: none; }
  .site-header nav a.active { color: var(--accent); }
  .skills { grid-template-columns: 1fr 1fr; }
  .plist li a { font-size: 24px; }
  .plist .num { grid-column: 1 / 3; }
  .plist .name { grid-column: 3 / 13; }
  .plist .tags, .plist .year { display: none; }
  .cursor-img { display: none; }
  .meta div { grid-column: span 6; }
  .contact-big a { font-size: 9vw; }
  .hero-meta { top: calc(var(--pad) + 70px); row-gap: 14px; }
  .type-hero .hero-meta { top: calc(var(--pad) + 64px); }
  .type-body { top: 34vh; }
  .type-hero .hm-2 { grid-column: 1 / 5; } .type-hero .hm-3 { grid-column: 5 / 13; }   /* based in + currently side by side */
  .type-name { font-size: 31vw; }
  .type-name span { display: block; }       /* della / wirfel stacked to fill the phone screen */
  .type-msg { font-size: 18px; }
  .hm-v { font-size: 22px; }
  .hm-1, .hm-2, .hm-3 { grid-column: 1 / 13; }
  .page-title-sm, .resume-head h2 { font-size: 14vw; }
  .portrait { max-width: 46vw; margin: 12px 0 20px; }
  .c1-9, .c10-12 { grid-column: 1 / 13; } .resume-dl { text-align: left; margin-top: 8px; }
  .contact-big .handle { font-size: 13px; }
  .locator .loc-sec { display: none; }
  .bub-year { font-size: 48px; }
  .bub-lede { font-size: 14px; }
  .bub-name { font-size: 11px; }
  .hand { width: 72vw; top: 26vh; }
  .img-grid { grid-template-columns: repeat(min(var(--cols, 3), 2), 1fr); }
  .embed-switch button { padding: 12px 14px 14px; }
}

/* respect people who turn motion off */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .split .char, .plist li { transform: none; opacity: 1; }
  .img-box.reveal::after, .embed.reveal::after, .media.reveal::after { display: none; }
  .img-box img, .media img, .media video { opacity: 1; transform: none; }
  .row, .meta div { background-size: 100% 1px; }
  .wipe { display: none; }
  .hero-meta p { opacity: 1; }
  .caret { animation: none; }
  .reveal { opacity: 1; transform: none; }
}
