:root{
  /* FONTS: bubbles = ABC Camera Rounded, all other text = Helvetica Neue, numbers (1/13) = Suffix Serif */
  --font-bubble:"MyFont",Helvetica,Arial,sans-serif;
  --font-text:"Helvetica Neue",Helvetica,Arial,sans-serif;
  --font-numbers:"Suffix Serif",Georgia,serif;
  /* ARROW CURSORS over the Hybrid Beings image. To use your own picture, replace the url(...)
     with e.g. url("images/arrow-right.png") 12 12, e-resize
     (the two numbers are the "hot spot", the exact point of the pointer, measured in pixels from the top left) */
  --cursor-next:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 20h28M24 10l10 10-10 10' stroke='white' stroke-width='7'/%3E%3Cpath d='M6 20h28M24 10l10 10-10 10' stroke='black' stroke-width='3'/%3E%3C/g%3E%3C/svg%3E") 8 8, e-resize;
  --cursor-prev:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 40 40'%3E%3Cg fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M34 20H6M16 10L6 20l10 10' stroke='white' stroke-width='7'/%3E%3Cpath d='M34 20H6M16 10L6 20l10 10' stroke='black' stroke-width='3'/%3E%3C/g%3E%3C/svg%3E") 8 8, w-resize;
  /* SOUND CURSORS over videos that have sound: speaker (click = sound on) / crossed speaker (click = mute) */
  --cursor-unmute:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath d='M3 9h4l5-4v14l-5-4H3z' fill='white' stroke='white' stroke-width='4.5' stroke-linejoin='round'/%3E%3Cpath d='M15.5 9a4 4 0 0 1 0 6' fill='none' stroke='white' stroke-width='4.5' stroke-linecap='round'/%3E%3Cpath d='M18 6.5a8 8 0 0 1 0 11' fill='none' stroke='white' stroke-width='4.5' stroke-linecap='round'/%3E%3Cpath d='M3 9h4l5-4v14l-5-4H3z' fill='black' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M15.5 9a4 4 0 0 1 0 6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M18 6.5a8 8 0 0 1 0 11' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") 8 8, pointer;
  --cursor-mute:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Cpath d='M3 9h4l5-4v14l-5-4H3z' fill='white' stroke='white' stroke-width='4.5' stroke-linejoin='round'/%3E%3Cpath d='M15 9l6 6' fill='none' stroke='white' stroke-width='4.5' stroke-linecap='round'/%3E%3Cpath d='M21 9l-6 6' fill='none' stroke='white' stroke-width='4.5' stroke-linecap='round'/%3E%3Cpath d='M3 9h4l5-4v14l-5-4H3z' fill='black' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3Cpath d='M15 9l6 6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M21 9l-6 6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") 8 8, pointer;
  /* ZOOM CURSORS (Ozadivka Village): magnifier with + (click = zoom in) / with - (click = zoom out) */
  --cursor-zoom:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Ccircle cx='10' cy='10' r='6' fill='none' stroke='white' stroke-width='4.5' stroke-linecap='round'/%3E%3Cpath d='M15 15l6 6' fill='none' stroke='white' stroke-width='4.5' stroke-linecap='round'/%3E%3Cpath d='M7 10h6M10 7v6' fill='none' stroke='white' stroke-width='4.5' stroke-linecap='round'/%3E%3Ccircle cx='10' cy='10' r='6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M15 15l6 6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M7 10h6M10 7v6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") 7 7, zoom-in;
  --cursor-zoomout:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24'%3E%3Ccircle cx='10' cy='10' r='6' fill='none' stroke='white' stroke-width='4.5' stroke-linecap='round'/%3E%3Cpath d='M15 15l6 6' fill='none' stroke='white' stroke-width='4.5' stroke-linecap='round'/%3E%3Cpath d='M7 10h6' fill='none' stroke='white' stroke-width='4.5' stroke-linecap='round'/%3E%3Ccircle cx='10' cy='10' r='6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M15 15l6 6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M7 10h6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") 7 7, zoom-out;
  --bold-weight:500;   /* how bold the bold words in the descriptions are: 400 = normal, 500 = medium, 600, 700 = bold */
  --bio-width:970px;     /* width of the bio text column (next to the name): bigger = longer lines of text */
  --work-gap:56px;    /* space between one work (image + text) and the next */
  --text-indent:180px; /* start of the text under an image; script.js sets it to the start of the bio text */
  --bubble-grow:2pt;   /* how much bigger the text in ALL bubbles (name included) and the numbers is than the body text */
  --gap:3px;          /* space between a bubble and its text (name -> bio), and between an image and its counter (1/14) */
  --desc-gap:0px;     /* space between an image and the description under it (0 = the text starts right under the image) */
  --cycle:16s;        /* time for the name bubble to go through all its colours: bigger = slower */
  --leading:1.2;      /* space between lines of text: smaller = tighter (was 1.4) */
  --bg:#fff; --fg:#000; --ph-note:rgba(0,0,0,.35);
  box-sizing:border-box;
  padding-top:env(safe-area-inset-top,0px);
  padding-bottom:env(safe-area-inset-bottom,0px);
  color-scheme:light;
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){ --bg:#111; --fg:#f2f2f2; --ph-note:rgba(255,255,255,.35); color-scheme:dark; }
}
:root[data-theme="dark"]{ --bg:#111; --fg:#f2f2f2; --ph-note:rgba(255,255,255,.35); color-scheme:dark; }
html{ scroll-padding-top:env(safe-area-inset-top,0px); }
*,*::before,*::after{ box-sizing:inherit; }

/* Your font. The file must sit in a "fonts" folder next to this style.css.
   (format must say "truetype" for .ttf, "opentype" for .otf, "woff2" for .woff2) */
@font-face{
  font-family:"MyFont";
  src:url("fonts/ABCCameraRoundedRegular.ttf") format("truetype");
  font-display:swap;
}

/* Numbers (the 1/13 counter): Suffix Serif.
   Put the font file in the "fonts" folder, named SuffixSerif-Regular (.woff2, .ttf or .otf), or change the names below. */
@font-face{
  font-family:"Suffix Serif";
  src:local("Suffix Serif"), local("SuffixSerif-Regular"),
      url("fonts/SuffixSerif-Regular.woff2") format("woff2"),
      url("fonts/SuffixSerif-Regular.ttf") format("truetype"),
      url("fonts/SuffixSerif-Regular.otf") format("opentype");
  font-display:swap;
}

body{
  margin:0; background:var(--bg); color:var(--fg);
  font:15px/var(--leading) var(--font-text);
  -webkit-font-smoothing:antialiased;
}
a{ color:inherit; }

/* colour bubbles (colours are set in script.js) */
.bubble{
  font:inherit; font-family:var(--font-bubble); font-size:calc(1em + var(--bubble-grow));
  color:#000; background:#ccc;
  border:0; border-radius:7px; padding:1px 6px; margin:0;
  text-decoration:none;
  cursor:pointer; text-align:left;
  flex:none; white-space:nowrap;
}
/* the name bubble changes colour gradually (yellow > blue > pink > green) until it is clicked.
   The numbers are hues: 52 yellow, 225 blue, 325 pink, 130 green. Change them to change the colours. */
@property --hue{ syntax:'<number>'; inherits:false; initial-value:52; }
#name[aria-expanded="false"]{
  background:hsl(var(--hue) 100% 68%) !important;
  animation:name-colors var(--cycle) ease-in-out infinite;
}
@keyframes name-colors{
  0%   { --hue:52;  }
  25%  { --hue:225; }
  50%  { --hue:325; }
  75%  { --hue:130; }
  100% { --hue:52;  }
}
/* only the name bubble is underlined (it is the one that opens the bio) */
#name{ text-decoration:underline; text-underline-offset:2px; }
.bubble:focus-visible{ outline:2px solid var(--fg); outline-offset:2px; }

/* header: name | bio + contact */
header{ padding:0 0 17px; }
.intro{ margin:0; display:flex; align-items:baseline; gap:var(--gap); }
.side{ flex:1 1 var(--bio-width); max-width:var(--bio-width); min-width:0; }
/* an empty line at the top of the column: the name lines up with the first line of text
   (the bio when it is open, the email line when it is closed) */
.side::before{ content:"\200b"; display:block; height:0; }
.bio{ display:block; padding:0 0 14px; }

/* bio: height and opacity ease together, so the text fades while the email / inst slide down */
.bio-wrap{
  display:grid; grid-template-rows:0fr;
  transition:grid-template-rows .8s cubic-bezier(.4,0,.2,1);
}
.bio-clip{
  min-height:0; overflow:hidden; opacity:0; visibility:hidden;
  transition:opacity .6s ease, visibility 0s linear .8s;
}
.bio-wrap.open{ grid-template-rows:1fr; }
.bio-wrap.open .bio-clip{
  opacity:1; visibility:visible;
  transition:opacity .8s ease .1s, visibility 0s;
}
.contact{ margin:0; padding:0; }
.contact span{ margin-left:6px; }

/* "Back to top": fixed at the bottom centre of the screen, fades in / out (script.js adds .show) */
.bubble.to-top{
  position:fixed; left:50%; bottom:env(safe-area-inset-bottom,0px); transform:translateX(-50%); z-index:30;
  text-decoration:underline; text-underline-offset:2px;
  opacity:0; visibility:hidden; pointer-events:none;
  transition:opacity .5s ease, visibility 0s linear .5s;
}
.bubble.to-top.show{ opacity:1; visibility:visible; pointer-events:auto; transition:opacity .5s ease; }

/* work */
.item{ display:flex; width:100%; margin-bottom:var(--work-gap); }
.item.l{ justify-content:flex-start; }
.item.c{ justify-content:center; }
.item.r{ justify-content:flex-end; }

/* box = the media (+ its text); its width is --w, the height follows the image */
.box{ position:relative; width:var(--w); max-width:100%; }
.media{ position:relative; aspect-ratio:var(--ar); background:var(--bg-ph,#bbb); overflow:hidden; }
.box.loaded .media{ aspect-ratio:auto; background:none; overflow:visible; }
.media img,.media video{ display:block; width:100%; height:auto; }
.media img.cycle{ cursor:var(--cursor-next); }          /* right half */
.media img.cycle.go-left{ cursor:var(--cursor-prev); }   /* left half */
.media img.cycle.go-zoom{ cursor:var(--cursor-zoom); }   /* middle third (zoom images) */
.media img.cycle.zoomed{ cursor:var(--cursor-zoomout); }   /* zoomed in: click = zoom out */
/* invisible layer over a video with sound: click = sound on / off */
.media .sound-hit{ position:absolute; inset:0; z-index:1; cursor:var(--cursor-unmute); }
.media .sound-hit.on{ cursor:var(--cursor-mute); }
.media .sound-hit:focus-visible{ outline:2px solid var(--fg); outline-offset:-2px; }
.media .note{ position:absolute; right:10px; bottom:8px; font-size:12px; color:var(--ph-note); }
.media .bubble{ position:absolute; left:0; top:var(--ly,50%); transform:translateY(-50%); z-index:2; }
.media .anchor{ position:absolute; left:0; top:var(--ly,50%); width:0; height:0; pointer-events:none; }
/* once a project name reaches the top of the screen it stays there, stacked (script.js sets left / top) */
.media .bubble.stuck{ position:fixed; transform:none; z-index:20; transition:top .3s ease; }

/* description: always shown under the image, starting at the same x as the bio text
   and ending at the right edge of the image */
.desc{ margin:0 0 0 var(--text-indent); padding:var(--desc-gap) 0 0; }

.desc strong{ font-weight:var(--bold-weight); }
.desc em,.bio em{ font-style:italic; }
.desc .desc-link{ text-decoration:underline; text-underline-offset:2px; }

/* image counter (1/13) next to the image, at the top; on the left side for right-aligned images */
.counter{ position:absolute; top:6px; left:calc(100% + var(--gap)); font-family:var(--font-numbers); font-size:calc(1em + var(--bubble-grow)); line-height:1; white-space:nowrap; }
.item.r .counter{ left:auto; right:calc(100% + var(--gap)); }

@media (max-width:700px){
  body{ font-size:14px; }
  .intro{ flex-direction:column; gap:6px; }
  .box{ width:90%; }
  .desc{ margin-left:0; padding:8px 6px 0; }
  .counter{ position:static; display:block; padding:4px 6px 0; }
}

@media (prefers-reduced-motion: reduce){
  .bio-wrap,.bio-clip,
  #name{ animation:none !important; }
}