/* davidvobecky.com — holding page
   White page, near-black ink, Geist (variable) + Geist Mono for labels. */
:root{
  color-scheme:light dark;
  --bg:light-dark(#ffffff,#0a0a0a);
  --ink:light-dark(#0a0a0a,#f4f4f2);
  --muted:light-dark(#6e6e6a,#9a9a95);
  --line:light-dark(#e4e4e0,#26262a);
  --logo-filter:brightness(0);
  --logo-op:.45;
  --pad:clamp(20px,2.8vw,40px);
}
@media (prefers-color-scheme:dark){:root{--logo-filter:none;--logo-op:.55}}

*{box-sizing:border-box;min-width:0}
html,body{margin:0}
body{background:var(--bg);color:var(--ink);font:16px/1.5 Geist,system-ui,sans-serif;overflow-x:clip;-webkit-font-smoothing:antialiased}
a{color:inherit}
:focus-visible{outline:2px solid var(--ink);outline-offset:3px}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

.stage{min-height:100vh;min-height:100svh;display:flex;flex-direction:column;padding:0 var(--pad)}

/* ---------- intro ---------- */
/* The portrait breaks the grid: it bleeds off the top-right corner of the window and hangs down
   over the "Worked with" row, so the logos pass underneath it. Its bottom edge always lines up
   with the bottom of the marquee (--hang = everything in .worked down to the marquee's bottom);
   the image is cropped to whatever height that gives. */
.intro{
  --pw:clamp(220px,32vw,520px);
  --hang:calc(1px + 24px + 13px*1.4 + 20px + 48px);
  position:relative;z-index:2;
  padding:clamp(56px,9vw,128px) 0 clamp(40px,4.5vw,64px);
}
.lede{
  margin:0;max-width:min(840px,calc(100% - var(--pw) + var(--pad) - 48px));
  font-size:clamp(28px,3.35vw,48px);line-height:1.12;letter-spacing:-.02em;text-wrap:pretty;
}
.portrait{
  position:absolute;top:0;right:calc(-1*var(--pad));bottom:calc(-1*var(--hang));
  width:var(--pw);
  margin:0;overflow:hidden;background:var(--line);
}
.portrait img{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 30%;filter:grayscale(1)}

/* intro text: per-word line reveal, then per-letter living weight.
   Letter boxes are fixed at their regular width, so lines never reflow while weights change. */
.js .lede.pre{opacity:0}
.lede .wd,.lede .wi,.lede .pc{display:inline-block}
.lede .pc{text-align:center;font-variation-settings:"wght" 400}
.lede.lines .wd{overflow:hidden;vertical-align:top;padding-bottom:.14em;margin-bottom:-.14em}
.lede.lines .wi{transform:translateY(1.3em)}
.lede.lines.go .wi{transform:none;transition:transform .9s cubic-bezier(.2,.7,.1,1)} /* transition only on the end state */

/* ---------- worked with ---------- */
.worked{border-top:1px solid var(--line);padding-top:24px;margin-bottom:40px}
.label{font:13px/1.4 "Geist Mono",ui-monospace,monospace;color:var(--muted);margin:0 0 20px}
.marquee{
  position:relative;overflow:hidden;height:48px;
  -webkit-mask:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent);
          mask:linear-gradient(90deg,transparent,#000 12%,#000 88%,transparent);
  -webkit-touch-callout:none;-webkit-user-select:none;user-select:none;
}
.track{display:flex;gap:80px;width:max-content;will-change:transform}
/* logos are decoration for touch: no save-image sheet on long press, no drag ghost */
.track img{height:48px;width:auto;filter:var(--logo-filter);opacity:var(--logo-op);transition:opacity .3s;pointer-events:none;-webkit-user-drag:none;-webkit-touch-callout:none}
.marquee:hover img{opacity:calc(var(--logo-op) + .2)}

/* ---------- name ---------- */
.name{margin:auto 0 0;/* on tall screens the name + footer sit on the bottom edge */font-weight:500;line-height:.86;letter-spacing:-.05em;white-space:nowrap;font-size:14.2vw;user-select:none}
.name .w{display:inline}
.name .ch{display:inline-block;font-variation-settings:"wght" 500}

/* ---------- footer ---------- */
.foot{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:40px 0 28px;font-weight:500}
.links{display:flex;gap:28px}
.links a{text-decoration:none}
.links a.mail,.links a:hover{text-decoration:underline;text-underline-offset:3px}
.copy{font:13px/1.4 "Geist Mono",ui-monospace,monospace;color:var(--muted)}

/* ---------- load choreography ---------- */
@media (prefers-reduced-motion:no-preference){
  .in{opacity:0;transform:translateY(16px);animation:up .9s cubic-bezier(.2,.7,.1,1) forwards}
  .portrait{animation:wipe 1.3s .25s cubic-bezier(.7,0,.15,1) both}
  .portrait img{animation:settle 1.9s .25s cubic-bezier(.2,.7,.1,1) both}
}
@keyframes up{to{opacity:1;transform:none}}
@keyframes wipe{from{clip-path:inset(100% 0 0 0)}to{clip-path:inset(0)}}
@keyframes settle{from{transform:scale(1.18)}to{transform:none}}

@media (prefers-reduced-motion:reduce){
  .marquee{overflow-x:auto;-webkit-mask:none;mask:none}
}

/* ---------- phone ---------- */
@media (max-width:760px){
  .intro{display:flex;flex-direction:column-reverse;gap:28px;padding:0 0 48px}
  .portrait{position:relative;top:auto;right:auto;bottom:auto;width:auto;aspect-ratio:4/5;margin:0 calc(-1*var(--pad))}
  .lede{max-width:none}
  .worked{margin-bottom:28px}
  .name{line-height:.9;font-size:22vw}
  .name .w{display:block}
  .name .sp{display:none}
  .foot{flex-direction:column;align-items:flex-start;gap:10px;padding-top:28px}
  .track{gap:40px}
  .track img{height:35px}
  .marquee{height:35px}
}
